@instadapp/interop-x 0.0.0-dev.edef11e → 0.0.0-dev.ee3d74b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. package/.github/workflows/ci.yml +19 -0
  2. package/dist/package.json +15 -13
  3. package/dist/src/abi/connectors/index.js +36 -0
  4. package/dist/src/abi/connectors/v1/aave.js +148 -0
  5. package/dist/src/abi/connectors/v1/aave_claim.js +4 -0
  6. package/dist/src/abi/connectors/v1/aave_migrate.js +109 -0
  7. package/dist/src/abi/connectors/v1/aave_polygon_migrate.js +110 -0
  8. package/dist/src/abi/connectors/v1/aave_stake.js +4 -0
  9. package/dist/src/abi/connectors/v1/aave_v1_import.js +54 -0
  10. package/dist/src/abi/connectors/v1/aave_v2.js +230 -0
  11. package/dist/src/abi/connectors/v1/aave_v2_import.js +59 -0
  12. package/dist/src/abi/connectors/v1/authority.js +100 -0
  13. package/dist/src/abi/connectors/v1/basic.js +136 -0
  14. package/dist/src/abi/connectors/v1/chi.js +36 -0
  15. package/dist/src/abi/connectors/v1/comp.js +4 -0
  16. package/dist/src/abi/connectors/v1/compound.js +4 -0
  17. package/dist/src/abi/connectors/v1/compoundImport.js +69 -0
  18. package/dist/src/abi/connectors/v1/compoundImport_v2.js +4 -0
  19. package/dist/src/abi/connectors/v1/compound_old.js +448 -0
  20. package/dist/src/abi/connectors/v1/curve.js +140 -0
  21. package/dist/src/abi/connectors/v1/curve_claim.js +63 -0
  22. package/dist/src/abi/connectors/v1/curve_gauge.js +158 -0
  23. package/dist/src/abi/connectors/v1/curve_sbtc.js +140 -0
  24. package/dist/src/abi/connectors/v1/curve_susd.js +140 -0
  25. package/dist/src/abi/connectors/v1/curve_three.js +79 -0
  26. package/dist/src/abi/connectors/v1/curve_y.js +140 -0
  27. package/dist/src/abi/connectors/v1/dsa_migrate_v1_to_v2.js +4 -0
  28. package/dist/src/abi/connectors/v1/dydx.js +148 -0
  29. package/dist/src/abi/connectors/v1/dydx_flash.js +52 -0
  30. package/dist/src/abi/connectors/v1/fee.js +50 -0
  31. package/dist/src/abi/connectors/v1/gelato.js +1138 -0
  32. package/dist/src/abi/connectors/v1/index.js +58 -0
  33. package/dist/src/abi/connectors/v1/instapool.js +439 -0
  34. package/dist/src/abi/connectors/v1/instapool_v2.js +126 -0
  35. package/dist/src/abi/connectors/v1/kyber.js +117 -0
  36. package/dist/src/abi/connectors/v1/maker.js +480 -0
  37. package/dist/src/abi/connectors/v1/maker_old.js +300 -0
  38. package/dist/src/abi/connectors/v1/math.js +43 -0
  39. package/dist/src/abi/connectors/v1/migrate.js +46 -0
  40. package/dist/src/abi/connectors/v1/oasis.js +198 -0
  41. package/dist/src/abi/connectors/v1/oneInch.js +160 -0
  42. package/dist/src/abi/connectors/v1/polygon_bridge.js +4 -0
  43. package/dist/src/abi/connectors/v1/refinance.js +4 -0
  44. package/dist/src/abi/connectors/v1/staking.js +220 -0
  45. package/dist/src/abi/connectors/v1/swerve.js +179 -0
  46. package/dist/src/abi/connectors/v1/uniswap.js +297 -0
  47. package/dist/src/abi/connectors/v2/1INCH-A.js +4 -0
  48. package/dist/src/abi/connectors/v2/1INCH-B.js +4 -0
  49. package/dist/src/abi/connectors/v2/AAVE-CLAIM-A.js +4 -0
  50. package/dist/src/abi/connectors/v2/AAVE-CLAIM-B.js +166 -0
  51. package/dist/src/abi/connectors/v2/AAVE-STAKE-A.js +4 -0
  52. package/dist/src/abi/connectors/v2/AAVE-V1-A.js +130 -0
  53. package/dist/src/abi/connectors/v2/AAVE-V1-IMPORT-A.js +4 -0
  54. package/dist/src/abi/connectors/v2/AAVE-V2-A.js +230 -0
  55. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-A.js +4 -0
  56. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-B.js +225 -0
  57. package/dist/src/abi/connectors/v2/AUTHORITY-A.js +100 -0
  58. package/dist/src/abi/connectors/v2/B-COMPOUND-A.js +4 -0
  59. package/dist/src/abi/connectors/v2/B-LIQUITY-A.js +4 -0
  60. package/dist/src/abi/connectors/v2/B-MAKERDAO-A.js +4 -0
  61. package/dist/src/abi/connectors/v2/BASIC-A.js +136 -0
  62. package/dist/src/abi/connectors/v2/BASIC-B.js +4 -0
  63. package/dist/src/abi/connectors/v2/BASIC-C.js +4 -0
  64. package/dist/src/abi/connectors/v2/COMP-A.js +4 -0
  65. package/dist/src/abi/connectors/v2/COMPOUND-A.js +4 -0
  66. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-A.js +4 -0
  67. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-B.js +195 -0
  68. package/dist/src/abi/connectors/v2/G-UNISWAP-A.js +4 -0
  69. package/dist/src/abi/connectors/v2/GELATO-AAVE-A.js +4 -0
  70. package/dist/src/abi/connectors/v2/INST-A.js +4 -0
  71. package/dist/src/abi/connectors/v2/INST-LM-A.js +4 -0
  72. package/dist/src/abi/connectors/v2/INST-STAKING-A.js +4 -0
  73. package/dist/src/abi/connectors/v2/INST-STAKING-B.js +4 -0
  74. package/dist/src/abi/connectors/v2/INSTAPOOL-A.js +4 -0
  75. package/dist/src/abi/connectors/v2/LIQUITY-A.js +4 -0
  76. package/dist/src/abi/connectors/v2/MAKERDAO-A.js +4 -0
  77. package/dist/src/abi/connectors/v2/MAKERDAO-CLAIM-A.js +136 -0
  78. package/dist/src/abi/connectors/v2/PARASWAP-A.js +4 -0
  79. package/dist/src/abi/connectors/v2/POLYGON-BRIDGE-A.js +4 -0
  80. package/dist/src/abi/connectors/v2/REFINANCE-A.js +4 -0
  81. package/dist/src/abi/connectors/v2/REFLEXER-A.js +4 -0
  82. package/dist/src/abi/connectors/v2/STAKE-ERC20-A.js +4 -0
  83. package/dist/src/abi/connectors/v2/UNISWAP-A.js +297 -0
  84. package/dist/src/abi/connectors/v2/UNISWAP-V2-A.js +4 -0
  85. package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +4 -0
  86. package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.js +4 -0
  87. package/dist/src/abi/connectors/v2/WETH-A.js +4 -0
  88. package/dist/src/abi/connectors/v2/YEARN-VAULT-A.js +4 -0
  89. package/dist/src/abi/connectors/v2/index.js +89 -0
  90. package/dist/src/abi/index.js +4 -4
  91. package/dist/src/abi/interopX.json +1436 -0
  92. package/dist/src/alias.js +10 -0
  93. package/dist/src/api/index.js +3 -0
  94. package/dist/src/constants/addresses.js +4 -7
  95. package/dist/src/constants/blockConfirmations.js +8 -0
  96. package/dist/src/constants/index.js +1 -1
  97. package/dist/src/constants/tokens.js +62 -39
  98. package/dist/src/db/models/transaction.js +29 -11
  99. package/dist/src/gnosis/actions/aaveV2/index.js +11 -0
  100. package/dist/src/gnosis/actions/aaveV2/source.js +62 -0
  101. package/dist/src/gnosis/actions/aaveV2/target.js +8 -0
  102. package/dist/src/gnosis/actions/index.js +9 -0
  103. package/dist/src/gnosis/index.js +20 -0
  104. package/dist/src/index.js +7 -18
  105. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +9 -10
  106. package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +2 -0
  107. package/dist/src/net/protocol/index.js +15 -5
  108. package/dist/src/tasks/InteropX/ProcessSubmitSubmitEvents.js +168 -0
  109. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +86 -0
  110. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +8 -3
  111. package/dist/src/tasks/index.js +12 -19
  112. package/dist/src/typechain/{InteropBridgeToken.js → InteropX.js} +0 -0
  113. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  114. package/dist/src/typechain/factories/index.js +3 -5
  115. package/dist/src/typechain/index.js +3 -5
  116. package/dist/src/utils/index.js +96 -112
  117. package/package.json +15 -13
  118. package/src/abi/connectors/index.ts +14 -0
  119. package/src/abi/connectors/v1/aave.ts +147 -0
  120. package/src/abi/connectors/v1/aave_claim.ts +3 -0
  121. package/src/abi/connectors/v1/aave_migrate.ts +108 -0
  122. package/src/abi/connectors/v1/aave_polygon_migrate.ts +109 -0
  123. package/src/abi/connectors/v1/aave_stake.ts +3 -0
  124. package/src/abi/connectors/v1/aave_v1_import.ts +53 -0
  125. package/src/abi/connectors/v1/aave_v2.ts +229 -0
  126. package/src/abi/connectors/v1/aave_v2_import.ts +58 -0
  127. package/src/abi/connectors/v1/authority.ts +99 -0
  128. package/src/abi/connectors/v1/basic.ts +135 -0
  129. package/src/abi/connectors/v1/chi.ts +35 -0
  130. package/src/abi/connectors/v1/comp.ts +3 -0
  131. package/src/abi/connectors/v1/compound.ts +3 -0
  132. package/src/abi/connectors/v1/compoundImport.ts +68 -0
  133. package/src/abi/connectors/v1/compoundImport_v2.ts +3 -0
  134. package/src/abi/connectors/v1/compound_old.ts +447 -0
  135. package/src/abi/connectors/v1/curve.ts +139 -0
  136. package/src/abi/connectors/v1/curve_claim.ts +62 -0
  137. package/src/abi/connectors/v1/curve_gauge.ts +157 -0
  138. package/src/abi/connectors/v1/curve_sbtc.ts +139 -0
  139. package/src/abi/connectors/v1/curve_susd.ts +139 -0
  140. package/src/abi/connectors/v1/curve_three.ts +78 -0
  141. package/src/abi/connectors/v1/curve_y.ts +139 -0
  142. package/src/abi/connectors/v1/dsa_migrate_v1_to_v2.ts +3 -0
  143. package/src/abi/connectors/v1/dydx.ts +147 -0
  144. package/src/abi/connectors/v1/dydx_flash.ts +51 -0
  145. package/src/abi/connectors/v1/fee.ts +49 -0
  146. package/src/abi/connectors/v1/gelato.ts +1137 -0
  147. package/src/abi/connectors/v1/index.ts +42 -0
  148. package/src/abi/connectors/v1/instapool.ts +438 -0
  149. package/src/abi/connectors/v1/instapool_v2.ts +125 -0
  150. package/src/abi/connectors/v1/kyber.ts +116 -0
  151. package/src/abi/connectors/v1/maker.ts +479 -0
  152. package/src/abi/connectors/v1/maker_old.ts +299 -0
  153. package/src/abi/connectors/v1/math.ts +42 -0
  154. package/src/abi/connectors/v1/migrate.ts +45 -0
  155. package/src/abi/connectors/v1/oasis.ts +197 -0
  156. package/src/abi/connectors/v1/oneInch.ts +159 -0
  157. package/src/abi/connectors/v1/polygon_bridge.ts +3 -0
  158. package/src/abi/connectors/v1/refinance.ts +3 -0
  159. package/src/abi/connectors/v1/staking.ts +219 -0
  160. package/src/abi/connectors/v1/swerve.ts +178 -0
  161. package/src/abi/connectors/v1/uniswap.ts +297 -0
  162. package/src/abi/connectors/v2/1INCH-A.ts +3 -0
  163. package/src/abi/connectors/v2/1INCH-B.ts +3 -0
  164. package/src/abi/connectors/v2/AAVE-CLAIM-A.ts +3 -0
  165. package/src/abi/connectors/v2/AAVE-CLAIM-B.ts +165 -0
  166. package/src/abi/connectors/v2/AAVE-STAKE-A.ts +3 -0
  167. package/src/abi/connectors/v2/AAVE-V1-A.ts +130 -0
  168. package/src/abi/connectors/v2/AAVE-V1-IMPORT-A.ts +3 -0
  169. package/src/abi/connectors/v2/AAVE-V2-A.ts +229 -0
  170. package/src/abi/connectors/v2/AAVE-V2-IMPORT-A.ts +3 -0
  171. package/src/abi/connectors/v2/AAVE-V2-IMPORT-B.ts +224 -0
  172. package/src/abi/connectors/v2/AUTHORITY-A.ts +99 -0
  173. package/src/abi/connectors/v2/B-COMPOUND-A.ts +3 -0
  174. package/src/abi/connectors/v2/B-LIQUITY-A.ts +3 -0
  175. package/src/abi/connectors/v2/B-MAKERDAO-A.ts +3 -0
  176. package/src/abi/connectors/v2/BASIC-A.ts +135 -0
  177. package/src/abi/connectors/v2/BASIC-B.ts +3 -0
  178. package/src/abi/connectors/v2/BASIC-C.ts +3 -0
  179. package/src/abi/connectors/v2/COMP-A.ts +3 -0
  180. package/src/abi/connectors/v2/COMPOUND-A.ts +3 -0
  181. package/src/abi/connectors/v2/COMPOUND-IMPORT-A.ts +3 -0
  182. package/src/abi/connectors/v2/COMPOUND-IMPORT-B.ts +194 -0
  183. package/src/abi/connectors/v2/G-UNISWAP-A.ts +3 -0
  184. package/src/abi/connectors/v2/GELATO-AAVE-A.ts +3 -0
  185. package/src/abi/connectors/v2/INST-A.ts +3 -0
  186. package/src/abi/connectors/v2/INST-LM-A.ts +3 -0
  187. package/src/abi/connectors/v2/INST-STAKING-A.ts +3 -0
  188. package/src/abi/connectors/v2/INST-STAKING-B.ts +3 -0
  189. package/src/abi/connectors/v2/INSTAPOOL-A.ts +3 -0
  190. package/src/abi/connectors/v2/LIQUITY-A.ts +3 -0
  191. package/src/abi/connectors/v2/MAKERDAO-A.ts +3 -0
  192. package/src/abi/connectors/v2/MAKERDAO-CLAIM-A.ts +135 -0
  193. package/src/abi/connectors/v2/PARASWAP-A.ts +3 -0
  194. package/src/abi/connectors/v2/POLYGON-BRIDGE-A.ts +3 -0
  195. package/src/abi/connectors/v2/REFINANCE-A.ts +3 -0
  196. package/src/abi/connectors/v2/REFLEXER-A.ts +3 -0
  197. package/src/abi/connectors/v2/STAKE-ERC20-A.ts +3 -0
  198. package/src/abi/connectors/v2/UNISWAP-A.ts +297 -0
  199. package/src/abi/connectors/v2/UNISWAP-V2-A.ts +3 -0
  200. package/src/abi/connectors/v2/UNISWAP-V3-A.ts +3 -0
  201. package/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.ts +3 -0
  202. package/src/abi/connectors/v2/WETH-A.ts +3 -0
  203. package/src/abi/connectors/v2/YEARN-VAULT-A.ts +3 -0
  204. package/src/abi/connectors/v2/index.ts +87 -0
  205. package/src/abi/index.ts +7 -7
  206. package/src/abi/interopX.json +1436 -0
  207. package/src/alias.ts +6 -0
  208. package/src/api/index.ts +3 -0
  209. package/src/constants/addresses.ts +5 -8
  210. package/src/constants/blockConfirmations.ts +5 -0
  211. package/src/constants/index.ts +1 -1
  212. package/src/constants/tokens.ts +63 -40
  213. package/src/db/models/transaction.ts +65 -25
  214. package/src/gnosis/actions/aaveV2/index.ts +9 -0
  215. package/src/gnosis/actions/aaveV2/source.ts +104 -0
  216. package/src/gnosis/actions/aaveV2/target.ts +13 -0
  217. package/src/gnosis/actions/index.ts +5 -0
  218. package/src/gnosis/index.ts +19 -0
  219. package/src/index.ts +6 -17
  220. package/src/net/protocol/dial/SignatureDialProtocol.ts +12 -13
  221. package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +3 -1
  222. package/src/net/protocol/index.ts +16 -6
  223. package/src/tasks/InteropX/ProcessSubmitSubmitEvents.ts +252 -0
  224. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +138 -0
  225. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +8 -3
  226. package/src/tasks/index.ts +15 -21
  227. package/src/typechain/InteropX.ts +1216 -0
  228. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  229. package/src/typechain/factories/index.ts +1 -2
  230. package/src/typechain/index.ts +2 -4
  231. package/src/utils/index.ts +229 -183
  232. package/tsconfig.json +7 -2
  233. package/dist/src/abi/interopBridgeToken.json +0 -298
  234. package/dist/src/abi/interopXGateway.json +0 -184
  235. package/dist/src/constants/itokens.js +0 -13
  236. package/dist/src/tasks/InteropBridge/ProcessWithdrawEvents.js +0 -146
  237. package/dist/src/tasks/InteropBridge/SyncWithdrawEvents.js +0 -71
  238. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -149
  239. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
  240. package/dist/src/typechain/InteropXGateway.js +0 -2
  241. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -471
  242. package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
  243. package/src/abi/interopBridgeToken.json +0 -298
  244. package/src/abi/interopXGateway.json +0 -184
  245. package/src/constants/itokens.ts +0 -10
  246. package/src/tasks/InteropBridge/ProcessWithdrawEvents.ts +0 -231
  247. package/src/tasks/InteropBridge/SyncWithdrawEvents.ts +0 -121
  248. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -243
  249. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
  250. package/src/typechain/InteropBridgeToken.ts +0 -692
  251. package/src/typechain/InteropXGateway.ts +0 -407
  252. package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -478
  253. package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -0,0 +1,1932 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type { InteropX, InteropXInterface } from "../InteropX";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "uint256",
14
+ name: "vnonce",
15
+ type: "uint256",
16
+ },
17
+ {
18
+ internalType: "uint256",
19
+ name: "sourceChainId",
20
+ type: "uint256",
21
+ },
22
+ {
23
+ internalType: "uint256",
24
+ name: "targetChainId",
25
+ type: "uint256",
26
+ },
27
+ ],
28
+ name: "ErrorSourceFailed",
29
+ type: "error",
30
+ },
31
+ {
32
+ inputs: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "vnonce",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "sourceChainId",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "targetChainId",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ name: "ErrorTargetFailed",
50
+ type: "error",
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [
55
+ {
56
+ components: [
57
+ {
58
+ internalType: "string",
59
+ name: "connector",
60
+ type: "string",
61
+ },
62
+ {
63
+ internalType: "bytes",
64
+ name: "data",
65
+ type: "bytes",
66
+ },
67
+ ],
68
+ indexed: false,
69
+ internalType: "struct Structs.Spell[]",
70
+ name: "sourceSpells",
71
+ type: "tuple[]",
72
+ },
73
+ {
74
+ components: [
75
+ {
76
+ internalType: "string",
77
+ name: "connector",
78
+ type: "string",
79
+ },
80
+ {
81
+ internalType: "bytes",
82
+ name: "data",
83
+ type: "bytes",
84
+ },
85
+ ],
86
+ indexed: false,
87
+ internalType: "struct Structs.Spell[]",
88
+ name: "targetSpells",
89
+ type: "tuple[]",
90
+ },
91
+ {
92
+ components: [
93
+ {
94
+ components: [
95
+ {
96
+ internalType: "address",
97
+ name: "sourceToken",
98
+ type: "address",
99
+ },
100
+ {
101
+ internalType: "address",
102
+ name: "targetToken",
103
+ type: "address",
104
+ },
105
+ {
106
+ internalType: "uint256",
107
+ name: "amount",
108
+ type: "uint256",
109
+ },
110
+ ],
111
+ internalType: "struct Structs.TokenInfo[]",
112
+ name: "supply",
113
+ type: "tuple[]",
114
+ },
115
+ {
116
+ components: [
117
+ {
118
+ internalType: "address",
119
+ name: "sourceToken",
120
+ type: "address",
121
+ },
122
+ {
123
+ internalType: "address",
124
+ name: "targetToken",
125
+ type: "address",
126
+ },
127
+ {
128
+ internalType: "uint256",
129
+ name: "amount",
130
+ type: "uint256",
131
+ },
132
+ ],
133
+ internalType: "struct Structs.TokenInfo[]",
134
+ name: "withdraw",
135
+ type: "tuple[]",
136
+ },
137
+ ],
138
+ indexed: false,
139
+ internalType: "struct Structs.Position",
140
+ name: "position",
141
+ type: "tuple",
142
+ },
143
+ {
144
+ indexed: false,
145
+ internalType: "string",
146
+ name: "actionId",
147
+ type: "string",
148
+ },
149
+ {
150
+ indexed: true,
151
+ internalType: "bytes32",
152
+ name: "actionIdHash",
153
+ type: "bytes32",
154
+ },
155
+ {
156
+ indexed: false,
157
+ internalType: "address",
158
+ name: "sourceSender",
159
+ type: "address",
160
+ },
161
+ {
162
+ indexed: false,
163
+ internalType: "uint256",
164
+ name: "sourceDsaId",
165
+ type: "uint256",
166
+ },
167
+ {
168
+ indexed: false,
169
+ internalType: "uint256",
170
+ name: "targetDsaId",
171
+ type: "uint256",
172
+ },
173
+ {
174
+ indexed: false,
175
+ internalType: "uint256",
176
+ name: "sourceChainId",
177
+ type: "uint256",
178
+ },
179
+ {
180
+ indexed: false,
181
+ internalType: "uint256",
182
+ name: "targetChainId",
183
+ type: "uint256",
184
+ },
185
+ {
186
+ indexed: true,
187
+ internalType: "uint256",
188
+ name: "vnonce",
189
+ type: "uint256",
190
+ },
191
+ {
192
+ indexed: false,
193
+ internalType: "bytes",
194
+ name: "metadata",
195
+ type: "bytes",
196
+ },
197
+ ],
198
+ name: "LogExecute",
199
+ type: "event",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ components: [
206
+ {
207
+ components: [
208
+ {
209
+ internalType: "address",
210
+ name: "sourceToken",
211
+ type: "address",
212
+ },
213
+ {
214
+ internalType: "address",
215
+ name: "targetToken",
216
+ type: "address",
217
+ },
218
+ {
219
+ internalType: "uint256",
220
+ name: "amount",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ internalType: "struct Structs.TokenInfo[]",
225
+ name: "supply",
226
+ type: "tuple[]",
227
+ },
228
+ {
229
+ components: [
230
+ {
231
+ internalType: "address",
232
+ name: "sourceToken",
233
+ type: "address",
234
+ },
235
+ {
236
+ internalType: "address",
237
+ name: "targetToken",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "amount",
243
+ type: "uint256",
244
+ },
245
+ ],
246
+ internalType: "struct Structs.TokenInfo[]",
247
+ name: "withdraw",
248
+ type: "tuple[]",
249
+ },
250
+ ],
251
+ indexed: false,
252
+ internalType: "struct Structs.Position",
253
+ name: "position",
254
+ type: "tuple",
255
+ },
256
+ {
257
+ indexed: false,
258
+ internalType: "string",
259
+ name: "systemActionId",
260
+ type: "string",
261
+ },
262
+ {
263
+ indexed: true,
264
+ internalType: "bytes32",
265
+ name: "systemActionIdHash",
266
+ type: "bytes32",
267
+ },
268
+ {
269
+ indexed: false,
270
+ internalType: "address",
271
+ name: "gnosisSafe",
272
+ type: "address",
273
+ },
274
+ {
275
+ indexed: true,
276
+ internalType: "address",
277
+ name: "sender",
278
+ type: "address",
279
+ },
280
+ {
281
+ indexed: true,
282
+ internalType: "uint256",
283
+ name: "vnonceSystem",
284
+ type: "uint256",
285
+ },
286
+ {
287
+ indexed: false,
288
+ internalType: "bytes",
289
+ name: "metadata",
290
+ type: "bytes",
291
+ },
292
+ ],
293
+ name: "LogRebalanceSystem",
294
+ type: "event",
295
+ },
296
+ {
297
+ anonymous: false,
298
+ inputs: [
299
+ {
300
+ components: [
301
+ {
302
+ components: [
303
+ {
304
+ internalType: "address",
305
+ name: "sourceToken",
306
+ type: "address",
307
+ },
308
+ {
309
+ internalType: "address",
310
+ name: "targetToken",
311
+ type: "address",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "amount",
316
+ type: "uint256",
317
+ },
318
+ ],
319
+ internalType: "struct Structs.TokenInfo[]",
320
+ name: "supply",
321
+ type: "tuple[]",
322
+ },
323
+ {
324
+ components: [
325
+ {
326
+ internalType: "address",
327
+ name: "sourceToken",
328
+ type: "address",
329
+ },
330
+ {
331
+ internalType: "address",
332
+ name: "targetToken",
333
+ type: "address",
334
+ },
335
+ {
336
+ internalType: "uint256",
337
+ name: "amount",
338
+ type: "uint256",
339
+ },
340
+ ],
341
+ internalType: "struct Structs.TokenInfo[]",
342
+ name: "withdraw",
343
+ type: "tuple[]",
344
+ },
345
+ ],
346
+ indexed: false,
347
+ internalType: "struct Structs.Position",
348
+ name: "position",
349
+ type: "tuple",
350
+ },
351
+ {
352
+ indexed: false,
353
+ internalType: "string",
354
+ name: "actionId",
355
+ type: "string",
356
+ },
357
+ {
358
+ indexed: true,
359
+ internalType: "bytes32",
360
+ name: "actionIdHashHash",
361
+ type: "bytes32",
362
+ },
363
+ {
364
+ indexed: false,
365
+ internalType: "address",
366
+ name: "sourceDsaSender",
367
+ type: "address",
368
+ },
369
+ {
370
+ indexed: false,
371
+ internalType: "uint256",
372
+ name: "sourceDsaId",
373
+ type: "uint256",
374
+ },
375
+ {
376
+ indexed: false,
377
+ internalType: "uint256",
378
+ name: "targetDsaId",
379
+ type: "uint256",
380
+ },
381
+ {
382
+ indexed: false,
383
+ internalType: "uint256",
384
+ name: "sourceChainId",
385
+ type: "uint256",
386
+ },
387
+ {
388
+ indexed: false,
389
+ internalType: "uint256",
390
+ name: "targetChainId",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ indexed: true,
395
+ internalType: "uint256",
396
+ name: "vnonce",
397
+ type: "uint256",
398
+ },
399
+ {
400
+ indexed: false,
401
+ internalType: "bytes",
402
+ name: "metadata",
403
+ type: "bytes",
404
+ },
405
+ ],
406
+ name: "LogRevert",
407
+ type: "event",
408
+ },
409
+ {
410
+ anonymous: false,
411
+ inputs: [
412
+ {
413
+ components: [
414
+ {
415
+ internalType: "string",
416
+ name: "connector",
417
+ type: "string",
418
+ },
419
+ {
420
+ internalType: "bytes",
421
+ name: "data",
422
+ type: "bytes",
423
+ },
424
+ ],
425
+ indexed: false,
426
+ internalType: "struct Structs.Spell[]",
427
+ name: "sourceSpells",
428
+ type: "tuple[]",
429
+ },
430
+ {
431
+ components: [
432
+ {
433
+ internalType: "string",
434
+ name: "connector",
435
+ type: "string",
436
+ },
437
+ {
438
+ internalType: "bytes",
439
+ name: "data",
440
+ type: "bytes",
441
+ },
442
+ ],
443
+ indexed: false,
444
+ internalType: "struct Structs.Spell[]",
445
+ name: "sourceRevertSpells",
446
+ type: "tuple[]",
447
+ },
448
+ {
449
+ components: [
450
+ {
451
+ components: [
452
+ {
453
+ internalType: "address",
454
+ name: "sourceToken",
455
+ type: "address",
456
+ },
457
+ {
458
+ internalType: "address",
459
+ name: "targetToken",
460
+ type: "address",
461
+ },
462
+ {
463
+ internalType: "uint256",
464
+ name: "amount",
465
+ type: "uint256",
466
+ },
467
+ ],
468
+ internalType: "struct Structs.TokenInfo[]",
469
+ name: "supply",
470
+ type: "tuple[]",
471
+ },
472
+ {
473
+ components: [
474
+ {
475
+ internalType: "address",
476
+ name: "sourceToken",
477
+ type: "address",
478
+ },
479
+ {
480
+ internalType: "address",
481
+ name: "targetToken",
482
+ type: "address",
483
+ },
484
+ {
485
+ internalType: "uint256",
486
+ name: "amount",
487
+ type: "uint256",
488
+ },
489
+ ],
490
+ internalType: "struct Structs.TokenInfo[]",
491
+ name: "withdraw",
492
+ type: "tuple[]",
493
+ },
494
+ ],
495
+ indexed: false,
496
+ internalType: "struct Structs.Position",
497
+ name: "position",
498
+ type: "tuple",
499
+ },
500
+ {
501
+ indexed: false,
502
+ internalType: "string",
503
+ name: "actionId",
504
+ type: "string",
505
+ },
506
+ {
507
+ indexed: true,
508
+ internalType: "bytes32",
509
+ name: "actionIdHash",
510
+ type: "bytes32",
511
+ },
512
+ {
513
+ indexed: false,
514
+ internalType: "address",
515
+ name: "sourceDsaSender",
516
+ type: "address",
517
+ },
518
+ {
519
+ indexed: false,
520
+ internalType: "uint256",
521
+ name: "sourceDsaId",
522
+ type: "uint256",
523
+ },
524
+ {
525
+ indexed: false,
526
+ internalType: "uint256",
527
+ name: "targetDsaId",
528
+ type: "uint256",
529
+ },
530
+ {
531
+ indexed: false,
532
+ internalType: "uint256",
533
+ name: "sourceChainId",
534
+ type: "uint256",
535
+ },
536
+ {
537
+ indexed: false,
538
+ internalType: "uint256",
539
+ name: "targetChainId",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ indexed: true,
544
+ internalType: "uint256",
545
+ name: "vnonce",
546
+ type: "uint256",
547
+ },
548
+ {
549
+ indexed: false,
550
+ internalType: "bytes",
551
+ name: "metadata",
552
+ type: "bytes",
553
+ },
554
+ ],
555
+ name: "LogSourceRevert",
556
+ type: "event",
557
+ },
558
+ {
559
+ anonymous: false,
560
+ inputs: [
561
+ {
562
+ components: [
563
+ {
564
+ components: [
565
+ {
566
+ internalType: "address",
567
+ name: "sourceToken",
568
+ type: "address",
569
+ },
570
+ {
571
+ internalType: "address",
572
+ name: "targetToken",
573
+ type: "address",
574
+ },
575
+ {
576
+ internalType: "uint256",
577
+ name: "amount",
578
+ type: "uint256",
579
+ },
580
+ ],
581
+ internalType: "struct Structs.TokenInfo[]",
582
+ name: "supply",
583
+ type: "tuple[]",
584
+ },
585
+ {
586
+ components: [
587
+ {
588
+ internalType: "address",
589
+ name: "sourceToken",
590
+ type: "address",
591
+ },
592
+ {
593
+ internalType: "address",
594
+ name: "targetToken",
595
+ type: "address",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "amount",
600
+ type: "uint256",
601
+ },
602
+ ],
603
+ internalType: "struct Structs.TokenInfo[]",
604
+ name: "withdraw",
605
+ type: "tuple[]",
606
+ },
607
+ ],
608
+ indexed: false,
609
+ internalType: "struct Structs.Position",
610
+ name: "position",
611
+ type: "tuple",
612
+ },
613
+ {
614
+ indexed: false,
615
+ internalType: "string",
616
+ name: "actionId",
617
+ type: "string",
618
+ },
619
+ {
620
+ indexed: true,
621
+ internalType: "bytes32",
622
+ name: "actionIdHashHash",
623
+ type: "bytes32",
624
+ },
625
+ {
626
+ indexed: false,
627
+ internalType: "address",
628
+ name: "sourceSender",
629
+ type: "address",
630
+ },
631
+ {
632
+ indexed: false,
633
+ internalType: "uint256",
634
+ name: "sourceDsaId",
635
+ type: "uint256",
636
+ },
637
+ {
638
+ indexed: false,
639
+ internalType: "uint256",
640
+ name: "targetDsaId",
641
+ type: "uint256",
642
+ },
643
+ {
644
+ indexed: false,
645
+ internalType: "uint256",
646
+ name: "sourceChainId",
647
+ type: "uint256",
648
+ },
649
+ {
650
+ indexed: false,
651
+ internalType: "uint256",
652
+ name: "targetChainId",
653
+ type: "uint256",
654
+ },
655
+ {
656
+ indexed: true,
657
+ internalType: "uint256",
658
+ name: "vnonce",
659
+ type: "uint256",
660
+ },
661
+ {
662
+ indexed: false,
663
+ internalType: "bytes",
664
+ name: "metadata",
665
+ type: "bytes",
666
+ },
667
+ ],
668
+ name: "LogSubmit",
669
+ type: "event",
670
+ },
671
+ {
672
+ anonymous: false,
673
+ inputs: [
674
+ {
675
+ components: [
676
+ {
677
+ components: [
678
+ {
679
+ internalType: "address",
680
+ name: "sourceToken",
681
+ type: "address",
682
+ },
683
+ {
684
+ internalType: "address",
685
+ name: "targetToken",
686
+ type: "address",
687
+ },
688
+ {
689
+ internalType: "uint256",
690
+ name: "amount",
691
+ type: "uint256",
692
+ },
693
+ ],
694
+ internalType: "struct Structs.TokenInfo[]",
695
+ name: "supply",
696
+ type: "tuple[]",
697
+ },
698
+ {
699
+ components: [
700
+ {
701
+ internalType: "address",
702
+ name: "sourceToken",
703
+ type: "address",
704
+ },
705
+ {
706
+ internalType: "address",
707
+ name: "targetToken",
708
+ type: "address",
709
+ },
710
+ {
711
+ internalType: "uint256",
712
+ name: "amount",
713
+ type: "uint256",
714
+ },
715
+ ],
716
+ internalType: "struct Structs.TokenInfo[]",
717
+ name: "withdraw",
718
+ type: "tuple[]",
719
+ },
720
+ ],
721
+ indexed: false,
722
+ internalType: "struct Structs.Position",
723
+ name: "position",
724
+ type: "tuple",
725
+ },
726
+ {
727
+ indexed: false,
728
+ internalType: "string",
729
+ name: "systemActionId",
730
+ type: "string",
731
+ },
732
+ {
733
+ indexed: true,
734
+ internalType: "bytes32",
735
+ name: "systemActionIdHash",
736
+ type: "bytes32",
737
+ },
738
+ {
739
+ indexed: false,
740
+ internalType: "address",
741
+ name: "gnosisSafe",
742
+ type: "address",
743
+ },
744
+ {
745
+ indexed: true,
746
+ internalType: "address",
747
+ name: "sender",
748
+ type: "address",
749
+ },
750
+ {
751
+ indexed: true,
752
+ internalType: "uint256",
753
+ name: "vnonceSystem",
754
+ type: "uint256",
755
+ },
756
+ {
757
+ indexed: false,
758
+ internalType: "bytes",
759
+ name: "metadata",
760
+ type: "bytes",
761
+ },
762
+ ],
763
+ name: "LogSubmitSystem",
764
+ type: "event",
765
+ },
766
+ {
767
+ anonymous: false,
768
+ inputs: [
769
+ {
770
+ components: [
771
+ {
772
+ internalType: "string",
773
+ name: "connector",
774
+ type: "string",
775
+ },
776
+ {
777
+ internalType: "bytes",
778
+ name: "data",
779
+ type: "bytes",
780
+ },
781
+ ],
782
+ indexed: false,
783
+ internalType: "struct Structs.Spell[]",
784
+ name: "sourceSpells",
785
+ type: "tuple[]",
786
+ },
787
+ {
788
+ components: [
789
+ {
790
+ components: [
791
+ {
792
+ internalType: "address",
793
+ name: "sourceToken",
794
+ type: "address",
795
+ },
796
+ {
797
+ internalType: "address",
798
+ name: "targetToken",
799
+ type: "address",
800
+ },
801
+ {
802
+ internalType: "uint256",
803
+ name: "amount",
804
+ type: "uint256",
805
+ },
806
+ ],
807
+ internalType: "struct Structs.TokenInfo[]",
808
+ name: "supply",
809
+ type: "tuple[]",
810
+ },
811
+ {
812
+ components: [
813
+ {
814
+ internalType: "address",
815
+ name: "sourceToken",
816
+ type: "address",
817
+ },
818
+ {
819
+ internalType: "address",
820
+ name: "targetToken",
821
+ type: "address",
822
+ },
823
+ {
824
+ internalType: "uint256",
825
+ name: "amount",
826
+ type: "uint256",
827
+ },
828
+ ],
829
+ internalType: "struct Structs.TokenInfo[]",
830
+ name: "withdraw",
831
+ type: "tuple[]",
832
+ },
833
+ ],
834
+ indexed: false,
835
+ internalType: "struct Structs.Position",
836
+ name: "position",
837
+ type: "tuple",
838
+ },
839
+ {
840
+ indexed: false,
841
+ internalType: "string",
842
+ name: "actionId",
843
+ type: "string",
844
+ },
845
+ {
846
+ indexed: true,
847
+ internalType: "bytes32",
848
+ name: "actionIdHash",
849
+ type: "bytes32",
850
+ },
851
+ {
852
+ indexed: false,
853
+ internalType: "address",
854
+ name: "sourceDsaSender",
855
+ type: "address",
856
+ },
857
+ {
858
+ indexed: false,
859
+ internalType: "uint256",
860
+ name: "sourceDsaId",
861
+ type: "uint256",
862
+ },
863
+ {
864
+ indexed: false,
865
+ internalType: "uint256",
866
+ name: "targetDsaId",
867
+ type: "uint256",
868
+ },
869
+ {
870
+ indexed: false,
871
+ internalType: "uint256",
872
+ name: "sourceChainId",
873
+ type: "uint256",
874
+ },
875
+ {
876
+ indexed: false,
877
+ internalType: "uint256",
878
+ name: "targetChainId",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ indexed: true,
883
+ internalType: "uint256",
884
+ name: "vnonce",
885
+ type: "uint256",
886
+ },
887
+ {
888
+ indexed: false,
889
+ internalType: "bytes",
890
+ name: "metadata",
891
+ type: "bytes",
892
+ },
893
+ ],
894
+ name: "LogTargetRevert",
895
+ type: "event",
896
+ },
897
+ {
898
+ anonymous: false,
899
+ inputs: [
900
+ {
901
+ components: [
902
+ {
903
+ internalType: "string",
904
+ name: "connector",
905
+ type: "string",
906
+ },
907
+ {
908
+ internalType: "bytes",
909
+ name: "data",
910
+ type: "bytes",
911
+ },
912
+ ],
913
+ indexed: false,
914
+ internalType: "struct Structs.Spell[]",
915
+ name: "sourceSpells",
916
+ type: "tuple[]",
917
+ },
918
+ {
919
+ components: [
920
+ {
921
+ components: [
922
+ {
923
+ internalType: "address",
924
+ name: "sourceToken",
925
+ type: "address",
926
+ },
927
+ {
928
+ internalType: "address",
929
+ name: "targetToken",
930
+ type: "address",
931
+ },
932
+ {
933
+ internalType: "uint256",
934
+ name: "amount",
935
+ type: "uint256",
936
+ },
937
+ ],
938
+ internalType: "struct Structs.TokenInfo[]",
939
+ name: "supply",
940
+ type: "tuple[]",
941
+ },
942
+ {
943
+ components: [
944
+ {
945
+ internalType: "address",
946
+ name: "sourceToken",
947
+ type: "address",
948
+ },
949
+ {
950
+ internalType: "address",
951
+ name: "targetToken",
952
+ type: "address",
953
+ },
954
+ {
955
+ internalType: "uint256",
956
+ name: "amount",
957
+ type: "uint256",
958
+ },
959
+ ],
960
+ internalType: "struct Structs.TokenInfo[]",
961
+ name: "withdraw",
962
+ type: "tuple[]",
963
+ },
964
+ ],
965
+ indexed: false,
966
+ internalType: "struct Structs.Position",
967
+ name: "position",
968
+ type: "tuple",
969
+ },
970
+ {
971
+ indexed: false,
972
+ internalType: "string",
973
+ name: "actionId",
974
+ type: "string",
975
+ },
976
+ {
977
+ indexed: true,
978
+ internalType: "bytes32",
979
+ name: "actionIdHash",
980
+ type: "bytes32",
981
+ },
982
+ {
983
+ indexed: false,
984
+ internalType: "address",
985
+ name: "sourceSender",
986
+ type: "address",
987
+ },
988
+ {
989
+ indexed: false,
990
+ internalType: "uint256",
991
+ name: "sourceDsaId",
992
+ type: "uint256",
993
+ },
994
+ {
995
+ indexed: false,
996
+ internalType: "uint256",
997
+ name: "targetDsaId",
998
+ type: "uint256",
999
+ },
1000
+ {
1001
+ indexed: false,
1002
+ internalType: "uint256",
1003
+ name: "sourceChainId",
1004
+ type: "uint256",
1005
+ },
1006
+ {
1007
+ indexed: false,
1008
+ internalType: "uint256",
1009
+ name: "targetChainId",
1010
+ type: "uint256",
1011
+ },
1012
+ {
1013
+ indexed: true,
1014
+ internalType: "uint256",
1015
+ name: "vnonce",
1016
+ type: "uint256",
1017
+ },
1018
+ {
1019
+ indexed: false,
1020
+ internalType: "bytes",
1021
+ name: "metadata",
1022
+ type: "bytes",
1023
+ },
1024
+ ],
1025
+ name: "LogValidate",
1026
+ type: "event",
1027
+ },
1028
+ {
1029
+ inputs: [
1030
+ {
1031
+ components: [
1032
+ {
1033
+ internalType: "string",
1034
+ name: "connector",
1035
+ type: "string",
1036
+ },
1037
+ {
1038
+ internalType: "bytes",
1039
+ name: "data",
1040
+ type: "bytes",
1041
+ },
1042
+ ],
1043
+ internalType: "struct Structs.Spell[]",
1044
+ name: "sourceSpells",
1045
+ type: "tuple[]",
1046
+ },
1047
+ {
1048
+ components: [
1049
+ {
1050
+ internalType: "string",
1051
+ name: "connector",
1052
+ type: "string",
1053
+ },
1054
+ {
1055
+ internalType: "bytes",
1056
+ name: "data",
1057
+ type: "bytes",
1058
+ },
1059
+ ],
1060
+ internalType: "struct Structs.Spell[]",
1061
+ name: "commonSpells",
1062
+ type: "tuple[]",
1063
+ },
1064
+ {
1065
+ components: [
1066
+ {
1067
+ components: [
1068
+ {
1069
+ internalType: "address",
1070
+ name: "sourceToken",
1071
+ type: "address",
1072
+ },
1073
+ {
1074
+ internalType: "address",
1075
+ name: "targetToken",
1076
+ type: "address",
1077
+ },
1078
+ {
1079
+ internalType: "uint256",
1080
+ name: "amount",
1081
+ type: "uint256",
1082
+ },
1083
+ ],
1084
+ internalType: "struct Structs.TokenInfo[]",
1085
+ name: "supply",
1086
+ type: "tuple[]",
1087
+ },
1088
+ {
1089
+ components: [
1090
+ {
1091
+ internalType: "address",
1092
+ name: "sourceToken",
1093
+ type: "address",
1094
+ },
1095
+ {
1096
+ internalType: "address",
1097
+ name: "targetToken",
1098
+ type: "address",
1099
+ },
1100
+ {
1101
+ internalType: "uint256",
1102
+ name: "amount",
1103
+ type: "uint256",
1104
+ },
1105
+ ],
1106
+ internalType: "struct Structs.TokenInfo[]",
1107
+ name: "withdraw",
1108
+ type: "tuple[]",
1109
+ },
1110
+ ],
1111
+ internalType: "struct Structs.Position",
1112
+ name: "position",
1113
+ type: "tuple",
1114
+ },
1115
+ {
1116
+ internalType: "string",
1117
+ name: "actionId",
1118
+ type: "string",
1119
+ },
1120
+ {
1121
+ internalType: "address",
1122
+ name: "sourceSender",
1123
+ type: "address",
1124
+ },
1125
+ {
1126
+ internalType: "uint64",
1127
+ name: "sourceDsaId",
1128
+ type: "uint64",
1129
+ },
1130
+ {
1131
+ internalType: "uint64",
1132
+ name: "targetDsaId",
1133
+ type: "uint64",
1134
+ },
1135
+ {
1136
+ internalType: "uint256",
1137
+ name: "sourceChainId",
1138
+ type: "uint256",
1139
+ },
1140
+ {
1141
+ internalType: "uint256",
1142
+ name: "targetChainId",
1143
+ type: "uint256",
1144
+ },
1145
+ {
1146
+ internalType: "uint256",
1147
+ name: "_vnonce",
1148
+ type: "uint256",
1149
+ },
1150
+ {
1151
+ internalType: "bytes",
1152
+ name: "metadata",
1153
+ type: "bytes",
1154
+ },
1155
+ ],
1156
+ name: "sourceAction",
1157
+ outputs: [],
1158
+ stateMutability: "nonpayable",
1159
+ type: "function",
1160
+ },
1161
+ {
1162
+ inputs: [
1163
+ {
1164
+ components: [
1165
+ {
1166
+ internalType: "string",
1167
+ name: "connector",
1168
+ type: "string",
1169
+ },
1170
+ {
1171
+ internalType: "bytes",
1172
+ name: "data",
1173
+ type: "bytes",
1174
+ },
1175
+ ],
1176
+ internalType: "struct Structs.Spell[]",
1177
+ name: "sourceSpells",
1178
+ type: "tuple[]",
1179
+ },
1180
+ {
1181
+ components: [
1182
+ {
1183
+ internalType: "string",
1184
+ name: "connector",
1185
+ type: "string",
1186
+ },
1187
+ {
1188
+ internalType: "bytes",
1189
+ name: "data",
1190
+ type: "bytes",
1191
+ },
1192
+ ],
1193
+ internalType: "struct Structs.Spell[]",
1194
+ name: "sourceRevertSpells",
1195
+ type: "tuple[]",
1196
+ },
1197
+ {
1198
+ components: [
1199
+ {
1200
+ internalType: "string",
1201
+ name: "connector",
1202
+ type: "string",
1203
+ },
1204
+ {
1205
+ internalType: "bytes",
1206
+ name: "data",
1207
+ type: "bytes",
1208
+ },
1209
+ ],
1210
+ internalType: "struct Structs.Spell[]",
1211
+ name: "commonSpells",
1212
+ type: "tuple[]",
1213
+ },
1214
+ {
1215
+ components: [
1216
+ {
1217
+ components: [
1218
+ {
1219
+ internalType: "address",
1220
+ name: "sourceToken",
1221
+ type: "address",
1222
+ },
1223
+ {
1224
+ internalType: "address",
1225
+ name: "targetToken",
1226
+ type: "address",
1227
+ },
1228
+ {
1229
+ internalType: "uint256",
1230
+ name: "amount",
1231
+ type: "uint256",
1232
+ },
1233
+ ],
1234
+ internalType: "struct Structs.TokenInfo[]",
1235
+ name: "supply",
1236
+ type: "tuple[]",
1237
+ },
1238
+ {
1239
+ components: [
1240
+ {
1241
+ internalType: "address",
1242
+ name: "sourceToken",
1243
+ type: "address",
1244
+ },
1245
+ {
1246
+ internalType: "address",
1247
+ name: "targetToken",
1248
+ type: "address",
1249
+ },
1250
+ {
1251
+ internalType: "uint256",
1252
+ name: "amount",
1253
+ type: "uint256",
1254
+ },
1255
+ ],
1256
+ internalType: "struct Structs.TokenInfo[]",
1257
+ name: "withdraw",
1258
+ type: "tuple[]",
1259
+ },
1260
+ ],
1261
+ internalType: "struct Structs.Position",
1262
+ name: "position",
1263
+ type: "tuple",
1264
+ },
1265
+ {
1266
+ internalType: "string",
1267
+ name: "actionId",
1268
+ type: "string",
1269
+ },
1270
+ {
1271
+ internalType: "address",
1272
+ name: "sourceSender",
1273
+ type: "address",
1274
+ },
1275
+ {
1276
+ internalType: "uint64",
1277
+ name: "sourceDsaId",
1278
+ type: "uint64",
1279
+ },
1280
+ {
1281
+ internalType: "uint64",
1282
+ name: "targetDsaId",
1283
+ type: "uint64",
1284
+ },
1285
+ {
1286
+ internalType: "uint256",
1287
+ name: "sourceChainId",
1288
+ type: "uint256",
1289
+ },
1290
+ {
1291
+ internalType: "uint256",
1292
+ name: "targetChainId",
1293
+ type: "uint256",
1294
+ },
1295
+ {
1296
+ internalType: "uint256",
1297
+ name: "_vnonce",
1298
+ type: "uint256",
1299
+ },
1300
+ {
1301
+ internalType: "bytes",
1302
+ name: "metadata",
1303
+ type: "bytes",
1304
+ },
1305
+ ],
1306
+ name: "sourceRevertAction",
1307
+ outputs: [],
1308
+ stateMutability: "nonpayable",
1309
+ type: "function",
1310
+ },
1311
+ {
1312
+ inputs: [
1313
+ {
1314
+ components: [
1315
+ {
1316
+ internalType: "string",
1317
+ name: "connector",
1318
+ type: "string",
1319
+ },
1320
+ {
1321
+ internalType: "bytes",
1322
+ name: "data",
1323
+ type: "bytes",
1324
+ },
1325
+ ],
1326
+ internalType: "struct Structs.Spell[]",
1327
+ name: "commonSpells",
1328
+ type: "tuple[]",
1329
+ },
1330
+ {
1331
+ internalType: "string",
1332
+ name: "systemActionId",
1333
+ type: "string",
1334
+ },
1335
+ {
1336
+ components: [
1337
+ {
1338
+ components: [
1339
+ {
1340
+ internalType: "address",
1341
+ name: "sourceToken",
1342
+ type: "address",
1343
+ },
1344
+ {
1345
+ internalType: "address",
1346
+ name: "targetToken",
1347
+ type: "address",
1348
+ },
1349
+ {
1350
+ internalType: "uint256",
1351
+ name: "amount",
1352
+ type: "uint256",
1353
+ },
1354
+ ],
1355
+ internalType: "struct Structs.TokenInfo[]",
1356
+ name: "supply",
1357
+ type: "tuple[]",
1358
+ },
1359
+ {
1360
+ components: [
1361
+ {
1362
+ internalType: "address",
1363
+ name: "sourceToken",
1364
+ type: "address",
1365
+ },
1366
+ {
1367
+ internalType: "address",
1368
+ name: "targetToken",
1369
+ type: "address",
1370
+ },
1371
+ {
1372
+ internalType: "uint256",
1373
+ name: "amount",
1374
+ type: "uint256",
1375
+ },
1376
+ ],
1377
+ internalType: "struct Structs.TokenInfo[]",
1378
+ name: "withdraw",
1379
+ type: "tuple[]",
1380
+ },
1381
+ ],
1382
+ internalType: "struct Structs.Position",
1383
+ name: "position",
1384
+ type: "tuple",
1385
+ },
1386
+ {
1387
+ internalType: "uint256",
1388
+ name: "_vnonce",
1389
+ type: "uint256",
1390
+ },
1391
+ {
1392
+ internalType: "bytes",
1393
+ name: "metadata",
1394
+ type: "bytes",
1395
+ },
1396
+ ],
1397
+ name: "sourceSystemAction",
1398
+ outputs: [],
1399
+ stateMutability: "nonpayable",
1400
+ type: "function",
1401
+ },
1402
+ {
1403
+ inputs: [
1404
+ {
1405
+ components: [
1406
+ {
1407
+ components: [
1408
+ {
1409
+ internalType: "address",
1410
+ name: "sourceToken",
1411
+ type: "address",
1412
+ },
1413
+ {
1414
+ internalType: "address",
1415
+ name: "targetToken",
1416
+ type: "address",
1417
+ },
1418
+ {
1419
+ internalType: "uint256",
1420
+ name: "amount",
1421
+ type: "uint256",
1422
+ },
1423
+ ],
1424
+ internalType: "struct Structs.TokenInfo[]",
1425
+ name: "supply",
1426
+ type: "tuple[]",
1427
+ },
1428
+ {
1429
+ components: [
1430
+ {
1431
+ internalType: "address",
1432
+ name: "sourceToken",
1433
+ type: "address",
1434
+ },
1435
+ {
1436
+ internalType: "address",
1437
+ name: "targetToken",
1438
+ type: "address",
1439
+ },
1440
+ {
1441
+ internalType: "uint256",
1442
+ name: "amount",
1443
+ type: "uint256",
1444
+ },
1445
+ ],
1446
+ internalType: "struct Structs.TokenInfo[]",
1447
+ name: "withdraw",
1448
+ type: "tuple[]",
1449
+ },
1450
+ ],
1451
+ internalType: "struct Structs.Position",
1452
+ name: "position",
1453
+ type: "tuple",
1454
+ },
1455
+ {
1456
+ internalType: "address",
1457
+ name: "sourceSender",
1458
+ type: "address",
1459
+ },
1460
+ {
1461
+ internalType: "string",
1462
+ name: "actionId",
1463
+ type: "string",
1464
+ },
1465
+ {
1466
+ internalType: "uint64",
1467
+ name: "targetDsaId",
1468
+ type: "uint64",
1469
+ },
1470
+ {
1471
+ internalType: "uint256",
1472
+ name: "targetChainId",
1473
+ type: "uint256",
1474
+ },
1475
+ {
1476
+ internalType: "bytes",
1477
+ name: "metadata",
1478
+ type: "bytes",
1479
+ },
1480
+ ],
1481
+ name: "submitAction",
1482
+ outputs: [],
1483
+ stateMutability: "nonpayable",
1484
+ type: "function",
1485
+ },
1486
+ {
1487
+ inputs: [
1488
+ {
1489
+ components: [
1490
+ {
1491
+ components: [
1492
+ {
1493
+ internalType: "address",
1494
+ name: "sourceToken",
1495
+ type: "address",
1496
+ },
1497
+ {
1498
+ internalType: "address",
1499
+ name: "targetToken",
1500
+ type: "address",
1501
+ },
1502
+ {
1503
+ internalType: "uint256",
1504
+ name: "amount",
1505
+ type: "uint256",
1506
+ },
1507
+ ],
1508
+ internalType: "struct Structs.TokenInfo[]",
1509
+ name: "supply",
1510
+ type: "tuple[]",
1511
+ },
1512
+ {
1513
+ components: [
1514
+ {
1515
+ internalType: "address",
1516
+ name: "sourceToken",
1517
+ type: "address",
1518
+ },
1519
+ {
1520
+ internalType: "address",
1521
+ name: "targetToken",
1522
+ type: "address",
1523
+ },
1524
+ {
1525
+ internalType: "uint256",
1526
+ name: "amount",
1527
+ type: "uint256",
1528
+ },
1529
+ ],
1530
+ internalType: "struct Structs.TokenInfo[]",
1531
+ name: "withdraw",
1532
+ type: "tuple[]",
1533
+ },
1534
+ ],
1535
+ internalType: "struct Structs.Position",
1536
+ name: "position",
1537
+ type: "tuple",
1538
+ },
1539
+ {
1540
+ internalType: "address",
1541
+ name: "sourceDsaSender",
1542
+ type: "address",
1543
+ },
1544
+ {
1545
+ internalType: "string",
1546
+ name: "actionId",
1547
+ type: "string",
1548
+ },
1549
+ {
1550
+ internalType: "uint64",
1551
+ name: "sourceDsaId",
1552
+ type: "uint64",
1553
+ },
1554
+ {
1555
+ internalType: "uint64",
1556
+ name: "targetDsaId",
1557
+ type: "uint64",
1558
+ },
1559
+ {
1560
+ internalType: "uint256",
1561
+ name: "targetChainId",
1562
+ type: "uint256",
1563
+ },
1564
+ {
1565
+ internalType: "uint256",
1566
+ name: "_vnonce",
1567
+ type: "uint256",
1568
+ },
1569
+ {
1570
+ internalType: "bytes",
1571
+ name: "metadata",
1572
+ type: "bytes",
1573
+ },
1574
+ ],
1575
+ name: "submitRevertAction",
1576
+ outputs: [],
1577
+ stateMutability: "nonpayable",
1578
+ type: "function",
1579
+ },
1580
+ {
1581
+ inputs: [
1582
+ {
1583
+ internalType: "string",
1584
+ name: "systemActionId",
1585
+ type: "string",
1586
+ },
1587
+ {
1588
+ components: [
1589
+ {
1590
+ components: [
1591
+ {
1592
+ internalType: "address",
1593
+ name: "sourceToken",
1594
+ type: "address",
1595
+ },
1596
+ {
1597
+ internalType: "address",
1598
+ name: "targetToken",
1599
+ type: "address",
1600
+ },
1601
+ {
1602
+ internalType: "uint256",
1603
+ name: "amount",
1604
+ type: "uint256",
1605
+ },
1606
+ ],
1607
+ internalType: "struct Structs.TokenInfo[]",
1608
+ name: "supply",
1609
+ type: "tuple[]",
1610
+ },
1611
+ {
1612
+ components: [
1613
+ {
1614
+ internalType: "address",
1615
+ name: "sourceToken",
1616
+ type: "address",
1617
+ },
1618
+ {
1619
+ internalType: "address",
1620
+ name: "targetToken",
1621
+ type: "address",
1622
+ },
1623
+ {
1624
+ internalType: "uint256",
1625
+ name: "amount",
1626
+ type: "uint256",
1627
+ },
1628
+ ],
1629
+ internalType: "struct Structs.TokenInfo[]",
1630
+ name: "withdraw",
1631
+ type: "tuple[]",
1632
+ },
1633
+ ],
1634
+ internalType: "struct Structs.Position",
1635
+ name: "position",
1636
+ type: "tuple",
1637
+ },
1638
+ {
1639
+ internalType: "bytes",
1640
+ name: "metadata",
1641
+ type: "bytes",
1642
+ },
1643
+ ],
1644
+ name: "submitSystemAction",
1645
+ outputs: [],
1646
+ stateMutability: "nonpayable",
1647
+ type: "function",
1648
+ },
1649
+ {
1650
+ inputs: [
1651
+ {
1652
+ components: [
1653
+ {
1654
+ internalType: "string",
1655
+ name: "connector",
1656
+ type: "string",
1657
+ },
1658
+ {
1659
+ internalType: "bytes",
1660
+ name: "data",
1661
+ type: "bytes",
1662
+ },
1663
+ ],
1664
+ internalType: "struct Structs.Spell[]",
1665
+ name: "sourceSpells",
1666
+ type: "tuple[]",
1667
+ },
1668
+ {
1669
+ components: [
1670
+ {
1671
+ internalType: "string",
1672
+ name: "connector",
1673
+ type: "string",
1674
+ },
1675
+ {
1676
+ internalType: "bytes",
1677
+ name: "data",
1678
+ type: "bytes",
1679
+ },
1680
+ ],
1681
+ internalType: "struct Structs.Spell[]",
1682
+ name: "targetSpells",
1683
+ type: "tuple[]",
1684
+ },
1685
+ {
1686
+ components: [
1687
+ {
1688
+ internalType: "string",
1689
+ name: "connector",
1690
+ type: "string",
1691
+ },
1692
+ {
1693
+ internalType: "bytes",
1694
+ name: "data",
1695
+ type: "bytes",
1696
+ },
1697
+ ],
1698
+ internalType: "struct Structs.Spell[]",
1699
+ name: "commonSpells",
1700
+ type: "tuple[]",
1701
+ },
1702
+ {
1703
+ components: [
1704
+ {
1705
+ components: [
1706
+ {
1707
+ internalType: "address",
1708
+ name: "sourceToken",
1709
+ type: "address",
1710
+ },
1711
+ {
1712
+ internalType: "address",
1713
+ name: "targetToken",
1714
+ type: "address",
1715
+ },
1716
+ {
1717
+ internalType: "uint256",
1718
+ name: "amount",
1719
+ type: "uint256",
1720
+ },
1721
+ ],
1722
+ internalType: "struct Structs.TokenInfo[]",
1723
+ name: "supply",
1724
+ type: "tuple[]",
1725
+ },
1726
+ {
1727
+ components: [
1728
+ {
1729
+ internalType: "address",
1730
+ name: "sourceToken",
1731
+ type: "address",
1732
+ },
1733
+ {
1734
+ internalType: "address",
1735
+ name: "targetToken",
1736
+ type: "address",
1737
+ },
1738
+ {
1739
+ internalType: "uint256",
1740
+ name: "amount",
1741
+ type: "uint256",
1742
+ },
1743
+ ],
1744
+ internalType: "struct Structs.TokenInfo[]",
1745
+ name: "withdraw",
1746
+ type: "tuple[]",
1747
+ },
1748
+ ],
1749
+ internalType: "struct Structs.Position",
1750
+ name: "position",
1751
+ type: "tuple",
1752
+ },
1753
+ {
1754
+ internalType: "string",
1755
+ name: "actionId",
1756
+ type: "string",
1757
+ },
1758
+ {
1759
+ internalType: "address",
1760
+ name: "sourceSender",
1761
+ type: "address",
1762
+ },
1763
+ {
1764
+ internalType: "uint64",
1765
+ name: "sourceDsaId",
1766
+ type: "uint64",
1767
+ },
1768
+ {
1769
+ internalType: "uint64",
1770
+ name: "targetDsaId",
1771
+ type: "uint64",
1772
+ },
1773
+ {
1774
+ internalType: "uint256",
1775
+ name: "sourceChainId",
1776
+ type: "uint256",
1777
+ },
1778
+ {
1779
+ internalType: "uint256",
1780
+ name: "targetChainId",
1781
+ type: "uint256",
1782
+ },
1783
+ {
1784
+ internalType: "uint256",
1785
+ name: "_vnonce",
1786
+ type: "uint256",
1787
+ },
1788
+ {
1789
+ internalType: "bytes",
1790
+ name: "metadata",
1791
+ type: "bytes",
1792
+ },
1793
+ ],
1794
+ name: "targetAction",
1795
+ outputs: [],
1796
+ stateMutability: "nonpayable",
1797
+ type: "function",
1798
+ },
1799
+ {
1800
+ inputs: [
1801
+ {
1802
+ components: [
1803
+ {
1804
+ internalType: "string",
1805
+ name: "connector",
1806
+ type: "string",
1807
+ },
1808
+ {
1809
+ internalType: "bytes",
1810
+ name: "data",
1811
+ type: "bytes",
1812
+ },
1813
+ ],
1814
+ internalType: "struct Structs.Spell[]",
1815
+ name: "sourceSpells",
1816
+ type: "tuple[]",
1817
+ },
1818
+ {
1819
+ components: [
1820
+ {
1821
+ components: [
1822
+ {
1823
+ internalType: "address",
1824
+ name: "sourceToken",
1825
+ type: "address",
1826
+ },
1827
+ {
1828
+ internalType: "address",
1829
+ name: "targetToken",
1830
+ type: "address",
1831
+ },
1832
+ {
1833
+ internalType: "uint256",
1834
+ name: "amount",
1835
+ type: "uint256",
1836
+ },
1837
+ ],
1838
+ internalType: "struct Structs.TokenInfo[]",
1839
+ name: "supply",
1840
+ type: "tuple[]",
1841
+ },
1842
+ {
1843
+ components: [
1844
+ {
1845
+ internalType: "address",
1846
+ name: "sourceToken",
1847
+ type: "address",
1848
+ },
1849
+ {
1850
+ internalType: "address",
1851
+ name: "targetToken",
1852
+ type: "address",
1853
+ },
1854
+ {
1855
+ internalType: "uint256",
1856
+ name: "amount",
1857
+ type: "uint256",
1858
+ },
1859
+ ],
1860
+ internalType: "struct Structs.TokenInfo[]",
1861
+ name: "withdraw",
1862
+ type: "tuple[]",
1863
+ },
1864
+ ],
1865
+ internalType: "struct Structs.Position",
1866
+ name: "position",
1867
+ type: "tuple",
1868
+ },
1869
+ {
1870
+ internalType: "string",
1871
+ name: "actionId",
1872
+ type: "string",
1873
+ },
1874
+ {
1875
+ internalType: "address",
1876
+ name: "sourceSender",
1877
+ type: "address",
1878
+ },
1879
+ {
1880
+ internalType: "uint64",
1881
+ name: "sourceDsaId",
1882
+ type: "uint64",
1883
+ },
1884
+ {
1885
+ internalType: "uint64",
1886
+ name: "targetDsaId",
1887
+ type: "uint64",
1888
+ },
1889
+ {
1890
+ internalType: "uint256",
1891
+ name: "sourceChainId",
1892
+ type: "uint256",
1893
+ },
1894
+ {
1895
+ internalType: "uint256",
1896
+ name: "targetChainId",
1897
+ type: "uint256",
1898
+ },
1899
+ {
1900
+ internalType: "uint256",
1901
+ name: "_vnonce",
1902
+ type: "uint256",
1903
+ },
1904
+ {
1905
+ internalType: "bytes",
1906
+ name: "metadata",
1907
+ type: "bytes",
1908
+ },
1909
+ ],
1910
+ name: "targetRevertAction",
1911
+ outputs: [],
1912
+ stateMutability: "nonpayable",
1913
+ type: "function",
1914
+ },
1915
+ {
1916
+ stateMutability: "payable",
1917
+ type: "receive",
1918
+ },
1919
+ ];
1920
+
1921
+ export class InteropX__factory {
1922
+ static readonly abi = _abi;
1923
+ static createInterface(): InteropXInterface {
1924
+ return new utils.Interface(_abi) as InteropXInterface;
1925
+ }
1926
+ static connect(
1927
+ address: string,
1928
+ signerOrProvider: Signer | Provider
1929
+ ): InteropX {
1930
+ return new Contract(address, _abi, signerOrProvider) as InteropX;
1931
+ }
1932
+ }