Added bridge swap

This commit is contained in:
Aleksandr Kraiz
2023-02-23 23:55:57 +04:00
parent a5e464c9ad
commit 07ef06648d
6 changed files with 383 additions and 9 deletions

View File

@@ -79,6 +79,7 @@ export default class OrionUnit {
const intNetwork = parseInt(this.chainId, 10);
if (Number.isNaN(intNetwork)) throw new Error('Invalid chainId (not a number)' + this.chainId);
this.provider = new ethers.providers.StaticJsonRpcProvider(this.config.nodeJsonRpc, intNetwork);
this.provider.pollingInterval = 1000;
this.orionBlockchain = new OrionBlockchain(this.config.services.orionBlockchain.http);
this.orionAggregator = new OrionAggregator(