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