@instadapp/interop-x 0.0.0-dev.ef78459 → 0.0.0-dev.ef7acff

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. package/.env.example +2 -1
  2. package/.github/workflows/ci.yml +19 -0
  3. package/bin/interop-x +1 -1
  4. package/dist/package.json +77 -0
  5. package/dist/src/abi/connectors/index.js +36 -0
  6. package/dist/src/abi/connectors/v1/aave.js +148 -0
  7. package/dist/src/abi/connectors/v1/aave_claim.js +4 -0
  8. package/dist/src/abi/connectors/v1/aave_migrate.js +109 -0
  9. package/dist/src/abi/connectors/v1/aave_polygon_migrate.js +110 -0
  10. package/dist/src/abi/connectors/v1/aave_stake.js +4 -0
  11. package/dist/src/abi/connectors/v1/aave_v1_import.js +54 -0
  12. package/dist/src/abi/connectors/v1/aave_v2.js +230 -0
  13. package/dist/src/abi/connectors/v1/aave_v2_import.js +59 -0
  14. package/dist/src/abi/connectors/v1/authority.js +100 -0
  15. package/dist/src/abi/connectors/v1/basic.js +136 -0
  16. package/dist/src/abi/connectors/v1/chi.js +36 -0
  17. package/dist/src/abi/connectors/v1/comp.js +4 -0
  18. package/dist/src/abi/connectors/v1/compound.js +4 -0
  19. package/dist/src/abi/connectors/v1/compoundImport.js +69 -0
  20. package/dist/src/abi/connectors/v1/compoundImport_v2.js +4 -0
  21. package/dist/src/abi/connectors/v1/compound_old.js +448 -0
  22. package/dist/src/abi/connectors/v1/curve.js +140 -0
  23. package/dist/src/abi/connectors/v1/curve_claim.js +63 -0
  24. package/dist/src/abi/connectors/v1/curve_gauge.js +158 -0
  25. package/dist/src/abi/connectors/v1/curve_sbtc.js +140 -0
  26. package/dist/src/abi/connectors/v1/curve_susd.js +140 -0
  27. package/dist/src/abi/connectors/v1/curve_three.js +79 -0
  28. package/dist/src/abi/connectors/v1/curve_y.js +140 -0
  29. package/dist/src/abi/connectors/v1/dsa_migrate_v1_to_v2.js +4 -0
  30. package/dist/src/abi/connectors/v1/dydx.js +148 -0
  31. package/dist/src/abi/connectors/v1/dydx_flash.js +52 -0
  32. package/dist/src/abi/connectors/v1/fee.js +50 -0
  33. package/dist/src/abi/connectors/v1/gelato.js +1138 -0
  34. package/dist/src/abi/connectors/v1/index.js +58 -0
  35. package/dist/src/abi/connectors/v1/instapool.js +439 -0
  36. package/dist/src/abi/connectors/v1/instapool_v2.js +126 -0
  37. package/dist/src/abi/connectors/v1/kyber.js +117 -0
  38. package/dist/src/abi/connectors/v1/maker.js +480 -0
  39. package/dist/src/abi/connectors/v1/maker_old.js +300 -0
  40. package/dist/src/abi/connectors/v1/math.js +43 -0
  41. package/dist/src/abi/connectors/v1/migrate.js +46 -0
  42. package/dist/src/abi/connectors/v1/oasis.js +198 -0
  43. package/dist/src/abi/connectors/v1/oneInch.js +160 -0
  44. package/dist/src/abi/connectors/v1/polygon_bridge.js +4 -0
  45. package/dist/src/abi/connectors/v1/refinance.js +4 -0
  46. package/dist/src/abi/connectors/v1/staking.js +220 -0
  47. package/dist/src/abi/connectors/v1/swerve.js +179 -0
  48. package/dist/src/abi/connectors/v1/uniswap.js +297 -0
  49. package/dist/src/abi/connectors/v2/1INCH-A.js +4 -0
  50. package/dist/src/abi/connectors/v2/1INCH-B.js +4 -0
  51. package/dist/src/abi/connectors/v2/AAVE-CLAIM-A.js +4 -0
  52. package/dist/src/abi/connectors/v2/AAVE-CLAIM-B.js +166 -0
  53. package/dist/src/abi/connectors/v2/AAVE-STAKE-A.js +4 -0
  54. package/dist/src/abi/connectors/v2/AAVE-V1-A.js +130 -0
  55. package/dist/src/abi/connectors/v2/AAVE-V1-IMPORT-A.js +4 -0
  56. package/dist/src/abi/connectors/v2/AAVE-V2-A.js +230 -0
  57. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-A.js +4 -0
  58. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-B.js +225 -0
  59. package/dist/src/abi/connectors/v2/AUTHORITY-A.js +100 -0
  60. package/dist/src/abi/connectors/v2/B-COMPOUND-A.js +4 -0
  61. package/dist/src/abi/connectors/v2/B-LIQUITY-A.js +4 -0
  62. package/dist/src/abi/connectors/v2/B-MAKERDAO-A.js +4 -0
  63. package/dist/src/abi/connectors/v2/BASIC-A.js +136 -0
  64. package/dist/src/abi/connectors/v2/BASIC-B.js +4 -0
  65. package/dist/src/abi/connectors/v2/BASIC-C.js +4 -0
  66. package/dist/src/abi/connectors/v2/COMP-A.js +4 -0
  67. package/dist/src/abi/connectors/v2/COMPOUND-A.js +4 -0
  68. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-A.js +4 -0
  69. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-B.js +195 -0
  70. package/dist/src/abi/connectors/v2/G-UNISWAP-A.js +4 -0
  71. package/dist/src/abi/connectors/v2/GELATO-AAVE-A.js +4 -0
  72. package/dist/src/abi/connectors/v2/INST-A.js +4 -0
  73. package/dist/src/abi/connectors/v2/INST-LM-A.js +4 -0
  74. package/dist/src/abi/connectors/v2/INST-STAKING-A.js +4 -0
  75. package/dist/src/abi/connectors/v2/INST-STAKING-B.js +4 -0
  76. package/dist/src/abi/connectors/v2/INSTAPOOL-A.js +4 -0
  77. package/dist/src/abi/connectors/v2/LIQUITY-A.js +4 -0
  78. package/dist/src/abi/connectors/v2/MAKERDAO-A.js +4 -0
  79. package/dist/src/abi/connectors/v2/MAKERDAO-CLAIM-A.js +136 -0
  80. package/dist/src/abi/connectors/v2/PARASWAP-A.js +4 -0
  81. package/dist/src/abi/connectors/v2/POLYGON-BRIDGE-A.js +4 -0
  82. package/dist/src/abi/connectors/v2/REFINANCE-A.js +4 -0
  83. package/dist/src/abi/connectors/v2/REFLEXER-A.js +4 -0
  84. package/dist/src/abi/connectors/v2/STAKE-ERC20-A.js +4 -0
  85. package/dist/src/abi/connectors/v2/UNISWAP-A.js +297 -0
  86. package/dist/src/abi/connectors/v2/UNISWAP-V2-A.js +4 -0
  87. package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +4 -0
  88. package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.js +4 -0
  89. package/dist/src/abi/connectors/v2/WETH-A.js +4 -0
  90. package/dist/src/abi/connectors/v2/YEARN-VAULT-A.js +4 -0
  91. package/dist/src/abi/connectors/v2/index.js +89 -0
  92. package/dist/src/abi/erc20.json +350 -0
  93. package/dist/src/abi/gnosisSafe.json +747 -0
  94. package/dist/src/abi/index.js +17 -0
  95. package/dist/src/abi/instList.json +232 -0
  96. package/dist/src/abi/interopX.json +1436 -0
  97. package/dist/src/alias.js +10 -0
  98. package/dist/src/api/index.js +43 -0
  99. package/dist/src/config/index.js +31 -0
  100. package/dist/src/constants/addresses.js +19 -0
  101. package/dist/src/constants/blockConfirmations.js +8 -0
  102. package/dist/{constants → src/constants}/index.js +2 -0
  103. package/dist/src/constants/tokens.js +130 -0
  104. package/dist/{db → src/db}/index.js +0 -0
  105. package/dist/{db → src/db}/models/index.js +1 -1
  106. package/dist/src/db/models/transaction.js +80 -0
  107. package/dist/{db → src/db}/sequelize.js +2 -1
  108. package/dist/src/errors/index.js +17 -0
  109. package/dist/src/gnosis/actions/aaveV2/index.js +11 -0
  110. package/dist/src/gnosis/actions/aaveV2/source.js +73 -0
  111. package/dist/src/gnosis/actions/aaveV2/target.js +86 -0
  112. package/dist/src/gnosis/actions/index.js +9 -0
  113. package/dist/src/gnosis/index.js +20 -0
  114. package/dist/src/index.js +119 -0
  115. package/dist/{logger → src/logger}/index.js +0 -0
  116. package/dist/{net → src/net}/index.js +0 -0
  117. package/dist/{net → src/net}/peer/index.js +8 -3
  118. package/dist/{net → src/net}/pool/index.js +32 -9
  119. package/dist/{net → src/net}/protocol/dial/BaseDialProtocol.js +0 -0
  120. package/dist/{net → src/net}/protocol/dial/SignatureDialProtocol.js +19 -12
  121. package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +30 -0
  122. package/dist/{net → src/net}/protocol/index.js +54 -4
  123. package/dist/src/tasks/AutoUpdateTask.js +70 -0
  124. package/dist/{tasks → src/tasks}/BaseTask.js +13 -5
  125. package/dist/src/tasks/InteropX/ProcessSubmitEvents.js +192 -0
  126. package/dist/src/tasks/InteropX/ProcessValidateEvents.js +184 -0
  127. package/dist/src/tasks/InteropX/SyncLogExecuteEvents.js +112 -0
  128. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +87 -0
  129. package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +105 -0
  130. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +58 -0
  131. package/dist/src/tasks/index.js +45 -0
  132. package/dist/src/typechain/Erc20.js +2 -0
  133. package/dist/src/typechain/GnosisSafe.js +2 -0
  134. package/dist/src/typechain/InstList.js +2 -0
  135. package/dist/src/typechain/InteropX.js +2 -0
  136. package/dist/src/typechain/common.js +2 -0
  137. package/dist/src/typechain/factories/Erc20__factory.js +367 -0
  138. package/dist/src/typechain/factories/GnosisSafe__factory.js +1174 -0
  139. package/dist/src/typechain/factories/InstList__factory.js +249 -0
  140. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  141. package/dist/src/typechain/factories/index.js +14 -0
  142. package/dist/src/typechain/index.js +35 -0
  143. package/dist/{types.js → src/types.js} +0 -0
  144. package/dist/src/utils/async.js +18 -0
  145. package/dist/src/utils/dsa.js +24 -0
  146. package/dist/src/utils/formatting.js +17 -0
  147. package/dist/src/utils/gnosis.js +62 -0
  148. package/dist/src/utils/http.js +10 -0
  149. package/dist/src/utils/index.js +24 -0
  150. package/dist/src/utils/interop.js +16 -0
  151. package/dist/src/utils/validate.js +23 -0
  152. package/dist/src/utils/web3.js +92 -0
  153. package/package.json +32 -20
  154. package/patches/@ethersproject+properties+5.6.0.patch +13 -0
  155. package/src/abi/connectors/index.ts +14 -0
  156. package/src/abi/connectors/v1/aave.ts +147 -0
  157. package/src/abi/connectors/v1/aave_claim.ts +3 -0
  158. package/src/abi/connectors/v1/aave_migrate.ts +108 -0
  159. package/src/abi/connectors/v1/aave_polygon_migrate.ts +109 -0
  160. package/src/abi/connectors/v1/aave_stake.ts +3 -0
  161. package/src/abi/connectors/v1/aave_v1_import.ts +53 -0
  162. package/src/abi/connectors/v1/aave_v2.ts +229 -0
  163. package/src/abi/connectors/v1/aave_v2_import.ts +58 -0
  164. package/src/abi/connectors/v1/authority.ts +99 -0
  165. package/src/abi/connectors/v1/basic.ts +135 -0
  166. package/src/abi/connectors/v1/chi.ts +35 -0
  167. package/src/abi/connectors/v1/comp.ts +3 -0
  168. package/src/abi/connectors/v1/compound.ts +3 -0
  169. package/src/abi/connectors/v1/compoundImport.ts +68 -0
  170. package/src/abi/connectors/v1/compoundImport_v2.ts +3 -0
  171. package/src/abi/connectors/v1/compound_old.ts +447 -0
  172. package/src/abi/connectors/v1/curve.ts +139 -0
  173. package/src/abi/connectors/v1/curve_claim.ts +62 -0
  174. package/src/abi/connectors/v1/curve_gauge.ts +157 -0
  175. package/src/abi/connectors/v1/curve_sbtc.ts +139 -0
  176. package/src/abi/connectors/v1/curve_susd.ts +139 -0
  177. package/src/abi/connectors/v1/curve_three.ts +78 -0
  178. package/src/abi/connectors/v1/curve_y.ts +139 -0
  179. package/src/abi/connectors/v1/dsa_migrate_v1_to_v2.ts +3 -0
  180. package/src/abi/connectors/v1/dydx.ts +147 -0
  181. package/src/abi/connectors/v1/dydx_flash.ts +51 -0
  182. package/src/abi/connectors/v1/fee.ts +49 -0
  183. package/src/abi/connectors/v1/gelato.ts +1137 -0
  184. package/src/abi/connectors/v1/index.ts +42 -0
  185. package/src/abi/connectors/v1/instapool.ts +438 -0
  186. package/src/abi/connectors/v1/instapool_v2.ts +125 -0
  187. package/src/abi/connectors/v1/kyber.ts +116 -0
  188. package/src/abi/connectors/v1/maker.ts +479 -0
  189. package/src/abi/connectors/v1/maker_old.ts +299 -0
  190. package/src/abi/connectors/v1/math.ts +42 -0
  191. package/src/abi/connectors/v1/migrate.ts +45 -0
  192. package/src/abi/connectors/v1/oasis.ts +197 -0
  193. package/src/abi/connectors/v1/oneInch.ts +159 -0
  194. package/src/abi/connectors/v1/polygon_bridge.ts +3 -0
  195. package/src/abi/connectors/v1/refinance.ts +3 -0
  196. package/src/abi/connectors/v1/staking.ts +219 -0
  197. package/src/abi/connectors/v1/swerve.ts +178 -0
  198. package/src/abi/connectors/v1/uniswap.ts +297 -0
  199. package/src/abi/connectors/v2/1INCH-A.ts +3 -0
  200. package/src/abi/connectors/v2/1INCH-B.ts +3 -0
  201. package/src/abi/connectors/v2/AAVE-CLAIM-A.ts +3 -0
  202. package/src/abi/connectors/v2/AAVE-CLAIM-B.ts +165 -0
  203. package/src/abi/connectors/v2/AAVE-STAKE-A.ts +3 -0
  204. package/src/abi/connectors/v2/AAVE-V1-A.ts +130 -0
  205. package/src/abi/connectors/v2/AAVE-V1-IMPORT-A.ts +3 -0
  206. package/src/abi/connectors/v2/AAVE-V2-A.ts +229 -0
  207. package/src/abi/connectors/v2/AAVE-V2-IMPORT-A.ts +3 -0
  208. package/src/abi/connectors/v2/AAVE-V2-IMPORT-B.ts +224 -0
  209. package/src/abi/connectors/v2/AUTHORITY-A.ts +99 -0
  210. package/src/abi/connectors/v2/B-COMPOUND-A.ts +3 -0
  211. package/src/abi/connectors/v2/B-LIQUITY-A.ts +3 -0
  212. package/src/abi/connectors/v2/B-MAKERDAO-A.ts +3 -0
  213. package/src/abi/connectors/v2/BASIC-A.ts +135 -0
  214. package/src/abi/connectors/v2/BASIC-B.ts +3 -0
  215. package/src/abi/connectors/v2/BASIC-C.ts +3 -0
  216. package/src/abi/connectors/v2/COMP-A.ts +3 -0
  217. package/src/abi/connectors/v2/COMPOUND-A.ts +3 -0
  218. package/src/abi/connectors/v2/COMPOUND-IMPORT-A.ts +3 -0
  219. package/src/abi/connectors/v2/COMPOUND-IMPORT-B.ts +194 -0
  220. package/src/abi/connectors/v2/G-UNISWAP-A.ts +3 -0
  221. package/src/abi/connectors/v2/GELATO-AAVE-A.ts +3 -0
  222. package/src/abi/connectors/v2/INST-A.ts +3 -0
  223. package/src/abi/connectors/v2/INST-LM-A.ts +3 -0
  224. package/src/abi/connectors/v2/INST-STAKING-A.ts +3 -0
  225. package/src/abi/connectors/v2/INST-STAKING-B.ts +3 -0
  226. package/src/abi/connectors/v2/INSTAPOOL-A.ts +3 -0
  227. package/src/abi/connectors/v2/LIQUITY-A.ts +3 -0
  228. package/src/abi/connectors/v2/MAKERDAO-A.ts +3 -0
  229. package/src/abi/connectors/v2/MAKERDAO-CLAIM-A.ts +135 -0
  230. package/src/abi/connectors/v2/PARASWAP-A.ts +3 -0
  231. package/src/abi/connectors/v2/POLYGON-BRIDGE-A.ts +3 -0
  232. package/src/abi/connectors/v2/REFINANCE-A.ts +3 -0
  233. package/src/abi/connectors/v2/REFLEXER-A.ts +3 -0
  234. package/src/abi/connectors/v2/STAKE-ERC20-A.ts +3 -0
  235. package/src/abi/connectors/v2/UNISWAP-A.ts +297 -0
  236. package/src/abi/connectors/v2/UNISWAP-V2-A.ts +3 -0
  237. package/src/abi/connectors/v2/UNISWAP-V3-A.ts +3 -0
  238. package/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.ts +3 -0
  239. package/src/abi/connectors/v2/WETH-A.ts +3 -0
  240. package/src/abi/connectors/v2/YEARN-VAULT-A.ts +3 -0
  241. package/src/abi/connectors/v2/index.ts +87 -0
  242. package/src/abi/erc20.json +350 -0
  243. package/src/abi/gnosisSafe.json +747 -0
  244. package/src/abi/index.ts +13 -0
  245. package/src/abi/instList.json +232 -0
  246. package/src/abi/interopX.json +1436 -0
  247. package/src/alias.ts +6 -0
  248. package/src/api/index.ts +44 -0
  249. package/src/config/index.ts +17 -1
  250. package/src/constants/addresses.ts +12 -6
  251. package/src/constants/blockConfirmations.ts +5 -0
  252. package/src/constants/index.ts +2 -0
  253. package/src/constants/tokens.ts +127 -0
  254. package/src/db/models/index.ts +1 -1
  255. package/src/db/models/transaction.ts +190 -0
  256. package/src/db/sequelize.ts +2 -1
  257. package/src/errors/index.ts +13 -0
  258. package/src/gnosis/actions/aaveV2/index.ts +9 -0
  259. package/src/gnosis/actions/aaveV2/source.ts +118 -0
  260. package/src/gnosis/actions/aaveV2/target.ts +141 -0
  261. package/src/gnosis/actions/index.ts +5 -0
  262. package/src/gnosis/index.ts +19 -0
  263. package/src/index.ts +109 -8
  264. package/src/net/peer/index.ts +9 -7
  265. package/src/net/pool/index.ts +41 -11
  266. package/src/net/protocol/dial/SignatureDialProtocol.ts +23 -15
  267. package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +33 -0
  268. package/src/net/protocol/index.ts +70 -4
  269. package/src/tasks/AutoUpdateTask.ts +82 -0
  270. package/src/tasks/BaseTask.ts +15 -6
  271. package/src/tasks/InteropX/ProcessSubmitEvents.ts +280 -0
  272. package/src/tasks/InteropX/ProcessValidateEvents.ts +272 -0
  273. package/src/tasks/InteropX/SyncLogExecuteEvents.ts +160 -0
  274. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +137 -0
  275. package/src/tasks/InteropX/SyncLogValidateEvents.ts +150 -0
  276. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +70 -0
  277. package/src/tasks/index.ts +32 -2
  278. package/src/typechain/Erc20.ts +491 -0
  279. package/src/typechain/GnosisSafe.ts +1728 -0
  280. package/src/typechain/InstList.ts +402 -0
  281. package/src/typechain/InteropX.ts +1216 -0
  282. package/src/typechain/common.ts +44 -0
  283. package/src/typechain/factories/Erc20__factory.ts +368 -0
  284. package/src/typechain/factories/GnosisSafe__factory.ts +1178 -0
  285. package/src/typechain/factories/InstList__factory.ts +253 -0
  286. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  287. package/src/typechain/factories/index.ts +7 -0
  288. package/src/typechain/index.ts +12 -0
  289. package/src/types.ts +1 -1
  290. package/src/utils/async.ts +22 -0
  291. package/src/utils/dsa.ts +30 -0
  292. package/src/utils/formatting.ts +15 -0
  293. package/src/utils/gnosis.ts +123 -0
  294. package/src/utils/http.ts +6 -0
  295. package/src/utils/index.ts +8 -116
  296. package/src/utils/interop.ts +28 -0
  297. package/src/utils/validate.ts +24 -0
  298. package/src/utils/web3.ts +131 -0
  299. package/tsconfig.json +7 -2
  300. package/dist/config/index.js +0 -17
  301. package/dist/constants/addresses.js +0 -13
  302. package/dist/db/models/execution.js +0 -38
  303. package/dist/index.js +0 -43
  304. package/dist/tasks/index.js +0 -19
  305. package/dist/utils/index.js +0 -89
  306. package/src/db/models/execution.ts +0 -57
@@ -0,0 +1,747 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": false,
7
+ "internalType": "address",
8
+ "name": "owner",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "name": "AddedOwner",
13
+ "type": "event"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "bytes32",
21
+ "name": "approvedHash",
22
+ "type": "bytes32"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "owner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "ApproveHash",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": false,
39
+ "internalType": "address",
40
+ "name": "handler",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "ChangedFallbackHandler",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": false,
52
+ "internalType": "address",
53
+ "name": "guard",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "ChangedGuard",
58
+ "type": "event"
59
+ },
60
+ {
61
+ "anonymous": false,
62
+ "inputs": [
63
+ {
64
+ "indexed": false,
65
+ "internalType": "uint256",
66
+ "name": "threshold",
67
+ "type": "uint256"
68
+ }
69
+ ],
70
+ "name": "ChangedThreshold",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": false,
78
+ "internalType": "address",
79
+ "name": "module",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "DisabledModule",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": false,
91
+ "internalType": "address",
92
+ "name": "module",
93
+ "type": "address"
94
+ }
95
+ ],
96
+ "name": "EnabledModule",
97
+ "type": "event"
98
+ },
99
+ {
100
+ "anonymous": false,
101
+ "inputs": [
102
+ {
103
+ "indexed": false,
104
+ "internalType": "bytes32",
105
+ "name": "txHash",
106
+ "type": "bytes32"
107
+ },
108
+ {
109
+ "indexed": false,
110
+ "internalType": "uint256",
111
+ "name": "payment",
112
+ "type": "uint256"
113
+ }
114
+ ],
115
+ "name": "ExecutionFailure",
116
+ "type": "event"
117
+ },
118
+ {
119
+ "anonymous": false,
120
+ "inputs": [
121
+ {
122
+ "indexed": true,
123
+ "internalType": "address",
124
+ "name": "module",
125
+ "type": "address"
126
+ }
127
+ ],
128
+ "name": "ExecutionFromModuleFailure",
129
+ "type": "event"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
134
+ {
135
+ "indexed": true,
136
+ "internalType": "address",
137
+ "name": "module",
138
+ "type": "address"
139
+ }
140
+ ],
141
+ "name": "ExecutionFromModuleSuccess",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "bytes32",
150
+ "name": "txHash",
151
+ "type": "bytes32"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "payment",
157
+ "type": "uint256"
158
+ }
159
+ ],
160
+ "name": "ExecutionSuccess",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": false,
168
+ "internalType": "address",
169
+ "name": "owner",
170
+ "type": "address"
171
+ }
172
+ ],
173
+ "name": "RemovedOwner",
174
+ "type": "event"
175
+ },
176
+ {
177
+ "anonymous": false,
178
+ "inputs": [
179
+ {
180
+ "indexed": false,
181
+ "internalType": "address",
182
+ "name": "module",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "indexed": false,
187
+ "internalType": "address",
188
+ "name": "to",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint256",
194
+ "name": "value",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "internalType": "bytes",
200
+ "name": "data",
201
+ "type": "bytes"
202
+ },
203
+ {
204
+ "indexed": false,
205
+ "internalType": "enum Enum.Operation",
206
+ "name": "operation",
207
+ "type": "uint8"
208
+ }
209
+ ],
210
+ "name": "SafeModuleTransaction",
211
+ "type": "event"
212
+ },
213
+ {
214
+ "anonymous": false,
215
+ "inputs": [
216
+ {
217
+ "indexed": false,
218
+ "internalType": "address",
219
+ "name": "to",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "indexed": false,
224
+ "internalType": "uint256",
225
+ "name": "value",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "indexed": false,
230
+ "internalType": "bytes",
231
+ "name": "data",
232
+ "type": "bytes"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "internalType": "enum Enum.Operation",
237
+ "name": "operation",
238
+ "type": "uint8"
239
+ },
240
+ {
241
+ "indexed": false,
242
+ "internalType": "uint256",
243
+ "name": "safeTxGas",
244
+ "type": "uint256"
245
+ },
246
+ {
247
+ "indexed": false,
248
+ "internalType": "uint256",
249
+ "name": "baseGas",
250
+ "type": "uint256"
251
+ },
252
+ {
253
+ "indexed": false,
254
+ "internalType": "uint256",
255
+ "name": "gasPrice",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "indexed": false,
260
+ "internalType": "address",
261
+ "name": "gasToken",
262
+ "type": "address"
263
+ },
264
+ {
265
+ "indexed": false,
266
+ "internalType": "address payable",
267
+ "name": "refundReceiver",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "indexed": false,
272
+ "internalType": "bytes",
273
+ "name": "signatures",
274
+ "type": "bytes"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "internalType": "bytes",
279
+ "name": "additionalInfo",
280
+ "type": "bytes"
281
+ }
282
+ ],
283
+ "name": "SafeMultiSigTransaction",
284
+ "type": "event"
285
+ },
286
+ {
287
+ "anonymous": false,
288
+ "inputs": [
289
+ {
290
+ "indexed": true,
291
+ "internalType": "address",
292
+ "name": "sender",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "indexed": false,
297
+ "internalType": "uint256",
298
+ "name": "value",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "name": "SafeReceived",
303
+ "type": "event"
304
+ },
305
+ {
306
+ "anonymous": false,
307
+ "inputs": [
308
+ {
309
+ "indexed": true,
310
+ "internalType": "address",
311
+ "name": "initiator",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "indexed": false,
316
+ "internalType": "address[]",
317
+ "name": "owners",
318
+ "type": "address[]"
319
+ },
320
+ {
321
+ "indexed": false,
322
+ "internalType": "uint256",
323
+ "name": "threshold",
324
+ "type": "uint256"
325
+ },
326
+ {
327
+ "indexed": false,
328
+ "internalType": "address",
329
+ "name": "initializer",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "indexed": false,
334
+ "internalType": "address",
335
+ "name": "fallbackHandler",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "name": "SafeSetup",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "anonymous": false,
344
+ "inputs": [
345
+ {
346
+ "indexed": true,
347
+ "internalType": "bytes32",
348
+ "name": "msgHash",
349
+ "type": "bytes32"
350
+ }
351
+ ],
352
+ "name": "SignMsg",
353
+ "type": "event"
354
+ },
355
+ { "stateMutability": "nonpayable", "type": "fallback" },
356
+ {
357
+ "inputs": [],
358
+ "name": "VERSION",
359
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
360
+ "stateMutability": "view",
361
+ "type": "function"
362
+ },
363
+ {
364
+ "inputs": [
365
+ { "internalType": "address", "name": "owner", "type": "address" },
366
+ { "internalType": "uint256", "name": "_threshold", "type": "uint256" }
367
+ ],
368
+ "name": "addOwnerWithThreshold",
369
+ "outputs": [],
370
+ "stateMutability": "nonpayable",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ { "internalType": "bytes32", "name": "hashToApprove", "type": "bytes32" }
376
+ ],
377
+ "name": "approveHash",
378
+ "outputs": [],
379
+ "stateMutability": "nonpayable",
380
+ "type": "function"
381
+ },
382
+ {
383
+ "inputs": [
384
+ { "internalType": "address", "name": "", "type": "address" },
385
+ { "internalType": "bytes32", "name": "", "type": "bytes32" }
386
+ ],
387
+ "name": "approvedHashes",
388
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ { "internalType": "uint256", "name": "_threshold", "type": "uint256" }
395
+ ],
396
+ "name": "changeThreshold",
397
+ "outputs": [],
398
+ "stateMutability": "nonpayable",
399
+ "type": "function"
400
+ },
401
+ {
402
+ "inputs": [
403
+ { "internalType": "bytes32", "name": "dataHash", "type": "bytes32" },
404
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
405
+ { "internalType": "bytes", "name": "signatures", "type": "bytes" },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "requiredSignatures",
409
+ "type": "uint256"
410
+ }
411
+ ],
412
+ "name": "checkNSignatures",
413
+ "outputs": [],
414
+ "stateMutability": "view",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [
419
+ { "internalType": "bytes32", "name": "dataHash", "type": "bytes32" },
420
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
421
+ { "internalType": "bytes", "name": "signatures", "type": "bytes" }
422
+ ],
423
+ "name": "checkSignatures",
424
+ "outputs": [],
425
+ "stateMutability": "view",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
430
+ "name": "dataHashes",
431
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [
437
+ { "internalType": "address", "name": "prevModule", "type": "address" },
438
+ { "internalType": "address", "name": "module", "type": "address" }
439
+ ],
440
+ "name": "disableModule",
441
+ "outputs": [],
442
+ "stateMutability": "nonpayable",
443
+ "type": "function"
444
+ },
445
+ {
446
+ "inputs": [],
447
+ "name": "domainSeparator",
448
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
449
+ "stateMutability": "view",
450
+ "type": "function"
451
+ },
452
+ {
453
+ "inputs": [
454
+ { "internalType": "address", "name": "module", "type": "address" }
455
+ ],
456
+ "name": "enableModule",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ { "internalType": "address", "name": "to", "type": "address" },
464
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
465
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
466
+ {
467
+ "internalType": "enum Enum.Operation",
468
+ "name": "operation",
469
+ "type": "uint8"
470
+ },
471
+ { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" },
472
+ { "internalType": "uint256", "name": "baseGas", "type": "uint256" },
473
+ { "internalType": "uint256", "name": "gasPrice", "type": "uint256" },
474
+ { "internalType": "address", "name": "gasToken", "type": "address" },
475
+ {
476
+ "internalType": "address",
477
+ "name": "refundReceiver",
478
+ "type": "address"
479
+ },
480
+ { "internalType": "uint256", "name": "_nonce", "type": "uint256" }
481
+ ],
482
+ "name": "encodeTransactionData",
483
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
484
+ "stateMutability": "view",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ { "internalType": "address", "name": "to", "type": "address" },
490
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
491
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
492
+ {
493
+ "internalType": "enum Enum.Operation",
494
+ "name": "operation",
495
+ "type": "uint8"
496
+ },
497
+ { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" },
498
+ { "internalType": "uint256", "name": "baseGas", "type": "uint256" },
499
+ { "internalType": "uint256", "name": "gasPrice", "type": "uint256" },
500
+ { "internalType": "address", "name": "gasToken", "type": "address" },
501
+ {
502
+ "internalType": "address payable",
503
+ "name": "refundReceiver",
504
+ "type": "address"
505
+ },
506
+ { "internalType": "bytes", "name": "signatures", "type": "bytes" }
507
+ ],
508
+ "name": "execTransaction",
509
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
510
+ "stateMutability": "payable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ { "internalType": "address", "name": "to", "type": "address" },
516
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
517
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
518
+ {
519
+ "internalType": "enum Enum.Operation",
520
+ "name": "operation",
521
+ "type": "uint8"
522
+ }
523
+ ],
524
+ "name": "execTransactionFromModule",
525
+ "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }],
526
+ "stateMutability": "nonpayable",
527
+ "type": "function"
528
+ },
529
+ {
530
+ "inputs": [
531
+ { "internalType": "address", "name": "to", "type": "address" },
532
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
533
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
534
+ {
535
+ "internalType": "enum Enum.Operation",
536
+ "name": "operation",
537
+ "type": "uint8"
538
+ }
539
+ ],
540
+ "name": "execTransactionFromModuleReturnData",
541
+ "outputs": [
542
+ { "internalType": "bool", "name": "success", "type": "bool" },
543
+ { "internalType": "bytes", "name": "returnData", "type": "bytes" }
544
+ ],
545
+ "stateMutability": "nonpayable",
546
+ "type": "function"
547
+ },
548
+ {
549
+ "inputs": [],
550
+ "name": "getChainId",
551
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
552
+ "stateMutability": "view",
553
+ "type": "function"
554
+ },
555
+ {
556
+ "inputs": [
557
+ { "internalType": "address", "name": "start", "type": "address" },
558
+ { "internalType": "uint256", "name": "pageSize", "type": "uint256" }
559
+ ],
560
+ "name": "getModulesPaginated",
561
+ "outputs": [
562
+ { "internalType": "address[]", "name": "array", "type": "address[]" },
563
+ { "internalType": "address", "name": "next", "type": "address" }
564
+ ],
565
+ "stateMutability": "view",
566
+ "type": "function"
567
+ },
568
+ {
569
+ "inputs": [],
570
+ "name": "getOwners",
571
+ "outputs": [
572
+ { "internalType": "address[]", "name": "", "type": "address[]" }
573
+ ],
574
+ "stateMutability": "view",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [
579
+ { "internalType": "uint256", "name": "offset", "type": "uint256" },
580
+ { "internalType": "uint256", "name": "length", "type": "uint256" }
581
+ ],
582
+ "name": "getStorageAt",
583
+ "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
584
+ "stateMutability": "view",
585
+ "type": "function"
586
+ },
587
+ {
588
+ "inputs": [],
589
+ "name": "getThreshold",
590
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
591
+ "stateMutability": "view",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ { "internalType": "address", "name": "to", "type": "address" },
597
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
598
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
599
+ {
600
+ "internalType": "enum Enum.Operation",
601
+ "name": "operation",
602
+ "type": "uint8"
603
+ },
604
+ { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" },
605
+ { "internalType": "uint256", "name": "baseGas", "type": "uint256" },
606
+ { "internalType": "uint256", "name": "gasPrice", "type": "uint256" },
607
+ { "internalType": "address", "name": "gasToken", "type": "address" },
608
+ {
609
+ "internalType": "address",
610
+ "name": "refundReceiver",
611
+ "type": "address"
612
+ },
613
+ { "internalType": "uint256", "name": "_nonce", "type": "uint256" }
614
+ ],
615
+ "name": "getTransactionHash",
616
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
617
+ "stateMutability": "view",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ { "internalType": "address", "name": "module", "type": "address" }
623
+ ],
624
+ "name": "isModuleEnabled",
625
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
626
+ "stateMutability": "view",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "inputs": [
631
+ { "internalType": "address", "name": "owner", "type": "address" }
632
+ ],
633
+ "name": "isOwner",
634
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
635
+ "stateMutability": "view",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [],
640
+ "name": "nonce",
641
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
642
+ "stateMutability": "view",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [
647
+ { "internalType": "address", "name": "prevOwner", "type": "address" },
648
+ { "internalType": "address", "name": "owner", "type": "address" },
649
+ { "internalType": "uint256", "name": "_threshold", "type": "uint256" }
650
+ ],
651
+ "name": "removeOwner",
652
+ "outputs": [],
653
+ "stateMutability": "nonpayable",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ { "internalType": "address", "name": "to", "type": "address" },
659
+ { "internalType": "uint256", "name": "value", "type": "uint256" },
660
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
661
+ {
662
+ "internalType": "enum Enum.Operation",
663
+ "name": "operation",
664
+ "type": "uint8"
665
+ }
666
+ ],
667
+ "name": "requiredTxGas",
668
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
669
+ "stateMutability": "nonpayable",
670
+ "type": "function"
671
+ },
672
+ {
673
+ "inputs": [
674
+ { "internalType": "address", "name": "handler", "type": "address" }
675
+ ],
676
+ "name": "setFallbackHandler",
677
+ "outputs": [],
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [
683
+ { "internalType": "address", "name": "guard", "type": "address" }
684
+ ],
685
+ "name": "setGuard",
686
+ "outputs": [],
687
+ "stateMutability": "nonpayable",
688
+ "type": "function"
689
+ },
690
+ {
691
+ "inputs": [
692
+ { "internalType": "address[]", "name": "_owners", "type": "address[]" },
693
+ { "internalType": "uint256", "name": "_threshold", "type": "uint256" },
694
+ { "internalType": "address", "name": "to", "type": "address" },
695
+ { "internalType": "bytes", "name": "data", "type": "bytes" },
696
+ {
697
+ "internalType": "address",
698
+ "name": "fallbackHandler",
699
+ "type": "address"
700
+ },
701
+ { "internalType": "address", "name": "paymentToken", "type": "address" },
702
+ { "internalType": "uint256", "name": "payment", "type": "uint256" },
703
+ {
704
+ "internalType": "address payable",
705
+ "name": "paymentReceiver",
706
+ "type": "address"
707
+ }
708
+ ],
709
+ "name": "setup",
710
+ "outputs": [],
711
+ "stateMutability": "nonpayable",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
716
+ "name": "signedMessages",
717
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
718
+ "stateMutability": "view",
719
+ "type": "function"
720
+ },
721
+ {
722
+ "inputs": [
723
+ {
724
+ "internalType": "address",
725
+ "name": "targetContract",
726
+ "type": "address"
727
+ },
728
+ { "internalType": "bytes", "name": "calldataPayload", "type": "bytes" }
729
+ ],
730
+ "name": "simulateAndRevert",
731
+ "outputs": [],
732
+ "stateMutability": "nonpayable",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [
737
+ { "internalType": "address", "name": "prevOwner", "type": "address" },
738
+ { "internalType": "address", "name": "oldOwner", "type": "address" },
739
+ { "internalType": "address", "name": "newOwner", "type": "address" }
740
+ ],
741
+ "name": "swapOwner",
742
+ "outputs": [],
743
+ "stateMutability": "nonpayable",
744
+ "type": "function"
745
+ },
746
+ { "stateMutability": "payable", "type": "receive" }
747
+ ]