@mantleio/viem 0.0.1-alpha.0

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 (453) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +54 -0
  3. package/dist/cjs/abis.js +3338 -0
  4. package/dist/cjs/abis.js.map +1 -0
  5. package/dist/cjs/actions/buildProveWithdrawal.js +55 -0
  6. package/dist/cjs/actions/buildProveWithdrawal.js.map +1 -0
  7. package/dist/cjs/actions/depositERC20.js +37 -0
  8. package/dist/cjs/actions/depositERC20.js.map +1 -0
  9. package/dist/cjs/actions/depositETH.js +36 -0
  10. package/dist/cjs/actions/depositETH.js.map +1 -0
  11. package/dist/cjs/actions/depositMNT.js +35 -0
  12. package/dist/cjs/actions/depositMNT.js.map +1 -0
  13. package/dist/cjs/actions/estimateDepositERC20Gas.js +38 -0
  14. package/dist/cjs/actions/estimateDepositERC20Gas.js.map +1 -0
  15. package/dist/cjs/actions/estimateDepositETHGas.js +37 -0
  16. package/dist/cjs/actions/estimateDepositETHGas.js.map +1 -0
  17. package/dist/cjs/actions/estimateDepositMNTGas.js +36 -0
  18. package/dist/cjs/actions/estimateDepositMNTGas.js.map +1 -0
  19. package/dist/cjs/actions/estimateFinalizeWithdrawalGas.js +29 -0
  20. package/dist/cjs/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
  21. package/dist/cjs/actions/estimateInitiateERC20WithdrawalGas.js +30 -0
  22. package/dist/cjs/actions/estimateInitiateERC20WithdrawalGas.js.map +1 -0
  23. package/dist/cjs/actions/estimateInitiateETHWithdrawalGas.js +29 -0
  24. package/dist/cjs/actions/estimateInitiateETHWithdrawalGas.js.map +1 -0
  25. package/dist/cjs/actions/estimateInitiateMNTWithdrawalGas.js +30 -0
  26. package/dist/cjs/actions/estimateInitiateMNTWithdrawalGas.js.map +1 -0
  27. package/dist/cjs/actions/estimateProveWithdrawalGas.js +29 -0
  28. package/dist/cjs/actions/estimateProveWithdrawalGas.js.map +1 -0
  29. package/dist/cjs/actions/finalizeWithdrawal.js +28 -0
  30. package/dist/cjs/actions/finalizeWithdrawal.js.map +1 -0
  31. package/dist/cjs/actions/getL2Output.js +31 -0
  32. package/dist/cjs/actions/getL2Output.js.map +1 -0
  33. package/dist/cjs/actions/getPortalVersion.js +24 -0
  34. package/dist/cjs/actions/getPortalVersion.js.map +1 -0
  35. package/dist/cjs/actions/getTimeToFinalize.js +46 -0
  36. package/dist/cjs/actions/getTimeToFinalize.js.map +1 -0
  37. package/dist/cjs/actions/getTimeToNextL2Output.js +62 -0
  38. package/dist/cjs/actions/getTimeToNextL2Output.js.map +1 -0
  39. package/dist/cjs/actions/getTimeToProve.js +12 -0
  40. package/dist/cjs/actions/getTimeToProve.js.map +1 -0
  41. package/dist/cjs/actions/getWithdrawalStatus.js +133 -0
  42. package/dist/cjs/actions/getWithdrawalStatus.js.map +1 -0
  43. package/dist/cjs/actions/initiateERC20Withdrawal.js +29 -0
  44. package/dist/cjs/actions/initiateERC20Withdrawal.js.map +1 -0
  45. package/dist/cjs/actions/initiateETHWithdrawal.js +28 -0
  46. package/dist/cjs/actions/initiateETHWithdrawal.js.map +1 -0
  47. package/dist/cjs/actions/initiateMNTWithdrawal.js +29 -0
  48. package/dist/cjs/actions/initiateMNTWithdrawal.js.map +1 -0
  49. package/dist/cjs/actions/proveWithdrawal.js +28 -0
  50. package/dist/cjs/actions/proveWithdrawal.js.map +1 -0
  51. package/dist/cjs/actions/waitForNextL2Output.js +31 -0
  52. package/dist/cjs/actions/waitForNextL2Output.js.map +1 -0
  53. package/dist/cjs/actions/waitToFinalize.js +10 -0
  54. package/dist/cjs/actions/waitToFinalize.js.map +1 -0
  55. package/dist/cjs/actions/waitToProve.js +24 -0
  56. package/dist/cjs/actions/waitToProve.js.map +1 -0
  57. package/dist/cjs/chainConfig.js +12 -0
  58. package/dist/cjs/chainConfig.js.map +1 -0
  59. package/dist/cjs/chains/index.js +8 -0
  60. package/dist/cjs/chains/index.js.map +1 -0
  61. package/dist/cjs/chains/mantle.js +53 -0
  62. package/dist/cjs/chains/mantle.js.map +1 -0
  63. package/dist/cjs/chains/mantleSepoliaTestnet.js +54 -0
  64. package/dist/cjs/chains/mantleSepoliaTestnet.js.map +1 -0
  65. package/dist/cjs/contracts.js +16 -0
  66. package/dist/cjs/contracts.js.map +1 -0
  67. package/dist/cjs/decorators/publicL1.js +38 -0
  68. package/dist/cjs/decorators/publicL1.js.map +1 -0
  69. package/dist/cjs/decorators/publicL2.js +18 -0
  70. package/dist/cjs/decorators/publicL2.js.map +1 -0
  71. package/dist/cjs/decorators/walletL1.js +20 -0
  72. package/dist/cjs/decorators/walletL1.js.map +1 -0
  73. package/dist/cjs/decorators/walletL2.js +16 -0
  74. package/dist/cjs/decorators/walletL2.js.map +1 -0
  75. package/dist/cjs/errors/utils.js +3 -0
  76. package/dist/cjs/errors/utils.js.map +1 -0
  77. package/dist/cjs/errors/withdrawal.js +17 -0
  78. package/dist/cjs/errors/withdrawal.js.map +1 -0
  79. package/dist/cjs/formatters.js +51 -0
  80. package/dist/cjs/formatters.js.map +1 -0
  81. package/dist/cjs/index.js +59 -0
  82. package/dist/cjs/index.js.map +1 -0
  83. package/dist/cjs/package.json +1 -0
  84. package/dist/cjs/parsers.js +58 -0
  85. package/dist/cjs/parsers.js.map +1 -0
  86. package/dist/cjs/serializers.js +53 -0
  87. package/dist/cjs/serializers.js.map +1 -0
  88. package/dist/cjs/types/account.js +3 -0
  89. package/dist/cjs/types/account.js.map +1 -0
  90. package/dist/cjs/types/block.js +3 -0
  91. package/dist/cjs/types/block.js.map +1 -0
  92. package/dist/cjs/types/chain.js +3 -0
  93. package/dist/cjs/types/chain.js.map +1 -0
  94. package/dist/cjs/types/contract.js +3 -0
  95. package/dist/cjs/types/contract.js.map +1 -0
  96. package/dist/cjs/types/deposit.js +3 -0
  97. package/dist/cjs/types/deposit.js.map +1 -0
  98. package/dist/cjs/types/l1Actions.js +8 -0
  99. package/dist/cjs/types/l1Actions.js.map +1 -0
  100. package/dist/cjs/types/l2Actions.js +11 -0
  101. package/dist/cjs/types/l2Actions.js.map +1 -0
  102. package/dist/cjs/types/transaction.js +3 -0
  103. package/dist/cjs/types/transaction.js.map +1 -0
  104. package/dist/cjs/types/withdrawal.js +3 -0
  105. package/dist/cjs/types/withdrawal.js.map +1 -0
  106. package/dist/cjs/utils/extractTransactionDepositedLogs.js +13 -0
  107. package/dist/cjs/utils/extractTransactionDepositedLogs.js.map +1 -0
  108. package/dist/cjs/utils/extractWithdrawalMessageLogs.js +13 -0
  109. package/dist/cjs/utils/extractWithdrawalMessageLogs.js.map +1 -0
  110. package/dist/cjs/utils/getL2TransactionHash.js +29 -0
  111. package/dist/cjs/utils/getL2TransactionHash.js.map +1 -0
  112. package/dist/cjs/utils/getL2TransactionHashes.js +10 -0
  113. package/dist/cjs/utils/getL2TransactionHashes.js.map +1 -0
  114. package/dist/cjs/utils/getSourceHash.js +17 -0
  115. package/dist/cjs/utils/getSourceHash.js.map +1 -0
  116. package/dist/cjs/utils/getWithdrawalHashStorageSlot.js +9 -0
  117. package/dist/cjs/utils/getWithdrawalHashStorageSlot.js.map +1 -0
  118. package/dist/cjs/utils/getWithdrawals.js +9 -0
  119. package/dist/cjs/utils/getWithdrawals.js.map +1 -0
  120. package/dist/cjs/utils/opaqueDataToDepositData.js +32 -0
  121. package/dist/cjs/utils/opaqueDataToDepositData.js.map +1 -0
  122. package/dist/cjs/utils/parseDepositRequest.js +43 -0
  123. package/dist/cjs/utils/parseDepositRequest.js.map +1 -0
  124. package/dist/cjs/utils/parseInitWithdrawRequest.js +55 -0
  125. package/dist/cjs/utils/parseInitWithdrawRequest.js.map +1 -0
  126. package/dist/cjs/utils/poll.js +26 -0
  127. package/dist/cjs/utils/poll.js.map +1 -0
  128. package/dist/cjs/utils/promise/withCache.js +47 -0
  129. package/dist/cjs/utils/promise/withCache.js.map +1 -0
  130. package/dist/cjs/utils/wait.js +7 -0
  131. package/dist/cjs/utils/wait.js.map +1 -0
  132. package/dist/esm/abis.js +3335 -0
  133. package/dist/esm/abis.js.map +1 -0
  134. package/dist/esm/actions/buildProveWithdrawal.js +67 -0
  135. package/dist/esm/actions/buildProveWithdrawal.js.map +1 -0
  136. package/dist/esm/actions/depositERC20.js +39 -0
  137. package/dist/esm/actions/depositERC20.js.map +1 -0
  138. package/dist/esm/actions/depositETH.js +38 -0
  139. package/dist/esm/actions/depositETH.js.map +1 -0
  140. package/dist/esm/actions/depositMNT.js +37 -0
  141. package/dist/esm/actions/depositMNT.js.map +1 -0
  142. package/dist/esm/actions/estimateDepositERC20Gas.js +43 -0
  143. package/dist/esm/actions/estimateDepositERC20Gas.js.map +1 -0
  144. package/dist/esm/actions/estimateDepositETHGas.js +43 -0
  145. package/dist/esm/actions/estimateDepositETHGas.js.map +1 -0
  146. package/dist/esm/actions/estimateDepositMNTGas.js +41 -0
  147. package/dist/esm/actions/estimateDepositMNTGas.js.map +1 -0
  148. package/dist/esm/actions/estimateFinalizeWithdrawalGas.js +34 -0
  149. package/dist/esm/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
  150. package/dist/esm/actions/estimateInitiateERC20WithdrawalGas.js +35 -0
  151. package/dist/esm/actions/estimateInitiateERC20WithdrawalGas.js.map +1 -0
  152. package/dist/esm/actions/estimateInitiateETHWithdrawalGas.js +34 -0
  153. package/dist/esm/actions/estimateInitiateETHWithdrawalGas.js.map +1 -0
  154. package/dist/esm/actions/estimateInitiateMNTWithdrawalGas.js +35 -0
  155. package/dist/esm/actions/estimateInitiateMNTWithdrawalGas.js.map +1 -0
  156. package/dist/esm/actions/estimateProveWithdrawalGas.js +34 -0
  157. package/dist/esm/actions/estimateProveWithdrawalGas.js.map +1 -0
  158. package/dist/esm/actions/finalizeWithdrawal.js +30 -0
  159. package/dist/esm/actions/finalizeWithdrawal.js.map +1 -0
  160. package/dist/esm/actions/getL2Output.js +33 -0
  161. package/dist/esm/actions/getL2Output.js.map +1 -0
  162. package/dist/esm/actions/getPortalVersion.js +26 -0
  163. package/dist/esm/actions/getPortalVersion.js.map +1 -0
  164. package/dist/esm/actions/getTimeToFinalize.js +48 -0
  165. package/dist/esm/actions/getTimeToFinalize.js.map +1 -0
  166. package/dist/esm/actions/getTimeToNextL2Output.js +68 -0
  167. package/dist/esm/actions/getTimeToNextL2Output.js.map +1 -0
  168. package/dist/esm/actions/getTimeToProve.js +14 -0
  169. package/dist/esm/actions/getTimeToProve.js.map +1 -0
  170. package/dist/esm/actions/getWithdrawalStatus.js +138 -0
  171. package/dist/esm/actions/getWithdrawalStatus.js.map +1 -0
  172. package/dist/esm/actions/initiateERC20Withdrawal.js +31 -0
  173. package/dist/esm/actions/initiateERC20Withdrawal.js.map +1 -0
  174. package/dist/esm/actions/initiateETHWithdrawal.js +30 -0
  175. package/dist/esm/actions/initiateETHWithdrawal.js.map +1 -0
  176. package/dist/esm/actions/initiateMNTWithdrawal.js +31 -0
  177. package/dist/esm/actions/initiateMNTWithdrawal.js.map +1 -0
  178. package/dist/esm/actions/proveWithdrawal.js +30 -0
  179. package/dist/esm/actions/proveWithdrawal.js.map +1 -0
  180. package/dist/esm/actions/waitForNextL2Output.js +33 -0
  181. package/dist/esm/actions/waitForNextL2Output.js.map +1 -0
  182. package/dist/esm/actions/waitToFinalize.js +11 -0
  183. package/dist/esm/actions/waitToFinalize.js.map +1 -0
  184. package/dist/esm/actions/waitToProve.js +26 -0
  185. package/dist/esm/actions/waitToProve.js.map +1 -0
  186. package/dist/esm/chainConfig.js +9 -0
  187. package/dist/esm/chainConfig.js.map +1 -0
  188. package/dist/esm/chains/index.js +3 -0
  189. package/dist/esm/chains/index.js.map +1 -0
  190. package/dist/esm/chains/mantle.js +50 -0
  191. package/dist/esm/chains/mantle.js.map +1 -0
  192. package/dist/esm/chains/mantleSepoliaTestnet.js +51 -0
  193. package/dist/esm/chains/mantleSepoliaTestnet.js.map +1 -0
  194. package/dist/esm/contracts.js +13 -0
  195. package/dist/esm/contracts.js.map +1 -0
  196. package/dist/esm/decorators/publicL1.js +35 -0
  197. package/dist/esm/decorators/publicL1.js.map +1 -0
  198. package/dist/esm/decorators/publicL2.js +15 -0
  199. package/dist/esm/decorators/publicL2.js.map +1 -0
  200. package/dist/esm/decorators/walletL1.js +17 -0
  201. package/dist/esm/decorators/walletL1.js.map +1 -0
  202. package/dist/esm/decorators/walletL2.js +13 -0
  203. package/dist/esm/decorators/walletL2.js.map +1 -0
  204. package/dist/esm/errors/utils.js +2 -0
  205. package/dist/esm/errors/utils.js.map +1 -0
  206. package/dist/esm/errors/withdrawal.js +12 -0
  207. package/dist/esm/errors/withdrawal.js.map +1 -0
  208. package/dist/esm/formatters.js +48 -0
  209. package/dist/esm/formatters.js.map +1 -0
  210. package/dist/esm/index.js +29 -0
  211. package/dist/esm/index.js.map +1 -0
  212. package/dist/esm/package.json +1 -0
  213. package/dist/esm/parsers.js +54 -0
  214. package/dist/esm/parsers.js.map +1 -0
  215. package/dist/esm/serializers.js +48 -0
  216. package/dist/esm/serializers.js.map +1 -0
  217. package/dist/esm/types/account.js +2 -0
  218. package/dist/esm/types/account.js.map +1 -0
  219. package/dist/esm/types/block.js +2 -0
  220. package/dist/esm/types/block.js.map +1 -0
  221. package/dist/esm/types/chain.js +2 -0
  222. package/dist/esm/types/chain.js.map +1 -0
  223. package/dist/esm/types/contract.js +2 -0
  224. package/dist/esm/types/contract.js.map +1 -0
  225. package/dist/esm/types/deposit.js +2 -0
  226. package/dist/esm/types/deposit.js.map +1 -0
  227. package/dist/esm/types/l1Actions.js +5 -0
  228. package/dist/esm/types/l1Actions.js.map +1 -0
  229. package/dist/esm/types/l2Actions.js +7 -0
  230. package/dist/esm/types/l2Actions.js.map +1 -0
  231. package/dist/esm/types/transaction.js +2 -0
  232. package/dist/esm/types/transaction.js.map +1 -0
  233. package/dist/esm/types/withdrawal.js +2 -0
  234. package/dist/esm/types/withdrawal.js.map +1 -0
  235. package/dist/esm/utils/extractTransactionDepositedLogs.js +10 -0
  236. package/dist/esm/utils/extractTransactionDepositedLogs.js.map +1 -0
  237. package/dist/esm/utils/extractWithdrawalMessageLogs.js +10 -0
  238. package/dist/esm/utils/extractWithdrawalMessageLogs.js.map +1 -0
  239. package/dist/esm/utils/getL2TransactionHash.js +26 -0
  240. package/dist/esm/utils/getL2TransactionHash.js.map +1 -0
  241. package/dist/esm/utils/getL2TransactionHashes.js +7 -0
  242. package/dist/esm/utils/getL2TransactionHashes.js.map +1 -0
  243. package/dist/esm/utils/getSourceHash.js +14 -0
  244. package/dist/esm/utils/getSourceHash.js.map +1 -0
  245. package/dist/esm/utils/getWithdrawalHashStorageSlot.js +6 -0
  246. package/dist/esm/utils/getWithdrawalHashStorageSlot.js.map +1 -0
  247. package/dist/esm/utils/getWithdrawals.js +6 -0
  248. package/dist/esm/utils/getWithdrawals.js.map +1 -0
  249. package/dist/esm/utils/opaqueDataToDepositData.js +29 -0
  250. package/dist/esm/utils/opaqueDataToDepositData.js.map +1 -0
  251. package/dist/esm/utils/parseDepositRequest.js +39 -0
  252. package/dist/esm/utils/parseDepositRequest.js.map +1 -0
  253. package/dist/esm/utils/parseInitWithdrawRequest.js +51 -0
  254. package/dist/esm/utils/parseInitWithdrawRequest.js.map +1 -0
  255. package/dist/esm/utils/poll.js +26 -0
  256. package/dist/esm/utils/poll.js.map +1 -0
  257. package/dist/esm/utils/promise/withCache.js +57 -0
  258. package/dist/esm/utils/promise/withCache.js.map +1 -0
  259. package/dist/esm/utils/wait.js +4 -0
  260. package/dist/esm/utils/wait.js.map +1 -0
  261. package/dist/types/abis.d.ts +3110 -0
  262. package/dist/types/abis.d.ts.map +1 -0
  263. package/dist/types/actions/buildProveWithdrawal.d.ts +34 -0
  264. package/dist/types/actions/buildProveWithdrawal.d.ts.map +1 -0
  265. package/dist/types/actions/depositERC20.d.ts +29 -0
  266. package/dist/types/actions/depositERC20.d.ts.map +1 -0
  267. package/dist/types/actions/depositETH.d.ts +29 -0
  268. package/dist/types/actions/depositETH.d.ts.map +1 -0
  269. package/dist/types/actions/depositMNT.d.ts +29 -0
  270. package/dist/types/actions/depositMNT.d.ts.map +1 -0
  271. package/dist/types/actions/estimateDepositERC20Gas.d.ts +26 -0
  272. package/dist/types/actions/estimateDepositERC20Gas.d.ts.map +1 -0
  273. package/dist/types/actions/estimateDepositETHGas.d.ts +26 -0
  274. package/dist/types/actions/estimateDepositETHGas.d.ts.map +1 -0
  275. package/dist/types/actions/estimateDepositMNTGas.d.ts +26 -0
  276. package/dist/types/actions/estimateDepositMNTGas.d.ts.map +1 -0
  277. package/dist/types/actions/estimateFinalizeWithdrawalGas.d.ts +26 -0
  278. package/dist/types/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -0
  279. package/dist/types/actions/estimateInitiateERC20WithdrawalGas.d.ts +25 -0
  280. package/dist/types/actions/estimateInitiateERC20WithdrawalGas.d.ts.map +1 -0
  281. package/dist/types/actions/estimateInitiateETHWithdrawalGas.d.ts +25 -0
  282. package/dist/types/actions/estimateInitiateETHWithdrawalGas.d.ts.map +1 -0
  283. package/dist/types/actions/estimateInitiateMNTWithdrawalGas.d.ts +25 -0
  284. package/dist/types/actions/estimateInitiateMNTWithdrawalGas.d.ts.map +1 -0
  285. package/dist/types/actions/estimateProveWithdrawalGas.d.ts +35 -0
  286. package/dist/types/actions/estimateProveWithdrawalGas.d.ts.map +1 -0
  287. package/dist/types/actions/finalizeWithdrawal.d.ts +29 -0
  288. package/dist/types/actions/finalizeWithdrawal.d.ts.map +1 -0
  289. package/dist/types/actions/getL2Output.d.ts +24 -0
  290. package/dist/types/actions/getL2Output.d.ts.map +1 -0
  291. package/dist/types/actions/getPortalVersion.d.ts +23 -0
  292. package/dist/types/actions/getPortalVersion.d.ts.map +1 -0
  293. package/dist/types/actions/getTimeToFinalize.d.ts +26 -0
  294. package/dist/types/actions/getTimeToFinalize.d.ts.map +1 -0
  295. package/dist/types/actions/getTimeToNextL2Output.d.ts +35 -0
  296. package/dist/types/actions/getTimeToNextL2Output.d.ts.map +1 -0
  297. package/dist/types/actions/getTimeToProve.d.ts +24 -0
  298. package/dist/types/actions/getTimeToProve.d.ts.map +1 -0
  299. package/dist/types/actions/getWithdrawalStatus.d.ts +22 -0
  300. package/dist/types/actions/getWithdrawalStatus.d.ts.map +1 -0
  301. package/dist/types/actions/initiateERC20Withdrawal.d.ts +27 -0
  302. package/dist/types/actions/initiateERC20Withdrawal.d.ts.map +1 -0
  303. package/dist/types/actions/initiateETHWithdrawal.d.ts +27 -0
  304. package/dist/types/actions/initiateETHWithdrawal.d.ts.map +1 -0
  305. package/dist/types/actions/initiateMNTWithdrawal.d.ts +27 -0
  306. package/dist/types/actions/initiateMNTWithdrawal.d.ts.map +1 -0
  307. package/dist/types/actions/proveWithdrawal.d.ts +36 -0
  308. package/dist/types/actions/proveWithdrawal.d.ts.map +1 -0
  309. package/dist/types/actions/waitForNextL2Output.d.ts +29 -0
  310. package/dist/types/actions/waitForNextL2Output.d.ts.map +1 -0
  311. package/dist/types/actions/waitToFinalize.d.ts +14 -0
  312. package/dist/types/actions/waitToFinalize.d.ts.map +1 -0
  313. package/dist/types/actions/waitToProve.d.ts +27 -0
  314. package/dist/types/actions/waitToProve.d.ts.map +1 -0
  315. package/dist/types/chainConfig.d.ts +43 -0
  316. package/dist/types/chainConfig.d.ts.map +1 -0
  317. package/dist/types/chains/index.d.ts +3 -0
  318. package/dist/types/chains/index.d.ts.map +1 -0
  319. package/dist/types/chains/mantle.d.ts +299 -0
  320. package/dist/types/chains/mantle.d.ts.map +1 -0
  321. package/dist/types/chains/mantleSepoliaTestnet.d.ts +299 -0
  322. package/dist/types/chains/mantleSepoliaTestnet.d.ts.map +1 -0
  323. package/dist/types/contracts.d.ts +21 -0
  324. package/dist/types/contracts.d.ts.map +1 -0
  325. package/dist/types/decorators/publicL1.d.ts +35 -0
  326. package/dist/types/decorators/publicL1.d.ts.map +1 -0
  327. package/dist/types/decorators/publicL2.d.ts +16 -0
  328. package/dist/types/decorators/publicL2.d.ts.map +1 -0
  329. package/dist/types/decorators/walletL1.d.ts +17 -0
  330. package/dist/types/decorators/walletL1.d.ts.map +1 -0
  331. package/dist/types/decorators/walletL2.d.ts +13 -0
  332. package/dist/types/decorators/walletL2.d.ts.map +1 -0
  333. package/dist/types/errors/utils.d.ts +4 -0
  334. package/dist/types/errors/utils.d.ts.map +1 -0
  335. package/dist/types/errors/withdrawal.d.ts +17 -0
  336. package/dist/types/errors/withdrawal.d.ts.map +1 -0
  337. package/dist/types/formatters.d.ts +20 -0
  338. package/dist/types/formatters.d.ts.map +1 -0
  339. package/dist/types/index.d.ts +30 -0
  340. package/dist/types/index.d.ts.map +1 -0
  341. package/dist/types/parsers.d.ts +8 -0
  342. package/dist/types/parsers.d.ts.map +1 -0
  343. package/dist/types/serializers.d.ts +13 -0
  344. package/dist/types/serializers.d.ts.map +1 -0
  345. package/dist/types/types/account.d.ts +7 -0
  346. package/dist/types/types/account.d.ts.map +1 -0
  347. package/dist/types/types/block.d.ts +13 -0
  348. package/dist/types/types/block.d.ts.map +1 -0
  349. package/dist/types/types/chain.d.ts +9 -0
  350. package/dist/types/types/chain.d.ts.map +1 -0
  351. package/dist/types/types/contract.d.ts +14 -0
  352. package/dist/types/types/contract.d.ts.map +1 -0
  353. package/dist/types/types/deposit.d.ts +35 -0
  354. package/dist/types/types/deposit.d.ts.map +1 -0
  355. package/dist/types/types/l1Actions.d.ts +856 -0
  356. package/dist/types/types/l1Actions.d.ts.map +1 -0
  357. package/dist/types/types/l2Actions.d.ts +3 -0
  358. package/dist/types/types/l2Actions.d.ts.map +1 -0
  359. package/dist/types/types/transaction.d.ts +58 -0
  360. package/dist/types/types/transaction.d.ts.map +1 -0
  361. package/dist/types/types/withdrawal.d.ts +39 -0
  362. package/dist/types/types/withdrawal.d.ts.map +1 -0
  363. package/dist/types/utils/extractTransactionDepositedLogs.d.ts +450 -0
  364. package/dist/types/utils/extractTransactionDepositedLogs.d.ts.map +1 -0
  365. package/dist/types/utils/extractWithdrawalMessageLogs.d.ts +160 -0
  366. package/dist/types/utils/extractWithdrawalMessageLogs.d.ts.map +1 -0
  367. package/dist/types/utils/getL2TransactionHash.d.ts +12 -0
  368. package/dist/types/utils/getL2TransactionHash.d.ts.map +1 -0
  369. package/dist/types/utils/getL2TransactionHashes.d.ts +11 -0
  370. package/dist/types/utils/getL2TransactionHashes.d.ts.map +1 -0
  371. package/dist/types/utils/getSourceHash.d.ts +25 -0
  372. package/dist/types/utils/getSourceHash.d.ts.map +1 -0
  373. package/dist/types/utils/getWithdrawalHashStorageSlot.d.ts +10 -0
  374. package/dist/types/utils/getWithdrawalHashStorageSlot.d.ts.map +1 -0
  375. package/dist/types/utils/getWithdrawals.d.ts +12 -0
  376. package/dist/types/utils/getWithdrawals.d.ts.map +1 -0
  377. package/dist/types/utils/opaqueDataToDepositData.d.ts +16 -0
  378. package/dist/types/utils/opaqueDataToDepositData.d.ts.map +1 -0
  379. package/dist/types/utils/parseDepositRequest.d.ts +11 -0
  380. package/dist/types/utils/parseDepositRequest.d.ts.map +1 -0
  381. package/dist/types/utils/parseInitWithdrawRequest.d.ts +11 -0
  382. package/dist/types/utils/parseInitWithdrawRequest.d.ts.map +1 -0
  383. package/dist/types/utils/poll.d.ts +15 -0
  384. package/dist/types/utils/poll.d.ts.map +1 -0
  385. package/dist/types/utils/promise/withCache.d.ts +41 -0
  386. package/dist/types/utils/promise/withCache.d.ts.map +1 -0
  387. package/dist/types/utils/wait.d.ts +2 -0
  388. package/dist/types/utils/wait.d.ts.map +1 -0
  389. package/package.json +113 -0
  390. package/src/mantle/abis.ts +3339 -0
  391. package/src/mantle/actions/buildProveWithdrawal.ts +150 -0
  392. package/src/mantle/actions/depositERC20.ts +103 -0
  393. package/src/mantle/actions/depositETH.ts +102 -0
  394. package/src/mantle/actions/depositMNT.ts +101 -0
  395. package/src/mantle/actions/estimateDepositERC20Gas.ts +113 -0
  396. package/src/mantle/actions/estimateDepositETHGas.ts +113 -0
  397. package/src/mantle/actions/estimateDepositMNTGas.ts +111 -0
  398. package/src/mantle/actions/estimateFinalizeWithdrawalGas.ts +102 -0
  399. package/src/mantle/actions/estimateInitiateERC20WithdrawalGas.ts +106 -0
  400. package/src/mantle/actions/estimateInitiateETHWithdrawalGas.ts +105 -0
  401. package/src/mantle/actions/estimateInitiateMNTWithdrawalGas.ts +106 -0
  402. package/src/mantle/actions/estimateProveWithdrawalGas.ts +114 -0
  403. package/src/mantle/actions/finalizeWithdrawal.ts +95 -0
  404. package/src/mantle/actions/getL2Output.ts +75 -0
  405. package/src/mantle/actions/getPortalVersion.ts +57 -0
  406. package/src/mantle/actions/getTimeToFinalize.ts +85 -0
  407. package/src/mantle/actions/getTimeToNextL2Output.ts +132 -0
  408. package/src/mantle/actions/getTimeToProve.ts +58 -0
  409. package/src/mantle/actions/getWithdrawalStatus.ts +225 -0
  410. package/src/mantle/actions/initiateERC20Withdrawal.ts +93 -0
  411. package/src/mantle/actions/initiateETHWithdrawal.ts +90 -0
  412. package/src/mantle/actions/initiateMNTWithdrawal.ts +91 -0
  413. package/src/mantle/actions/proveWithdrawal.ts +107 -0
  414. package/src/mantle/actions/waitForNextL2Output.ts +87 -0
  415. package/src/mantle/actions/waitToFinalize.ts +33 -0
  416. package/src/mantle/actions/waitToProve.ts +83 -0
  417. package/src/mantle/chainConfig.ts +9 -0
  418. package/src/mantle/chains/index.ts +2 -0
  419. package/src/mantle/chains/mantle.ts +51 -0
  420. package/src/mantle/chains/mantleSepoliaTestnet.ts +52 -0
  421. package/src/mantle/contracts.ts +14 -0
  422. package/src/mantle/decorators/publicL1.ts +182 -0
  423. package/src/mantle/decorators/publicL2.ts +96 -0
  424. package/src/mantle/decorators/walletL1.ts +67 -0
  425. package/src/mantle/decorators/walletL2.ts +55 -0
  426. package/src/mantle/errors/utils.ts +1 -0
  427. package/src/mantle/errors/withdrawal.ts +24 -0
  428. package/src/mantle/formatters.ts +64 -0
  429. package/src/mantle/index.ts +179 -0
  430. package/src/mantle/parsers.ts +97 -0
  431. package/src/mantle/serializers.ts +106 -0
  432. package/src/mantle/types/account.ts +25 -0
  433. package/src/mantle/types/block.ts +34 -0
  434. package/src/mantle/types/chain.ts +10 -0
  435. package/src/mantle/types/contract.ts +26 -0
  436. package/src/mantle/types/deposit.ts +40 -0
  437. package/src/mantle/types/l1Actions.ts +21 -0
  438. package/src/mantle/types/l2Actions.ts +6 -0
  439. package/src/mantle/types/transaction.ts +108 -0
  440. package/src/mantle/types/withdrawal.ts +45 -0
  441. package/src/mantle/utils/extractTransactionDepositedLogs.ts +33 -0
  442. package/src/mantle/utils/extractWithdrawalMessageLogs.ts +33 -0
  443. package/src/mantle/utils/getL2TransactionHash.ts +51 -0
  444. package/src/mantle/utils/getL2TransactionHashes.ts +21 -0
  445. package/src/mantle/utils/getSourceHash.ts +62 -0
  446. package/src/mantle/utils/getWithdrawalHashStorageSlot.ts +27 -0
  447. package/src/mantle/utils/getWithdrawals.ts +25 -0
  448. package/src/mantle/utils/opaqueDataToDepositData.ts +58 -0
  449. package/src/mantle/utils/parseDepositRequest.ts +67 -0
  450. package/src/mantle/utils/parseInitWithdrawRequest.ts +68 -0
  451. package/src/mantle/utils/poll.ts +45 -0
  452. package/src/mantle/utils/promise/withCache.ts +81 -0
  453. package/src/mantle/utils/wait.ts +3 -0
@@ -0,0 +1,3335 @@
1
+ export const l2OutputOracleAbi = [
2
+ {
3
+ inputs: [
4
+ { internalType: "uint256", name: "_submissionInterval", type: "uint256" },
5
+ { internalType: "uint256", name: "_l2BlockTime", type: "uint256" },
6
+ {
7
+ internalType: "uint256",
8
+ name: "_startingBlockNumber",
9
+ type: "uint256",
10
+ },
11
+ { internalType: "uint256", name: "_startingTimestamp", type: "uint256" },
12
+ { internalType: "address", name: "_proposer", type: "address" },
13
+ { internalType: "address", name: "_challenger", type: "address" },
14
+ {
15
+ internalType: "uint256",
16
+ name: "_finalizationPeriodSeconds",
17
+ type: "uint256",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ { indexed: false, internalType: "uint8", name: "version", type: "uint8" },
27
+ ],
28
+ name: "Initialized",
29
+ type: "event",
30
+ },
31
+ {
32
+ anonymous: false,
33
+ inputs: [
34
+ {
35
+ indexed: true,
36
+ internalType: "bytes32",
37
+ name: "outputRoot",
38
+ type: "bytes32",
39
+ },
40
+ {
41
+ indexed: true,
42
+ internalType: "uint256",
43
+ name: "l2OutputIndex",
44
+ type: "uint256",
45
+ },
46
+ {
47
+ indexed: true,
48
+ internalType: "uint256",
49
+ name: "l2BlockNumber",
50
+ type: "uint256",
51
+ },
52
+ {
53
+ indexed: false,
54
+ internalType: "uint256",
55
+ name: "l1Timestamp",
56
+ type: "uint256",
57
+ },
58
+ ],
59
+ name: "OutputProposed",
60
+ type: "event",
61
+ },
62
+ {
63
+ anonymous: false,
64
+ inputs: [
65
+ {
66
+ indexed: true,
67
+ internalType: "uint256",
68
+ name: "prevNextOutputIndex",
69
+ type: "uint256",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "uint256",
74
+ name: "newNextOutputIndex",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ name: "OutputsDeleted",
79
+ type: "event",
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: "CHALLENGER",
84
+ outputs: [{ internalType: "address", name: "", type: "address" }],
85
+ stateMutability: "view",
86
+ type: "function",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "FINALIZATION_PERIOD_SECONDS",
91
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
92
+ stateMutability: "view",
93
+ type: "function",
94
+ },
95
+ {
96
+ inputs: [],
97
+ name: "L2_BLOCK_TIME",
98
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
99
+ stateMutability: "view",
100
+ type: "function",
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: "PROPOSER",
105
+ outputs: [{ internalType: "address", name: "", type: "address" }],
106
+ stateMutability: "view",
107
+ type: "function",
108
+ },
109
+ {
110
+ inputs: [],
111
+ name: "SUBMISSION_INTERVAL",
112
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
113
+ stateMutability: "view",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ { internalType: "uint256", name: "_l2BlockNumber", type: "uint256" },
119
+ ],
120
+ name: "computeL2Timestamp",
121
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
122
+ stateMutability: "view",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [
127
+ { internalType: "uint256", name: "_l2OutputIndex", type: "uint256" },
128
+ ],
129
+ name: "deleteL2Outputs",
130
+ outputs: [],
131
+ stateMutability: "nonpayable",
132
+ type: "function",
133
+ },
134
+ {
135
+ inputs: [
136
+ { internalType: "uint256", name: "_l2OutputIndex", type: "uint256" },
137
+ ],
138
+ name: "getL2Output",
139
+ outputs: [
140
+ {
141
+ components: [
142
+ { internalType: "bytes32", name: "outputRoot", type: "bytes32" },
143
+ { internalType: "uint128", name: "timestamp", type: "uint128" },
144
+ { internalType: "uint128", name: "l2BlockNumber", type: "uint128" },
145
+ ],
146
+ internalType: "struct Types.OutputProposal",
147
+ name: "",
148
+ type: "tuple",
149
+ },
150
+ ],
151
+ stateMutability: "view",
152
+ type: "function",
153
+ },
154
+ {
155
+ inputs: [
156
+ { internalType: "uint256", name: "_l2BlockNumber", type: "uint256" },
157
+ ],
158
+ name: "getL2OutputAfter",
159
+ outputs: [
160
+ {
161
+ components: [
162
+ { internalType: "bytes32", name: "outputRoot", type: "bytes32" },
163
+ { internalType: "uint128", name: "timestamp", type: "uint128" },
164
+ { internalType: "uint128", name: "l2BlockNumber", type: "uint128" },
165
+ ],
166
+ internalType: "struct Types.OutputProposal",
167
+ name: "",
168
+ type: "tuple",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ { internalType: "uint256", name: "_l2BlockNumber", type: "uint256" },
177
+ ],
178
+ name: "getL2OutputIndexAfter",
179
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
180
+ stateMutability: "view",
181
+ type: "function",
182
+ },
183
+ {
184
+ inputs: [
185
+ {
186
+ internalType: "uint256",
187
+ name: "_startingBlockNumber",
188
+ type: "uint256",
189
+ },
190
+ { internalType: "uint256", name: "_startingTimestamp", type: "uint256" },
191
+ ],
192
+ name: "initialize",
193
+ outputs: [],
194
+ stateMutability: "nonpayable",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [],
199
+ name: "latestBlockNumber",
200
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
201
+ stateMutability: "view",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "latestOutputIndex",
207
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
208
+ stateMutability: "view",
209
+ type: "function",
210
+ },
211
+ {
212
+ inputs: [],
213
+ name: "nextBlockNumber",
214
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
215
+ stateMutability: "view",
216
+ type: "function",
217
+ },
218
+ {
219
+ inputs: [],
220
+ name: "nextOutputIndex",
221
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
222
+ stateMutability: "view",
223
+ type: "function",
224
+ },
225
+ {
226
+ inputs: [
227
+ { internalType: "bytes32", name: "_outputRoot", type: "bytes32" },
228
+ { internalType: "uint256", name: "_l2BlockNumber", type: "uint256" },
229
+ { internalType: "bytes32", name: "_l1BlockHash", type: "bytes32" },
230
+ { internalType: "uint256", name: "_l1BlockNumber", type: "uint256" },
231
+ ],
232
+ name: "proposeL2Output",
233
+ outputs: [],
234
+ stateMutability: "payable",
235
+ type: "function",
236
+ },
237
+ {
238
+ inputs: [],
239
+ name: "startingBlockNumber",
240
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
241
+ stateMutability: "view",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [],
246
+ name: "startingTimestamp",
247
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [],
253
+ name: "version",
254
+ outputs: [{ internalType: "string", name: "", type: "string" }],
255
+ stateMutability: "view",
256
+ type: "function",
257
+ },
258
+ ];
259
+ export const l2ToL1MessagePasserAbi = [
260
+ {
261
+ inputs: [
262
+ {
263
+ internalType: "address",
264
+ name: "_l1mnt",
265
+ type: "address",
266
+ },
267
+ ],
268
+ stateMutability: "nonpayable",
269
+ type: "constructor",
270
+ },
271
+ {
272
+ anonymous: false,
273
+ inputs: [
274
+ {
275
+ indexed: true,
276
+ internalType: "uint256",
277
+ name: "nonce",
278
+ type: "uint256",
279
+ },
280
+ {
281
+ indexed: true,
282
+ internalType: "address",
283
+ name: "sender",
284
+ type: "address",
285
+ },
286
+ {
287
+ indexed: true,
288
+ internalType: "address",
289
+ name: "target",
290
+ type: "address",
291
+ },
292
+ {
293
+ indexed: false,
294
+ internalType: "uint256",
295
+ name: "mntValue",
296
+ type: "uint256",
297
+ },
298
+ {
299
+ indexed: false,
300
+ internalType: "uint256",
301
+ name: "ethValue",
302
+ type: "uint256",
303
+ },
304
+ {
305
+ indexed: false,
306
+ internalType: "uint256",
307
+ name: "gasLimit",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ indexed: false,
312
+ internalType: "bytes",
313
+ name: "data",
314
+ type: "bytes",
315
+ },
316
+ {
317
+ indexed: false,
318
+ internalType: "bytes32",
319
+ name: "withdrawalHash",
320
+ type: "bytes32",
321
+ },
322
+ ],
323
+ name: "MessagePassed",
324
+ type: "event",
325
+ },
326
+ {
327
+ anonymous: false,
328
+ inputs: [
329
+ {
330
+ indexed: true,
331
+ internalType: "uint256",
332
+ name: "amount",
333
+ type: "uint256",
334
+ },
335
+ ],
336
+ name: "WithdrawerBalanceBurnt",
337
+ type: "event",
338
+ },
339
+ {
340
+ inputs: [],
341
+ name: "L1_MNT_ADDRESS",
342
+ outputs: [
343
+ {
344
+ internalType: "address",
345
+ name: "",
346
+ type: "address",
347
+ },
348
+ ],
349
+ stateMutability: "view",
350
+ type: "function",
351
+ },
352
+ {
353
+ inputs: [],
354
+ name: "MESSAGE_VERSION",
355
+ outputs: [
356
+ {
357
+ internalType: "uint16",
358
+ name: "",
359
+ type: "uint16",
360
+ },
361
+ ],
362
+ stateMutability: "view",
363
+ type: "function",
364
+ },
365
+ {
366
+ inputs: [],
367
+ name: "burn",
368
+ outputs: [],
369
+ stateMutability: "nonpayable",
370
+ type: "function",
371
+ },
372
+ {
373
+ inputs: [
374
+ {
375
+ internalType: "uint256",
376
+ name: "_ethValue",
377
+ type: "uint256",
378
+ },
379
+ {
380
+ internalType: "address",
381
+ name: "_target",
382
+ type: "address",
383
+ },
384
+ {
385
+ internalType: "uint256",
386
+ name: "_gasLimit",
387
+ type: "uint256",
388
+ },
389
+ {
390
+ internalType: "bytes",
391
+ name: "_data",
392
+ type: "bytes",
393
+ },
394
+ ],
395
+ name: "initiateWithdrawal",
396
+ outputs: [],
397
+ stateMutability: "payable",
398
+ type: "function",
399
+ },
400
+ {
401
+ inputs: [],
402
+ name: "messageNonce",
403
+ outputs: [
404
+ {
405
+ internalType: "uint256",
406
+ name: "",
407
+ type: "uint256",
408
+ },
409
+ ],
410
+ stateMutability: "view",
411
+ type: "function",
412
+ },
413
+ {
414
+ inputs: [
415
+ {
416
+ internalType: "bytes32",
417
+ name: "",
418
+ type: "bytes32",
419
+ },
420
+ ],
421
+ name: "sentMessages",
422
+ outputs: [
423
+ {
424
+ internalType: "bool",
425
+ name: "",
426
+ type: "bool",
427
+ },
428
+ ],
429
+ stateMutability: "view",
430
+ type: "function",
431
+ },
432
+ {
433
+ inputs: [],
434
+ name: "version",
435
+ outputs: [
436
+ {
437
+ internalType: "string",
438
+ name: "",
439
+ type: "string",
440
+ },
441
+ ],
442
+ stateMutability: "view",
443
+ type: "function",
444
+ },
445
+ {
446
+ stateMutability: "payable",
447
+ type: "receive",
448
+ },
449
+ ];
450
+ export const portal2Abi = [
451
+ {
452
+ inputs: [
453
+ {
454
+ internalType: "uint256",
455
+ name: "_proofMaturityDelaySeconds",
456
+ type: "uint256",
457
+ },
458
+ {
459
+ internalType: "uint256",
460
+ name: "_disputeGameFinalityDelaySeconds",
461
+ type: "uint256",
462
+ },
463
+ ],
464
+ stateMutability: "nonpayable",
465
+ type: "constructor",
466
+ },
467
+ {
468
+ stateMutability: "payable",
469
+ type: "receive",
470
+ },
471
+ {
472
+ inputs: [],
473
+ name: "balance",
474
+ outputs: [
475
+ {
476
+ internalType: "uint256",
477
+ name: "",
478
+ type: "uint256",
479
+ },
480
+ ],
481
+ stateMutability: "view",
482
+ type: "function",
483
+ },
484
+ {
485
+ inputs: [
486
+ {
487
+ internalType: "contract IDisputeGame",
488
+ name: "_disputeGame",
489
+ type: "address",
490
+ },
491
+ ],
492
+ name: "blacklistDisputeGame",
493
+ outputs: [],
494
+ stateMutability: "nonpayable",
495
+ type: "function",
496
+ },
497
+ {
498
+ inputs: [
499
+ {
500
+ internalType: "bytes32",
501
+ name: "_withdrawalHash",
502
+ type: "bytes32",
503
+ },
504
+ {
505
+ internalType: "address",
506
+ name: "_proofSubmitter",
507
+ type: "address",
508
+ },
509
+ ],
510
+ name: "checkWithdrawal",
511
+ outputs: [],
512
+ stateMutability: "view",
513
+ type: "function",
514
+ },
515
+ {
516
+ inputs: [
517
+ {
518
+ internalType: "address",
519
+ name: "_to",
520
+ type: "address",
521
+ },
522
+ {
523
+ internalType: "uint256",
524
+ name: "_mint",
525
+ type: "uint256",
526
+ },
527
+ {
528
+ internalType: "uint256",
529
+ name: "_value",
530
+ type: "uint256",
531
+ },
532
+ {
533
+ internalType: "uint64",
534
+ name: "_gasLimit",
535
+ type: "uint64",
536
+ },
537
+ {
538
+ internalType: "bool",
539
+ name: "_isCreation",
540
+ type: "bool",
541
+ },
542
+ {
543
+ internalType: "bytes",
544
+ name: "_data",
545
+ type: "bytes",
546
+ },
547
+ ],
548
+ name: "depositERC20Transaction",
549
+ outputs: [],
550
+ stateMutability: "nonpayable",
551
+ type: "function",
552
+ },
553
+ {
554
+ inputs: [
555
+ {
556
+ internalType: "address",
557
+ name: "_to",
558
+ type: "address",
559
+ },
560
+ {
561
+ internalType: "uint256",
562
+ name: "_value",
563
+ type: "uint256",
564
+ },
565
+ {
566
+ internalType: "uint64",
567
+ name: "_gasLimit",
568
+ type: "uint64",
569
+ },
570
+ {
571
+ internalType: "bool",
572
+ name: "_isCreation",
573
+ type: "bool",
574
+ },
575
+ {
576
+ internalType: "bytes",
577
+ name: "_data",
578
+ type: "bytes",
579
+ },
580
+ ],
581
+ name: "depositTransaction",
582
+ outputs: [],
583
+ stateMutability: "payable",
584
+ type: "function",
585
+ },
586
+ {
587
+ inputs: [
588
+ {
589
+ internalType: "contract IDisputeGame",
590
+ name: "",
591
+ type: "address",
592
+ },
593
+ ],
594
+ name: "disputeGameBlacklist",
595
+ outputs: [
596
+ {
597
+ internalType: "bool",
598
+ name: "",
599
+ type: "bool",
600
+ },
601
+ ],
602
+ stateMutability: "view",
603
+ type: "function",
604
+ },
605
+ {
606
+ inputs: [],
607
+ name: "disputeGameFactory",
608
+ outputs: [
609
+ {
610
+ internalType: "contract DisputeGameFactory",
611
+ name: "",
612
+ type: "address",
613
+ },
614
+ ],
615
+ stateMutability: "view",
616
+ type: "function",
617
+ },
618
+ {
619
+ inputs: [],
620
+ name: "disputeGameFinalityDelaySeconds",
621
+ outputs: [
622
+ {
623
+ internalType: "uint256",
624
+ name: "",
625
+ type: "uint256",
626
+ },
627
+ ],
628
+ stateMutability: "view",
629
+ type: "function",
630
+ },
631
+ {
632
+ inputs: [],
633
+ name: "donateETH",
634
+ outputs: [],
635
+ stateMutability: "payable",
636
+ type: "function",
637
+ },
638
+ {
639
+ inputs: [
640
+ {
641
+ components: [
642
+ {
643
+ internalType: "uint256",
644
+ name: "nonce",
645
+ type: "uint256",
646
+ },
647
+ {
648
+ internalType: "address",
649
+ name: "sender",
650
+ type: "address",
651
+ },
652
+ {
653
+ internalType: "address",
654
+ name: "target",
655
+ type: "address",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "value",
660
+ type: "uint256",
661
+ },
662
+ {
663
+ internalType: "uint256",
664
+ name: "gasLimit",
665
+ type: "uint256",
666
+ },
667
+ {
668
+ internalType: "bytes",
669
+ name: "data",
670
+ type: "bytes",
671
+ },
672
+ ],
673
+ internalType: "struct Types.WithdrawalTransaction",
674
+ name: "_tx",
675
+ type: "tuple",
676
+ },
677
+ ],
678
+ name: "finalizeWithdrawalTransaction",
679
+ outputs: [],
680
+ stateMutability: "nonpayable",
681
+ type: "function",
682
+ },
683
+ {
684
+ inputs: [
685
+ {
686
+ components: [
687
+ {
688
+ internalType: "uint256",
689
+ name: "nonce",
690
+ type: "uint256",
691
+ },
692
+ {
693
+ internalType: "address",
694
+ name: "sender",
695
+ type: "address",
696
+ },
697
+ {
698
+ internalType: "address",
699
+ name: "target",
700
+ type: "address",
701
+ },
702
+ {
703
+ internalType: "uint256",
704
+ name: "value",
705
+ type: "uint256",
706
+ },
707
+ {
708
+ internalType: "uint256",
709
+ name: "gasLimit",
710
+ type: "uint256",
711
+ },
712
+ {
713
+ internalType: "bytes",
714
+ name: "data",
715
+ type: "bytes",
716
+ },
717
+ ],
718
+ internalType: "struct Types.WithdrawalTransaction",
719
+ name: "_tx",
720
+ type: "tuple",
721
+ },
722
+ {
723
+ internalType: "address",
724
+ name: "_proofSubmitter",
725
+ type: "address",
726
+ },
727
+ ],
728
+ name: "finalizeWithdrawalTransactionExternalProof",
729
+ outputs: [],
730
+ stateMutability: "nonpayable",
731
+ type: "function",
732
+ },
733
+ {
734
+ inputs: [
735
+ {
736
+ internalType: "bytes32",
737
+ name: "",
738
+ type: "bytes32",
739
+ },
740
+ ],
741
+ name: "finalizedWithdrawals",
742
+ outputs: [
743
+ {
744
+ internalType: "bool",
745
+ name: "",
746
+ type: "bool",
747
+ },
748
+ ],
749
+ stateMutability: "view",
750
+ type: "function",
751
+ },
752
+ {
753
+ inputs: [],
754
+ name: "guardian",
755
+ outputs: [
756
+ {
757
+ internalType: "address",
758
+ name: "",
759
+ type: "address",
760
+ },
761
+ ],
762
+ stateMutability: "view",
763
+ type: "function",
764
+ },
765
+ {
766
+ inputs: [
767
+ {
768
+ internalType: "contract DisputeGameFactory",
769
+ name: "_disputeGameFactory",
770
+ type: "address",
771
+ },
772
+ {
773
+ internalType: "contract SystemConfig",
774
+ name: "_systemConfig",
775
+ type: "address",
776
+ },
777
+ {
778
+ internalType: "contract SuperchainConfig",
779
+ name: "_superchainConfig",
780
+ type: "address",
781
+ },
782
+ {
783
+ internalType: "GameType",
784
+ name: "_initialRespectedGameType",
785
+ type: "uint32",
786
+ },
787
+ ],
788
+ name: "initialize",
789
+ outputs: [],
790
+ stateMutability: "nonpayable",
791
+ type: "function",
792
+ },
793
+ {
794
+ inputs: [],
795
+ name: "l2Sender",
796
+ outputs: [
797
+ {
798
+ internalType: "address",
799
+ name: "",
800
+ type: "address",
801
+ },
802
+ ],
803
+ stateMutability: "view",
804
+ type: "function",
805
+ },
806
+ {
807
+ inputs: [
808
+ {
809
+ internalType: "uint64",
810
+ name: "_byteCount",
811
+ type: "uint64",
812
+ },
813
+ ],
814
+ name: "minimumGasLimit",
815
+ outputs: [
816
+ {
817
+ internalType: "uint64",
818
+ name: "",
819
+ type: "uint64",
820
+ },
821
+ ],
822
+ stateMutability: "pure",
823
+ type: "function",
824
+ },
825
+ {
826
+ inputs: [
827
+ {
828
+ internalType: "bytes32",
829
+ name: "_withdrawalHash",
830
+ type: "bytes32",
831
+ },
832
+ ],
833
+ name: "numProofSubmitters",
834
+ outputs: [
835
+ {
836
+ internalType: "uint256",
837
+ name: "",
838
+ type: "uint256",
839
+ },
840
+ ],
841
+ stateMutability: "view",
842
+ type: "function",
843
+ },
844
+ {
845
+ inputs: [],
846
+ name: "params",
847
+ outputs: [
848
+ {
849
+ internalType: "uint128",
850
+ name: "prevBaseFee",
851
+ type: "uint128",
852
+ },
853
+ {
854
+ internalType: "uint64",
855
+ name: "prevBoughtGas",
856
+ type: "uint64",
857
+ },
858
+ {
859
+ internalType: "uint64",
860
+ name: "prevBlockNum",
861
+ type: "uint64",
862
+ },
863
+ ],
864
+ stateMutability: "view",
865
+ type: "function",
866
+ },
867
+ {
868
+ inputs: [],
869
+ name: "paused",
870
+ outputs: [
871
+ {
872
+ internalType: "bool",
873
+ name: "",
874
+ type: "bool",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: "proofMaturityDelaySeconds",
883
+ outputs: [
884
+ {
885
+ internalType: "uint256",
886
+ name: "",
887
+ type: "uint256",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "bytes32",
897
+ name: "",
898
+ type: "bytes32",
899
+ },
900
+ {
901
+ internalType: "uint256",
902
+ name: "",
903
+ type: "uint256",
904
+ },
905
+ ],
906
+ name: "proofSubmitters",
907
+ outputs: [
908
+ {
909
+ internalType: "address",
910
+ name: "",
911
+ type: "address",
912
+ },
913
+ ],
914
+ stateMutability: "view",
915
+ type: "function",
916
+ },
917
+ {
918
+ inputs: [
919
+ {
920
+ components: [
921
+ {
922
+ internalType: "uint256",
923
+ name: "nonce",
924
+ type: "uint256",
925
+ },
926
+ {
927
+ internalType: "address",
928
+ name: "sender",
929
+ type: "address",
930
+ },
931
+ {
932
+ internalType: "address",
933
+ name: "target",
934
+ type: "address",
935
+ },
936
+ {
937
+ internalType: "uint256",
938
+ name: "value",
939
+ type: "uint256",
940
+ },
941
+ {
942
+ internalType: "uint256",
943
+ name: "gasLimit",
944
+ type: "uint256",
945
+ },
946
+ {
947
+ internalType: "bytes",
948
+ name: "data",
949
+ type: "bytes",
950
+ },
951
+ ],
952
+ internalType: "struct Types.WithdrawalTransaction",
953
+ name: "_tx",
954
+ type: "tuple",
955
+ },
956
+ {
957
+ internalType: "uint256",
958
+ name: "_disputeGameIndex",
959
+ type: "uint256",
960
+ },
961
+ {
962
+ components: [
963
+ {
964
+ internalType: "bytes32",
965
+ name: "version",
966
+ type: "bytes32",
967
+ },
968
+ {
969
+ internalType: "bytes32",
970
+ name: "stateRoot",
971
+ type: "bytes32",
972
+ },
973
+ {
974
+ internalType: "bytes32",
975
+ name: "messagePasserStorageRoot",
976
+ type: "bytes32",
977
+ },
978
+ {
979
+ internalType: "bytes32",
980
+ name: "latestBlockhash",
981
+ type: "bytes32",
982
+ },
983
+ ],
984
+ internalType: "struct Types.OutputRootProof",
985
+ name: "_outputRootProof",
986
+ type: "tuple",
987
+ },
988
+ {
989
+ internalType: "bytes[]",
990
+ name: "_withdrawalProof",
991
+ type: "bytes[]",
992
+ },
993
+ ],
994
+ name: "proveWithdrawalTransaction",
995
+ outputs: [],
996
+ stateMutability: "nonpayable",
997
+ type: "function",
998
+ },
999
+ {
1000
+ inputs: [
1001
+ {
1002
+ internalType: "bytes32",
1003
+ name: "",
1004
+ type: "bytes32",
1005
+ },
1006
+ {
1007
+ internalType: "address",
1008
+ name: "",
1009
+ type: "address",
1010
+ },
1011
+ ],
1012
+ name: "provenWithdrawals",
1013
+ outputs: [
1014
+ {
1015
+ internalType: "contract IDisputeGame",
1016
+ name: "disputeGameProxy",
1017
+ type: "address",
1018
+ },
1019
+ {
1020
+ internalType: "uint64",
1021
+ name: "timestamp",
1022
+ type: "uint64",
1023
+ },
1024
+ ],
1025
+ stateMutability: "view",
1026
+ type: "function",
1027
+ },
1028
+ {
1029
+ inputs: [],
1030
+ name: "respectedGameType",
1031
+ outputs: [
1032
+ {
1033
+ internalType: "GameType",
1034
+ name: "",
1035
+ type: "uint32",
1036
+ },
1037
+ ],
1038
+ stateMutability: "view",
1039
+ type: "function",
1040
+ },
1041
+ {
1042
+ inputs: [],
1043
+ name: "respectedGameTypeUpdatedAt",
1044
+ outputs: [
1045
+ {
1046
+ internalType: "uint64",
1047
+ name: "",
1048
+ type: "uint64",
1049
+ },
1050
+ ],
1051
+ stateMutability: "view",
1052
+ type: "function",
1053
+ },
1054
+ {
1055
+ inputs: [
1056
+ {
1057
+ internalType: "address",
1058
+ name: "_token",
1059
+ type: "address",
1060
+ },
1061
+ {
1062
+ internalType: "uint8",
1063
+ name: "_decimals",
1064
+ type: "uint8",
1065
+ },
1066
+ {
1067
+ internalType: "bytes32",
1068
+ name: "_name",
1069
+ type: "bytes32",
1070
+ },
1071
+ {
1072
+ internalType: "bytes32",
1073
+ name: "_symbol",
1074
+ type: "bytes32",
1075
+ },
1076
+ ],
1077
+ name: "setGasPayingToken",
1078
+ outputs: [],
1079
+ stateMutability: "nonpayable",
1080
+ type: "function",
1081
+ },
1082
+ {
1083
+ inputs: [
1084
+ {
1085
+ internalType: "GameType",
1086
+ name: "_gameType",
1087
+ type: "uint32",
1088
+ },
1089
+ ],
1090
+ name: "setRespectedGameType",
1091
+ outputs: [],
1092
+ stateMutability: "nonpayable",
1093
+ type: "function",
1094
+ },
1095
+ {
1096
+ inputs: [],
1097
+ name: "superchainConfig",
1098
+ outputs: [
1099
+ {
1100
+ internalType: "contract SuperchainConfig",
1101
+ name: "",
1102
+ type: "address",
1103
+ },
1104
+ ],
1105
+ stateMutability: "view",
1106
+ type: "function",
1107
+ },
1108
+ {
1109
+ inputs: [],
1110
+ name: "systemConfig",
1111
+ outputs: [
1112
+ {
1113
+ internalType: "contract SystemConfig",
1114
+ name: "",
1115
+ type: "address",
1116
+ },
1117
+ ],
1118
+ stateMutability: "view",
1119
+ type: "function",
1120
+ },
1121
+ {
1122
+ inputs: [],
1123
+ name: "version",
1124
+ outputs: [
1125
+ {
1126
+ internalType: "string",
1127
+ name: "",
1128
+ type: "string",
1129
+ },
1130
+ ],
1131
+ stateMutability: "pure",
1132
+ type: "function",
1133
+ },
1134
+ {
1135
+ anonymous: false,
1136
+ inputs: [
1137
+ {
1138
+ indexed: true,
1139
+ internalType: "contract IDisputeGame",
1140
+ name: "disputeGame",
1141
+ type: "address",
1142
+ },
1143
+ ],
1144
+ name: "DisputeGameBlacklisted",
1145
+ type: "event",
1146
+ },
1147
+ {
1148
+ anonymous: false,
1149
+ inputs: [
1150
+ {
1151
+ indexed: false,
1152
+ internalType: "uint8",
1153
+ name: "version",
1154
+ type: "uint8",
1155
+ },
1156
+ ],
1157
+ name: "Initialized",
1158
+ type: "event",
1159
+ },
1160
+ {
1161
+ anonymous: false,
1162
+ inputs: [
1163
+ {
1164
+ indexed: true,
1165
+ internalType: "GameType",
1166
+ name: "newGameType",
1167
+ type: "uint32",
1168
+ },
1169
+ {
1170
+ indexed: true,
1171
+ internalType: "Timestamp",
1172
+ name: "updatedAt",
1173
+ type: "uint64",
1174
+ },
1175
+ ],
1176
+ name: "RespectedGameTypeSet",
1177
+ type: "event",
1178
+ },
1179
+ {
1180
+ anonymous: false,
1181
+ inputs: [
1182
+ {
1183
+ indexed: true,
1184
+ internalType: "address",
1185
+ name: "from",
1186
+ type: "address",
1187
+ },
1188
+ {
1189
+ indexed: true,
1190
+ internalType: "address",
1191
+ name: "to",
1192
+ type: "address",
1193
+ },
1194
+ {
1195
+ indexed: true,
1196
+ internalType: "uint256",
1197
+ name: "version",
1198
+ type: "uint256",
1199
+ },
1200
+ {
1201
+ indexed: false,
1202
+ internalType: "bytes",
1203
+ name: "opaqueData",
1204
+ type: "bytes",
1205
+ },
1206
+ ],
1207
+ name: "TransactionDeposited",
1208
+ type: "event",
1209
+ },
1210
+ {
1211
+ anonymous: false,
1212
+ inputs: [
1213
+ {
1214
+ indexed: true,
1215
+ internalType: "bytes32",
1216
+ name: "withdrawalHash",
1217
+ type: "bytes32",
1218
+ },
1219
+ {
1220
+ indexed: false,
1221
+ internalType: "bool",
1222
+ name: "success",
1223
+ type: "bool",
1224
+ },
1225
+ ],
1226
+ name: "WithdrawalFinalized",
1227
+ type: "event",
1228
+ },
1229
+ {
1230
+ anonymous: false,
1231
+ inputs: [
1232
+ {
1233
+ indexed: true,
1234
+ internalType: "bytes32",
1235
+ name: "withdrawalHash",
1236
+ type: "bytes32",
1237
+ },
1238
+ {
1239
+ indexed: true,
1240
+ internalType: "address",
1241
+ name: "from",
1242
+ type: "address",
1243
+ },
1244
+ {
1245
+ indexed: true,
1246
+ internalType: "address",
1247
+ name: "to",
1248
+ type: "address",
1249
+ },
1250
+ ],
1251
+ name: "WithdrawalProven",
1252
+ type: "event",
1253
+ },
1254
+ {
1255
+ anonymous: false,
1256
+ inputs: [
1257
+ {
1258
+ indexed: true,
1259
+ internalType: "bytes32",
1260
+ name: "withdrawalHash",
1261
+ type: "bytes32",
1262
+ },
1263
+ {
1264
+ indexed: true,
1265
+ internalType: "address",
1266
+ name: "proofSubmitter",
1267
+ type: "address",
1268
+ },
1269
+ ],
1270
+ name: "WithdrawalProvenExtension1",
1271
+ type: "event",
1272
+ },
1273
+ {
1274
+ inputs: [],
1275
+ name: "AlreadyFinalized",
1276
+ type: "error",
1277
+ },
1278
+ {
1279
+ inputs: [],
1280
+ name: "BadTarget",
1281
+ type: "error",
1282
+ },
1283
+ {
1284
+ inputs: [],
1285
+ name: "Blacklisted",
1286
+ type: "error",
1287
+ },
1288
+ {
1289
+ inputs: [],
1290
+ name: "CallPaused",
1291
+ type: "error",
1292
+ },
1293
+ {
1294
+ inputs: [],
1295
+ name: "ContentLengthMismatch",
1296
+ type: "error",
1297
+ },
1298
+ {
1299
+ inputs: [],
1300
+ name: "EmptyItem",
1301
+ type: "error",
1302
+ },
1303
+ {
1304
+ inputs: [],
1305
+ name: "GasEstimation",
1306
+ type: "error",
1307
+ },
1308
+ {
1309
+ inputs: [],
1310
+ name: "InvalidDataRemainder",
1311
+ type: "error",
1312
+ },
1313
+ {
1314
+ inputs: [],
1315
+ name: "InvalidDisputeGame",
1316
+ type: "error",
1317
+ },
1318
+ {
1319
+ inputs: [],
1320
+ name: "InvalidGameType",
1321
+ type: "error",
1322
+ },
1323
+ {
1324
+ inputs: [],
1325
+ name: "InvalidHeader",
1326
+ type: "error",
1327
+ },
1328
+ {
1329
+ inputs: [],
1330
+ name: "InvalidMerkleProof",
1331
+ type: "error",
1332
+ },
1333
+ {
1334
+ inputs: [],
1335
+ name: "InvalidProof",
1336
+ type: "error",
1337
+ },
1338
+ {
1339
+ inputs: [],
1340
+ name: "LargeCalldata",
1341
+ type: "error",
1342
+ },
1343
+ {
1344
+ inputs: [],
1345
+ name: "NoValue",
1346
+ type: "error",
1347
+ },
1348
+ {
1349
+ inputs: [],
1350
+ name: "NonReentrant",
1351
+ type: "error",
1352
+ },
1353
+ {
1354
+ inputs: [],
1355
+ name: "OnlyCustomGasToken",
1356
+ type: "error",
1357
+ },
1358
+ {
1359
+ inputs: [],
1360
+ name: "OutOfGas",
1361
+ type: "error",
1362
+ },
1363
+ {
1364
+ inputs: [],
1365
+ name: "ProposalNotValidated",
1366
+ type: "error",
1367
+ },
1368
+ {
1369
+ inputs: [],
1370
+ name: "SmallGasLimit",
1371
+ type: "error",
1372
+ },
1373
+ {
1374
+ inputs: [],
1375
+ name: "TransferFailed",
1376
+ type: "error",
1377
+ },
1378
+ {
1379
+ inputs: [],
1380
+ name: "Unauthorized",
1381
+ type: "error",
1382
+ },
1383
+ {
1384
+ inputs: [],
1385
+ name: "UnexpectedList",
1386
+ type: "error",
1387
+ },
1388
+ {
1389
+ inputs: [],
1390
+ name: "UnexpectedString",
1391
+ type: "error",
1392
+ },
1393
+ {
1394
+ inputs: [],
1395
+ name: "Unproven",
1396
+ type: "error",
1397
+ },
1398
+ ];
1399
+ export const portalAbi = [
1400
+ {
1401
+ inputs: [
1402
+ {
1403
+ internalType: "contract L2OutputOracle",
1404
+ name: "_l2Oracle",
1405
+ type: "address",
1406
+ },
1407
+ {
1408
+ internalType: "address",
1409
+ name: "_guardian",
1410
+ type: "address",
1411
+ },
1412
+ {
1413
+ internalType: "bool",
1414
+ name: "_paused",
1415
+ type: "bool",
1416
+ },
1417
+ {
1418
+ internalType: "contract SystemConfig",
1419
+ name: "_config",
1420
+ type: "address",
1421
+ },
1422
+ {
1423
+ internalType: "address",
1424
+ name: "_l1MNT",
1425
+ type: "address",
1426
+ },
1427
+ ],
1428
+ stateMutability: "nonpayable",
1429
+ type: "constructor",
1430
+ },
1431
+ {
1432
+ anonymous: false,
1433
+ inputs: [
1434
+ {
1435
+ indexed: false,
1436
+ internalType: "uint8",
1437
+ name: "version",
1438
+ type: "uint8",
1439
+ },
1440
+ ],
1441
+ name: "Initialized",
1442
+ type: "event",
1443
+ },
1444
+ {
1445
+ anonymous: false,
1446
+ inputs: [
1447
+ {
1448
+ indexed: false,
1449
+ internalType: "address",
1450
+ name: "account",
1451
+ type: "address",
1452
+ },
1453
+ ],
1454
+ name: "Paused",
1455
+ type: "event",
1456
+ },
1457
+ {
1458
+ anonymous: false,
1459
+ inputs: [
1460
+ {
1461
+ indexed: true,
1462
+ internalType: "address",
1463
+ name: "from",
1464
+ type: "address",
1465
+ },
1466
+ {
1467
+ indexed: true,
1468
+ internalType: "address",
1469
+ name: "to",
1470
+ type: "address",
1471
+ },
1472
+ {
1473
+ indexed: true,
1474
+ internalType: "uint256",
1475
+ name: "version",
1476
+ type: "uint256",
1477
+ },
1478
+ {
1479
+ indexed: false,
1480
+ internalType: "bytes",
1481
+ name: "opaqueData",
1482
+ type: "bytes",
1483
+ },
1484
+ ],
1485
+ name: "TransactionDeposited",
1486
+ type: "event",
1487
+ },
1488
+ {
1489
+ anonymous: false,
1490
+ inputs: [
1491
+ {
1492
+ indexed: false,
1493
+ internalType: "address",
1494
+ name: "account",
1495
+ type: "address",
1496
+ },
1497
+ ],
1498
+ name: "Unpaused",
1499
+ type: "event",
1500
+ },
1501
+ {
1502
+ anonymous: false,
1503
+ inputs: [
1504
+ {
1505
+ indexed: true,
1506
+ internalType: "bytes32",
1507
+ name: "withdrawalHash",
1508
+ type: "bytes32",
1509
+ },
1510
+ {
1511
+ indexed: false,
1512
+ internalType: "bool",
1513
+ name: "success",
1514
+ type: "bool",
1515
+ },
1516
+ ],
1517
+ name: "WithdrawalFinalized",
1518
+ type: "event",
1519
+ },
1520
+ {
1521
+ anonymous: false,
1522
+ inputs: [
1523
+ {
1524
+ indexed: true,
1525
+ internalType: "bytes32",
1526
+ name: "withdrawalHash",
1527
+ type: "bytes32",
1528
+ },
1529
+ {
1530
+ indexed: true,
1531
+ internalType: "address",
1532
+ name: "from",
1533
+ type: "address",
1534
+ },
1535
+ {
1536
+ indexed: true,
1537
+ internalType: "address",
1538
+ name: "to",
1539
+ type: "address",
1540
+ },
1541
+ ],
1542
+ name: "WithdrawalProven",
1543
+ type: "event",
1544
+ },
1545
+ {
1546
+ inputs: [],
1547
+ name: "GUARDIAN",
1548
+ outputs: [
1549
+ {
1550
+ internalType: "address",
1551
+ name: "",
1552
+ type: "address",
1553
+ },
1554
+ ],
1555
+ stateMutability: "view",
1556
+ type: "function",
1557
+ },
1558
+ {
1559
+ inputs: [],
1560
+ name: "L1_MNT_ADDRESS",
1561
+ outputs: [
1562
+ {
1563
+ internalType: "address",
1564
+ name: "",
1565
+ type: "address",
1566
+ },
1567
+ ],
1568
+ stateMutability: "view",
1569
+ type: "function",
1570
+ },
1571
+ {
1572
+ inputs: [],
1573
+ name: "L2_ORACLE",
1574
+ outputs: [
1575
+ {
1576
+ internalType: "contract L2OutputOracle",
1577
+ name: "",
1578
+ type: "address",
1579
+ },
1580
+ ],
1581
+ stateMutability: "view",
1582
+ type: "function",
1583
+ },
1584
+ {
1585
+ inputs: [],
1586
+ name: "SYSTEM_CONFIG",
1587
+ outputs: [
1588
+ {
1589
+ internalType: "contract SystemConfig",
1590
+ name: "",
1591
+ type: "address",
1592
+ },
1593
+ ],
1594
+ stateMutability: "view",
1595
+ type: "function",
1596
+ },
1597
+ {
1598
+ inputs: [
1599
+ {
1600
+ internalType: "uint256",
1601
+ name: "_ethTxValue",
1602
+ type: "uint256",
1603
+ },
1604
+ {
1605
+ internalType: "uint256",
1606
+ name: "_mntValue",
1607
+ type: "uint256",
1608
+ },
1609
+ {
1610
+ internalType: "address",
1611
+ name: "_to",
1612
+ type: "address",
1613
+ },
1614
+ {
1615
+ internalType: "uint256",
1616
+ name: "_mntTxValue",
1617
+ type: "uint256",
1618
+ },
1619
+ {
1620
+ internalType: "uint64",
1621
+ name: "_gasLimit",
1622
+ type: "uint64",
1623
+ },
1624
+ {
1625
+ internalType: "bool",
1626
+ name: "_isCreation",
1627
+ type: "bool",
1628
+ },
1629
+ {
1630
+ internalType: "bytes",
1631
+ name: "_data",
1632
+ type: "bytes",
1633
+ },
1634
+ ],
1635
+ name: "depositTransaction",
1636
+ outputs: [],
1637
+ stateMutability: "payable",
1638
+ type: "function",
1639
+ },
1640
+ {
1641
+ inputs: [],
1642
+ name: "donateETH",
1643
+ outputs: [],
1644
+ stateMutability: "payable",
1645
+ type: "function",
1646
+ },
1647
+ {
1648
+ inputs: [
1649
+ {
1650
+ components: [
1651
+ {
1652
+ internalType: "uint256",
1653
+ name: "nonce",
1654
+ type: "uint256",
1655
+ },
1656
+ {
1657
+ internalType: "address",
1658
+ name: "sender",
1659
+ type: "address",
1660
+ },
1661
+ {
1662
+ internalType: "address",
1663
+ name: "target",
1664
+ type: "address",
1665
+ },
1666
+ {
1667
+ internalType: "uint256",
1668
+ name: "mntValue",
1669
+ type: "uint256",
1670
+ },
1671
+ {
1672
+ internalType: "uint256",
1673
+ name: "ethValue",
1674
+ type: "uint256",
1675
+ },
1676
+ {
1677
+ internalType: "uint256",
1678
+ name: "gasLimit",
1679
+ type: "uint256",
1680
+ },
1681
+ {
1682
+ internalType: "bytes",
1683
+ name: "data",
1684
+ type: "bytes",
1685
+ },
1686
+ ],
1687
+ internalType: "struct Types.WithdrawalTransaction",
1688
+ name: "_tx",
1689
+ type: "tuple",
1690
+ },
1691
+ ],
1692
+ name: "finalizeWithdrawalTransaction",
1693
+ outputs: [],
1694
+ stateMutability: "nonpayable",
1695
+ type: "function",
1696
+ },
1697
+ {
1698
+ inputs: [
1699
+ {
1700
+ internalType: "bytes32",
1701
+ name: "",
1702
+ type: "bytes32",
1703
+ },
1704
+ ],
1705
+ name: "finalizedWithdrawals",
1706
+ outputs: [
1707
+ {
1708
+ internalType: "bool",
1709
+ name: "",
1710
+ type: "bool",
1711
+ },
1712
+ ],
1713
+ stateMutability: "view",
1714
+ type: "function",
1715
+ },
1716
+ {
1717
+ inputs: [
1718
+ {
1719
+ internalType: "bool",
1720
+ name: "_paused",
1721
+ type: "bool",
1722
+ },
1723
+ ],
1724
+ name: "initialize",
1725
+ outputs: [],
1726
+ stateMutability: "nonpayable",
1727
+ type: "function",
1728
+ },
1729
+ {
1730
+ inputs: [
1731
+ {
1732
+ internalType: "uint256",
1733
+ name: "_l2OutputIndex",
1734
+ type: "uint256",
1735
+ },
1736
+ ],
1737
+ name: "isOutputFinalized",
1738
+ outputs: [
1739
+ {
1740
+ internalType: "bool",
1741
+ name: "",
1742
+ type: "bool",
1743
+ },
1744
+ ],
1745
+ stateMutability: "view",
1746
+ type: "function",
1747
+ },
1748
+ {
1749
+ inputs: [],
1750
+ name: "l2Sender",
1751
+ outputs: [
1752
+ {
1753
+ internalType: "address",
1754
+ name: "",
1755
+ type: "address",
1756
+ },
1757
+ ],
1758
+ stateMutability: "view",
1759
+ type: "function",
1760
+ },
1761
+ {
1762
+ inputs: [
1763
+ {
1764
+ internalType: "uint64",
1765
+ name: "_byteCount",
1766
+ type: "uint64",
1767
+ },
1768
+ ],
1769
+ name: "minimumGasLimit",
1770
+ outputs: [
1771
+ {
1772
+ internalType: "uint64",
1773
+ name: "",
1774
+ type: "uint64",
1775
+ },
1776
+ ],
1777
+ stateMutability: "pure",
1778
+ type: "function",
1779
+ },
1780
+ {
1781
+ inputs: [],
1782
+ name: "params",
1783
+ outputs: [
1784
+ {
1785
+ internalType: "uint128",
1786
+ name: "prevBaseFee",
1787
+ type: "uint128",
1788
+ },
1789
+ {
1790
+ internalType: "uint64",
1791
+ name: "prevBoughtGas",
1792
+ type: "uint64",
1793
+ },
1794
+ {
1795
+ internalType: "uint64",
1796
+ name: "prevBlockNum",
1797
+ type: "uint64",
1798
+ },
1799
+ ],
1800
+ stateMutability: "view",
1801
+ type: "function",
1802
+ },
1803
+ {
1804
+ inputs: [],
1805
+ name: "pause",
1806
+ outputs: [],
1807
+ stateMutability: "nonpayable",
1808
+ type: "function",
1809
+ },
1810
+ {
1811
+ inputs: [],
1812
+ name: "paused",
1813
+ outputs: [
1814
+ {
1815
+ internalType: "bool",
1816
+ name: "",
1817
+ type: "bool",
1818
+ },
1819
+ ],
1820
+ stateMutability: "view",
1821
+ type: "function",
1822
+ },
1823
+ {
1824
+ inputs: [
1825
+ {
1826
+ components: [
1827
+ {
1828
+ internalType: "uint256",
1829
+ name: "nonce",
1830
+ type: "uint256",
1831
+ },
1832
+ {
1833
+ internalType: "address",
1834
+ name: "sender",
1835
+ type: "address",
1836
+ },
1837
+ {
1838
+ internalType: "address",
1839
+ name: "target",
1840
+ type: "address",
1841
+ },
1842
+ {
1843
+ internalType: "uint256",
1844
+ name: "mntValue",
1845
+ type: "uint256",
1846
+ },
1847
+ {
1848
+ internalType: "uint256",
1849
+ name: "ethValue",
1850
+ type: "uint256",
1851
+ },
1852
+ {
1853
+ internalType: "uint256",
1854
+ name: "gasLimit",
1855
+ type: "uint256",
1856
+ },
1857
+ {
1858
+ internalType: "bytes",
1859
+ name: "data",
1860
+ type: "bytes",
1861
+ },
1862
+ ],
1863
+ internalType: "struct Types.WithdrawalTransaction",
1864
+ name: "_tx",
1865
+ type: "tuple",
1866
+ },
1867
+ {
1868
+ internalType: "uint256",
1869
+ name: "_l2OutputIndex",
1870
+ type: "uint256",
1871
+ },
1872
+ {
1873
+ components: [
1874
+ {
1875
+ internalType: "bytes32",
1876
+ name: "version",
1877
+ type: "bytes32",
1878
+ },
1879
+ {
1880
+ internalType: "bytes32",
1881
+ name: "stateRoot",
1882
+ type: "bytes32",
1883
+ },
1884
+ {
1885
+ internalType: "bytes32",
1886
+ name: "messagePasserStorageRoot",
1887
+ type: "bytes32",
1888
+ },
1889
+ {
1890
+ internalType: "bytes32",
1891
+ name: "latestBlockhash",
1892
+ type: "bytes32",
1893
+ },
1894
+ ],
1895
+ internalType: "struct Types.OutputRootProof",
1896
+ name: "_outputRootProof",
1897
+ type: "tuple",
1898
+ },
1899
+ {
1900
+ internalType: "bytes[]",
1901
+ name: "_withdrawalProof",
1902
+ type: "bytes[]",
1903
+ },
1904
+ ],
1905
+ name: "proveWithdrawalTransaction",
1906
+ outputs: [],
1907
+ stateMutability: "nonpayable",
1908
+ type: "function",
1909
+ },
1910
+ {
1911
+ inputs: [
1912
+ {
1913
+ internalType: "bytes32",
1914
+ name: "",
1915
+ type: "bytes32",
1916
+ },
1917
+ ],
1918
+ name: "provenWithdrawals",
1919
+ outputs: [
1920
+ {
1921
+ internalType: "bytes32",
1922
+ name: "outputRoot",
1923
+ type: "bytes32",
1924
+ },
1925
+ {
1926
+ internalType: "uint128",
1927
+ name: "timestamp",
1928
+ type: "uint128",
1929
+ },
1930
+ {
1931
+ internalType: "uint128",
1932
+ name: "l2OutputIndex",
1933
+ type: "uint128",
1934
+ },
1935
+ ],
1936
+ stateMutability: "view",
1937
+ type: "function",
1938
+ },
1939
+ {
1940
+ inputs: [],
1941
+ name: "unpause",
1942
+ outputs: [],
1943
+ stateMutability: "nonpayable",
1944
+ type: "function",
1945
+ },
1946
+ {
1947
+ inputs: [],
1948
+ name: "version",
1949
+ outputs: [
1950
+ {
1951
+ internalType: "string",
1952
+ name: "",
1953
+ type: "string",
1954
+ },
1955
+ ],
1956
+ stateMutability: "view",
1957
+ type: "function",
1958
+ },
1959
+ {
1960
+ stateMutability: "payable",
1961
+ type: "receive",
1962
+ },
1963
+ ];
1964
+ export const l1StandardBridge = [
1965
+ {
1966
+ inputs: [
1967
+ { internalType: "address payable", name: "_messenger", type: "address" },
1968
+ { internalType: "address", name: "_l1mnt", type: "address" },
1969
+ ],
1970
+ stateMutability: "nonpayable",
1971
+ type: "constructor",
1972
+ },
1973
+ {
1974
+ anonymous: false,
1975
+ inputs: [
1976
+ {
1977
+ indexed: true,
1978
+ internalType: "address",
1979
+ name: "localToken",
1980
+ type: "address",
1981
+ },
1982
+ {
1983
+ indexed: true,
1984
+ internalType: "address",
1985
+ name: "remoteToken",
1986
+ type: "address",
1987
+ },
1988
+ { indexed: true, internalType: "address", name: "from", type: "address" },
1989
+ { indexed: false, internalType: "address", name: "to", type: "address" },
1990
+ {
1991
+ indexed: false,
1992
+ internalType: "uint256",
1993
+ name: "amount",
1994
+ type: "uint256",
1995
+ },
1996
+ {
1997
+ indexed: false,
1998
+ internalType: "bytes",
1999
+ name: "extraData",
2000
+ type: "bytes",
2001
+ },
2002
+ ],
2003
+ name: "ERC20BridgeFinalized",
2004
+ type: "event",
2005
+ },
2006
+ {
2007
+ anonymous: false,
2008
+ inputs: [
2009
+ {
2010
+ indexed: true,
2011
+ internalType: "address",
2012
+ name: "localToken",
2013
+ type: "address",
2014
+ },
2015
+ {
2016
+ indexed: true,
2017
+ internalType: "address",
2018
+ name: "remoteToken",
2019
+ type: "address",
2020
+ },
2021
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2022
+ { indexed: false, internalType: "address", name: "to", type: "address" },
2023
+ {
2024
+ indexed: false,
2025
+ internalType: "uint256",
2026
+ name: "amount",
2027
+ type: "uint256",
2028
+ },
2029
+ {
2030
+ indexed: false,
2031
+ internalType: "bytes",
2032
+ name: "extraData",
2033
+ type: "bytes",
2034
+ },
2035
+ ],
2036
+ name: "ERC20BridgeInitiated",
2037
+ type: "event",
2038
+ },
2039
+ {
2040
+ anonymous: false,
2041
+ inputs: [
2042
+ {
2043
+ indexed: true,
2044
+ internalType: "address",
2045
+ name: "l1Token",
2046
+ type: "address",
2047
+ },
2048
+ {
2049
+ indexed: true,
2050
+ internalType: "address",
2051
+ name: "l2Token",
2052
+ type: "address",
2053
+ },
2054
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2055
+ { indexed: false, internalType: "address", name: "to", type: "address" },
2056
+ {
2057
+ indexed: false,
2058
+ internalType: "uint256",
2059
+ name: "amount",
2060
+ type: "uint256",
2061
+ },
2062
+ {
2063
+ indexed: false,
2064
+ internalType: "bytes",
2065
+ name: "extraData",
2066
+ type: "bytes",
2067
+ },
2068
+ ],
2069
+ name: "ERC20DepositInitiated",
2070
+ type: "event",
2071
+ },
2072
+ {
2073
+ anonymous: false,
2074
+ inputs: [
2075
+ {
2076
+ indexed: true,
2077
+ internalType: "address",
2078
+ name: "l1Token",
2079
+ type: "address",
2080
+ },
2081
+ {
2082
+ indexed: true,
2083
+ internalType: "address",
2084
+ name: "l2Token",
2085
+ type: "address",
2086
+ },
2087
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2088
+ { indexed: false, internalType: "address", name: "to", type: "address" },
2089
+ {
2090
+ indexed: false,
2091
+ internalType: "uint256",
2092
+ name: "amount",
2093
+ type: "uint256",
2094
+ },
2095
+ {
2096
+ indexed: false,
2097
+ internalType: "bytes",
2098
+ name: "extraData",
2099
+ type: "bytes",
2100
+ },
2101
+ ],
2102
+ name: "ERC20WithdrawalFinalized",
2103
+ type: "event",
2104
+ },
2105
+ {
2106
+ anonymous: false,
2107
+ inputs: [
2108
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2109
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2110
+ {
2111
+ indexed: false,
2112
+ internalType: "uint256",
2113
+ name: "amount",
2114
+ type: "uint256",
2115
+ },
2116
+ {
2117
+ indexed: false,
2118
+ internalType: "bytes",
2119
+ name: "extraData",
2120
+ type: "bytes",
2121
+ },
2122
+ ],
2123
+ name: "ETHBridgeFinalized",
2124
+ type: "event",
2125
+ },
2126
+ {
2127
+ anonymous: false,
2128
+ inputs: [
2129
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2130
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2131
+ {
2132
+ indexed: false,
2133
+ internalType: "uint256",
2134
+ name: "amount",
2135
+ type: "uint256",
2136
+ },
2137
+ {
2138
+ indexed: false,
2139
+ internalType: "bytes",
2140
+ name: "extraData",
2141
+ type: "bytes",
2142
+ },
2143
+ ],
2144
+ name: "ETHBridgeInitiated",
2145
+ type: "event",
2146
+ },
2147
+ {
2148
+ anonymous: false,
2149
+ inputs: [
2150
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2151
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2152
+ {
2153
+ indexed: false,
2154
+ internalType: "uint256",
2155
+ name: "amount",
2156
+ type: "uint256",
2157
+ },
2158
+ {
2159
+ indexed: false,
2160
+ internalType: "bytes",
2161
+ name: "extraData",
2162
+ type: "bytes",
2163
+ },
2164
+ ],
2165
+ name: "ETHDepositInitiated",
2166
+ type: "event",
2167
+ },
2168
+ {
2169
+ anonymous: false,
2170
+ inputs: [
2171
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2172
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2173
+ {
2174
+ indexed: false,
2175
+ internalType: "uint256",
2176
+ name: "amount",
2177
+ type: "uint256",
2178
+ },
2179
+ {
2180
+ indexed: false,
2181
+ internalType: "bytes",
2182
+ name: "extraData",
2183
+ type: "bytes",
2184
+ },
2185
+ ],
2186
+ name: "ETHWithdrawalFinalized",
2187
+ type: "event",
2188
+ },
2189
+ {
2190
+ anonymous: false,
2191
+ inputs: [
2192
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2193
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2194
+ {
2195
+ indexed: false,
2196
+ internalType: "uint256",
2197
+ name: "amount",
2198
+ type: "uint256",
2199
+ },
2200
+ {
2201
+ indexed: false,
2202
+ internalType: "bytes",
2203
+ name: "extraData",
2204
+ type: "bytes",
2205
+ },
2206
+ ],
2207
+ name: "MNTBridgeFinalized",
2208
+ type: "event",
2209
+ },
2210
+ {
2211
+ anonymous: false,
2212
+ inputs: [
2213
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2214
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2215
+ {
2216
+ indexed: false,
2217
+ internalType: "uint256",
2218
+ name: "amount",
2219
+ type: "uint256",
2220
+ },
2221
+ {
2222
+ indexed: false,
2223
+ internalType: "bytes",
2224
+ name: "extraData",
2225
+ type: "bytes",
2226
+ },
2227
+ ],
2228
+ name: "MNTBridgeInitiated",
2229
+ type: "event",
2230
+ },
2231
+ {
2232
+ anonymous: false,
2233
+ inputs: [
2234
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2235
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2236
+ {
2237
+ indexed: false,
2238
+ internalType: "uint256",
2239
+ name: "amount",
2240
+ type: "uint256",
2241
+ },
2242
+ {
2243
+ indexed: false,
2244
+ internalType: "bytes",
2245
+ name: "extraData",
2246
+ type: "bytes",
2247
+ },
2248
+ ],
2249
+ name: "MNTDepositInitiated",
2250
+ type: "event",
2251
+ },
2252
+ {
2253
+ anonymous: false,
2254
+ inputs: [
2255
+ { indexed: true, internalType: "address", name: "from", type: "address" },
2256
+ { indexed: true, internalType: "address", name: "to", type: "address" },
2257
+ {
2258
+ indexed: false,
2259
+ internalType: "uint256",
2260
+ name: "amount",
2261
+ type: "uint256",
2262
+ },
2263
+ {
2264
+ indexed: false,
2265
+ internalType: "bytes",
2266
+ name: "extraData",
2267
+ type: "bytes",
2268
+ },
2269
+ ],
2270
+ name: "MNTWithdrawalFinalized",
2271
+ type: "event",
2272
+ },
2273
+ {
2274
+ inputs: [],
2275
+ name: "L1_MNT_ADDRESS",
2276
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2277
+ stateMutability: "view",
2278
+ type: "function",
2279
+ },
2280
+ {
2281
+ inputs: [],
2282
+ name: "MESSENGER",
2283
+ outputs: [
2284
+ {
2285
+ internalType: "contract CrossDomainMessenger",
2286
+ name: "",
2287
+ type: "address",
2288
+ },
2289
+ ],
2290
+ stateMutability: "view",
2291
+ type: "function",
2292
+ },
2293
+ {
2294
+ inputs: [],
2295
+ name: "OTHER_BRIDGE",
2296
+ outputs: [
2297
+ { internalType: "contract StandardBridge", name: "", type: "address" },
2298
+ ],
2299
+ stateMutability: "view",
2300
+ type: "function",
2301
+ },
2302
+ {
2303
+ inputs: [
2304
+ { internalType: "address", name: "_localToken", type: "address" },
2305
+ { internalType: "address", name: "_remoteToken", type: "address" },
2306
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2307
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2308
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2309
+ ],
2310
+ name: "bridgeERC20",
2311
+ outputs: [],
2312
+ stateMutability: "nonpayable",
2313
+ type: "function",
2314
+ },
2315
+ {
2316
+ inputs: [
2317
+ { internalType: "address", name: "_localToken", type: "address" },
2318
+ { internalType: "address", name: "_remoteToken", type: "address" },
2319
+ { internalType: "address", name: "_to", type: "address" },
2320
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2321
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2322
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2323
+ ],
2324
+ name: "bridgeERC20To",
2325
+ outputs: [],
2326
+ stateMutability: "nonpayable",
2327
+ type: "function",
2328
+ },
2329
+ {
2330
+ inputs: [
2331
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2332
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2333
+ ],
2334
+ name: "bridgeETH",
2335
+ outputs: [],
2336
+ stateMutability: "payable",
2337
+ type: "function",
2338
+ },
2339
+ {
2340
+ inputs: [
2341
+ { internalType: "address", name: "_to", type: "address" },
2342
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2343
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2344
+ ],
2345
+ name: "bridgeETHTo",
2346
+ outputs: [],
2347
+ stateMutability: "payable",
2348
+ type: "function",
2349
+ },
2350
+ {
2351
+ inputs: [
2352
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2353
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2354
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2355
+ ],
2356
+ name: "bridgeMNT",
2357
+ outputs: [],
2358
+ stateMutability: "payable",
2359
+ type: "function",
2360
+ },
2361
+ {
2362
+ inputs: [
2363
+ { internalType: "address", name: "_to", type: "address" },
2364
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2365
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2366
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2367
+ ],
2368
+ name: "bridgeMNTTo",
2369
+ outputs: [],
2370
+ stateMutability: "payable",
2371
+ type: "function",
2372
+ },
2373
+ {
2374
+ inputs: [
2375
+ { internalType: "address", name: "_l1Token", type: "address" },
2376
+ { internalType: "address", name: "_l2Token", type: "address" },
2377
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2378
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2379
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2380
+ ],
2381
+ name: "depositERC20",
2382
+ outputs: [],
2383
+ stateMutability: "nonpayable",
2384
+ type: "function",
2385
+ },
2386
+ {
2387
+ inputs: [
2388
+ { internalType: "address", name: "_l1Token", type: "address" },
2389
+ { internalType: "address", name: "_l2Token", type: "address" },
2390
+ { internalType: "address", name: "_to", type: "address" },
2391
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2392
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2393
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2394
+ ],
2395
+ name: "depositERC20To",
2396
+ outputs: [],
2397
+ stateMutability: "nonpayable",
2398
+ type: "function",
2399
+ },
2400
+ {
2401
+ inputs: [
2402
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2403
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2404
+ ],
2405
+ name: "depositETH",
2406
+ outputs: [],
2407
+ stateMutability: "payable",
2408
+ type: "function",
2409
+ },
2410
+ {
2411
+ inputs: [
2412
+ { internalType: "address", name: "_to", type: "address" },
2413
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2414
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2415
+ ],
2416
+ name: "depositETHTo",
2417
+ outputs: [],
2418
+ stateMutability: "payable",
2419
+ type: "function",
2420
+ },
2421
+ {
2422
+ inputs: [
2423
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2424
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2425
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2426
+ ],
2427
+ name: "depositMNT",
2428
+ outputs: [],
2429
+ stateMutability: "nonpayable",
2430
+ type: "function",
2431
+ },
2432
+ {
2433
+ inputs: [
2434
+ { internalType: "address", name: "_to", type: "address" },
2435
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2436
+ { internalType: "uint32", name: "_minGasLimit", type: "uint32" },
2437
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2438
+ ],
2439
+ name: "depositMNTTo",
2440
+ outputs: [],
2441
+ stateMutability: "payable",
2442
+ type: "function",
2443
+ },
2444
+ {
2445
+ inputs: [
2446
+ { internalType: "address", name: "", type: "address" },
2447
+ { internalType: "address", name: "", type: "address" },
2448
+ ],
2449
+ name: "deposits",
2450
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2451
+ stateMutability: "view",
2452
+ type: "function",
2453
+ },
2454
+ {
2455
+ inputs: [
2456
+ { internalType: "address", name: "_localToken", type: "address" },
2457
+ { internalType: "address", name: "_remoteToken", type: "address" },
2458
+ { internalType: "address", name: "_from", type: "address" },
2459
+ { internalType: "address", name: "_to", type: "address" },
2460
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2461
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2462
+ ],
2463
+ name: "finalizeBridgeERC20",
2464
+ outputs: [],
2465
+ stateMutability: "nonpayable",
2466
+ type: "function",
2467
+ },
2468
+ {
2469
+ inputs: [
2470
+ { internalType: "address", name: "_from", type: "address" },
2471
+ { internalType: "address", name: "_to", type: "address" },
2472
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2473
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2474
+ ],
2475
+ name: "finalizeBridgeETH",
2476
+ outputs: [],
2477
+ stateMutability: "payable",
2478
+ type: "function",
2479
+ },
2480
+ {
2481
+ inputs: [
2482
+ { internalType: "address", name: "_from", type: "address" },
2483
+ { internalType: "address", name: "_to", type: "address" },
2484
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2485
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2486
+ ],
2487
+ name: "finalizeBridgeMNT",
2488
+ outputs: [],
2489
+ stateMutability: "payable",
2490
+ type: "function",
2491
+ },
2492
+ {
2493
+ inputs: [
2494
+ { internalType: "address", name: "_l1Token", type: "address" },
2495
+ { internalType: "address", name: "_l2Token", type: "address" },
2496
+ { internalType: "address", name: "_from", type: "address" },
2497
+ { internalType: "address", name: "_to", type: "address" },
2498
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2499
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2500
+ ],
2501
+ name: "finalizeERC20Withdrawal",
2502
+ outputs: [],
2503
+ stateMutability: "nonpayable",
2504
+ type: "function",
2505
+ },
2506
+ {
2507
+ inputs: [
2508
+ { internalType: "address", name: "_from", type: "address" },
2509
+ { internalType: "address", name: "_to", type: "address" },
2510
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2511
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2512
+ ],
2513
+ name: "finalizeETHWithdrawal",
2514
+ outputs: [],
2515
+ stateMutability: "payable",
2516
+ type: "function",
2517
+ },
2518
+ {
2519
+ inputs: [
2520
+ { internalType: "address", name: "_from", type: "address" },
2521
+ { internalType: "address", name: "_to", type: "address" },
2522
+ { internalType: "uint256", name: "_amount", type: "uint256" },
2523
+ { internalType: "bytes", name: "_extraData", type: "bytes" },
2524
+ ],
2525
+ name: "finalizeMantleWithdrawal",
2526
+ outputs: [],
2527
+ stateMutability: "payable",
2528
+ type: "function",
2529
+ },
2530
+ {
2531
+ inputs: [],
2532
+ name: "l2TokenBridge",
2533
+ outputs: [{ internalType: "address", name: "", type: "address" }],
2534
+ stateMutability: "view",
2535
+ type: "function",
2536
+ },
2537
+ {
2538
+ inputs: [],
2539
+ name: "messenger",
2540
+ outputs: [
2541
+ {
2542
+ internalType: "contract CrossDomainMessenger",
2543
+ name: "",
2544
+ type: "address",
2545
+ },
2546
+ ],
2547
+ stateMutability: "view",
2548
+ type: "function",
2549
+ },
2550
+ {
2551
+ inputs: [],
2552
+ name: "version",
2553
+ outputs: [{ internalType: "string", name: "", type: "string" }],
2554
+ stateMutability: "view",
2555
+ type: "function",
2556
+ },
2557
+ { stateMutability: "payable", type: "receive" },
2558
+ ];
2559
+ export const l2StandardBridge = [
2560
+ {
2561
+ inputs: [
2562
+ {
2563
+ internalType: "address payable",
2564
+ name: "_otherBridge",
2565
+ type: "address",
2566
+ },
2567
+ {
2568
+ internalType: "address",
2569
+ name: "_l1mnt",
2570
+ type: "address",
2571
+ },
2572
+ ],
2573
+ stateMutability: "nonpayable",
2574
+ type: "constructor",
2575
+ },
2576
+ {
2577
+ anonymous: false,
2578
+ inputs: [
2579
+ {
2580
+ indexed: true,
2581
+ internalType: "address",
2582
+ name: "l1Token",
2583
+ type: "address",
2584
+ },
2585
+ {
2586
+ indexed: true,
2587
+ internalType: "address",
2588
+ name: "l2Token",
2589
+ type: "address",
2590
+ },
2591
+ {
2592
+ indexed: true,
2593
+ internalType: "address",
2594
+ name: "from",
2595
+ type: "address",
2596
+ },
2597
+ {
2598
+ indexed: false,
2599
+ internalType: "address",
2600
+ name: "to",
2601
+ type: "address",
2602
+ },
2603
+ {
2604
+ indexed: false,
2605
+ internalType: "uint256",
2606
+ name: "amount",
2607
+ type: "uint256",
2608
+ },
2609
+ {
2610
+ indexed: false,
2611
+ internalType: "bytes",
2612
+ name: "extraData",
2613
+ type: "bytes",
2614
+ },
2615
+ ],
2616
+ name: "DepositFinalized",
2617
+ type: "event",
2618
+ },
2619
+ {
2620
+ anonymous: false,
2621
+ inputs: [
2622
+ {
2623
+ indexed: true,
2624
+ internalType: "address",
2625
+ name: "localToken",
2626
+ type: "address",
2627
+ },
2628
+ {
2629
+ indexed: true,
2630
+ internalType: "address",
2631
+ name: "remoteToken",
2632
+ type: "address",
2633
+ },
2634
+ {
2635
+ indexed: true,
2636
+ internalType: "address",
2637
+ name: "from",
2638
+ type: "address",
2639
+ },
2640
+ {
2641
+ indexed: false,
2642
+ internalType: "address",
2643
+ name: "to",
2644
+ type: "address",
2645
+ },
2646
+ {
2647
+ indexed: false,
2648
+ internalType: "uint256",
2649
+ name: "amount",
2650
+ type: "uint256",
2651
+ },
2652
+ {
2653
+ indexed: false,
2654
+ internalType: "bytes",
2655
+ name: "extraData",
2656
+ type: "bytes",
2657
+ },
2658
+ ],
2659
+ name: "ERC20BridgeFinalized",
2660
+ type: "event",
2661
+ },
2662
+ {
2663
+ anonymous: false,
2664
+ inputs: [
2665
+ {
2666
+ indexed: true,
2667
+ internalType: "address",
2668
+ name: "localToken",
2669
+ type: "address",
2670
+ },
2671
+ {
2672
+ indexed: true,
2673
+ internalType: "address",
2674
+ name: "remoteToken",
2675
+ type: "address",
2676
+ },
2677
+ {
2678
+ indexed: true,
2679
+ internalType: "address",
2680
+ name: "from",
2681
+ type: "address",
2682
+ },
2683
+ {
2684
+ indexed: false,
2685
+ internalType: "address",
2686
+ name: "to",
2687
+ type: "address",
2688
+ },
2689
+ {
2690
+ indexed: false,
2691
+ internalType: "uint256",
2692
+ name: "amount",
2693
+ type: "uint256",
2694
+ },
2695
+ {
2696
+ indexed: false,
2697
+ internalType: "bytes",
2698
+ name: "extraData",
2699
+ type: "bytes",
2700
+ },
2701
+ ],
2702
+ name: "ERC20BridgeInitiated",
2703
+ type: "event",
2704
+ },
2705
+ {
2706
+ anonymous: false,
2707
+ inputs: [
2708
+ {
2709
+ indexed: true,
2710
+ internalType: "address",
2711
+ name: "from",
2712
+ type: "address",
2713
+ },
2714
+ {
2715
+ indexed: true,
2716
+ internalType: "address",
2717
+ name: "to",
2718
+ type: "address",
2719
+ },
2720
+ {
2721
+ indexed: false,
2722
+ internalType: "uint256",
2723
+ name: "amount",
2724
+ type: "uint256",
2725
+ },
2726
+ {
2727
+ indexed: false,
2728
+ internalType: "bytes",
2729
+ name: "extraData",
2730
+ type: "bytes",
2731
+ },
2732
+ ],
2733
+ name: "ETHBridgeFinalized",
2734
+ type: "event",
2735
+ },
2736
+ {
2737
+ anonymous: false,
2738
+ inputs: [
2739
+ {
2740
+ indexed: true,
2741
+ internalType: "address",
2742
+ name: "from",
2743
+ type: "address",
2744
+ },
2745
+ {
2746
+ indexed: true,
2747
+ internalType: "address",
2748
+ name: "to",
2749
+ type: "address",
2750
+ },
2751
+ {
2752
+ indexed: false,
2753
+ internalType: "uint256",
2754
+ name: "amount",
2755
+ type: "uint256",
2756
+ },
2757
+ {
2758
+ indexed: false,
2759
+ internalType: "bytes",
2760
+ name: "extraData",
2761
+ type: "bytes",
2762
+ },
2763
+ ],
2764
+ name: "ETHBridgeInitiated",
2765
+ type: "event",
2766
+ },
2767
+ {
2768
+ anonymous: false,
2769
+ inputs: [
2770
+ {
2771
+ indexed: true,
2772
+ internalType: "address",
2773
+ name: "from",
2774
+ type: "address",
2775
+ },
2776
+ {
2777
+ indexed: true,
2778
+ internalType: "address",
2779
+ name: "to",
2780
+ type: "address",
2781
+ },
2782
+ {
2783
+ indexed: false,
2784
+ internalType: "uint256",
2785
+ name: "amount",
2786
+ type: "uint256",
2787
+ },
2788
+ {
2789
+ indexed: false,
2790
+ internalType: "bytes",
2791
+ name: "extraData",
2792
+ type: "bytes",
2793
+ },
2794
+ ],
2795
+ name: "MNTBridgeFinalized",
2796
+ type: "event",
2797
+ },
2798
+ {
2799
+ anonymous: false,
2800
+ inputs: [
2801
+ {
2802
+ indexed: true,
2803
+ internalType: "address",
2804
+ name: "from",
2805
+ type: "address",
2806
+ },
2807
+ {
2808
+ indexed: true,
2809
+ internalType: "address",
2810
+ name: "to",
2811
+ type: "address",
2812
+ },
2813
+ {
2814
+ indexed: false,
2815
+ internalType: "uint256",
2816
+ name: "amount",
2817
+ type: "uint256",
2818
+ },
2819
+ {
2820
+ indexed: false,
2821
+ internalType: "bytes",
2822
+ name: "extraData",
2823
+ type: "bytes",
2824
+ },
2825
+ ],
2826
+ name: "MNTBridgeInitiated",
2827
+ type: "event",
2828
+ },
2829
+ {
2830
+ anonymous: false,
2831
+ inputs: [
2832
+ {
2833
+ indexed: true,
2834
+ internalType: "address",
2835
+ name: "l1Token",
2836
+ type: "address",
2837
+ },
2838
+ {
2839
+ indexed: true,
2840
+ internalType: "address",
2841
+ name: "l2Token",
2842
+ type: "address",
2843
+ },
2844
+ {
2845
+ indexed: true,
2846
+ internalType: "address",
2847
+ name: "from",
2848
+ type: "address",
2849
+ },
2850
+ {
2851
+ indexed: false,
2852
+ internalType: "address",
2853
+ name: "to",
2854
+ type: "address",
2855
+ },
2856
+ {
2857
+ indexed: false,
2858
+ internalType: "uint256",
2859
+ name: "amount",
2860
+ type: "uint256",
2861
+ },
2862
+ {
2863
+ indexed: false,
2864
+ internalType: "bytes",
2865
+ name: "extraData",
2866
+ type: "bytes",
2867
+ },
2868
+ ],
2869
+ name: "WithdrawalInitiated",
2870
+ type: "event",
2871
+ },
2872
+ {
2873
+ inputs: [],
2874
+ name: "L1_MNT_ADDRESS",
2875
+ outputs: [
2876
+ {
2877
+ internalType: "address",
2878
+ name: "",
2879
+ type: "address",
2880
+ },
2881
+ ],
2882
+ stateMutability: "view",
2883
+ type: "function",
2884
+ },
2885
+ {
2886
+ inputs: [],
2887
+ name: "MESSENGER",
2888
+ outputs: [
2889
+ {
2890
+ internalType: "contract CrossDomainMessenger",
2891
+ name: "",
2892
+ type: "address",
2893
+ },
2894
+ ],
2895
+ stateMutability: "view",
2896
+ type: "function",
2897
+ },
2898
+ {
2899
+ inputs: [],
2900
+ name: "OTHER_BRIDGE",
2901
+ outputs: [
2902
+ {
2903
+ internalType: "contract StandardBridge",
2904
+ name: "",
2905
+ type: "address",
2906
+ },
2907
+ ],
2908
+ stateMutability: "view",
2909
+ type: "function",
2910
+ },
2911
+ {
2912
+ inputs: [
2913
+ {
2914
+ internalType: "address",
2915
+ name: "_localToken",
2916
+ type: "address",
2917
+ },
2918
+ {
2919
+ internalType: "address",
2920
+ name: "_remoteToken",
2921
+ type: "address",
2922
+ },
2923
+ {
2924
+ internalType: "uint256",
2925
+ name: "_amount",
2926
+ type: "uint256",
2927
+ },
2928
+ {
2929
+ internalType: "uint32",
2930
+ name: "_minGasLimit",
2931
+ type: "uint32",
2932
+ },
2933
+ {
2934
+ internalType: "bytes",
2935
+ name: "_extraData",
2936
+ type: "bytes",
2937
+ },
2938
+ ],
2939
+ name: "bridgeERC20",
2940
+ outputs: [],
2941
+ stateMutability: "nonpayable",
2942
+ type: "function",
2943
+ },
2944
+ {
2945
+ inputs: [
2946
+ {
2947
+ internalType: "address",
2948
+ name: "_localToken",
2949
+ type: "address",
2950
+ },
2951
+ {
2952
+ internalType: "address",
2953
+ name: "_remoteToken",
2954
+ type: "address",
2955
+ },
2956
+ {
2957
+ internalType: "address",
2958
+ name: "_to",
2959
+ type: "address",
2960
+ },
2961
+ {
2962
+ internalType: "uint256",
2963
+ name: "_amount",
2964
+ type: "uint256",
2965
+ },
2966
+ {
2967
+ internalType: "uint32",
2968
+ name: "_minGasLimit",
2969
+ type: "uint32",
2970
+ },
2971
+ {
2972
+ internalType: "bytes",
2973
+ name: "_extraData",
2974
+ type: "bytes",
2975
+ },
2976
+ ],
2977
+ name: "bridgeERC20To",
2978
+ outputs: [],
2979
+ stateMutability: "nonpayable",
2980
+ type: "function",
2981
+ },
2982
+ {
2983
+ inputs: [
2984
+ {
2985
+ internalType: "uint256",
2986
+ name: "_value",
2987
+ type: "uint256",
2988
+ },
2989
+ {
2990
+ internalType: "uint32",
2991
+ name: "_minGasLimit",
2992
+ type: "uint32",
2993
+ },
2994
+ {
2995
+ internalType: "bytes",
2996
+ name: "_extraData",
2997
+ type: "bytes",
2998
+ },
2999
+ ],
3000
+ name: "bridgeETH",
3001
+ outputs: [],
3002
+ stateMutability: "nonpayable",
3003
+ type: "function",
3004
+ },
3005
+ {
3006
+ inputs: [
3007
+ {
3008
+ internalType: "uint256",
3009
+ name: "_value",
3010
+ type: "uint256",
3011
+ },
3012
+ {
3013
+ internalType: "address",
3014
+ name: "_to",
3015
+ type: "address",
3016
+ },
3017
+ {
3018
+ internalType: "uint32",
3019
+ name: "_minGasLimit",
3020
+ type: "uint32",
3021
+ },
3022
+ {
3023
+ internalType: "bytes",
3024
+ name: "_extraData",
3025
+ type: "bytes",
3026
+ },
3027
+ ],
3028
+ name: "bridgeETHTo",
3029
+ outputs: [],
3030
+ stateMutability: "nonpayable",
3031
+ type: "function",
3032
+ },
3033
+ {
3034
+ inputs: [
3035
+ {
3036
+ internalType: "uint32",
3037
+ name: "_minGasLimit",
3038
+ type: "uint32",
3039
+ },
3040
+ {
3041
+ internalType: "bytes",
3042
+ name: "_extraData",
3043
+ type: "bytes",
3044
+ },
3045
+ ],
3046
+ name: "bridgeMNT",
3047
+ outputs: [],
3048
+ stateMutability: "payable",
3049
+ type: "function",
3050
+ },
3051
+ {
3052
+ inputs: [
3053
+ {
3054
+ internalType: "address",
3055
+ name: "_to",
3056
+ type: "address",
3057
+ },
3058
+ {
3059
+ internalType: "uint32",
3060
+ name: "_minGasLimit",
3061
+ type: "uint32",
3062
+ },
3063
+ {
3064
+ internalType: "bytes",
3065
+ name: "_extraData",
3066
+ type: "bytes",
3067
+ },
3068
+ ],
3069
+ name: "bridgeMNTTo",
3070
+ outputs: [],
3071
+ stateMutability: "payable",
3072
+ type: "function",
3073
+ },
3074
+ {
3075
+ inputs: [
3076
+ {
3077
+ internalType: "address",
3078
+ name: "",
3079
+ type: "address",
3080
+ },
3081
+ {
3082
+ internalType: "address",
3083
+ name: "",
3084
+ type: "address",
3085
+ },
3086
+ ],
3087
+ name: "deposits",
3088
+ outputs: [
3089
+ {
3090
+ internalType: "uint256",
3091
+ name: "",
3092
+ type: "uint256",
3093
+ },
3094
+ ],
3095
+ stateMutability: "view",
3096
+ type: "function",
3097
+ },
3098
+ {
3099
+ inputs: [
3100
+ {
3101
+ internalType: "address",
3102
+ name: "_localToken",
3103
+ type: "address",
3104
+ },
3105
+ {
3106
+ internalType: "address",
3107
+ name: "_remoteToken",
3108
+ type: "address",
3109
+ },
3110
+ {
3111
+ internalType: "address",
3112
+ name: "_from",
3113
+ type: "address",
3114
+ },
3115
+ {
3116
+ internalType: "address",
3117
+ name: "_to",
3118
+ type: "address",
3119
+ },
3120
+ {
3121
+ internalType: "uint256",
3122
+ name: "_amount",
3123
+ type: "uint256",
3124
+ },
3125
+ {
3126
+ internalType: "bytes",
3127
+ name: "_extraData",
3128
+ type: "bytes",
3129
+ },
3130
+ ],
3131
+ name: "finalizeBridgeERC20",
3132
+ outputs: [],
3133
+ stateMutability: "nonpayable",
3134
+ type: "function",
3135
+ },
3136
+ {
3137
+ inputs: [
3138
+ {
3139
+ internalType: "address",
3140
+ name: "_from",
3141
+ type: "address",
3142
+ },
3143
+ {
3144
+ internalType: "address",
3145
+ name: "_to",
3146
+ type: "address",
3147
+ },
3148
+ {
3149
+ internalType: "uint256",
3150
+ name: "_amount",
3151
+ type: "uint256",
3152
+ },
3153
+ {
3154
+ internalType: "bytes",
3155
+ name: "_extraData",
3156
+ type: "bytes",
3157
+ },
3158
+ ],
3159
+ name: "finalizeBridgeETH",
3160
+ outputs: [],
3161
+ stateMutability: "payable",
3162
+ type: "function",
3163
+ },
3164
+ {
3165
+ inputs: [
3166
+ {
3167
+ internalType: "address",
3168
+ name: "_from",
3169
+ type: "address",
3170
+ },
3171
+ {
3172
+ internalType: "address",
3173
+ name: "_to",
3174
+ type: "address",
3175
+ },
3176
+ {
3177
+ internalType: "uint256",
3178
+ name: "_amount",
3179
+ type: "uint256",
3180
+ },
3181
+ {
3182
+ internalType: "bytes",
3183
+ name: "_extraData",
3184
+ type: "bytes",
3185
+ },
3186
+ ],
3187
+ name: "finalizeBridgeMNT",
3188
+ outputs: [],
3189
+ stateMutability: "payable",
3190
+ type: "function",
3191
+ },
3192
+ {
3193
+ inputs: [
3194
+ {
3195
+ internalType: "address",
3196
+ name: "_l1Token",
3197
+ type: "address",
3198
+ },
3199
+ {
3200
+ internalType: "address",
3201
+ name: "_l2Token",
3202
+ type: "address",
3203
+ },
3204
+ {
3205
+ internalType: "address",
3206
+ name: "_from",
3207
+ type: "address",
3208
+ },
3209
+ {
3210
+ internalType: "address",
3211
+ name: "_to",
3212
+ type: "address",
3213
+ },
3214
+ {
3215
+ internalType: "uint256",
3216
+ name: "_amount",
3217
+ type: "uint256",
3218
+ },
3219
+ {
3220
+ internalType: "bytes",
3221
+ name: "_extraData",
3222
+ type: "bytes",
3223
+ },
3224
+ ],
3225
+ name: "finalizeDeposit",
3226
+ outputs: [],
3227
+ stateMutability: "payable",
3228
+ type: "function",
3229
+ },
3230
+ {
3231
+ inputs: [],
3232
+ name: "l1TokenBridge",
3233
+ outputs: [
3234
+ {
3235
+ internalType: "address",
3236
+ name: "",
3237
+ type: "address",
3238
+ },
3239
+ ],
3240
+ stateMutability: "view",
3241
+ type: "function",
3242
+ },
3243
+ {
3244
+ inputs: [],
3245
+ name: "messenger",
3246
+ outputs: [
3247
+ {
3248
+ internalType: "contract CrossDomainMessenger",
3249
+ name: "",
3250
+ type: "address",
3251
+ },
3252
+ ],
3253
+ stateMutability: "view",
3254
+ type: "function",
3255
+ },
3256
+ {
3257
+ inputs: [],
3258
+ name: "version",
3259
+ outputs: [
3260
+ {
3261
+ internalType: "string",
3262
+ name: "",
3263
+ type: "string",
3264
+ },
3265
+ ],
3266
+ stateMutability: "view",
3267
+ type: "function",
3268
+ },
3269
+ {
3270
+ inputs: [
3271
+ {
3272
+ internalType: "address",
3273
+ name: "_l2Token",
3274
+ type: "address",
3275
+ },
3276
+ {
3277
+ internalType: "uint256",
3278
+ name: "_amount",
3279
+ type: "uint256",
3280
+ },
3281
+ {
3282
+ internalType: "uint32",
3283
+ name: "_minGasLimit",
3284
+ type: "uint32",
3285
+ },
3286
+ {
3287
+ internalType: "bytes",
3288
+ name: "_extraData",
3289
+ type: "bytes",
3290
+ },
3291
+ ],
3292
+ name: "withdraw",
3293
+ outputs: [],
3294
+ stateMutability: "payable",
3295
+ type: "function",
3296
+ },
3297
+ {
3298
+ inputs: [
3299
+ {
3300
+ internalType: "address",
3301
+ name: "_l2Token",
3302
+ type: "address",
3303
+ },
3304
+ {
3305
+ internalType: "address",
3306
+ name: "_to",
3307
+ type: "address",
3308
+ },
3309
+ {
3310
+ internalType: "uint256",
3311
+ name: "_amount",
3312
+ type: "uint256",
3313
+ },
3314
+ {
3315
+ internalType: "uint32",
3316
+ name: "_minGasLimit",
3317
+ type: "uint32",
3318
+ },
3319
+ {
3320
+ internalType: "bytes",
3321
+ name: "_extraData",
3322
+ type: "bytes",
3323
+ },
3324
+ ],
3325
+ name: "withdrawTo",
3326
+ outputs: [],
3327
+ stateMutability: "payable",
3328
+ type: "function",
3329
+ },
3330
+ {
3331
+ stateMutability: "payable",
3332
+ type: "receive",
3333
+ },
3334
+ ];
3335
+ //# sourceMappingURL=abis.js.map