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