@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.
- package/LICENSE.md +21 -0
- package/README.md +54 -0
- package/dist/cjs/abis.js +3338 -0
- package/dist/cjs/abis.js.map +1 -0
- package/dist/cjs/actions/buildProveWithdrawal.js +55 -0
- package/dist/cjs/actions/buildProveWithdrawal.js.map +1 -0
- package/dist/cjs/actions/depositERC20.js +37 -0
- package/dist/cjs/actions/depositERC20.js.map +1 -0
- package/dist/cjs/actions/depositETH.js +36 -0
- package/dist/cjs/actions/depositETH.js.map +1 -0
- package/dist/cjs/actions/depositMNT.js +35 -0
- package/dist/cjs/actions/depositMNT.js.map +1 -0
- package/dist/cjs/actions/estimateDepositERC20Gas.js +38 -0
- package/dist/cjs/actions/estimateDepositERC20Gas.js.map +1 -0
- package/dist/cjs/actions/estimateDepositETHGas.js +37 -0
- package/dist/cjs/actions/estimateDepositETHGas.js.map +1 -0
- package/dist/cjs/actions/estimateDepositMNTGas.js +36 -0
- package/dist/cjs/actions/estimateDepositMNTGas.js.map +1 -0
- package/dist/cjs/actions/estimateFinalizeWithdrawalGas.js +29 -0
- package/dist/cjs/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
- package/dist/cjs/actions/estimateInitiateERC20WithdrawalGas.js +30 -0
- package/dist/cjs/actions/estimateInitiateERC20WithdrawalGas.js.map +1 -0
- package/dist/cjs/actions/estimateInitiateETHWithdrawalGas.js +29 -0
- package/dist/cjs/actions/estimateInitiateETHWithdrawalGas.js.map +1 -0
- package/dist/cjs/actions/estimateInitiateMNTWithdrawalGas.js +30 -0
- package/dist/cjs/actions/estimateInitiateMNTWithdrawalGas.js.map +1 -0
- package/dist/cjs/actions/estimateProveWithdrawalGas.js +29 -0
- package/dist/cjs/actions/estimateProveWithdrawalGas.js.map +1 -0
- package/dist/cjs/actions/finalizeWithdrawal.js +28 -0
- package/dist/cjs/actions/finalizeWithdrawal.js.map +1 -0
- package/dist/cjs/actions/getL2Output.js +31 -0
- package/dist/cjs/actions/getL2Output.js.map +1 -0
- package/dist/cjs/actions/getPortalVersion.js +24 -0
- package/dist/cjs/actions/getPortalVersion.js.map +1 -0
- package/dist/cjs/actions/getTimeToFinalize.js +46 -0
- package/dist/cjs/actions/getTimeToFinalize.js.map +1 -0
- package/dist/cjs/actions/getTimeToNextL2Output.js +62 -0
- package/dist/cjs/actions/getTimeToNextL2Output.js.map +1 -0
- package/dist/cjs/actions/getTimeToProve.js +12 -0
- package/dist/cjs/actions/getTimeToProve.js.map +1 -0
- package/dist/cjs/actions/getWithdrawalStatus.js +133 -0
- package/dist/cjs/actions/getWithdrawalStatus.js.map +1 -0
- package/dist/cjs/actions/initiateERC20Withdrawal.js +29 -0
- package/dist/cjs/actions/initiateERC20Withdrawal.js.map +1 -0
- package/dist/cjs/actions/initiateETHWithdrawal.js +28 -0
- package/dist/cjs/actions/initiateETHWithdrawal.js.map +1 -0
- package/dist/cjs/actions/initiateMNTWithdrawal.js +29 -0
- package/dist/cjs/actions/initiateMNTWithdrawal.js.map +1 -0
- package/dist/cjs/actions/proveWithdrawal.js +28 -0
- package/dist/cjs/actions/proveWithdrawal.js.map +1 -0
- package/dist/cjs/actions/waitForNextL2Output.js +31 -0
- package/dist/cjs/actions/waitForNextL2Output.js.map +1 -0
- package/dist/cjs/actions/waitToFinalize.js +10 -0
- package/dist/cjs/actions/waitToFinalize.js.map +1 -0
- package/dist/cjs/actions/waitToProve.js +24 -0
- package/dist/cjs/actions/waitToProve.js.map +1 -0
- package/dist/cjs/chainConfig.js +12 -0
- package/dist/cjs/chainConfig.js.map +1 -0
- package/dist/cjs/chains/index.js +8 -0
- package/dist/cjs/chains/index.js.map +1 -0
- package/dist/cjs/chains/mantle.js +53 -0
- package/dist/cjs/chains/mantle.js.map +1 -0
- package/dist/cjs/chains/mantleSepoliaTestnet.js +54 -0
- package/dist/cjs/chains/mantleSepoliaTestnet.js.map +1 -0
- package/dist/cjs/contracts.js +16 -0
- package/dist/cjs/contracts.js.map +1 -0
- package/dist/cjs/decorators/publicL1.js +38 -0
- package/dist/cjs/decorators/publicL1.js.map +1 -0
- package/dist/cjs/decorators/publicL2.js +18 -0
- package/dist/cjs/decorators/publicL2.js.map +1 -0
- package/dist/cjs/decorators/walletL1.js +20 -0
- package/dist/cjs/decorators/walletL1.js.map +1 -0
- package/dist/cjs/decorators/walletL2.js +16 -0
- package/dist/cjs/decorators/walletL2.js.map +1 -0
- package/dist/cjs/errors/utils.js +3 -0
- package/dist/cjs/errors/utils.js.map +1 -0
- package/dist/cjs/errors/withdrawal.js +17 -0
- package/dist/cjs/errors/withdrawal.js.map +1 -0
- package/dist/cjs/formatters.js +51 -0
- package/dist/cjs/formatters.js.map +1 -0
- package/dist/cjs/index.js +59 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/parsers.js +58 -0
- package/dist/cjs/parsers.js.map +1 -0
- package/dist/cjs/serializers.js +53 -0
- package/dist/cjs/serializers.js.map +1 -0
- package/dist/cjs/types/account.js +3 -0
- package/dist/cjs/types/account.js.map +1 -0
- package/dist/cjs/types/block.js +3 -0
- package/dist/cjs/types/block.js.map +1 -0
- package/dist/cjs/types/chain.js +3 -0
- package/dist/cjs/types/chain.js.map +1 -0
- package/dist/cjs/types/contract.js +3 -0
- package/dist/cjs/types/contract.js.map +1 -0
- package/dist/cjs/types/deposit.js +3 -0
- package/dist/cjs/types/deposit.js.map +1 -0
- package/dist/cjs/types/l1Actions.js +8 -0
- package/dist/cjs/types/l1Actions.js.map +1 -0
- package/dist/cjs/types/l2Actions.js +11 -0
- package/dist/cjs/types/l2Actions.js.map +1 -0
- package/dist/cjs/types/transaction.js +3 -0
- package/dist/cjs/types/transaction.js.map +1 -0
- package/dist/cjs/types/withdrawal.js +3 -0
- package/dist/cjs/types/withdrawal.js.map +1 -0
- package/dist/cjs/utils/extractTransactionDepositedLogs.js +13 -0
- package/dist/cjs/utils/extractTransactionDepositedLogs.js.map +1 -0
- package/dist/cjs/utils/extractWithdrawalMessageLogs.js +13 -0
- package/dist/cjs/utils/extractWithdrawalMessageLogs.js.map +1 -0
- package/dist/cjs/utils/getL2TransactionHash.js +29 -0
- package/dist/cjs/utils/getL2TransactionHash.js.map +1 -0
- package/dist/cjs/utils/getL2TransactionHashes.js +10 -0
- package/dist/cjs/utils/getL2TransactionHashes.js.map +1 -0
- package/dist/cjs/utils/getSourceHash.js +17 -0
- package/dist/cjs/utils/getSourceHash.js.map +1 -0
- package/dist/cjs/utils/getWithdrawalHashStorageSlot.js +9 -0
- package/dist/cjs/utils/getWithdrawalHashStorageSlot.js.map +1 -0
- package/dist/cjs/utils/getWithdrawals.js +9 -0
- package/dist/cjs/utils/getWithdrawals.js.map +1 -0
- package/dist/cjs/utils/opaqueDataToDepositData.js +32 -0
- package/dist/cjs/utils/opaqueDataToDepositData.js.map +1 -0
- package/dist/cjs/utils/parseDepositRequest.js +43 -0
- package/dist/cjs/utils/parseDepositRequest.js.map +1 -0
- package/dist/cjs/utils/parseInitWithdrawRequest.js +55 -0
- package/dist/cjs/utils/parseInitWithdrawRequest.js.map +1 -0
- package/dist/cjs/utils/poll.js +26 -0
- package/dist/cjs/utils/poll.js.map +1 -0
- package/dist/cjs/utils/promise/withCache.js +47 -0
- package/dist/cjs/utils/promise/withCache.js.map +1 -0
- package/dist/cjs/utils/wait.js +7 -0
- package/dist/cjs/utils/wait.js.map +1 -0
- package/dist/esm/abis.js +3335 -0
- package/dist/esm/abis.js.map +1 -0
- package/dist/esm/actions/buildProveWithdrawal.js +67 -0
- package/dist/esm/actions/buildProveWithdrawal.js.map +1 -0
- package/dist/esm/actions/depositERC20.js +39 -0
- package/dist/esm/actions/depositERC20.js.map +1 -0
- package/dist/esm/actions/depositETH.js +38 -0
- package/dist/esm/actions/depositETH.js.map +1 -0
- package/dist/esm/actions/depositMNT.js +37 -0
- package/dist/esm/actions/depositMNT.js.map +1 -0
- package/dist/esm/actions/estimateDepositERC20Gas.js +43 -0
- package/dist/esm/actions/estimateDepositERC20Gas.js.map +1 -0
- package/dist/esm/actions/estimateDepositETHGas.js +43 -0
- package/dist/esm/actions/estimateDepositETHGas.js.map +1 -0
- package/dist/esm/actions/estimateDepositMNTGas.js +41 -0
- package/dist/esm/actions/estimateDepositMNTGas.js.map +1 -0
- package/dist/esm/actions/estimateFinalizeWithdrawalGas.js +34 -0
- package/dist/esm/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
- package/dist/esm/actions/estimateInitiateERC20WithdrawalGas.js +35 -0
- package/dist/esm/actions/estimateInitiateERC20WithdrawalGas.js.map +1 -0
- package/dist/esm/actions/estimateInitiateETHWithdrawalGas.js +34 -0
- package/dist/esm/actions/estimateInitiateETHWithdrawalGas.js.map +1 -0
- package/dist/esm/actions/estimateInitiateMNTWithdrawalGas.js +35 -0
- package/dist/esm/actions/estimateInitiateMNTWithdrawalGas.js.map +1 -0
- package/dist/esm/actions/estimateProveWithdrawalGas.js +34 -0
- package/dist/esm/actions/estimateProveWithdrawalGas.js.map +1 -0
- package/dist/esm/actions/finalizeWithdrawal.js +30 -0
- package/dist/esm/actions/finalizeWithdrawal.js.map +1 -0
- package/dist/esm/actions/getL2Output.js +33 -0
- package/dist/esm/actions/getL2Output.js.map +1 -0
- package/dist/esm/actions/getPortalVersion.js +26 -0
- package/dist/esm/actions/getPortalVersion.js.map +1 -0
- package/dist/esm/actions/getTimeToFinalize.js +48 -0
- package/dist/esm/actions/getTimeToFinalize.js.map +1 -0
- package/dist/esm/actions/getTimeToNextL2Output.js +68 -0
- package/dist/esm/actions/getTimeToNextL2Output.js.map +1 -0
- package/dist/esm/actions/getTimeToProve.js +14 -0
- package/dist/esm/actions/getTimeToProve.js.map +1 -0
- package/dist/esm/actions/getWithdrawalStatus.js +138 -0
- package/dist/esm/actions/getWithdrawalStatus.js.map +1 -0
- package/dist/esm/actions/initiateERC20Withdrawal.js +31 -0
- package/dist/esm/actions/initiateERC20Withdrawal.js.map +1 -0
- package/dist/esm/actions/initiateETHWithdrawal.js +30 -0
- package/dist/esm/actions/initiateETHWithdrawal.js.map +1 -0
- package/dist/esm/actions/initiateMNTWithdrawal.js +31 -0
- package/dist/esm/actions/initiateMNTWithdrawal.js.map +1 -0
- package/dist/esm/actions/proveWithdrawal.js +30 -0
- package/dist/esm/actions/proveWithdrawal.js.map +1 -0
- package/dist/esm/actions/waitForNextL2Output.js +33 -0
- package/dist/esm/actions/waitForNextL2Output.js.map +1 -0
- package/dist/esm/actions/waitToFinalize.js +11 -0
- package/dist/esm/actions/waitToFinalize.js.map +1 -0
- package/dist/esm/actions/waitToProve.js +26 -0
- package/dist/esm/actions/waitToProve.js.map +1 -0
- package/dist/esm/chainConfig.js +9 -0
- package/dist/esm/chainConfig.js.map +1 -0
- package/dist/esm/chains/index.js +3 -0
- package/dist/esm/chains/index.js.map +1 -0
- package/dist/esm/chains/mantle.js +50 -0
- package/dist/esm/chains/mantle.js.map +1 -0
- package/dist/esm/chains/mantleSepoliaTestnet.js +51 -0
- package/dist/esm/chains/mantleSepoliaTestnet.js.map +1 -0
- package/dist/esm/contracts.js +13 -0
- package/dist/esm/contracts.js.map +1 -0
- package/dist/esm/decorators/publicL1.js +35 -0
- package/dist/esm/decorators/publicL1.js.map +1 -0
- package/dist/esm/decorators/publicL2.js +15 -0
- package/dist/esm/decorators/publicL2.js.map +1 -0
- package/dist/esm/decorators/walletL1.js +17 -0
- package/dist/esm/decorators/walletL1.js.map +1 -0
- package/dist/esm/decorators/walletL2.js +13 -0
- package/dist/esm/decorators/walletL2.js.map +1 -0
- package/dist/esm/errors/utils.js +2 -0
- package/dist/esm/errors/utils.js.map +1 -0
- package/dist/esm/errors/withdrawal.js +12 -0
- package/dist/esm/errors/withdrawal.js.map +1 -0
- package/dist/esm/formatters.js +48 -0
- package/dist/esm/formatters.js.map +1 -0
- package/dist/esm/index.js +29 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/parsers.js +54 -0
- package/dist/esm/parsers.js.map +1 -0
- package/dist/esm/serializers.js +48 -0
- package/dist/esm/serializers.js.map +1 -0
- package/dist/esm/types/account.js +2 -0
- package/dist/esm/types/account.js.map +1 -0
- package/dist/esm/types/block.js +2 -0
- package/dist/esm/types/block.js.map +1 -0
- package/dist/esm/types/chain.js +2 -0
- package/dist/esm/types/chain.js.map +1 -0
- package/dist/esm/types/contract.js +2 -0
- package/dist/esm/types/contract.js.map +1 -0
- package/dist/esm/types/deposit.js +2 -0
- package/dist/esm/types/deposit.js.map +1 -0
- package/dist/esm/types/l1Actions.js +5 -0
- package/dist/esm/types/l1Actions.js.map +1 -0
- package/dist/esm/types/l2Actions.js +7 -0
- package/dist/esm/types/l2Actions.js.map +1 -0
- package/dist/esm/types/transaction.js +2 -0
- package/dist/esm/types/transaction.js.map +1 -0
- package/dist/esm/types/withdrawal.js +2 -0
- package/dist/esm/types/withdrawal.js.map +1 -0
- package/dist/esm/utils/extractTransactionDepositedLogs.js +10 -0
- package/dist/esm/utils/extractTransactionDepositedLogs.js.map +1 -0
- package/dist/esm/utils/extractWithdrawalMessageLogs.js +10 -0
- package/dist/esm/utils/extractWithdrawalMessageLogs.js.map +1 -0
- package/dist/esm/utils/getL2TransactionHash.js +26 -0
- package/dist/esm/utils/getL2TransactionHash.js.map +1 -0
- package/dist/esm/utils/getL2TransactionHashes.js +7 -0
- package/dist/esm/utils/getL2TransactionHashes.js.map +1 -0
- package/dist/esm/utils/getSourceHash.js +14 -0
- package/dist/esm/utils/getSourceHash.js.map +1 -0
- package/dist/esm/utils/getWithdrawalHashStorageSlot.js +6 -0
- package/dist/esm/utils/getWithdrawalHashStorageSlot.js.map +1 -0
- package/dist/esm/utils/getWithdrawals.js +6 -0
- package/dist/esm/utils/getWithdrawals.js.map +1 -0
- package/dist/esm/utils/opaqueDataToDepositData.js +29 -0
- package/dist/esm/utils/opaqueDataToDepositData.js.map +1 -0
- package/dist/esm/utils/parseDepositRequest.js +39 -0
- package/dist/esm/utils/parseDepositRequest.js.map +1 -0
- package/dist/esm/utils/parseInitWithdrawRequest.js +51 -0
- package/dist/esm/utils/parseInitWithdrawRequest.js.map +1 -0
- package/dist/esm/utils/poll.js +26 -0
- package/dist/esm/utils/poll.js.map +1 -0
- package/dist/esm/utils/promise/withCache.js +57 -0
- package/dist/esm/utils/promise/withCache.js.map +1 -0
- package/dist/esm/utils/wait.js +4 -0
- package/dist/esm/utils/wait.js.map +1 -0
- package/dist/types/abis.d.ts +3110 -0
- package/dist/types/abis.d.ts.map +1 -0
- package/dist/types/actions/buildProveWithdrawal.d.ts +34 -0
- package/dist/types/actions/buildProveWithdrawal.d.ts.map +1 -0
- package/dist/types/actions/depositERC20.d.ts +29 -0
- package/dist/types/actions/depositERC20.d.ts.map +1 -0
- package/dist/types/actions/depositETH.d.ts +29 -0
- package/dist/types/actions/depositETH.d.ts.map +1 -0
- package/dist/types/actions/depositMNT.d.ts +29 -0
- package/dist/types/actions/depositMNT.d.ts.map +1 -0
- package/dist/types/actions/estimateDepositERC20Gas.d.ts +26 -0
- package/dist/types/actions/estimateDepositERC20Gas.d.ts.map +1 -0
- package/dist/types/actions/estimateDepositETHGas.d.ts +26 -0
- package/dist/types/actions/estimateDepositETHGas.d.ts.map +1 -0
- package/dist/types/actions/estimateDepositMNTGas.d.ts +26 -0
- package/dist/types/actions/estimateDepositMNTGas.d.ts.map +1 -0
- package/dist/types/actions/estimateFinalizeWithdrawalGas.d.ts +26 -0
- package/dist/types/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -0
- package/dist/types/actions/estimateInitiateERC20WithdrawalGas.d.ts +25 -0
- package/dist/types/actions/estimateInitiateERC20WithdrawalGas.d.ts.map +1 -0
- package/dist/types/actions/estimateInitiateETHWithdrawalGas.d.ts +25 -0
- package/dist/types/actions/estimateInitiateETHWithdrawalGas.d.ts.map +1 -0
- package/dist/types/actions/estimateInitiateMNTWithdrawalGas.d.ts +25 -0
- package/dist/types/actions/estimateInitiateMNTWithdrawalGas.d.ts.map +1 -0
- package/dist/types/actions/estimateProveWithdrawalGas.d.ts +35 -0
- package/dist/types/actions/estimateProveWithdrawalGas.d.ts.map +1 -0
- package/dist/types/actions/finalizeWithdrawal.d.ts +29 -0
- package/dist/types/actions/finalizeWithdrawal.d.ts.map +1 -0
- package/dist/types/actions/getL2Output.d.ts +24 -0
- package/dist/types/actions/getL2Output.d.ts.map +1 -0
- package/dist/types/actions/getPortalVersion.d.ts +23 -0
- package/dist/types/actions/getPortalVersion.d.ts.map +1 -0
- package/dist/types/actions/getTimeToFinalize.d.ts +26 -0
- package/dist/types/actions/getTimeToFinalize.d.ts.map +1 -0
- package/dist/types/actions/getTimeToNextL2Output.d.ts +35 -0
- package/dist/types/actions/getTimeToNextL2Output.d.ts.map +1 -0
- package/dist/types/actions/getTimeToProve.d.ts +24 -0
- package/dist/types/actions/getTimeToProve.d.ts.map +1 -0
- package/dist/types/actions/getWithdrawalStatus.d.ts +22 -0
- package/dist/types/actions/getWithdrawalStatus.d.ts.map +1 -0
- package/dist/types/actions/initiateERC20Withdrawal.d.ts +27 -0
- package/dist/types/actions/initiateERC20Withdrawal.d.ts.map +1 -0
- package/dist/types/actions/initiateETHWithdrawal.d.ts +27 -0
- package/dist/types/actions/initiateETHWithdrawal.d.ts.map +1 -0
- package/dist/types/actions/initiateMNTWithdrawal.d.ts +27 -0
- package/dist/types/actions/initiateMNTWithdrawal.d.ts.map +1 -0
- package/dist/types/actions/proveWithdrawal.d.ts +36 -0
- package/dist/types/actions/proveWithdrawal.d.ts.map +1 -0
- package/dist/types/actions/waitForNextL2Output.d.ts +29 -0
- package/dist/types/actions/waitForNextL2Output.d.ts.map +1 -0
- package/dist/types/actions/waitToFinalize.d.ts +14 -0
- package/dist/types/actions/waitToFinalize.d.ts.map +1 -0
- package/dist/types/actions/waitToProve.d.ts +27 -0
- package/dist/types/actions/waitToProve.d.ts.map +1 -0
- package/dist/types/chainConfig.d.ts +43 -0
- package/dist/types/chainConfig.d.ts.map +1 -0
- package/dist/types/chains/index.d.ts +3 -0
- package/dist/types/chains/index.d.ts.map +1 -0
- package/dist/types/chains/mantle.d.ts +299 -0
- package/dist/types/chains/mantle.d.ts.map +1 -0
- package/dist/types/chains/mantleSepoliaTestnet.d.ts +299 -0
- package/dist/types/chains/mantleSepoliaTestnet.d.ts.map +1 -0
- package/dist/types/contracts.d.ts +21 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/dist/types/decorators/publicL1.d.ts +35 -0
- package/dist/types/decorators/publicL1.d.ts.map +1 -0
- package/dist/types/decorators/publicL2.d.ts +16 -0
- package/dist/types/decorators/publicL2.d.ts.map +1 -0
- package/dist/types/decorators/walletL1.d.ts +17 -0
- package/dist/types/decorators/walletL1.d.ts.map +1 -0
- package/dist/types/decorators/walletL2.d.ts +13 -0
- package/dist/types/decorators/walletL2.d.ts.map +1 -0
- package/dist/types/errors/utils.d.ts +4 -0
- package/dist/types/errors/utils.d.ts.map +1 -0
- package/dist/types/errors/withdrawal.d.ts +17 -0
- package/dist/types/errors/withdrawal.d.ts.map +1 -0
- package/dist/types/formatters.d.ts +20 -0
- package/dist/types/formatters.d.ts.map +1 -0
- package/dist/types/index.d.ts +30 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/parsers.d.ts +8 -0
- package/dist/types/parsers.d.ts.map +1 -0
- package/dist/types/serializers.d.ts +13 -0
- package/dist/types/serializers.d.ts.map +1 -0
- package/dist/types/types/account.d.ts +7 -0
- package/dist/types/types/account.d.ts.map +1 -0
- package/dist/types/types/block.d.ts +13 -0
- package/dist/types/types/block.d.ts.map +1 -0
- package/dist/types/types/chain.d.ts +9 -0
- package/dist/types/types/chain.d.ts.map +1 -0
- package/dist/types/types/contract.d.ts +14 -0
- package/dist/types/types/contract.d.ts.map +1 -0
- package/dist/types/types/deposit.d.ts +35 -0
- package/dist/types/types/deposit.d.ts.map +1 -0
- package/dist/types/types/l1Actions.d.ts +856 -0
- package/dist/types/types/l1Actions.d.ts.map +1 -0
- package/dist/types/types/l2Actions.d.ts +3 -0
- package/dist/types/types/l2Actions.d.ts.map +1 -0
- package/dist/types/types/transaction.d.ts +58 -0
- package/dist/types/types/transaction.d.ts.map +1 -0
- package/dist/types/types/withdrawal.d.ts +39 -0
- package/dist/types/types/withdrawal.d.ts.map +1 -0
- package/dist/types/utils/extractTransactionDepositedLogs.d.ts +450 -0
- package/dist/types/utils/extractTransactionDepositedLogs.d.ts.map +1 -0
- package/dist/types/utils/extractWithdrawalMessageLogs.d.ts +160 -0
- package/dist/types/utils/extractWithdrawalMessageLogs.d.ts.map +1 -0
- package/dist/types/utils/getL2TransactionHash.d.ts +12 -0
- package/dist/types/utils/getL2TransactionHash.d.ts.map +1 -0
- package/dist/types/utils/getL2TransactionHashes.d.ts +11 -0
- package/dist/types/utils/getL2TransactionHashes.d.ts.map +1 -0
- package/dist/types/utils/getSourceHash.d.ts +25 -0
- package/dist/types/utils/getSourceHash.d.ts.map +1 -0
- package/dist/types/utils/getWithdrawalHashStorageSlot.d.ts +10 -0
- package/dist/types/utils/getWithdrawalHashStorageSlot.d.ts.map +1 -0
- package/dist/types/utils/getWithdrawals.d.ts +12 -0
- package/dist/types/utils/getWithdrawals.d.ts.map +1 -0
- package/dist/types/utils/opaqueDataToDepositData.d.ts +16 -0
- package/dist/types/utils/opaqueDataToDepositData.d.ts.map +1 -0
- package/dist/types/utils/parseDepositRequest.d.ts +11 -0
- package/dist/types/utils/parseDepositRequest.d.ts.map +1 -0
- package/dist/types/utils/parseInitWithdrawRequest.d.ts +11 -0
- package/dist/types/utils/parseInitWithdrawRequest.d.ts.map +1 -0
- package/dist/types/utils/poll.d.ts +15 -0
- package/dist/types/utils/poll.d.ts.map +1 -0
- package/dist/types/utils/promise/withCache.d.ts +41 -0
- package/dist/types/utils/promise/withCache.d.ts.map +1 -0
- package/dist/types/utils/wait.d.ts +2 -0
- package/dist/types/utils/wait.d.ts.map +1 -0
- package/package.json +113 -0
- package/src/mantle/abis.ts +3339 -0
- package/src/mantle/actions/buildProveWithdrawal.ts +150 -0
- package/src/mantle/actions/depositERC20.ts +103 -0
- package/src/mantle/actions/depositETH.ts +102 -0
- package/src/mantle/actions/depositMNT.ts +101 -0
- package/src/mantle/actions/estimateDepositERC20Gas.ts +113 -0
- package/src/mantle/actions/estimateDepositETHGas.ts +113 -0
- package/src/mantle/actions/estimateDepositMNTGas.ts +111 -0
- package/src/mantle/actions/estimateFinalizeWithdrawalGas.ts +102 -0
- package/src/mantle/actions/estimateInitiateERC20WithdrawalGas.ts +106 -0
- package/src/mantle/actions/estimateInitiateETHWithdrawalGas.ts +105 -0
- package/src/mantle/actions/estimateInitiateMNTWithdrawalGas.ts +106 -0
- package/src/mantle/actions/estimateProveWithdrawalGas.ts +114 -0
- package/src/mantle/actions/finalizeWithdrawal.ts +95 -0
- package/src/mantle/actions/getL2Output.ts +75 -0
- package/src/mantle/actions/getPortalVersion.ts +57 -0
- package/src/mantle/actions/getTimeToFinalize.ts +85 -0
- package/src/mantle/actions/getTimeToNextL2Output.ts +132 -0
- package/src/mantle/actions/getTimeToProve.ts +58 -0
- package/src/mantle/actions/getWithdrawalStatus.ts +225 -0
- package/src/mantle/actions/initiateERC20Withdrawal.ts +93 -0
- package/src/mantle/actions/initiateETHWithdrawal.ts +90 -0
- package/src/mantle/actions/initiateMNTWithdrawal.ts +91 -0
- package/src/mantle/actions/proveWithdrawal.ts +107 -0
- package/src/mantle/actions/waitForNextL2Output.ts +87 -0
- package/src/mantle/actions/waitToFinalize.ts +33 -0
- package/src/mantle/actions/waitToProve.ts +83 -0
- package/src/mantle/chainConfig.ts +9 -0
- package/src/mantle/chains/index.ts +2 -0
- package/src/mantle/chains/mantle.ts +51 -0
- package/src/mantle/chains/mantleSepoliaTestnet.ts +52 -0
- package/src/mantle/contracts.ts +14 -0
- package/src/mantle/decorators/publicL1.ts +182 -0
- package/src/mantle/decorators/publicL2.ts +96 -0
- package/src/mantle/decorators/walletL1.ts +67 -0
- package/src/mantle/decorators/walletL2.ts +55 -0
- package/src/mantle/errors/utils.ts +1 -0
- package/src/mantle/errors/withdrawal.ts +24 -0
- package/src/mantle/formatters.ts +64 -0
- package/src/mantle/index.ts +179 -0
- package/src/mantle/parsers.ts +97 -0
- package/src/mantle/serializers.ts +106 -0
- package/src/mantle/types/account.ts +25 -0
- package/src/mantle/types/block.ts +34 -0
- package/src/mantle/types/chain.ts +10 -0
- package/src/mantle/types/contract.ts +26 -0
- package/src/mantle/types/deposit.ts +40 -0
- package/src/mantle/types/l1Actions.ts +21 -0
- package/src/mantle/types/l2Actions.ts +6 -0
- package/src/mantle/types/transaction.ts +108 -0
- package/src/mantle/types/withdrawal.ts +45 -0
- package/src/mantle/utils/extractTransactionDepositedLogs.ts +33 -0
- package/src/mantle/utils/extractWithdrawalMessageLogs.ts +33 -0
- package/src/mantle/utils/getL2TransactionHash.ts +51 -0
- package/src/mantle/utils/getL2TransactionHashes.ts +21 -0
- package/src/mantle/utils/getSourceHash.ts +62 -0
- package/src/mantle/utils/getWithdrawalHashStorageSlot.ts +27 -0
- package/src/mantle/utils/getWithdrawals.ts +25 -0
- package/src/mantle/utils/opaqueDataToDepositData.ts +58 -0
- package/src/mantle/utils/parseDepositRequest.ts +67 -0
- package/src/mantle/utils/parseInitWithdrawRequest.ts +68 -0
- package/src/mantle/utils/poll.ts +45 -0
- package/src/mantle/utils/promise/withCache.ts +81 -0
- package/src/mantle/utils/wait.ts +3 -0
@@ -0,0 +1,856 @@
|
|
1
|
+
import type { Address, Hex } from "viem";
|
2
|
+
export declare const depositABI: readonly [{
|
3
|
+
readonly inputs: readonly [{
|
4
|
+
readonly internalType: "address payable";
|
5
|
+
readonly name: "_messenger";
|
6
|
+
readonly type: "address";
|
7
|
+
}, {
|
8
|
+
readonly internalType: "address";
|
9
|
+
readonly name: "_l1mnt";
|
10
|
+
readonly type: "address";
|
11
|
+
}];
|
12
|
+
readonly stateMutability: "nonpayable";
|
13
|
+
readonly type: "constructor";
|
14
|
+
}, {
|
15
|
+
readonly anonymous: false;
|
16
|
+
readonly inputs: readonly [{
|
17
|
+
readonly indexed: true;
|
18
|
+
readonly internalType: "address";
|
19
|
+
readonly name: "localToken";
|
20
|
+
readonly type: "address";
|
21
|
+
}, {
|
22
|
+
readonly indexed: true;
|
23
|
+
readonly internalType: "address";
|
24
|
+
readonly name: "remoteToken";
|
25
|
+
readonly type: "address";
|
26
|
+
}, {
|
27
|
+
readonly indexed: true;
|
28
|
+
readonly internalType: "address";
|
29
|
+
readonly name: "from";
|
30
|
+
readonly type: "address";
|
31
|
+
}, {
|
32
|
+
readonly indexed: false;
|
33
|
+
readonly internalType: "address";
|
34
|
+
readonly name: "to";
|
35
|
+
readonly type: "address";
|
36
|
+
}, {
|
37
|
+
readonly indexed: false;
|
38
|
+
readonly internalType: "uint256";
|
39
|
+
readonly name: "amount";
|
40
|
+
readonly type: "uint256";
|
41
|
+
}, {
|
42
|
+
readonly indexed: false;
|
43
|
+
readonly internalType: "bytes";
|
44
|
+
readonly name: "extraData";
|
45
|
+
readonly type: "bytes";
|
46
|
+
}];
|
47
|
+
readonly name: "ERC20BridgeFinalized";
|
48
|
+
readonly type: "event";
|
49
|
+
}, {
|
50
|
+
readonly anonymous: false;
|
51
|
+
readonly inputs: readonly [{
|
52
|
+
readonly indexed: true;
|
53
|
+
readonly internalType: "address";
|
54
|
+
readonly name: "localToken";
|
55
|
+
readonly type: "address";
|
56
|
+
}, {
|
57
|
+
readonly indexed: true;
|
58
|
+
readonly internalType: "address";
|
59
|
+
readonly name: "remoteToken";
|
60
|
+
readonly type: "address";
|
61
|
+
}, {
|
62
|
+
readonly indexed: true;
|
63
|
+
readonly internalType: "address";
|
64
|
+
readonly name: "from";
|
65
|
+
readonly type: "address";
|
66
|
+
}, {
|
67
|
+
readonly indexed: false;
|
68
|
+
readonly internalType: "address";
|
69
|
+
readonly name: "to";
|
70
|
+
readonly type: "address";
|
71
|
+
}, {
|
72
|
+
readonly indexed: false;
|
73
|
+
readonly internalType: "uint256";
|
74
|
+
readonly name: "amount";
|
75
|
+
readonly type: "uint256";
|
76
|
+
}, {
|
77
|
+
readonly indexed: false;
|
78
|
+
readonly internalType: "bytes";
|
79
|
+
readonly name: "extraData";
|
80
|
+
readonly type: "bytes";
|
81
|
+
}];
|
82
|
+
readonly name: "ERC20BridgeInitiated";
|
83
|
+
readonly type: "event";
|
84
|
+
}, {
|
85
|
+
readonly anonymous: false;
|
86
|
+
readonly inputs: readonly [{
|
87
|
+
readonly indexed: true;
|
88
|
+
readonly internalType: "address";
|
89
|
+
readonly name: "l1Token";
|
90
|
+
readonly type: "address";
|
91
|
+
}, {
|
92
|
+
readonly indexed: true;
|
93
|
+
readonly internalType: "address";
|
94
|
+
readonly name: "l2Token";
|
95
|
+
readonly type: "address";
|
96
|
+
}, {
|
97
|
+
readonly indexed: true;
|
98
|
+
readonly internalType: "address";
|
99
|
+
readonly name: "from";
|
100
|
+
readonly type: "address";
|
101
|
+
}, {
|
102
|
+
readonly indexed: false;
|
103
|
+
readonly internalType: "address";
|
104
|
+
readonly name: "to";
|
105
|
+
readonly type: "address";
|
106
|
+
}, {
|
107
|
+
readonly indexed: false;
|
108
|
+
readonly internalType: "uint256";
|
109
|
+
readonly name: "amount";
|
110
|
+
readonly type: "uint256";
|
111
|
+
}, {
|
112
|
+
readonly indexed: false;
|
113
|
+
readonly internalType: "bytes";
|
114
|
+
readonly name: "extraData";
|
115
|
+
readonly type: "bytes";
|
116
|
+
}];
|
117
|
+
readonly name: "ERC20DepositInitiated";
|
118
|
+
readonly type: "event";
|
119
|
+
}, {
|
120
|
+
readonly anonymous: false;
|
121
|
+
readonly inputs: readonly [{
|
122
|
+
readonly indexed: true;
|
123
|
+
readonly internalType: "address";
|
124
|
+
readonly name: "l1Token";
|
125
|
+
readonly type: "address";
|
126
|
+
}, {
|
127
|
+
readonly indexed: true;
|
128
|
+
readonly internalType: "address";
|
129
|
+
readonly name: "l2Token";
|
130
|
+
readonly type: "address";
|
131
|
+
}, {
|
132
|
+
readonly indexed: true;
|
133
|
+
readonly internalType: "address";
|
134
|
+
readonly name: "from";
|
135
|
+
readonly type: "address";
|
136
|
+
}, {
|
137
|
+
readonly indexed: false;
|
138
|
+
readonly internalType: "address";
|
139
|
+
readonly name: "to";
|
140
|
+
readonly type: "address";
|
141
|
+
}, {
|
142
|
+
readonly indexed: false;
|
143
|
+
readonly internalType: "uint256";
|
144
|
+
readonly name: "amount";
|
145
|
+
readonly type: "uint256";
|
146
|
+
}, {
|
147
|
+
readonly indexed: false;
|
148
|
+
readonly internalType: "bytes";
|
149
|
+
readonly name: "extraData";
|
150
|
+
readonly type: "bytes";
|
151
|
+
}];
|
152
|
+
readonly name: "ERC20WithdrawalFinalized";
|
153
|
+
readonly type: "event";
|
154
|
+
}, {
|
155
|
+
readonly anonymous: false;
|
156
|
+
readonly inputs: readonly [{
|
157
|
+
readonly indexed: true;
|
158
|
+
readonly internalType: "address";
|
159
|
+
readonly name: "from";
|
160
|
+
readonly type: "address";
|
161
|
+
}, {
|
162
|
+
readonly indexed: true;
|
163
|
+
readonly internalType: "address";
|
164
|
+
readonly name: "to";
|
165
|
+
readonly type: "address";
|
166
|
+
}, {
|
167
|
+
readonly indexed: false;
|
168
|
+
readonly internalType: "uint256";
|
169
|
+
readonly name: "amount";
|
170
|
+
readonly type: "uint256";
|
171
|
+
}, {
|
172
|
+
readonly indexed: false;
|
173
|
+
readonly internalType: "bytes";
|
174
|
+
readonly name: "extraData";
|
175
|
+
readonly type: "bytes";
|
176
|
+
}];
|
177
|
+
readonly name: "ETHBridgeFinalized";
|
178
|
+
readonly type: "event";
|
179
|
+
}, {
|
180
|
+
readonly anonymous: false;
|
181
|
+
readonly inputs: readonly [{
|
182
|
+
readonly indexed: true;
|
183
|
+
readonly internalType: "address";
|
184
|
+
readonly name: "from";
|
185
|
+
readonly type: "address";
|
186
|
+
}, {
|
187
|
+
readonly indexed: true;
|
188
|
+
readonly internalType: "address";
|
189
|
+
readonly name: "to";
|
190
|
+
readonly type: "address";
|
191
|
+
}, {
|
192
|
+
readonly indexed: false;
|
193
|
+
readonly internalType: "uint256";
|
194
|
+
readonly name: "amount";
|
195
|
+
readonly type: "uint256";
|
196
|
+
}, {
|
197
|
+
readonly indexed: false;
|
198
|
+
readonly internalType: "bytes";
|
199
|
+
readonly name: "extraData";
|
200
|
+
readonly type: "bytes";
|
201
|
+
}];
|
202
|
+
readonly name: "ETHBridgeInitiated";
|
203
|
+
readonly type: "event";
|
204
|
+
}, {
|
205
|
+
readonly anonymous: false;
|
206
|
+
readonly inputs: readonly [{
|
207
|
+
readonly indexed: true;
|
208
|
+
readonly internalType: "address";
|
209
|
+
readonly name: "from";
|
210
|
+
readonly type: "address";
|
211
|
+
}, {
|
212
|
+
readonly indexed: true;
|
213
|
+
readonly internalType: "address";
|
214
|
+
readonly name: "to";
|
215
|
+
readonly type: "address";
|
216
|
+
}, {
|
217
|
+
readonly indexed: false;
|
218
|
+
readonly internalType: "uint256";
|
219
|
+
readonly name: "amount";
|
220
|
+
readonly type: "uint256";
|
221
|
+
}, {
|
222
|
+
readonly indexed: false;
|
223
|
+
readonly internalType: "bytes";
|
224
|
+
readonly name: "extraData";
|
225
|
+
readonly type: "bytes";
|
226
|
+
}];
|
227
|
+
readonly name: "ETHDepositInitiated";
|
228
|
+
readonly type: "event";
|
229
|
+
}, {
|
230
|
+
readonly anonymous: false;
|
231
|
+
readonly inputs: readonly [{
|
232
|
+
readonly indexed: true;
|
233
|
+
readonly internalType: "address";
|
234
|
+
readonly name: "from";
|
235
|
+
readonly type: "address";
|
236
|
+
}, {
|
237
|
+
readonly indexed: true;
|
238
|
+
readonly internalType: "address";
|
239
|
+
readonly name: "to";
|
240
|
+
readonly type: "address";
|
241
|
+
}, {
|
242
|
+
readonly indexed: false;
|
243
|
+
readonly internalType: "uint256";
|
244
|
+
readonly name: "amount";
|
245
|
+
readonly type: "uint256";
|
246
|
+
}, {
|
247
|
+
readonly indexed: false;
|
248
|
+
readonly internalType: "bytes";
|
249
|
+
readonly name: "extraData";
|
250
|
+
readonly type: "bytes";
|
251
|
+
}];
|
252
|
+
readonly name: "ETHWithdrawalFinalized";
|
253
|
+
readonly type: "event";
|
254
|
+
}, {
|
255
|
+
readonly anonymous: false;
|
256
|
+
readonly inputs: readonly [{
|
257
|
+
readonly indexed: true;
|
258
|
+
readonly internalType: "address";
|
259
|
+
readonly name: "from";
|
260
|
+
readonly type: "address";
|
261
|
+
}, {
|
262
|
+
readonly indexed: true;
|
263
|
+
readonly internalType: "address";
|
264
|
+
readonly name: "to";
|
265
|
+
readonly type: "address";
|
266
|
+
}, {
|
267
|
+
readonly indexed: false;
|
268
|
+
readonly internalType: "uint256";
|
269
|
+
readonly name: "amount";
|
270
|
+
readonly type: "uint256";
|
271
|
+
}, {
|
272
|
+
readonly indexed: false;
|
273
|
+
readonly internalType: "bytes";
|
274
|
+
readonly name: "extraData";
|
275
|
+
readonly type: "bytes";
|
276
|
+
}];
|
277
|
+
readonly name: "MNTBridgeFinalized";
|
278
|
+
readonly type: "event";
|
279
|
+
}, {
|
280
|
+
readonly anonymous: false;
|
281
|
+
readonly inputs: readonly [{
|
282
|
+
readonly indexed: true;
|
283
|
+
readonly internalType: "address";
|
284
|
+
readonly name: "from";
|
285
|
+
readonly type: "address";
|
286
|
+
}, {
|
287
|
+
readonly indexed: true;
|
288
|
+
readonly internalType: "address";
|
289
|
+
readonly name: "to";
|
290
|
+
readonly type: "address";
|
291
|
+
}, {
|
292
|
+
readonly indexed: false;
|
293
|
+
readonly internalType: "uint256";
|
294
|
+
readonly name: "amount";
|
295
|
+
readonly type: "uint256";
|
296
|
+
}, {
|
297
|
+
readonly indexed: false;
|
298
|
+
readonly internalType: "bytes";
|
299
|
+
readonly name: "extraData";
|
300
|
+
readonly type: "bytes";
|
301
|
+
}];
|
302
|
+
readonly name: "MNTBridgeInitiated";
|
303
|
+
readonly type: "event";
|
304
|
+
}, {
|
305
|
+
readonly anonymous: false;
|
306
|
+
readonly inputs: readonly [{
|
307
|
+
readonly indexed: true;
|
308
|
+
readonly internalType: "address";
|
309
|
+
readonly name: "from";
|
310
|
+
readonly type: "address";
|
311
|
+
}, {
|
312
|
+
readonly indexed: true;
|
313
|
+
readonly internalType: "address";
|
314
|
+
readonly name: "to";
|
315
|
+
readonly type: "address";
|
316
|
+
}, {
|
317
|
+
readonly indexed: false;
|
318
|
+
readonly internalType: "uint256";
|
319
|
+
readonly name: "amount";
|
320
|
+
readonly type: "uint256";
|
321
|
+
}, {
|
322
|
+
readonly indexed: false;
|
323
|
+
readonly internalType: "bytes";
|
324
|
+
readonly name: "extraData";
|
325
|
+
readonly type: "bytes";
|
326
|
+
}];
|
327
|
+
readonly name: "MNTDepositInitiated";
|
328
|
+
readonly type: "event";
|
329
|
+
}, {
|
330
|
+
readonly anonymous: false;
|
331
|
+
readonly inputs: readonly [{
|
332
|
+
readonly indexed: true;
|
333
|
+
readonly internalType: "address";
|
334
|
+
readonly name: "from";
|
335
|
+
readonly type: "address";
|
336
|
+
}, {
|
337
|
+
readonly indexed: true;
|
338
|
+
readonly internalType: "address";
|
339
|
+
readonly name: "to";
|
340
|
+
readonly type: "address";
|
341
|
+
}, {
|
342
|
+
readonly indexed: false;
|
343
|
+
readonly internalType: "uint256";
|
344
|
+
readonly name: "amount";
|
345
|
+
readonly type: "uint256";
|
346
|
+
}, {
|
347
|
+
readonly indexed: false;
|
348
|
+
readonly internalType: "bytes";
|
349
|
+
readonly name: "extraData";
|
350
|
+
readonly type: "bytes";
|
351
|
+
}];
|
352
|
+
readonly name: "MNTWithdrawalFinalized";
|
353
|
+
readonly type: "event";
|
354
|
+
}, {
|
355
|
+
readonly inputs: readonly [];
|
356
|
+
readonly name: "L1_MNT_ADDRESS";
|
357
|
+
readonly outputs: readonly [{
|
358
|
+
readonly internalType: "address";
|
359
|
+
readonly name: "";
|
360
|
+
readonly type: "address";
|
361
|
+
}];
|
362
|
+
readonly stateMutability: "view";
|
363
|
+
readonly type: "function";
|
364
|
+
}, {
|
365
|
+
readonly inputs: readonly [];
|
366
|
+
readonly name: "MESSENGER";
|
367
|
+
readonly outputs: readonly [{
|
368
|
+
readonly internalType: "contract CrossDomainMessenger";
|
369
|
+
readonly name: "";
|
370
|
+
readonly type: "address";
|
371
|
+
}];
|
372
|
+
readonly stateMutability: "view";
|
373
|
+
readonly type: "function";
|
374
|
+
}, {
|
375
|
+
readonly inputs: readonly [];
|
376
|
+
readonly name: "OTHER_BRIDGE";
|
377
|
+
readonly outputs: readonly [{
|
378
|
+
readonly internalType: "contract StandardBridge";
|
379
|
+
readonly name: "";
|
380
|
+
readonly type: "address";
|
381
|
+
}];
|
382
|
+
readonly stateMutability: "view";
|
383
|
+
readonly type: "function";
|
384
|
+
}, {
|
385
|
+
readonly inputs: readonly [{
|
386
|
+
readonly internalType: "address";
|
387
|
+
readonly name: "_localToken";
|
388
|
+
readonly type: "address";
|
389
|
+
}, {
|
390
|
+
readonly internalType: "address";
|
391
|
+
readonly name: "_remoteToken";
|
392
|
+
readonly type: "address";
|
393
|
+
}, {
|
394
|
+
readonly internalType: "uint256";
|
395
|
+
readonly name: "_amount";
|
396
|
+
readonly type: "uint256";
|
397
|
+
}, {
|
398
|
+
readonly internalType: "uint32";
|
399
|
+
readonly name: "_minGasLimit";
|
400
|
+
readonly type: "uint32";
|
401
|
+
}, {
|
402
|
+
readonly internalType: "bytes";
|
403
|
+
readonly name: "_extraData";
|
404
|
+
readonly type: "bytes";
|
405
|
+
}];
|
406
|
+
readonly name: "bridgeERC20";
|
407
|
+
readonly outputs: readonly [];
|
408
|
+
readonly stateMutability: "nonpayable";
|
409
|
+
readonly type: "function";
|
410
|
+
}, {
|
411
|
+
readonly inputs: readonly [{
|
412
|
+
readonly internalType: "address";
|
413
|
+
readonly name: "_localToken";
|
414
|
+
readonly type: "address";
|
415
|
+
}, {
|
416
|
+
readonly internalType: "address";
|
417
|
+
readonly name: "_remoteToken";
|
418
|
+
readonly type: "address";
|
419
|
+
}, {
|
420
|
+
readonly internalType: "address";
|
421
|
+
readonly name: "_to";
|
422
|
+
readonly type: "address";
|
423
|
+
}, {
|
424
|
+
readonly internalType: "uint256";
|
425
|
+
readonly name: "_amount";
|
426
|
+
readonly type: "uint256";
|
427
|
+
}, {
|
428
|
+
readonly internalType: "uint32";
|
429
|
+
readonly name: "_minGasLimit";
|
430
|
+
readonly type: "uint32";
|
431
|
+
}, {
|
432
|
+
readonly internalType: "bytes";
|
433
|
+
readonly name: "_extraData";
|
434
|
+
readonly type: "bytes";
|
435
|
+
}];
|
436
|
+
readonly name: "bridgeERC20To";
|
437
|
+
readonly outputs: readonly [];
|
438
|
+
readonly stateMutability: "nonpayable";
|
439
|
+
readonly type: "function";
|
440
|
+
}, {
|
441
|
+
readonly inputs: readonly [{
|
442
|
+
readonly internalType: "uint32";
|
443
|
+
readonly name: "_minGasLimit";
|
444
|
+
readonly type: "uint32";
|
445
|
+
}, {
|
446
|
+
readonly internalType: "bytes";
|
447
|
+
readonly name: "_extraData";
|
448
|
+
readonly type: "bytes";
|
449
|
+
}];
|
450
|
+
readonly name: "bridgeETH";
|
451
|
+
readonly outputs: readonly [];
|
452
|
+
readonly stateMutability: "payable";
|
453
|
+
readonly type: "function";
|
454
|
+
}, {
|
455
|
+
readonly inputs: readonly [{
|
456
|
+
readonly internalType: "address";
|
457
|
+
readonly name: "_to";
|
458
|
+
readonly type: "address";
|
459
|
+
}, {
|
460
|
+
readonly internalType: "uint32";
|
461
|
+
readonly name: "_minGasLimit";
|
462
|
+
readonly type: "uint32";
|
463
|
+
}, {
|
464
|
+
readonly internalType: "bytes";
|
465
|
+
readonly name: "_extraData";
|
466
|
+
readonly type: "bytes";
|
467
|
+
}];
|
468
|
+
readonly name: "bridgeETHTo";
|
469
|
+
readonly outputs: readonly [];
|
470
|
+
readonly stateMutability: "payable";
|
471
|
+
readonly type: "function";
|
472
|
+
}, {
|
473
|
+
readonly inputs: readonly [{
|
474
|
+
readonly internalType: "uint256";
|
475
|
+
readonly name: "_amount";
|
476
|
+
readonly type: "uint256";
|
477
|
+
}, {
|
478
|
+
readonly internalType: "uint32";
|
479
|
+
readonly name: "_minGasLimit";
|
480
|
+
readonly type: "uint32";
|
481
|
+
}, {
|
482
|
+
readonly internalType: "bytes";
|
483
|
+
readonly name: "_extraData";
|
484
|
+
readonly type: "bytes";
|
485
|
+
}];
|
486
|
+
readonly name: "bridgeMNT";
|
487
|
+
readonly outputs: readonly [];
|
488
|
+
readonly stateMutability: "payable";
|
489
|
+
readonly type: "function";
|
490
|
+
}, {
|
491
|
+
readonly inputs: readonly [{
|
492
|
+
readonly internalType: "address";
|
493
|
+
readonly name: "_to";
|
494
|
+
readonly type: "address";
|
495
|
+
}, {
|
496
|
+
readonly internalType: "uint256";
|
497
|
+
readonly name: "_amount";
|
498
|
+
readonly type: "uint256";
|
499
|
+
}, {
|
500
|
+
readonly internalType: "uint32";
|
501
|
+
readonly name: "_minGasLimit";
|
502
|
+
readonly type: "uint32";
|
503
|
+
}, {
|
504
|
+
readonly internalType: "bytes";
|
505
|
+
readonly name: "_extraData";
|
506
|
+
readonly type: "bytes";
|
507
|
+
}];
|
508
|
+
readonly name: "bridgeMNTTo";
|
509
|
+
readonly outputs: readonly [];
|
510
|
+
readonly stateMutability: "payable";
|
511
|
+
readonly type: "function";
|
512
|
+
}, {
|
513
|
+
readonly inputs: readonly [{
|
514
|
+
readonly internalType: "address";
|
515
|
+
readonly name: "_l1Token";
|
516
|
+
readonly type: "address";
|
517
|
+
}, {
|
518
|
+
readonly internalType: "address";
|
519
|
+
readonly name: "_l2Token";
|
520
|
+
readonly type: "address";
|
521
|
+
}, {
|
522
|
+
readonly internalType: "uint256";
|
523
|
+
readonly name: "_amount";
|
524
|
+
readonly type: "uint256";
|
525
|
+
}, {
|
526
|
+
readonly internalType: "uint32";
|
527
|
+
readonly name: "_minGasLimit";
|
528
|
+
readonly type: "uint32";
|
529
|
+
}, {
|
530
|
+
readonly internalType: "bytes";
|
531
|
+
readonly name: "_extraData";
|
532
|
+
readonly type: "bytes";
|
533
|
+
}];
|
534
|
+
readonly name: "depositERC20";
|
535
|
+
readonly outputs: readonly [];
|
536
|
+
readonly stateMutability: "nonpayable";
|
537
|
+
readonly type: "function";
|
538
|
+
}, {
|
539
|
+
readonly inputs: readonly [{
|
540
|
+
readonly internalType: "address";
|
541
|
+
readonly name: "_l1Token";
|
542
|
+
readonly type: "address";
|
543
|
+
}, {
|
544
|
+
readonly internalType: "address";
|
545
|
+
readonly name: "_l2Token";
|
546
|
+
readonly type: "address";
|
547
|
+
}, {
|
548
|
+
readonly internalType: "address";
|
549
|
+
readonly name: "_to";
|
550
|
+
readonly type: "address";
|
551
|
+
}, {
|
552
|
+
readonly internalType: "uint256";
|
553
|
+
readonly name: "_amount";
|
554
|
+
readonly type: "uint256";
|
555
|
+
}, {
|
556
|
+
readonly internalType: "uint32";
|
557
|
+
readonly name: "_minGasLimit";
|
558
|
+
readonly type: "uint32";
|
559
|
+
}, {
|
560
|
+
readonly internalType: "bytes";
|
561
|
+
readonly name: "_extraData";
|
562
|
+
readonly type: "bytes";
|
563
|
+
}];
|
564
|
+
readonly name: "depositERC20To";
|
565
|
+
readonly outputs: readonly [];
|
566
|
+
readonly stateMutability: "nonpayable";
|
567
|
+
readonly type: "function";
|
568
|
+
}, {
|
569
|
+
readonly inputs: readonly [{
|
570
|
+
readonly internalType: "uint32";
|
571
|
+
readonly name: "_minGasLimit";
|
572
|
+
readonly type: "uint32";
|
573
|
+
}, {
|
574
|
+
readonly internalType: "bytes";
|
575
|
+
readonly name: "_extraData";
|
576
|
+
readonly type: "bytes";
|
577
|
+
}];
|
578
|
+
readonly name: "depositETH";
|
579
|
+
readonly outputs: readonly [];
|
580
|
+
readonly stateMutability: "payable";
|
581
|
+
readonly type: "function";
|
582
|
+
}, {
|
583
|
+
readonly inputs: readonly [{
|
584
|
+
readonly internalType: "address";
|
585
|
+
readonly name: "_to";
|
586
|
+
readonly type: "address";
|
587
|
+
}, {
|
588
|
+
readonly internalType: "uint32";
|
589
|
+
readonly name: "_minGasLimit";
|
590
|
+
readonly type: "uint32";
|
591
|
+
}, {
|
592
|
+
readonly internalType: "bytes";
|
593
|
+
readonly name: "_extraData";
|
594
|
+
readonly type: "bytes";
|
595
|
+
}];
|
596
|
+
readonly name: "depositETHTo";
|
597
|
+
readonly outputs: readonly [];
|
598
|
+
readonly stateMutability: "payable";
|
599
|
+
readonly type: "function";
|
600
|
+
}, {
|
601
|
+
readonly inputs: readonly [{
|
602
|
+
readonly internalType: "uint256";
|
603
|
+
readonly name: "_amount";
|
604
|
+
readonly type: "uint256";
|
605
|
+
}, {
|
606
|
+
readonly internalType: "uint32";
|
607
|
+
readonly name: "_minGasLimit";
|
608
|
+
readonly type: "uint32";
|
609
|
+
}, {
|
610
|
+
readonly internalType: "bytes";
|
611
|
+
readonly name: "_extraData";
|
612
|
+
readonly type: "bytes";
|
613
|
+
}];
|
614
|
+
readonly name: "depositMNT";
|
615
|
+
readonly outputs: readonly [];
|
616
|
+
readonly stateMutability: "nonpayable";
|
617
|
+
readonly type: "function";
|
618
|
+
}, {
|
619
|
+
readonly inputs: readonly [{
|
620
|
+
readonly internalType: "address";
|
621
|
+
readonly name: "_to";
|
622
|
+
readonly type: "address";
|
623
|
+
}, {
|
624
|
+
readonly internalType: "uint256";
|
625
|
+
readonly name: "_amount";
|
626
|
+
readonly type: "uint256";
|
627
|
+
}, {
|
628
|
+
readonly internalType: "uint32";
|
629
|
+
readonly name: "_minGasLimit";
|
630
|
+
readonly type: "uint32";
|
631
|
+
}, {
|
632
|
+
readonly internalType: "bytes";
|
633
|
+
readonly name: "_extraData";
|
634
|
+
readonly type: "bytes";
|
635
|
+
}];
|
636
|
+
readonly name: "depositMNTTo";
|
637
|
+
readonly outputs: readonly [];
|
638
|
+
readonly stateMutability: "payable";
|
639
|
+
readonly type: "function";
|
640
|
+
}, {
|
641
|
+
readonly inputs: readonly [{
|
642
|
+
readonly internalType: "address";
|
643
|
+
readonly name: "";
|
644
|
+
readonly type: "address";
|
645
|
+
}, {
|
646
|
+
readonly internalType: "address";
|
647
|
+
readonly name: "";
|
648
|
+
readonly type: "address";
|
649
|
+
}];
|
650
|
+
readonly name: "deposits";
|
651
|
+
readonly outputs: readonly [{
|
652
|
+
readonly internalType: "uint256";
|
653
|
+
readonly name: "";
|
654
|
+
readonly type: "uint256";
|
655
|
+
}];
|
656
|
+
readonly stateMutability: "view";
|
657
|
+
readonly type: "function";
|
658
|
+
}, {
|
659
|
+
readonly inputs: readonly [{
|
660
|
+
readonly internalType: "address";
|
661
|
+
readonly name: "_localToken";
|
662
|
+
readonly type: "address";
|
663
|
+
}, {
|
664
|
+
readonly internalType: "address";
|
665
|
+
readonly name: "_remoteToken";
|
666
|
+
readonly type: "address";
|
667
|
+
}, {
|
668
|
+
readonly internalType: "address";
|
669
|
+
readonly name: "_from";
|
670
|
+
readonly type: "address";
|
671
|
+
}, {
|
672
|
+
readonly internalType: "address";
|
673
|
+
readonly name: "_to";
|
674
|
+
readonly type: "address";
|
675
|
+
}, {
|
676
|
+
readonly internalType: "uint256";
|
677
|
+
readonly name: "_amount";
|
678
|
+
readonly type: "uint256";
|
679
|
+
}, {
|
680
|
+
readonly internalType: "bytes";
|
681
|
+
readonly name: "_extraData";
|
682
|
+
readonly type: "bytes";
|
683
|
+
}];
|
684
|
+
readonly name: "finalizeBridgeERC20";
|
685
|
+
readonly outputs: readonly [];
|
686
|
+
readonly stateMutability: "nonpayable";
|
687
|
+
readonly type: "function";
|
688
|
+
}, {
|
689
|
+
readonly inputs: readonly [{
|
690
|
+
readonly internalType: "address";
|
691
|
+
readonly name: "_from";
|
692
|
+
readonly type: "address";
|
693
|
+
}, {
|
694
|
+
readonly internalType: "address";
|
695
|
+
readonly name: "_to";
|
696
|
+
readonly type: "address";
|
697
|
+
}, {
|
698
|
+
readonly internalType: "uint256";
|
699
|
+
readonly name: "_amount";
|
700
|
+
readonly type: "uint256";
|
701
|
+
}, {
|
702
|
+
readonly internalType: "bytes";
|
703
|
+
readonly name: "_extraData";
|
704
|
+
readonly type: "bytes";
|
705
|
+
}];
|
706
|
+
readonly name: "finalizeBridgeETH";
|
707
|
+
readonly outputs: readonly [];
|
708
|
+
readonly stateMutability: "payable";
|
709
|
+
readonly type: "function";
|
710
|
+
}, {
|
711
|
+
readonly inputs: readonly [{
|
712
|
+
readonly internalType: "address";
|
713
|
+
readonly name: "_from";
|
714
|
+
readonly type: "address";
|
715
|
+
}, {
|
716
|
+
readonly internalType: "address";
|
717
|
+
readonly name: "_to";
|
718
|
+
readonly type: "address";
|
719
|
+
}, {
|
720
|
+
readonly internalType: "uint256";
|
721
|
+
readonly name: "_amount";
|
722
|
+
readonly type: "uint256";
|
723
|
+
}, {
|
724
|
+
readonly internalType: "bytes";
|
725
|
+
readonly name: "_extraData";
|
726
|
+
readonly type: "bytes";
|
727
|
+
}];
|
728
|
+
readonly name: "finalizeBridgeMNT";
|
729
|
+
readonly outputs: readonly [];
|
730
|
+
readonly stateMutability: "payable";
|
731
|
+
readonly type: "function";
|
732
|
+
}, {
|
733
|
+
readonly inputs: readonly [{
|
734
|
+
readonly internalType: "address";
|
735
|
+
readonly name: "_l1Token";
|
736
|
+
readonly type: "address";
|
737
|
+
}, {
|
738
|
+
readonly internalType: "address";
|
739
|
+
readonly name: "_l2Token";
|
740
|
+
readonly type: "address";
|
741
|
+
}, {
|
742
|
+
readonly internalType: "address";
|
743
|
+
readonly name: "_from";
|
744
|
+
readonly type: "address";
|
745
|
+
}, {
|
746
|
+
readonly internalType: "address";
|
747
|
+
readonly name: "_to";
|
748
|
+
readonly type: "address";
|
749
|
+
}, {
|
750
|
+
readonly internalType: "uint256";
|
751
|
+
readonly name: "_amount";
|
752
|
+
readonly type: "uint256";
|
753
|
+
}, {
|
754
|
+
readonly internalType: "bytes";
|
755
|
+
readonly name: "_extraData";
|
756
|
+
readonly type: "bytes";
|
757
|
+
}];
|
758
|
+
readonly name: "finalizeERC20Withdrawal";
|
759
|
+
readonly outputs: readonly [];
|
760
|
+
readonly stateMutability: "nonpayable";
|
761
|
+
readonly type: "function";
|
762
|
+
}, {
|
763
|
+
readonly inputs: readonly [{
|
764
|
+
readonly internalType: "address";
|
765
|
+
readonly name: "_from";
|
766
|
+
readonly type: "address";
|
767
|
+
}, {
|
768
|
+
readonly internalType: "address";
|
769
|
+
readonly name: "_to";
|
770
|
+
readonly type: "address";
|
771
|
+
}, {
|
772
|
+
readonly internalType: "uint256";
|
773
|
+
readonly name: "_amount";
|
774
|
+
readonly type: "uint256";
|
775
|
+
}, {
|
776
|
+
readonly internalType: "bytes";
|
777
|
+
readonly name: "_extraData";
|
778
|
+
readonly type: "bytes";
|
779
|
+
}];
|
780
|
+
readonly name: "finalizeETHWithdrawal";
|
781
|
+
readonly outputs: readonly [];
|
782
|
+
readonly stateMutability: "payable";
|
783
|
+
readonly type: "function";
|
784
|
+
}, {
|
785
|
+
readonly inputs: readonly [{
|
786
|
+
readonly internalType: "address";
|
787
|
+
readonly name: "_from";
|
788
|
+
readonly type: "address";
|
789
|
+
}, {
|
790
|
+
readonly internalType: "address";
|
791
|
+
readonly name: "_to";
|
792
|
+
readonly type: "address";
|
793
|
+
}, {
|
794
|
+
readonly internalType: "uint256";
|
795
|
+
readonly name: "_amount";
|
796
|
+
readonly type: "uint256";
|
797
|
+
}, {
|
798
|
+
readonly internalType: "bytes";
|
799
|
+
readonly name: "_extraData";
|
800
|
+
readonly type: "bytes";
|
801
|
+
}];
|
802
|
+
readonly name: "finalizeMantleWithdrawal";
|
803
|
+
readonly outputs: readonly [];
|
804
|
+
readonly stateMutability: "payable";
|
805
|
+
readonly type: "function";
|
806
|
+
}, {
|
807
|
+
readonly inputs: readonly [];
|
808
|
+
readonly name: "l2TokenBridge";
|
809
|
+
readonly outputs: readonly [{
|
810
|
+
readonly internalType: "address";
|
811
|
+
readonly name: "";
|
812
|
+
readonly type: "address";
|
813
|
+
}];
|
814
|
+
readonly stateMutability: "view";
|
815
|
+
readonly type: "function";
|
816
|
+
}, {
|
817
|
+
readonly inputs: readonly [];
|
818
|
+
readonly name: "messenger";
|
819
|
+
readonly outputs: readonly [{
|
820
|
+
readonly internalType: "contract CrossDomainMessenger";
|
821
|
+
readonly name: "";
|
822
|
+
readonly type: "address";
|
823
|
+
}];
|
824
|
+
readonly stateMutability: "view";
|
825
|
+
readonly type: "function";
|
826
|
+
}, {
|
827
|
+
readonly inputs: readonly [];
|
828
|
+
readonly name: "version";
|
829
|
+
readonly outputs: readonly [{
|
830
|
+
readonly internalType: "string";
|
831
|
+
readonly name: "";
|
832
|
+
readonly type: "string";
|
833
|
+
}];
|
834
|
+
readonly stateMutability: "view";
|
835
|
+
readonly type: "function";
|
836
|
+
}, {
|
837
|
+
readonly stateMutability: "payable";
|
838
|
+
readonly type: "receive";
|
839
|
+
}];
|
840
|
+
export declare const depositErc20Function = "depositERC20To";
|
841
|
+
export declare const l1StandardBridgeName = "l1StandardBridge";
|
842
|
+
export type DepositERC20Parameters = {
|
843
|
+
/** Gas limit for transaction execution on the L2. Default as 20000 */
|
844
|
+
minGasLimit?: bigint | undefined;
|
845
|
+
/** Value in wei of tokens to deposit. */
|
846
|
+
amount: bigint;
|
847
|
+
/** Extra data to include in the transaction. */
|
848
|
+
extraData?: Hex | undefined;
|
849
|
+
/** L2 Transaction recipient. */
|
850
|
+
to?: Address | undefined;
|
851
|
+
/** ERC20 L1 Token Address. */
|
852
|
+
l1Token: Address;
|
853
|
+
/** ERC20 L2 Token Address. */
|
854
|
+
l2Token: Address;
|
855
|
+
};
|
856
|
+
//# sourceMappingURL=l1Actions.d.ts.map
|