@instadapp/interop-x 0.0.0-dev.de23e71 → 0.0.0-dev.de59649
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +13 -12
- package/dist/src/abi/index.js +2 -4
- package/dist/src/abi/interopXContract.json +454 -0
- package/dist/src/constants/addresses.js +7 -7
- package/dist/src/constants/index.js +0 -1
- package/dist/src/constants/tokens.js +62 -39
- package/dist/src/db/models/transaction.js +19 -11
- package/dist/src/gnosis/actions/index.js +0 -2
- package/dist/src/gnosis/actions/withdraw/index.js +104 -0
- package/dist/src/gnosis/index.js +4 -4
- package/dist/src/index.js +4 -2
- package/dist/src/net/protocol/dial/SignatureDialProtocol.js +6 -2
- package/dist/src/tasks/{InteropBridge/ProcessWithdrawEvents.js → InteropXContract/ProcessBridgeRequestEvents.js} +42 -52
- package/dist/src/tasks/InteropXContract/SyncBridgeCommittedEvents.js +93 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +78 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +90 -0
- package/dist/src/tasks/index.js +16 -30
- package/dist/src/typechain/{InteropBridgeToken.js → InteropXContract.js} +0 -0
- package/dist/src/typechain/factories/InteropXContract__factory.js +635 -0
- package/dist/src/typechain/factories/index.js +3 -5
- package/dist/src/typechain/index.js +3 -5
- package/dist/src/utils/index.js +37 -8
- package/package.json +13 -12
- package/src/abi/index.ts +2 -4
- package/src/abi/interopXContract.json +454 -0
- package/src/constants/addresses.ts +7 -7
- package/src/constants/index.ts +0 -1
- package/src/constants/tokens.ts +63 -40
- package/src/db/models/transaction.ts +66 -27
- package/src/gnosis/actions/index.ts +0 -2
- package/src/gnosis/actions/withdraw/index.ts +140 -0
- package/src/gnosis/index.ts +5 -5
- package/src/index.ts +3 -1
- package/src/net/protocol/dial/SignatureDialProtocol.ts +6 -2
- package/src/tasks/{InteropBridge/ProcessWithdrawEvents.ts → InteropXContract/ProcessBridgeRequestEvents.ts} +66 -99
- package/src/tasks/InteropXContract/SyncBridgeCommittedEvents.ts +125 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +115 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +121 -0
- package/src/tasks/index.ts +18 -36
- package/src/typechain/InteropXContract.ts +680 -0
- package/src/typechain/factories/InteropXContract__factory.ts +642 -0
- package/src/typechain/factories/index.ts +1 -2
- package/src/typechain/index.ts +2 -4
- package/src/utils/index.ts +78 -8
- package/dist/src/abi/interopBridgeToken.json +0 -298
- package/dist/src/abi/interopXGateway.json +0 -184
- package/dist/src/constants/itokens.js +0 -13
- package/dist/src/gnosis/actions/deposit.js +0 -48
- package/dist/src/gnosis/actions/withdraw.js +0 -50
- package/dist/src/tasks/InteropBridge/SyncBurnEvents.js +0 -71
- package/dist/src/tasks/InteropBridge/SyncMintEvents.js +0 -67
- package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -164
- package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
- package/dist/src/tasks/InteropXGateway/SyncWithdrawtEvents.js +0 -72
- package/dist/src/typechain/InteropXGateway.js +0 -2
- package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -471
- package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
- package/src/abi/interopBridgeToken.json +0 -298
- package/src/abi/interopXGateway.json +0 -184
- package/src/constants/itokens.ts +0 -10
- package/src/gnosis/actions/deposit.ts +0 -63
- package/src/gnosis/actions/withdraw.ts +0 -67
- package/src/tasks/InteropBridge/SyncBurnEvents.ts +0 -119
- package/src/tasks/InteropBridge/SyncMintEvents.ts +0 -99
- package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -260
- package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
- package/src/tasks/InteropXGateway/SyncWithdrawtEvents.ts +0 -105
- package/src/typechain/InteropBridgeToken.ts +0 -692
- package/src/typechain/InteropXGateway.ts +0 -407
- package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -478
- package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
package/src/tasks/index.ts
CHANGED
@@ -1,59 +1,41 @@
|
|
1
1
|
import { BaseTask } from "./BaseTask";
|
2
|
-
import
|
3
|
-
import InteropXGatewaySyncDepositEvents from "./InteropXGateway/SyncDepositEvents";
|
4
|
-
import InteropXGatewaySyncWithdrawEvents from "./InteropXGateway/SyncWithdrawtEvents";
|
5
|
-
|
6
|
-
import InteropBridgeProcessWithdrawEvents from "./InteropBridge/ProcessWithdrawEvents";
|
7
|
-
import InteropBridgeSyncBurnEvents from "./InteropBridge/SyncBurnEvents";
|
8
|
-
import InteropBridgeSyncMintEvents from "./InteropBridge/SyncMintEvents";
|
2
|
+
import wait from "waait";
|
9
3
|
|
10
4
|
import SyncTransactionStatusTask from "./Transactions/SyncTransactionStatusTask";
|
11
5
|
|
12
6
|
import AutoUpdateTask from "./AutoUpdateTask";
|
13
7
|
|
8
|
+
import SyncBridgeRequestEvents from "./InteropXContract/SyncBridgeRequestEvents";
|
9
|
+
import ProccessBridgeRequestEvents from "./InteropXContract/ProcessBridgeRequestEvents";
|
10
|
+
import SyncBridgeRequestSentEvents from "./InteropXContract/SyncBridgeRequestSentEvents";
|
11
|
+
import SyncBridgeCommittedEvents from "./InteropXContract/SyncBridgeCommittedEvents";
|
12
|
+
|
14
13
|
export class Tasks {
|
15
|
-
|
14
|
+
|
16
15
|
tasks: BaseTask[] = [
|
17
|
-
new SyncTransactionStatusTask(),
|
16
|
+
// new SyncTransactionStatusTask(),
|
18
17
|
new AutoUpdateTask(),
|
19
18
|
|
20
|
-
//
|
21
|
-
|
22
|
-
new InteropXGatewaySyncDepositEvents({
|
23
|
-
chainId: 43114
|
24
|
-
}),
|
25
|
-
|
26
|
-
new InteropXGatewayProcessDepositEvents({
|
27
|
-
chainId: 43114
|
28
|
-
}),
|
29
|
-
|
30
|
-
|
31
|
-
new InteropXGatewaySyncWithdrawEvents({
|
32
|
-
chainId: 43114
|
33
|
-
}),
|
34
|
-
|
19
|
+
// InteropXContract
|
35
20
|
|
36
|
-
|
21
|
+
new SyncBridgeRequestEvents({ chainId: 137 }),
|
22
|
+
new SyncBridgeRequestEvents({ chainId: 43114 }),
|
37
23
|
|
38
|
-
new
|
39
|
-
|
40
|
-
}),
|
24
|
+
new SyncBridgeRequestSentEvents({ chainId: 137 }),
|
25
|
+
new SyncBridgeRequestSentEvents({ chainId: 43114 }),
|
41
26
|
|
42
|
-
new
|
43
|
-
|
44
|
-
itokenAddress: '0x62c0045f3277e7067cacad3c8038eeabb1bd92d1',
|
45
|
-
}),
|
27
|
+
new SyncBridgeCommittedEvents({ chainId: 137 }),
|
28
|
+
new SyncBridgeCommittedEvents({ chainId: 43114 }),
|
46
29
|
|
47
|
-
new
|
48
|
-
|
49
|
-
itokenAddress: '0x62c0045f3277e7067cacad3c8038eeabb1bd92d1',
|
50
|
-
})
|
30
|
+
new ProccessBridgeRequestEvents({ chainId: 137 }),
|
31
|
+
new ProccessBridgeRequestEvents({ chainId: 43114 }),
|
51
32
|
];
|
52
33
|
|
53
34
|
async start() {
|
54
35
|
for (const task of this.tasks) {
|
55
36
|
try {
|
56
37
|
task.start();
|
38
|
+
await wait(1000)
|
57
39
|
} catch (error) {
|
58
40
|
console.error(`Error starting task: ${task.constructor.name}`);
|
59
41
|
}
|