@instadapp/interop-x 0.0.0-dev.8a9ef54 → 0.0.0-dev.8cb1c22

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.
Files changed (31) hide show
  1. package/dist/package.json +2 -1
  2. package/dist/src/constants/addresses.js +1 -1
  3. package/dist/src/constants/blockConfirmations.js +8 -0
  4. package/dist/src/constants/index.js +1 -0
  5. package/dist/src/db/models/transaction.js +11 -7
  6. package/dist/src/gnosis/actions/aaveV2/source.js +15 -4
  7. package/dist/src/gnosis/actions/aaveV2/target.js +77 -0
  8. package/dist/src/gnosis/actions/index.js +1 -1
  9. package/dist/src/index.js +1 -1
  10. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +2 -2
  11. package/dist/src/tasks/InteropX/ProcessSubmitSubmitEvents.js +179 -0
  12. package/dist/src/tasks/InteropX/ProcessValidateEvents.js +183 -0
  13. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +2 -1
  14. package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +105 -0
  15. package/dist/src/tasks/index.js +9 -0
  16. package/dist/src/utils/index.js +3 -2
  17. package/package.json +2 -1
  18. package/src/constants/addresses.ts +1 -1
  19. package/src/constants/blockConfirmations.ts +5 -0
  20. package/src/constants/index.ts +1 -0
  21. package/src/db/models/transaction.ts +113 -80
  22. package/src/gnosis/actions/aaveV2/source.ts +19 -5
  23. package/src/gnosis/actions/aaveV2/target.ts +121 -2
  24. package/src/gnosis/actions/index.ts +1 -1
  25. package/src/net/protocol/dial/SignatureDialProtocol.ts +3 -2
  26. package/src/tasks/InteropX/ProcessSubmitSubmitEvents.ts +269 -0
  27. package/src/tasks/InteropX/ProcessValidateEvents.ts +274 -0
  28. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +3 -2
  29. package/src/tasks/InteropX/SyncLogValidateEvents.ts +152 -0
  30. package/src/tasks/index.ts +12 -0
  31. package/src/utils/index.ts +3 -3
@@ -6,6 +6,9 @@ import SyncTransactionStatusTask from "./Transactions/SyncTransactionStatusTask"
6
6
  import AutoUpdateTask from "./AutoUpdateTask";
7
7
 
8
8
  import SyncLogSubmitEvents from "./InteropX/SyncLogSubmitEvents";
9
+ import ProcessSubmitSubmitEvents from "./InteropX/ProcessSubmitSubmitEvents";
10
+ import SyncLogValidateEvents from "./InteropX/SyncLogValidateEvents";
11
+ import ProcessValidateEvents from "./InteropX/ProcessValidateEvents";
9
12
 
10
13
  export class Tasks {
11
14
 
@@ -17,6 +20,15 @@ export class Tasks {
17
20
  new SyncLogSubmitEvents({ chainId: 137 }),
18
21
  new SyncLogSubmitEvents({ chainId: 43114 }),
19
22
 
23
+ new ProcessSubmitSubmitEvents({ chainId: 137 }),
24
+ new ProcessSubmitSubmitEvents({ chainId: 43114 }),
25
+
26
+ new SyncLogValidateEvents({ chainId: 137 }),
27
+ new SyncLogValidateEvents({ chainId: 43114 }),
28
+
29
+ new ProcessValidateEvents({ chainId: 137 }),
30
+ new ProcessValidateEvents({ chainId: 43114 }),
31
+
20
32
  new SyncTransactionStatusTask(),
21
33
  ];
22
34
 
@@ -9,6 +9,7 @@ import { ethers } from "ethers";
9
9
  import { GnosisSafe } from "@/typechain";
10
10
  import retry from "async-retry";
11
11
  import { connectors } from "@/abi/connectors";
12
+ import Web3EthAbi from "web3-eth-abi";
12
13
 
13
14
  export const http = axios.create();
14
15
 
@@ -348,9 +349,8 @@ export const encodeConnectorMethod = (params: {
348
349
  if (!connectorInterface)
349
350
  throw new Error(`ConnectorInterface '${params.method}' not found`);
350
351
 
351
- const iface = new ethers.utils.Interface(connectorInterface);
352
-
353
- return iface.encodeFunctionData(params.method, params.args);
352
+ //@ts-ignore
353
+ return Web3EthAbi.encodeFunctionCall(connectorInterface, params.args);
354
354
  };
355
355
 
356
356
  const getInterface = (abiItems: any[], method: string) => {