@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,299 @@
|
|
1
|
+
export declare const mantle: {
|
2
|
+
blockExplorers: {
|
3
|
+
readonly default: {
|
4
|
+
readonly name: "Mantle Explorer";
|
5
|
+
readonly url: "https://mantlescan.xyz/";
|
6
|
+
readonly apiUrl: "https://api.mantlescan.xyz/api";
|
7
|
+
};
|
8
|
+
};
|
9
|
+
contracts: {
|
10
|
+
readonly l2Erc721Bridge: undefined;
|
11
|
+
readonly l2OutputOracle: {
|
12
|
+
readonly 1: {
|
13
|
+
readonly address: "0x31d543e7BE1dA6eFDc2206Ef7822879045B9f481";
|
14
|
+
};
|
15
|
+
};
|
16
|
+
readonly portal: {
|
17
|
+
readonly 1: {
|
18
|
+
readonly address: "0xc54cb22944F2bE476E02dECfCD7e3E7d3e15A8Fb";
|
19
|
+
readonly blockCreated: 19434938;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
readonly l1StandardBridge: {
|
23
|
+
readonly 1: {
|
24
|
+
readonly address: "0x95fC37A27a2f68e3A647CDc081F0A89bb47c3012";
|
25
|
+
readonly blockCreated: 17577718;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
readonly multicall3: {
|
29
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
30
|
+
readonly blockCreated: 304717;
|
31
|
+
};
|
32
|
+
readonly gasPriceOracle: {
|
33
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
34
|
+
};
|
35
|
+
readonly l1Block: {
|
36
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
37
|
+
};
|
38
|
+
readonly l2CrossDomainMessenger: {
|
39
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
40
|
+
};
|
41
|
+
readonly l2StandardBridge: {
|
42
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
43
|
+
};
|
44
|
+
readonly l2ToL1MessagePasser: {
|
45
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
46
|
+
};
|
47
|
+
};
|
48
|
+
id: 5000;
|
49
|
+
name: "Mantle";
|
50
|
+
nativeCurrency: {
|
51
|
+
readonly decimals: 18;
|
52
|
+
readonly name: "MNT";
|
53
|
+
readonly symbol: "MNT";
|
54
|
+
};
|
55
|
+
rpcUrls: {
|
56
|
+
readonly default: {
|
57
|
+
readonly http: readonly ["https://rpc.mantle.xyz"];
|
58
|
+
};
|
59
|
+
};
|
60
|
+
sourceId: 1;
|
61
|
+
testnet?: boolean | undefined;
|
62
|
+
custom?: Record<string, unknown> | undefined;
|
63
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
64
|
+
readonly formatters: {
|
65
|
+
readonly block: {
|
66
|
+
exclude: [] | undefined;
|
67
|
+
format: (args: import("viem/op-stack").OpStackRpcBlock) => {
|
68
|
+
baseFeePerGas: bigint | null;
|
69
|
+
blobGasUsed: bigint;
|
70
|
+
difficulty: bigint;
|
71
|
+
excessBlobGas: bigint;
|
72
|
+
extraData: import("viem").Hex;
|
73
|
+
gasLimit: bigint;
|
74
|
+
gasUsed: bigint;
|
75
|
+
hash: `0x${string}` | null;
|
76
|
+
logsBloom: `0x${string}` | null;
|
77
|
+
miner: `0x${string}`;
|
78
|
+
mixHash: import("viem").Hash;
|
79
|
+
nonce: `0x${string}` | null;
|
80
|
+
number: bigint | null;
|
81
|
+
parentBeaconBlockRoot?: import("viem").Hex | undefined;
|
82
|
+
parentHash: import("viem").Hash;
|
83
|
+
receiptsRoot: import("viem").Hex;
|
84
|
+
sealFields: import("viem").Hex[];
|
85
|
+
sha3Uncles: import("viem").Hash;
|
86
|
+
size: bigint;
|
87
|
+
stateRoot: import("viem").Hash;
|
88
|
+
timestamp: bigint;
|
89
|
+
totalDifficulty: bigint | null;
|
90
|
+
transactions: `0x${string}`[] | import("viem/op-stack").OpStackTransaction<boolean>[];
|
91
|
+
transactionsRoot: import("viem").Hash;
|
92
|
+
uncles: import("viem").Hash[];
|
93
|
+
withdrawals?: import("viem").Withdrawal[] | undefined;
|
94
|
+
withdrawalsRoot?: import("viem").Hex | undefined;
|
95
|
+
} & {};
|
96
|
+
type: "block";
|
97
|
+
};
|
98
|
+
readonly transaction: {
|
99
|
+
exclude: [] | undefined;
|
100
|
+
format: (args: import("viem/op-stack").OpStackRpcTransaction) => ({
|
101
|
+
blockHash: `0x${string}` | null;
|
102
|
+
blockNumber: bigint | null;
|
103
|
+
from: `0x${string}`;
|
104
|
+
gas: bigint;
|
105
|
+
hash: import("viem").Hash;
|
106
|
+
input: import("viem").Hex;
|
107
|
+
nonce: number;
|
108
|
+
r: import("viem").Hex;
|
109
|
+
s: import("viem").Hex;
|
110
|
+
to: `0x${string}` | null;
|
111
|
+
transactionIndex: number | null;
|
112
|
+
typeHex: import("viem").Hex | null;
|
113
|
+
v: bigint;
|
114
|
+
value: bigint;
|
115
|
+
yParity: number;
|
116
|
+
gasPrice?: undefined;
|
117
|
+
maxFeePerBlobGas?: undefined;
|
118
|
+
maxFeePerGas: bigint;
|
119
|
+
maxPriorityFeePerGas: bigint;
|
120
|
+
isSystemTx?: boolean;
|
121
|
+
mint?: bigint | undefined;
|
122
|
+
sourceHash: import("viem").Hex;
|
123
|
+
type: "deposit";
|
124
|
+
} | {
|
125
|
+
r: import("viem").Hex;
|
126
|
+
s: import("viem").Hex;
|
127
|
+
v: bigint;
|
128
|
+
to: `0x${string}` | null;
|
129
|
+
from: `0x${string}`;
|
130
|
+
gas: bigint;
|
131
|
+
nonce: number;
|
132
|
+
value: bigint;
|
133
|
+
blockHash: `0x${string}` | null;
|
134
|
+
blockNumber: bigint | null;
|
135
|
+
hash: import("viem").Hash;
|
136
|
+
input: import("viem").Hex;
|
137
|
+
transactionIndex: number | null;
|
138
|
+
typeHex: import("viem").Hex | null;
|
139
|
+
accessList?: undefined;
|
140
|
+
authorizationList?: undefined;
|
141
|
+
blobVersionedHashes?: undefined;
|
142
|
+
chainId?: number | undefined;
|
143
|
+
yParity?: undefined;
|
144
|
+
type: "legacy";
|
145
|
+
gasPrice: bigint;
|
146
|
+
maxFeePerBlobGas?: undefined;
|
147
|
+
maxFeePerGas?: undefined;
|
148
|
+
maxPriorityFeePerGas?: undefined;
|
149
|
+
isSystemTx?: undefined;
|
150
|
+
mint?: undefined;
|
151
|
+
sourceHash?: undefined;
|
152
|
+
} | {
|
153
|
+
blockHash: `0x${string}` | null;
|
154
|
+
blockNumber: bigint | null;
|
155
|
+
from: `0x${string}`;
|
156
|
+
gas: bigint;
|
157
|
+
hash: import("viem").Hash;
|
158
|
+
input: import("viem").Hex;
|
159
|
+
nonce: number;
|
160
|
+
r: import("viem").Hex;
|
161
|
+
s: import("viem").Hex;
|
162
|
+
to: `0x${string}` | null;
|
163
|
+
transactionIndex: number | null;
|
164
|
+
typeHex: import("viem").Hex | null;
|
165
|
+
v: bigint;
|
166
|
+
value: bigint;
|
167
|
+
yParity: number;
|
168
|
+
accessList: import("viem").AccessList;
|
169
|
+
authorizationList?: undefined;
|
170
|
+
blobVersionedHashes?: undefined;
|
171
|
+
chainId: number;
|
172
|
+
type: "eip2930";
|
173
|
+
gasPrice: bigint;
|
174
|
+
maxFeePerBlobGas?: undefined;
|
175
|
+
maxFeePerGas?: undefined;
|
176
|
+
maxPriorityFeePerGas?: undefined;
|
177
|
+
isSystemTx?: undefined;
|
178
|
+
mint?: undefined;
|
179
|
+
sourceHash?: undefined;
|
180
|
+
} | {
|
181
|
+
blockHash: `0x${string}` | null;
|
182
|
+
blockNumber: bigint | null;
|
183
|
+
from: `0x${string}`;
|
184
|
+
gas: bigint;
|
185
|
+
hash: import("viem").Hash;
|
186
|
+
input: import("viem").Hex;
|
187
|
+
nonce: number;
|
188
|
+
r: import("viem").Hex;
|
189
|
+
s: import("viem").Hex;
|
190
|
+
to: `0x${string}` | null;
|
191
|
+
transactionIndex: number | null;
|
192
|
+
typeHex: import("viem").Hex | null;
|
193
|
+
v: bigint;
|
194
|
+
value: bigint;
|
195
|
+
yParity: number;
|
196
|
+
accessList: import("viem").AccessList;
|
197
|
+
authorizationList?: undefined;
|
198
|
+
blobVersionedHashes?: undefined;
|
199
|
+
chainId: number;
|
200
|
+
type: "eip1559";
|
201
|
+
gasPrice?: undefined;
|
202
|
+
maxFeePerBlobGas?: undefined;
|
203
|
+
maxFeePerGas: bigint;
|
204
|
+
maxPriorityFeePerGas: bigint;
|
205
|
+
isSystemTx?: undefined;
|
206
|
+
mint?: undefined;
|
207
|
+
sourceHash?: undefined;
|
208
|
+
} | {
|
209
|
+
blockHash: `0x${string}` | null;
|
210
|
+
blockNumber: bigint | null;
|
211
|
+
from: `0x${string}`;
|
212
|
+
gas: bigint;
|
213
|
+
hash: import("viem").Hash;
|
214
|
+
input: import("viem").Hex;
|
215
|
+
nonce: number;
|
216
|
+
r: import("viem").Hex;
|
217
|
+
s: import("viem").Hex;
|
218
|
+
to: `0x${string}` | null;
|
219
|
+
transactionIndex: number | null;
|
220
|
+
typeHex: import("viem").Hex | null;
|
221
|
+
v: bigint;
|
222
|
+
value: bigint;
|
223
|
+
yParity: number;
|
224
|
+
accessList: import("viem").AccessList;
|
225
|
+
authorizationList?: undefined;
|
226
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
227
|
+
chainId: number;
|
228
|
+
type: "eip4844";
|
229
|
+
gasPrice?: undefined;
|
230
|
+
maxFeePerBlobGas: bigint;
|
231
|
+
maxFeePerGas: bigint;
|
232
|
+
maxPriorityFeePerGas: bigint;
|
233
|
+
isSystemTx?: undefined;
|
234
|
+
mint?: undefined;
|
235
|
+
sourceHash?: undefined;
|
236
|
+
} | {
|
237
|
+
blockHash: `0x${string}` | null;
|
238
|
+
blockNumber: bigint | null;
|
239
|
+
from: `0x${string}`;
|
240
|
+
gas: bigint;
|
241
|
+
hash: import("viem").Hash;
|
242
|
+
input: import("viem").Hex;
|
243
|
+
nonce: number;
|
244
|
+
r: import("viem").Hex;
|
245
|
+
s: import("viem").Hex;
|
246
|
+
to: `0x${string}` | null;
|
247
|
+
transactionIndex: number | null;
|
248
|
+
typeHex: import("viem").Hex | null;
|
249
|
+
v: bigint;
|
250
|
+
value: bigint;
|
251
|
+
yParity: number;
|
252
|
+
accessList: import("viem").AccessList;
|
253
|
+
authorizationList: import("viem/experimental").SignedAuthorizationList;
|
254
|
+
blobVersionedHashes?: undefined;
|
255
|
+
chainId: number;
|
256
|
+
type: "eip7702";
|
257
|
+
gasPrice?: undefined;
|
258
|
+
maxFeePerBlobGas?: undefined;
|
259
|
+
maxFeePerGas: bigint;
|
260
|
+
maxPriorityFeePerGas: bigint;
|
261
|
+
isSystemTx?: undefined;
|
262
|
+
mint?: undefined;
|
263
|
+
sourceHash?: undefined;
|
264
|
+
}) & {};
|
265
|
+
type: "transaction";
|
266
|
+
};
|
267
|
+
readonly transactionReceipt: {
|
268
|
+
exclude: [] | undefined;
|
269
|
+
format: (args: import("viem/op-stack").OpStackRpcTransactionReceipt) => {
|
270
|
+
blobGasPrice?: bigint | undefined;
|
271
|
+
blobGasUsed?: bigint | undefined;
|
272
|
+
blockHash: import("viem").Hash;
|
273
|
+
blockNumber: bigint;
|
274
|
+
contractAddress: `0x${string}` | null | undefined;
|
275
|
+
cumulativeGasUsed: bigint;
|
276
|
+
effectiveGasPrice: bigint;
|
277
|
+
from: `0x${string}`;
|
278
|
+
gasUsed: bigint;
|
279
|
+
logs: import("viem").Log<bigint, number, false>[];
|
280
|
+
logsBloom: import("viem").Hex;
|
281
|
+
root?: import("viem").Hash | undefined;
|
282
|
+
status: "success" | "reverted";
|
283
|
+
to: `0x${string}` | null;
|
284
|
+
transactionHash: import("viem").Hash;
|
285
|
+
transactionIndex: number;
|
286
|
+
type: import("viem").TransactionType;
|
287
|
+
l1GasPrice: bigint | null;
|
288
|
+
l1GasUsed: bigint | null;
|
289
|
+
l1Fee: bigint | null;
|
290
|
+
l1FeeScalar: number | null;
|
291
|
+
} & {};
|
292
|
+
type: "transactionReceipt";
|
293
|
+
};
|
294
|
+
};
|
295
|
+
readonly serializers: {
|
296
|
+
readonly transaction: typeof import("viem/op-stack").serializeTransaction;
|
297
|
+
};
|
298
|
+
};
|
299
|
+
//# sourceMappingURL=mantle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mantle.d.ts","sourceRoot":"","sources":["../../../src/mantle/chains/mantle.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAsCjB,eACO;;;;;kCAO6F,MAAa;;;;;;gCAAyP,MAAa;;;qCAAiI,CAAC,SAAS,MAAa;mCAAsD,MAAa;qCAA6C,MAAa;mCAA0C,MAAa;mCAA4C,MAAa;;kCAAwE,MAAa;;;uDAAkJ,eAAY;yCAA0E,MAAa;+BAAuC,MAAa;2BAAqC,CAAC,SAAS,MAAa;+BAA2D,CAAC,SAAS,MAAa;;;;;;kCAAoL,eAAY;;;;;6BAAuO,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;;;gCAA8I,MAAa;;;;wBAAiI,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAA+B,CAAC;mCAAyD,MAAa;;;0BAAoF,MAAa;0BAAiC,MAAa;;;;;;;;;6BAA8V,MAAa;8BAAsC,MAAa;;gCAAwF,MAAa;0BAAwC,CAAC;iCAA8C,CAAC;mCAAgD,CAAC;uBAAoC,CAAC;uBAA6C,CAAC;;;gCAA+G,CAAC;4BAAyC,CAAC;oCAAiD,CAAC;0BAAuC,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;6BAAuO,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;;;gCAA8I,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;mCAAgD,CAAC;;;;gCAAiJ,CAAC;4BAAyC,CAAC;oCAAiD,CAAC;0BAAuC,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;6BAAuO,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;;;gCAA8I,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;mCAAgD,CAAC;;;wBAAuG,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;6BAAuO,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;;;gCAA8I,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;qDAAkE,MAAa;;;wBAAmG,CAAC;;;;0BAAqK,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;6BAAuO,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;;;gCAA8I,MAAa;;;;mCAA4I,MAAa;0CAAwD,mBAA0B;mCAA8D,CAAC;;;wBAAuG,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;kCAA4L,eAAY;4BAAiE,CAAC;2BAAiD,CAAC;kCAAwD,MAAa;;;;;;;6BAAiU,MAAa;kCAAkE,MAAa;oBAA2B,CAAC,SAAS,MAAa;;;wCAAkK,MAAa;;6BAA+E,MAAa;;;;;;;;;;4CAAgV,eAAkB;;CADtpT,CAAC"}
|
@@ -0,0 +1,299 @@
|
|
1
|
+
export declare const mantleSepoliaTestnet: {
|
2
|
+
blockExplorers: {
|
3
|
+
readonly default: {
|
4
|
+
readonly name: "Mantle Testnet Explorer";
|
5
|
+
readonly url: "https://explorer.sepolia.mantle.xyz/";
|
6
|
+
readonly apiUrl: "https://explorer.sepolia.mantle.xyz/api";
|
7
|
+
};
|
8
|
+
};
|
9
|
+
contracts: {
|
10
|
+
readonly l2Erc721Bridge: undefined;
|
11
|
+
readonly l2OutputOracle: {
|
12
|
+
readonly 11155111: {
|
13
|
+
readonly address: "0x4121dc8e48Bc6196795eb4867772A5e259fecE07";
|
14
|
+
};
|
15
|
+
};
|
16
|
+
readonly portal: {
|
17
|
+
readonly 11155111: {
|
18
|
+
readonly address: "0xB3db4bd5bc225930eD674494F9A4F6a11B8EFBc8";
|
19
|
+
readonly blockCreated: 4858030;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
readonly l1StandardBridge: {
|
23
|
+
readonly 11155111: {
|
24
|
+
readonly address: "0x21F308067241B2028503c07bd7cB3751FFab0Fb2";
|
25
|
+
readonly blockCreated: 4852137;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
readonly multicall3: {
|
29
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
30
|
+
readonly blockCreated: 4584012;
|
31
|
+
};
|
32
|
+
readonly gasPriceOracle: {
|
33
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
34
|
+
};
|
35
|
+
readonly l1Block: {
|
36
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
37
|
+
};
|
38
|
+
readonly l2CrossDomainMessenger: {
|
39
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
40
|
+
};
|
41
|
+
readonly l2StandardBridge: {
|
42
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
43
|
+
};
|
44
|
+
readonly l2ToL1MessagePasser: {
|
45
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
46
|
+
};
|
47
|
+
};
|
48
|
+
id: 5003;
|
49
|
+
name: "Mantle Sepolia Testnet";
|
50
|
+
nativeCurrency: {
|
51
|
+
readonly decimals: 18;
|
52
|
+
readonly name: "MNT";
|
53
|
+
readonly symbol: "MNT";
|
54
|
+
};
|
55
|
+
rpcUrls: {
|
56
|
+
readonly default: {
|
57
|
+
readonly http: readonly ["https://rpc.sepolia.mantle.xyz"];
|
58
|
+
};
|
59
|
+
};
|
60
|
+
sourceId: 11155111;
|
61
|
+
testnet: true;
|
62
|
+
custom?: Record<string, unknown> | undefined;
|
63
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
64
|
+
readonly formatters: {
|
65
|
+
readonly block: {
|
66
|
+
exclude: [] | undefined;
|
67
|
+
format: (args: import("viem/op-stack").OpStackRpcBlock) => {
|
68
|
+
baseFeePerGas: bigint | null;
|
69
|
+
blobGasUsed: bigint;
|
70
|
+
difficulty: bigint;
|
71
|
+
excessBlobGas: bigint;
|
72
|
+
extraData: import("viem").Hex;
|
73
|
+
gasLimit: bigint;
|
74
|
+
gasUsed: bigint;
|
75
|
+
hash: `0x${string}` | null;
|
76
|
+
logsBloom: `0x${string}` | null;
|
77
|
+
miner: import("viem").Address;
|
78
|
+
mixHash: import("viem").Hash;
|
79
|
+
nonce: `0x${string}` | null;
|
80
|
+
number: bigint | null;
|
81
|
+
parentBeaconBlockRoot?: import("viem").Hex | undefined;
|
82
|
+
parentHash: import("viem").Hash;
|
83
|
+
receiptsRoot: import("viem").Hex;
|
84
|
+
sealFields: import("viem").Hex[];
|
85
|
+
sha3Uncles: import("viem").Hash;
|
86
|
+
size: bigint;
|
87
|
+
stateRoot: import("viem").Hash;
|
88
|
+
timestamp: bigint;
|
89
|
+
totalDifficulty: bigint | null;
|
90
|
+
transactions: `0x${string}`[] | import("viem/op-stack").OpStackTransaction<boolean>[];
|
91
|
+
transactionsRoot: import("viem").Hash;
|
92
|
+
uncles: import("viem").Hash[];
|
93
|
+
withdrawals?: import("viem").Withdrawal[] | undefined;
|
94
|
+
withdrawalsRoot?: import("viem").Hex | undefined;
|
95
|
+
} & {};
|
96
|
+
type: "block";
|
97
|
+
};
|
98
|
+
readonly transaction: {
|
99
|
+
exclude: [] | undefined;
|
100
|
+
format: (args: import("viem/op-stack").OpStackRpcTransaction) => ({
|
101
|
+
blockHash: `0x${string}` | null;
|
102
|
+
blockNumber: bigint | null;
|
103
|
+
from: import("viem").Address;
|
104
|
+
gas: bigint;
|
105
|
+
hash: import("viem").Hash;
|
106
|
+
input: import("viem").Hex;
|
107
|
+
nonce: number;
|
108
|
+
r: import("viem").Hex;
|
109
|
+
s: import("viem").Hex;
|
110
|
+
to: import("viem").Address | null;
|
111
|
+
transactionIndex: number | null;
|
112
|
+
typeHex: import("viem").Hex | null;
|
113
|
+
v: bigint;
|
114
|
+
value: bigint;
|
115
|
+
yParity: number;
|
116
|
+
gasPrice?: undefined;
|
117
|
+
maxFeePerBlobGas?: undefined;
|
118
|
+
maxFeePerGas: bigint;
|
119
|
+
maxPriorityFeePerGas: bigint;
|
120
|
+
isSystemTx?: boolean;
|
121
|
+
mint?: bigint | undefined;
|
122
|
+
sourceHash: import("viem").Hex;
|
123
|
+
type: "deposit";
|
124
|
+
} | {
|
125
|
+
r: import("viem").Hex;
|
126
|
+
s: import("viem").Hex;
|
127
|
+
v: bigint;
|
128
|
+
to: import("viem").Address | null;
|
129
|
+
from: import("viem").Address;
|
130
|
+
gas: bigint;
|
131
|
+
nonce: number;
|
132
|
+
value: bigint;
|
133
|
+
blockHash: `0x${string}` | null;
|
134
|
+
blockNumber: bigint | null;
|
135
|
+
hash: import("viem").Hash;
|
136
|
+
input: import("viem").Hex;
|
137
|
+
transactionIndex: number | null;
|
138
|
+
typeHex: import("viem").Hex | null;
|
139
|
+
accessList?: undefined;
|
140
|
+
authorizationList?: undefined;
|
141
|
+
blobVersionedHashes?: undefined;
|
142
|
+
chainId?: number | undefined;
|
143
|
+
yParity?: undefined;
|
144
|
+
type: "legacy";
|
145
|
+
gasPrice: bigint;
|
146
|
+
maxFeePerBlobGas?: undefined;
|
147
|
+
maxFeePerGas?: undefined;
|
148
|
+
maxPriorityFeePerGas?: undefined;
|
149
|
+
isSystemTx?: undefined;
|
150
|
+
mint?: undefined;
|
151
|
+
sourceHash?: undefined;
|
152
|
+
} | {
|
153
|
+
blockHash: `0x${string}` | null;
|
154
|
+
blockNumber: bigint | null;
|
155
|
+
from: import("viem").Address;
|
156
|
+
gas: bigint;
|
157
|
+
hash: import("viem").Hash;
|
158
|
+
input: import("viem").Hex;
|
159
|
+
nonce: number;
|
160
|
+
r: import("viem").Hex;
|
161
|
+
s: import("viem").Hex;
|
162
|
+
to: import("viem").Address | null;
|
163
|
+
transactionIndex: number | null;
|
164
|
+
typeHex: import("viem").Hex | null;
|
165
|
+
v: bigint;
|
166
|
+
value: bigint;
|
167
|
+
yParity: number;
|
168
|
+
accessList: import("viem").AccessList;
|
169
|
+
authorizationList?: undefined;
|
170
|
+
blobVersionedHashes?: undefined;
|
171
|
+
chainId: number;
|
172
|
+
type: "eip2930";
|
173
|
+
gasPrice: bigint;
|
174
|
+
maxFeePerBlobGas?: undefined;
|
175
|
+
maxFeePerGas?: undefined;
|
176
|
+
maxPriorityFeePerGas?: undefined;
|
177
|
+
isSystemTx?: undefined;
|
178
|
+
mint?: undefined;
|
179
|
+
sourceHash?: undefined;
|
180
|
+
} | {
|
181
|
+
blockHash: `0x${string}` | null;
|
182
|
+
blockNumber: bigint | null;
|
183
|
+
from: import("viem").Address;
|
184
|
+
gas: bigint;
|
185
|
+
hash: import("viem").Hash;
|
186
|
+
input: import("viem").Hex;
|
187
|
+
nonce: number;
|
188
|
+
r: import("viem").Hex;
|
189
|
+
s: import("viem").Hex;
|
190
|
+
to: import("viem").Address | null;
|
191
|
+
transactionIndex: number | null;
|
192
|
+
typeHex: import("viem").Hex | null;
|
193
|
+
v: bigint;
|
194
|
+
value: bigint;
|
195
|
+
yParity: number;
|
196
|
+
accessList: import("viem").AccessList;
|
197
|
+
authorizationList?: undefined;
|
198
|
+
blobVersionedHashes?: undefined;
|
199
|
+
chainId: number;
|
200
|
+
type: "eip1559";
|
201
|
+
gasPrice?: undefined;
|
202
|
+
maxFeePerBlobGas?: undefined;
|
203
|
+
maxFeePerGas: bigint;
|
204
|
+
maxPriorityFeePerGas: bigint;
|
205
|
+
isSystemTx?: undefined;
|
206
|
+
mint?: undefined;
|
207
|
+
sourceHash?: undefined;
|
208
|
+
} | {
|
209
|
+
blockHash: `0x${string}` | null;
|
210
|
+
blockNumber: bigint | null;
|
211
|
+
from: import("viem").Address;
|
212
|
+
gas: bigint;
|
213
|
+
hash: import("viem").Hash;
|
214
|
+
input: import("viem").Hex;
|
215
|
+
nonce: number;
|
216
|
+
r: import("viem").Hex;
|
217
|
+
s: import("viem").Hex;
|
218
|
+
to: import("viem").Address | null;
|
219
|
+
transactionIndex: number | null;
|
220
|
+
typeHex: import("viem").Hex | null;
|
221
|
+
v: bigint;
|
222
|
+
value: bigint;
|
223
|
+
yParity: number;
|
224
|
+
accessList: import("viem").AccessList;
|
225
|
+
authorizationList?: undefined;
|
226
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
227
|
+
chainId: number;
|
228
|
+
type: "eip4844";
|
229
|
+
gasPrice?: undefined;
|
230
|
+
maxFeePerBlobGas: bigint;
|
231
|
+
maxFeePerGas: bigint;
|
232
|
+
maxPriorityFeePerGas: bigint;
|
233
|
+
isSystemTx?: undefined;
|
234
|
+
mint?: undefined;
|
235
|
+
sourceHash?: undefined;
|
236
|
+
} | {
|
237
|
+
blockHash: `0x${string}` | null;
|
238
|
+
blockNumber: bigint | null;
|
239
|
+
from: import("viem").Address;
|
240
|
+
gas: bigint;
|
241
|
+
hash: import("viem").Hash;
|
242
|
+
input: import("viem").Hex;
|
243
|
+
nonce: number;
|
244
|
+
r: import("viem").Hex;
|
245
|
+
s: import("viem").Hex;
|
246
|
+
to: import("viem").Address | null;
|
247
|
+
transactionIndex: number | null;
|
248
|
+
typeHex: import("viem").Hex | null;
|
249
|
+
v: bigint;
|
250
|
+
value: bigint;
|
251
|
+
yParity: number;
|
252
|
+
accessList: import("viem").AccessList;
|
253
|
+
authorizationList: import("viem/experimental").SignedAuthorizationList;
|
254
|
+
blobVersionedHashes?: undefined;
|
255
|
+
chainId: number;
|
256
|
+
type: "eip7702";
|
257
|
+
gasPrice?: undefined;
|
258
|
+
maxFeePerBlobGas?: undefined;
|
259
|
+
maxFeePerGas: bigint;
|
260
|
+
maxPriorityFeePerGas: bigint;
|
261
|
+
isSystemTx?: undefined;
|
262
|
+
mint?: undefined;
|
263
|
+
sourceHash?: undefined;
|
264
|
+
}) & {};
|
265
|
+
type: "transaction";
|
266
|
+
};
|
267
|
+
readonly transactionReceipt: {
|
268
|
+
exclude: [] | undefined;
|
269
|
+
format: (args: import("viem/op-stack").OpStackRpcTransactionReceipt) => {
|
270
|
+
blobGasPrice?: bigint | undefined;
|
271
|
+
blobGasUsed?: bigint | undefined;
|
272
|
+
blockHash: import("viem").Hash;
|
273
|
+
blockNumber: bigint;
|
274
|
+
contractAddress: import("viem").Address | null | undefined;
|
275
|
+
cumulativeGasUsed: bigint;
|
276
|
+
effectiveGasPrice: bigint;
|
277
|
+
from: import("viem").Address;
|
278
|
+
gasUsed: bigint;
|
279
|
+
logs: import("viem").Log<bigint, number, false>[];
|
280
|
+
logsBloom: import("viem").Hex;
|
281
|
+
root?: import("viem").Hash | undefined;
|
282
|
+
status: "success" | "reverted";
|
283
|
+
to: import("viem").Address | null;
|
284
|
+
transactionHash: import("viem").Hash;
|
285
|
+
transactionIndex: number;
|
286
|
+
type: import("viem").TransactionType;
|
287
|
+
l1GasPrice: bigint | null;
|
288
|
+
l1GasUsed: bigint | null;
|
289
|
+
l1Fee: bigint | null;
|
290
|
+
l1FeeScalar: number | null;
|
291
|
+
} & {};
|
292
|
+
type: "transactionReceipt";
|
293
|
+
};
|
294
|
+
};
|
295
|
+
readonly serializers: {
|
296
|
+
readonly transaction: typeof import("viem/op-stack").serializeTransaction;
|
297
|
+
};
|
298
|
+
};
|
299
|
+
//# sourceMappingURL=mantleSepoliaTestnet.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mantleSepoliaTestnet.d.ts","sourceRoot":"","sources":["../../../src/mantle/chains/mantleSepoliaTestnet.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAmCd,eAAY;;;;;kCAYrB,MAAa;;;;;8BAAqM,MAAS;gCAA2C,MAAa;;;qCAAiI,CAAC,SAAS,MAAa;mCAAsD,MAAa;qCAA6C,MAAa;mCAA0C,MAAa;mCAA4C,MAAa;;kCAAwE,MAAa;;;uDAAkJ,eAAY;yCAA0E,MAAa;+BAAuC,MAAa;2BAAqC,CAAC,SAAS,MAAa;+BAA2D,CAAC,SAAS,MAAa;;;;;;kCAAoL,eAAY;;;6BAAyJ,MAAS;;6BAAqE,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;2BAAkC,MAAS;;gCAAmG,MAAa;;;;wBAAiI,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAA+B,CAAC;mCAAyD,MAAa;;;0BAAoF,MAAa;0BAAiC,MAAa;;2BAA6D,MAAS;6BAA+C,MAAS;;;;;;6BAAgO,MAAa;8BAAsC,MAAa;;gCAAwF,MAAa;0BAAwC,CAAC;iCAA8C,CAAC;mCAAgD,CAAC;uBAAoC,CAAC;uBAA6C,CAAC;;;gCAA+G,CAAC;4BAAyC,CAAC;oCAAiD,CAAC;0BAAuC,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;6BAAyJ,MAAS;;6BAAqE,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;2BAAkC,MAAS;;gCAAmG,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;mCAAgD,CAAC;;;;gCAAiJ,CAAC;4BAAyC,CAAC;oCAAiD,CAAC;0BAAuC,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;6BAAyJ,MAAS;;6BAAqE,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;2BAAkC,MAAS;;gCAAmG,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;mCAAgD,CAAC;;;wBAAuG,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;6BAAyJ,MAAS;;6BAAqE,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;2BAAkC,MAAS;;gCAAmG,MAAa;;;;mCAA4I,MAAa;iCAA+C,CAAC;qDAAkE,MAAa;;;wBAAmG,CAAC;;;;0BAAqK,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;6BAAyJ,MAAS;;6BAAqE,MAAa;8BAAsC,MAAa;;0BAAgE,MAAa;0BAAiC,MAAa;2BAAkC,MAAS;;gCAAmG,MAAa;;;;mCAA4I,MAAa;0CAAwD,mBAA0B;mCAA8D,CAAC;;;wBAAuG,CAAC;gCAA6C,CAAC;;;0BAA2H,CAAC;oBAAiC,CAAC;0BAAuC,CAAC;;;;;;kCAA4L,eAAY;4BAAiE,CAAC;2BAAiD,CAAC;kCAAwD,MAAa;;wCAAqF,MAAS;;;6BAAiJ,MAAS;;6BAAyE,MAAa;kCAAkE,MAAa;oBAA2B,CAAC,SAAS,MAAa;;2BAA+F,MAAS;wCAA0D,MAAa;;6BAA+E,MAAa;;;;;;;;;;4CAAgV,eAAkB;;CAD1jT,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare const contracts: {
|
2
|
+
readonly gasPriceOracle: {
|
3
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
4
|
+
};
|
5
|
+
readonly l1Block: {
|
6
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
7
|
+
};
|
8
|
+
readonly l2CrossDomainMessenger: {
|
9
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
10
|
+
};
|
11
|
+
readonly l2Erc721Bridge: {
|
12
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
13
|
+
};
|
14
|
+
readonly l2StandardBridge: {
|
15
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
16
|
+
};
|
17
|
+
readonly l2ToL1MessagePasser: {
|
18
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
19
|
+
};
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=contracts.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/mantle/contracts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAWiB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import type { Client, Transport } from "viem";
|
2
|
+
import type { Chain } from "viem";
|
3
|
+
import type { Account } from "viem";
|
4
|
+
import { type EstimateDepositETHGasParameters, type EstimateDepositETHGasReturnType } from "../actions/estimateDepositETHGas.js";
|
5
|
+
import { type EstimateDepositMNTGasParameters, type EstimateDepositMNTGasReturnType } from "../actions/estimateDepositMNTGas.js";
|
6
|
+
import { type EstimateFinalizeWithdrawalGasParameters, type EstimateFinalizeWithdrawalGasReturnType } from "../actions/estimateFinalizeWithdrawalGas.js";
|
7
|
+
import { type EstimateProveWithdrawalGasParameters, type EstimateProveWithdrawalGasReturnType } from "../actions/estimateProveWithdrawalGas.js";
|
8
|
+
import { type GetL2OutputParameters, type GetL2OutputReturnType } from "../actions/getL2Output.js";
|
9
|
+
import { type GetPortalVersionParameters, type GetPortalVersionReturnType } from "../actions/getPortalVersion.js";
|
10
|
+
import { type GetTimeToFinalizeParameters, type GetTimeToFinalizeReturnType } from "../actions/getTimeToFinalize.js";
|
11
|
+
import { type GetTimeToNextL2OutputParameters, type GetTimeToNextL2OutputReturnType } from "../actions/getTimeToNextL2Output.js";
|
12
|
+
import { type GetTimeToProveParameters, type GetTimeToProveReturnType } from "../actions/getTimeToProve.js";
|
13
|
+
import { type GetWithdrawalStatusParameters, type GetWithdrawalStatusReturnType } from "../actions/getWithdrawalStatus.js";
|
14
|
+
import { type WaitForNextL2OutputParameters, type WaitForNextL2OutputReturnType } from "../actions/waitForNextL2Output.js";
|
15
|
+
import { type WaitToFinalizeParameters, type WaitToFinalizeReturnType } from "../actions/waitToFinalize.js";
|
16
|
+
import { type WaitToProveParameters, type WaitToProveReturnType } from "../actions/waitToProve.js";
|
17
|
+
import { type EstimateDepositERC20GasParameters, type EstimateDepositERC20GasReturnType } from "../actions/estimateDepositERC20Gas.js";
|
18
|
+
export type PublicActionsL1<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = {
|
19
|
+
estimateProveWithdrawalGas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateProveWithdrawalGasParameters<chain, account, chainOverride>) => Promise<EstimateProveWithdrawalGasReturnType>;
|
20
|
+
estimateFinalizeWithdrawalGas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateFinalizeWithdrawalGasParameters<chain, account, chainOverride>) => Promise<EstimateFinalizeWithdrawalGasReturnType>;
|
21
|
+
getL2Output: <chainOverride extends Chain | undefined = undefined>(parameters: GetL2OutputParameters<chain, chainOverride>) => Promise<GetL2OutputReturnType>;
|
22
|
+
getPortalVersion: <chainOverride extends Chain | undefined = undefined>(parameters: GetPortalVersionParameters<chain, chainOverride>) => Promise<GetPortalVersionReturnType>;
|
23
|
+
getTimeToFinalize: <chainOverride extends Chain | undefined = undefined>(parameters: GetTimeToFinalizeParameters<chain, chainOverride>) => Promise<GetTimeToFinalizeReturnType>;
|
24
|
+
getTimeToNextL2Output: <chainOverride extends Chain | undefined = undefined>(parameters: GetTimeToNextL2OutputParameters<chain, chainOverride>) => Promise<GetTimeToNextL2OutputReturnType>;
|
25
|
+
getTimeToProve: <chainOverride extends Chain | undefined = undefined>(parameters: GetTimeToProveParameters<chain, chainOverride>) => Promise<GetTimeToProveReturnType>;
|
26
|
+
getWithdrawalStatus: <chainOverride extends Chain | undefined = undefined>(parameters: GetWithdrawalStatusParameters<chain, chainOverride>) => Promise<GetWithdrawalStatusReturnType>;
|
27
|
+
waitForNextL2Output: <chainOverride extends Chain | undefined = undefined>(parameters: WaitForNextL2OutputParameters<chain, chainOverride>) => Promise<WaitForNextL2OutputReturnType>;
|
28
|
+
waitToFinalize: <chainOverride extends Chain | undefined = undefined>(parameters: WaitToFinalizeParameters<chain, chainOverride>) => Promise<WaitToFinalizeReturnType>;
|
29
|
+
waitToProve: <chainOverride extends Chain | undefined = undefined>(parameters: WaitToProveParameters<chain, chainOverride>) => Promise<WaitToProveReturnType>;
|
30
|
+
estimateDepositMNTGas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateDepositMNTGasParameters<chain, account, chainOverride>) => Promise<EstimateDepositMNTGasReturnType>;
|
31
|
+
estimateDepositETHGas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateDepositETHGasParameters<chain, account, chainOverride>) => Promise<EstimateDepositETHGasReturnType>;
|
32
|
+
estimateDepositERC20Gas: <chainOverride extends Chain | undefined = undefined>(parameters: EstimateDepositERC20GasParameters<chain, account, chainOverride>) => Promise<EstimateDepositERC20GasReturnType>;
|
33
|
+
};
|
34
|
+
export declare function publicActionsL1(): <transport extends Transport, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined>(client: Client<transport, chain, account>) => PublicActionsL1<chain, account>;
|
35
|
+
//# sourceMappingURL=publicL1.d.ts.map
|