viem 2.0.0-beta.9 → 2.0.0-rc.1
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/CHANGELOG.md +54 -0
- package/README.md +9 -3
- package/_cjs/actions/ens/getEnsName.js +4 -2
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/index.js +16 -2
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/getFilterChanges.js +3 -2
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js +3 -2
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getLogs.js +3 -2
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.js +2 -1
- package/_cjs/actions/public/verifyTypedData.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +0 -10
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +4 -0
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_cjs/chains/definitions/astar.js +0 -1
- package/_cjs/chains/definitions/astar.js.map +1 -1
- package/_cjs/chains/definitions/astarZkatana.js +0 -6
- package/_cjs/chains/definitions/astarZkatana.js.map +1 -1
- package/_cjs/chains/definitions/base.js +5 -0
- package/_cjs/chains/definitions/base.js.map +1 -1
- package/_cjs/chains/definitions/baseGoerli.js +5 -0
- package/_cjs/chains/definitions/baseGoerli.js.map +1 -1
- package/_cjs/chains/definitions/baseSepolia.js +5 -3
- package/_cjs/chains/definitions/baseSepolia.js.map +1 -1
- package/_cjs/chains/definitions/bscTestnet.js +0 -1
- package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_cjs/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js +25 -0
- package/_cjs/chains/definitions/fantomSonicTestnet.js.map +1 -0
- package/_cjs/chains/definitions/kava.js +0 -1
- package/_cjs/chains/definitions/kava.js.map +1 -1
- package/_cjs/chains/definitions/kavaTestnet.js +0 -1
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/klaytnBaobab.js +0 -1
- package/_cjs/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_cjs/chains/definitions/lukso.js +0 -4
- package/_cjs/chains/definitions/lukso.js.map +1 -1
- package/_cjs/chains/definitions/manta.js +0 -1
- package/_cjs/chains/definitions/manta.js.map +1 -1
- package/_cjs/chains/definitions/mantaTestnet.js +0 -1
- package/_cjs/chains/definitions/mantaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/neonMainnet.js +0 -3
- package/_cjs/chains/definitions/neonMainnet.js.map +1 -1
- package/_cjs/chains/definitions/optimism.js +5 -0
- package/_cjs/chains/definitions/optimism.js.map +1 -1
- package/_cjs/chains/definitions/optimismGoerli.js +5 -0
- package/_cjs/chains/definitions/optimismGoerli.js.map +1 -1
- package/_cjs/chains/definitions/optimismSepolia.js +5 -0
- package/_cjs/chains/definitions/optimismSepolia.js.map +1 -1
- package/_cjs/chains/definitions/pgn.js +12 -3
- package/_cjs/chains/definitions/pgn.js.map +1 -1
- package/_cjs/chains/definitions/pgnTestnet.js +7 -3
- package/_cjs/chains/definitions/pgnTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rootstock.js +0 -1
- package/_cjs/chains/definitions/rootstock.js.map +1 -1
- package/_cjs/chains/definitions/sapphire.js +0 -4
- package/_cjs/chains/definitions/sapphire.js.map +1 -1
- package/_cjs/chains/definitions/sapphireTestnet.js +0 -4
- package/_cjs/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_cjs/chains/definitions/shibarium.js +0 -3
- package/_cjs/chains/definitions/shibarium.js.map +1 -1
- package/_cjs/chains/definitions/shimmer.js +0 -3
- package/_cjs/chains/definitions/shimmer.js.map +1 -1
- package/_cjs/chains/definitions/shimmerTestnet.js +0 -3
- package/_cjs/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_cjs/chains/definitions/taikoJolnir.js +2 -2
- package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
- package/_cjs/chains/definitions/tenet.js +0 -1
- package/_cjs/chains/definitions/tenet.js.map +1 -1
- package/_cjs/chains/definitions/zilliqa.js +23 -0
- package/_cjs/chains/definitions/zilliqa.js.map +1 -0
- package/_cjs/chains/definitions/zilliqaTestnet.js +23 -0
- package/_cjs/chains/definitions/zilliqaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +31 -0
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zora.js +5 -0
- package/_cjs/chains/definitions/zora.js.map +1 -1
- package/_cjs/chains/definitions/zoraSepolia.js +5 -4
- package/_cjs/chains/definitions/zoraSepolia.js.map +1 -1
- package/_cjs/chains/index.js +12 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/opStack/abis.js +366 -1
- package/_cjs/chains/opStack/abis.js.map +1 -1
- package/_cjs/chains/opStack/actions/buildDepositTransaction.js +1 -1
- package/_cjs/chains/opStack/actions/buildDepositTransaction.js.map +1 -1
- package/_cjs/chains/opStack/actions/buildInitiateWithdrawal.js +29 -0
- package/_cjs/chains/opStack/actions/buildInitiateWithdrawal.js.map +1 -0
- package/_cjs/chains/opStack/actions/buildProveWithdrawal.js +39 -0
- package/_cjs/chains/opStack/actions/buildProveWithdrawal.js.map +1 -0
- package/_cjs/chains/opStack/actions/depositTransaction.js +11 -6
- package/_cjs/chains/opStack/actions/depositTransaction.js.map +1 -1
- package/_cjs/chains/opStack/actions/estimateDepositTransactionGas.js +37 -0
- package/_cjs/chains/opStack/actions/estimateDepositTransactionGas.js.map +1 -0
- package/_cjs/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +29 -0
- package/_cjs/chains/opStack/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
- package/_cjs/chains/opStack/actions/estimateInitiateWithdrawalGas.js +24 -0
- package/_cjs/chains/opStack/actions/estimateInitiateWithdrawalGas.js.map +1 -0
- package/_cjs/chains/opStack/actions/estimateProveWithdrawalGas.js +29 -0
- package/_cjs/chains/opStack/actions/estimateProveWithdrawalGas.js.map +1 -0
- package/_cjs/chains/opStack/actions/finalizeWithdrawal.js +33 -0
- package/_cjs/chains/opStack/actions/finalizeWithdrawal.js.map +1 -0
- package/_cjs/chains/opStack/actions/getL2Output.js +30 -0
- package/_cjs/chains/opStack/actions/getL2Output.js.map +1 -0
- package/_cjs/chains/opStack/actions/getTimeToFinalize.js +46 -0
- package/_cjs/chains/opStack/actions/getTimeToFinalize.js.map +1 -0
- package/_cjs/chains/opStack/actions/getTimeToNextL2Output.js +63 -0
- package/_cjs/chains/opStack/actions/getTimeToNextL2Output.js.map +1 -0
- package/_cjs/chains/opStack/actions/getTimeToProve.js +13 -0
- package/_cjs/chains/opStack/actions/getTimeToProve.js.map +1 -0
- package/_cjs/chains/opStack/actions/getWithdrawalStatus.js +71 -0
- package/_cjs/chains/opStack/actions/getWithdrawalStatus.js.map +1 -0
- package/_cjs/chains/opStack/actions/initiateWithdrawal.js +28 -0
- package/_cjs/chains/opStack/actions/initiateWithdrawal.js.map +1 -0
- package/_cjs/chains/opStack/actions/proveWithdrawal.js +33 -0
- package/_cjs/chains/opStack/actions/proveWithdrawal.js.map +1 -0
- package/_cjs/chains/opStack/actions/waitForNextL2Output.js +32 -0
- package/_cjs/chains/opStack/actions/waitForNextL2Output.js.map +1 -0
- package/_cjs/chains/opStack/actions/waitToFinalize.js +11 -0
- package/_cjs/chains/opStack/actions/waitToFinalize.js.map +1 -0
- package/_cjs/chains/opStack/actions/waitToProve.js +21 -0
- package/_cjs/chains/opStack/actions/waitToProve.js.map +1 -0
- package/_cjs/chains/opStack/chains.js +5 -1
- package/_cjs/chains/opStack/chains.js.map +1 -1
- package/_cjs/chains/opStack/decorators/publicL1.js +35 -0
- package/_cjs/chains/opStack/decorators/publicL1.js.map +1 -0
- package/_cjs/chains/opStack/decorators/publicL2.js +5 -1
- package/_cjs/chains/opStack/decorators/publicL2.js.map +1 -1
- package/_cjs/chains/opStack/decorators/walletL1.js +4 -0
- package/_cjs/chains/opStack/decorators/walletL1.js.map +1 -1
- package/_cjs/chains/opStack/decorators/walletL2.js +13 -0
- package/_cjs/chains/opStack/decorators/walletL2.js.map +1 -0
- package/_cjs/chains/opStack/errors/withdrawal.js +17 -0
- package/_cjs/chains/opStack/errors/withdrawal.js.map +1 -0
- package/_cjs/chains/opStack/index.js +43 -15
- package/_cjs/chains/opStack/index.js.map +1 -1
- package/_cjs/chains/opStack/types/deposit.js +3 -0
- package/_cjs/chains/opStack/types/deposit.js.map +1 -0
- package/_cjs/chains/opStack/types/withdrawal.js +3 -0
- package/_cjs/chains/opStack/types/withdrawal.js.map +1 -0
- package/_cjs/chains/opStack/utils/extractWithdrawalMessageLogs.js +14 -0
- package/_cjs/chains/opStack/utils/extractWithdrawalMessageLogs.js.map +1 -0
- package/_cjs/chains/opStack/utils/getL2TransactionHash.js +2 -2
- package/_cjs/chains/opStack/utils/getL2TransactionHash.js.map +1 -1
- package/_cjs/chains/opStack/utils/getWithdrawalHashStorageSlot.js +11 -0
- package/_cjs/chains/opStack/utils/getWithdrawalHashStorageSlot.js.map +1 -0
- package/_cjs/chains/opStack/utils/getWithdrawals.js +10 -0
- package/_cjs/chains/opStack/utils/getWithdrawals.js.map +1 -0
- package/_cjs/chains/opStack/utils/{fromOpaqueData.js → opaqueDataToDepositData.js} +4 -4
- package/_cjs/chains/opStack/utils/opaqueDataToDepositData.js.map +1 -0
- package/_cjs/errors/abi.js +21 -1
- package/_cjs/errors/abi.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/index.js +10 -2
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js +46 -3
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/hash/ripemd160.js +16 -0
- package/_cjs/utils/hash/ripemd160.js.map +1 -0
- package/_cjs/utils/hash/sha256.js +16 -0
- package/_cjs/utils/hash/sha256.js.map +1 -0
- package/_cjs/utils/index.js +5 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js +4 -2
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/index.js +7 -0
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/getFilterChanges.js +3 -2
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js +3 -2
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getLogs.js +3 -2
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +2 -1
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/chains/celo/formatters.js +0 -10
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js +4 -0
- package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_esm/chains/definitions/astar.js +0 -1
- package/_esm/chains/definitions/astar.js.map +1 -1
- package/_esm/chains/definitions/astarZkatana.js +0 -6
- package/_esm/chains/definitions/astarZkatana.js.map +1 -1
- package/_esm/chains/definitions/base.js +5 -0
- package/_esm/chains/definitions/base.js.map +1 -1
- package/_esm/chains/definitions/baseGoerli.js +5 -0
- package/_esm/chains/definitions/baseGoerli.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +5 -3
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/bscTestnet.js +0 -1
- package/_esm/chains/definitions/bscTestnet.js.map +1 -1
- package/_esm/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_esm/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js +22 -0
- package/_esm/chains/definitions/fantomSonicTestnet.js.map +1 -0
- package/_esm/chains/definitions/kava.js +0 -1
- package/_esm/chains/definitions/kava.js.map +1 -1
- package/_esm/chains/definitions/kavaTestnet.js +0 -1
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -1
- package/_esm/chains/definitions/klaytnBaobab.js +0 -1
- package/_esm/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_esm/chains/definitions/lukso.js +0 -4
- package/_esm/chains/definitions/lukso.js.map +1 -1
- package/_esm/chains/definitions/manta.js +0 -1
- package/_esm/chains/definitions/manta.js.map +1 -1
- package/_esm/chains/definitions/mantaTestnet.js +0 -1
- package/_esm/chains/definitions/mantaTestnet.js.map +1 -1
- package/_esm/chains/definitions/neonMainnet.js +0 -3
- package/_esm/chains/definitions/neonMainnet.js.map +1 -1
- package/_esm/chains/definitions/optimism.js +5 -0
- package/_esm/chains/definitions/optimism.js.map +1 -1
- package/_esm/chains/definitions/optimismGoerli.js +5 -0
- package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
- package/_esm/chains/definitions/optimismSepolia.js +5 -0
- package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
- package/_esm/chains/definitions/pgn.js +12 -3
- package/_esm/chains/definitions/pgn.js.map +1 -1
- package/_esm/chains/definitions/pgnTestnet.js +7 -3
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -1
- package/_esm/chains/definitions/rootstock.js +0 -1
- package/_esm/chains/definitions/rootstock.js.map +1 -1
- package/_esm/chains/definitions/sapphire.js +0 -4
- package/_esm/chains/definitions/sapphire.js.map +1 -1
- package/_esm/chains/definitions/sapphireTestnet.js +0 -4
- package/_esm/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_esm/chains/definitions/shibarium.js +0 -3
- package/_esm/chains/definitions/shibarium.js.map +1 -1
- package/_esm/chains/definitions/shimmer.js +0 -3
- package/_esm/chains/definitions/shimmer.js.map +1 -1
- package/_esm/chains/definitions/shimmerTestnet.js +0 -3
- package/_esm/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_esm/chains/definitions/taikoJolnir.js +2 -2
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
- package/_esm/chains/definitions/tenet.js +0 -1
- package/_esm/chains/definitions/tenet.js.map +1 -1
- package/_esm/chains/definitions/zilliqa.js +20 -0
- package/_esm/chains/definitions/zilliqa.js.map +1 -0
- package/_esm/chains/definitions/zilliqaTestnet.js +20 -0
- package/_esm/chains/definitions/zilliqaTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +28 -0
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zora.js +5 -0
- package/_esm/chains/definitions/zora.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +5 -4
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
- package/_esm/chains/index.js +4 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/opStack/abis.js +365 -0
- package/_esm/chains/opStack/abis.js.map +1 -1
- package/_esm/chains/opStack/actions/buildDepositTransaction.js +2 -2
- package/_esm/chains/opStack/actions/buildDepositTransaction.js.map +1 -1
- package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js +50 -0
- package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js.map +1 -0
- package/_esm/chains/opStack/actions/buildProveWithdrawal.js +59 -0
- package/_esm/chains/opStack/actions/buildProveWithdrawal.js.map +1 -0
- package/_esm/chains/opStack/actions/depositTransaction.js +17 -14
- package/_esm/chains/opStack/actions/depositTransaction.js.map +1 -1
- package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js +62 -0
- package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +50 -0
- package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js +48 -0
- package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js +53 -0
- package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js.map +1 -0
- package/_esm/chains/opStack/actions/finalizeWithdrawal.js +53 -0
- package/_esm/chains/opStack/actions/finalizeWithdrawal.js.map +1 -0
- package/_esm/chains/opStack/actions/getL2Output.js +50 -0
- package/_esm/chains/opStack/actions/getL2Output.js.map +1 -0
- package/_esm/chains/opStack/actions/getTimeToFinalize.js +77 -0
- package/_esm/chains/opStack/actions/getTimeToFinalize.js.map +1 -0
- package/_esm/chains/opStack/actions/getTimeToNextL2Output.js +91 -0
- package/_esm/chains/opStack/actions/getTimeToNextL2Output.js.map +1 -0
- package/_esm/chains/opStack/actions/getTimeToProve.js +39 -0
- package/_esm/chains/opStack/actions/getTimeToProve.js.map +1 -0
- package/_esm/chains/opStack/actions/getWithdrawalStatus.js +99 -0
- package/_esm/chains/opStack/actions/getWithdrawalStatus.js.map +1 -0
- package/_esm/chains/opStack/actions/initiateWithdrawal.js +76 -0
- package/_esm/chains/opStack/actions/initiateWithdrawal.js.map +1 -0
- package/_esm/chains/opStack/actions/proveWithdrawal.js +57 -0
- package/_esm/chains/opStack/actions/proveWithdrawal.js.map +1 -0
- package/_esm/chains/opStack/actions/waitForNextL2Output.js +58 -0
- package/_esm/chains/opStack/actions/waitForNextL2Output.js.map +1 -0
- package/_esm/chains/opStack/actions/waitToFinalize.js +41 -0
- package/_esm/chains/opStack/actions/waitToFinalize.js.map +1 -0
- package/_esm/chains/opStack/actions/waitToProve.js +47 -0
- package/_esm/chains/opStack/actions/waitToProve.js.map +1 -0
- package/_esm/chains/opStack/chains.js +2 -0
- package/_esm/chains/opStack/chains.js.map +1 -1
- package/_esm/chains/opStack/decorators/publicL1.js +31 -0
- package/_esm/chains/opStack/decorators/publicL1.js.map +1 -0
- package/_esm/chains/opStack/decorators/publicL2.js +5 -1
- package/_esm/chains/opStack/decorators/publicL2.js.map +1 -1
- package/_esm/chains/opStack/decorators/walletL1.js +4 -0
- package/_esm/chains/opStack/decorators/walletL1.js.map +1 -1
- package/_esm/chains/opStack/decorators/walletL2.js +9 -0
- package/_esm/chains/opStack/decorators/walletL2.js.map +1 -0
- package/_esm/chains/opStack/errors/withdrawal.js +13 -0
- package/_esm/chains/opStack/errors/withdrawal.js.map +1 -0
- package/_esm/chains/opStack/index.js +21 -3
- package/_esm/chains/opStack/index.js.map +1 -1
- package/_esm/chains/opStack/types/deposit.js +2 -0
- package/_esm/chains/opStack/types/deposit.js.map +1 -0
- package/_esm/chains/opStack/types/withdrawal.js +2 -0
- package/_esm/chains/opStack/types/withdrawal.js.map +1 -0
- package/_esm/chains/opStack/utils/extractWithdrawalMessageLogs.js +10 -0
- package/_esm/chains/opStack/utils/extractWithdrawalMessageLogs.js.map +1 -0
- package/_esm/chains/opStack/utils/getL2TransactionHash.js +2 -2
- package/_esm/chains/opStack/utils/getL2TransactionHash.js.map +1 -1
- package/_esm/chains/opStack/utils/getWithdrawalHashStorageSlot.js +7 -0
- package/_esm/chains/opStack/utils/getWithdrawalHashStorageSlot.js.map +1 -0
- package/_esm/chains/opStack/utils/getWithdrawals.js +6 -0
- package/_esm/chains/opStack/utils/getWithdrawals.js.map +1 -0
- package/_esm/chains/opStack/utils/{fromOpaqueData.js → opaqueDataToDepositData.js} +2 -2
- package/_esm/chains/opStack/utils/opaqueDataToDepositData.js.map +1 -0
- package/_esm/errors/abi.js +19 -0
- package/_esm/errors/abi.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/index.js +4 -0
- package/_esm/index.js.map +1 -1
- package/_esm/utils/abi/getAbiItem.js +46 -2
- package/_esm/utils/abi/getAbiItem.js.map +1 -1
- package/_esm/utils/hash/ripemd160.js +12 -0
- package/_esm/utils/hash/ripemd160.js.map +1 -0
- package/_esm/utils/hash/sha256.js +12 -0
- package/_esm/utils/hash/sha256.js.map +1 -0
- package/_esm/utils/index.js +2 -0
- package/_esm/utils/index.js.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/index.d.ts +7 -0
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts +2 -4
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +5 -5
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +97 -120
- package/_types/chains/celo/chainConfig.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +98 -121
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/index.d.ts +1 -1
- package/_types/chains/celo/index.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +2 -14
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/arbitrumSepolia.d.ts +4 -0
- package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/astar.d.ts +0 -3
- package/_types/chains/definitions/astar.d.ts.map +1 -1
- package/_types/chains/definitions/astarZkatana.d.ts +0 -3
- package/_types/chains/definitions/astarZkatana.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +80 -75
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +80 -75
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +80 -78
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/bscTestnet.d.ts +0 -3
- package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +97 -120
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +97 -120
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +97 -120
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +0 -4
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/fantomSonicTestnet.d.ts +35 -0
- package/_types/chains/definitions/fantomSonicTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/kava.d.ts +0 -3
- package/_types/chains/definitions/kava.d.ts.map +1 -1
- package/_types/chains/definitions/kavaTestnet.d.ts +0 -3
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/klaytnBaobab.d.ts +0 -3
- package/_types/chains/definitions/klaytnBaobab.d.ts.map +1 -1
- package/_types/chains/definitions/lukso.d.ts +0 -4
- package/_types/chains/definitions/lukso.d.ts.map +1 -1
- package/_types/chains/definitions/manta.d.ts +0 -3
- package/_types/chains/definitions/manta.d.ts.map +1 -1
- package/_types/chains/definitions/mantaTestnet.d.ts +0 -3
- package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/neonMainnet.d.ts +0 -3
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +80 -75
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +80 -75
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +80 -75
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/pgn.d.ts +85 -78
- package/_types/chains/definitions/pgn.d.ts.map +1 -1
- package/_types/chains/definitions/pgnTestnet.d.ts +80 -78
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rootstock.d.ts +0 -3
- package/_types/chains/definitions/rootstock.d.ts.map +1 -1
- package/_types/chains/definitions/sapphire.d.ts +0 -4
- package/_types/chains/definitions/sapphire.d.ts.map +1 -1
- package/_types/chains/definitions/sapphireTestnet.d.ts +0 -4
- package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/shibarium.d.ts +0 -3
- package/_types/chains/definitions/shibarium.d.ts.map +1 -1
- package/_types/chains/definitions/shimmer.d.ts +0 -3
- package/_types/chains/definitions/shimmer.d.ts.map +1 -1
- package/_types/chains/definitions/shimmerTestnet.d.ts +0 -3
- package/_types/chains/definitions/shimmerTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/taikoJolnir.d.ts +2 -2
- package/_types/chains/definitions/tenet.d.ts +0 -3
- package/_types/chains/definitions/tenet.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqa.d.ts +35 -0
- package/_types/chains/definitions/zilliqa.d.ts.map +1 -0
- package/_types/chains/definitions/zilliqaTestnet.d.ts +35 -0
- package/_types/chains/definitions/zilliqaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +9 -9
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +529 -0
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts +10 -9
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +80 -75
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +80 -79
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +75 -75
- package/_types/chains/index.d.ts +5 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/opStack/abis.d.ts +457 -0
- package/_types/chains/opStack/abis.d.ts.map +1 -1
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +5 -3
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +1 -1
- package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +50 -0
- package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts +48 -0
- package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/actions/depositTransaction.d.ts +18 -34
- package/_types/chains/opStack/actions/depositTransaction.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +50 -0
- package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +45 -0
- package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +51 -0
- package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +63 -0
- package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +49 -0
- package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/actions/getL2Output.d.ts +44 -0
- package/_types/chains/opStack/actions/getL2Output.d.ts.map +1 -0
- package/_types/chains/opStack/actions/getTimeToFinalize.d.ts +57 -0
- package/_types/chains/opStack/actions/getTimeToFinalize.d.ts.map +1 -0
- package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +61 -0
- package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts.map +1 -0
- package/_types/chains/opStack/actions/getTimeToProve.d.ts +50 -0
- package/_types/chains/opStack/actions/getTimeToProve.d.ts.map +1 -0
- package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts +48 -0
- package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts.map +1 -0
- package/_types/chains/opStack/actions/initiateWithdrawal.d.ts +77 -0
- package/_types/chains/opStack/actions/initiateWithdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/actions/proveWithdrawal.d.ts +67 -0
- package/_types/chains/opStack/actions/proveWithdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +55 -0
- package/_types/chains/opStack/actions/waitForNextL2Output.d.ts.map +1 -0
- package/_types/chains/opStack/actions/waitToFinalize.d.ts +45 -0
- package/_types/chains/opStack/actions/waitToFinalize.d.ts.map +1 -0
- package/_types/chains/opStack/actions/waitToProve.d.ts +55 -0
- package/_types/chains/opStack/actions/waitToProve.d.ts.map +1 -0
- package/_types/chains/opStack/chainConfig.d.ts +74 -74
- package/_types/chains/opStack/chains.d.ts +2 -0
- package/_types/chains/opStack/chains.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/publicL1.d.ts +386 -0
- package/_types/chains/opStack/decorators/publicL1.d.ts.map +1 -0
- package/_types/chains/opStack/decorators/publicL2.d.ts +82 -26
- package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/walletL1.d.ts +57 -2
- package/_types/chains/opStack/decorators/walletL1.d.ts.map +1 -1
- package/_types/chains/opStack/decorators/walletL2.d.ts +62 -0
- package/_types/chains/opStack/decorators/walletL2.d.ts.map +1 -0
- package/_types/chains/opStack/errors/withdrawal.d.ts +12 -0
- package/_types/chains/opStack/errors/withdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/formatters.d.ts +74 -74
- package/_types/chains/opStack/index.d.ts +21 -3
- package/_types/chains/opStack/index.d.ts.map +1 -1
- package/_types/chains/opStack/types/deposit.d.ts +25 -0
- package/_types/chains/opStack/types/deposit.d.ts.map +1 -0
- package/_types/chains/opStack/types/withdrawal.d.ts +22 -0
- package/_types/chains/opStack/types/withdrawal.d.ts.map +1 -0
- package/_types/chains/opStack/utils/extractWithdrawalMessageLogs.d.ts +137 -0
- package/_types/chains/opStack/utils/extractWithdrawalMessageLogs.d.ts.map +1 -0
- package/_types/chains/opStack/utils/getWithdrawalHashStorageSlot.d.ts +11 -0
- package/_types/chains/opStack/utils/getWithdrawalHashStorageSlot.d.ts.map +1 -0
- package/_types/chains/opStack/utils/getWithdrawals.d.ts +12 -0
- package/_types/chains/opStack/utils/getWithdrawals.d.ts.map +1 -0
- package/_types/chains/opStack/utils/opaqueDataToDepositData.d.ts +15 -0
- package/_types/chains/opStack/utils/opaqueDataToDepositData.d.ts.map +1 -0
- package/_types/chains/zksync/chainConfig.d.ts +9 -9
- package/_types/chains/zksync/formatters.d.ts +9 -9
- package/_types/clients/decorators/public.d.ts +2 -2
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +2 -2
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/errors/abi.d.ts +14 -1
- package/_types/errors/abi.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/index.d.ts +15 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/types/account.d.ts +1 -1
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +12 -0
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/utils/abi/getAbiItem.d.ts +2 -1
- package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/hash/ripemd160.d.ts +11 -0
- package/_types/utils/hash/ripemd160.d.ts.map +1 -0
- package/_types/utils/hash/sha256.d.ts +11 -0
- package/_types/utils/hash/sha256.d.ts.map +1 -0
- package/_types/utils/index.d.ts +2 -0
- package/_types/utils/index.d.ts.map +1 -1
- package/actions/ens/getEnsName.ts +3 -2
- package/actions/index.ts +31 -0
- package/actions/public/getFilterChanges.ts +3 -5
- package/actions/public/getFilterLogs.ts +3 -3
- package/actions/public/getLogs.ts +3 -3
- package/actions/public/verifyTypedData.ts +13 -8
- package/actions/wallet/prepareTransactionRequest.ts +16 -9
- package/chains/celo/formatters.ts +0 -14
- package/chains/celo/index.ts +0 -4
- package/chains/celo/types.ts +0 -18
- package/chains/definitions/arbitrumSepolia.ts +4 -0
- package/chains/definitions/astar.ts +0 -1
- package/chains/definitions/astarZkatana.ts +0 -6
- package/chains/definitions/base.ts +5 -0
- package/chains/definitions/baseGoerli.ts +5 -0
- package/chains/definitions/baseSepolia.ts +5 -3
- package/chains/definitions/bscTestnet.ts +0 -1
- package/chains/definitions/confluxESpaceTestnet.ts +0 -4
- package/chains/definitions/fantomSonicTestnet.ts +22 -0
- package/chains/definitions/kava.ts +0 -1
- package/chains/definitions/kavaTestnet.ts +0 -1
- package/chains/definitions/klaytnBaobab.ts +0 -1
- package/chains/definitions/lukso.ts +0 -4
- package/chains/definitions/manta.ts +0 -1
- package/chains/definitions/mantaTestnet.ts +0 -1
- package/chains/definitions/neonMainnet.ts +0 -3
- package/chains/definitions/optimism.ts +5 -0
- package/chains/definitions/optimismGoerli.ts +5 -0
- package/chains/definitions/optimismSepolia.ts +5 -0
- package/chains/definitions/pgn.ts +13 -3
- package/chains/definitions/pgnTestnet.ts +8 -3
- package/chains/definitions/rootstock.ts +0 -1
- package/chains/definitions/sapphire.ts +0 -4
- package/chains/definitions/sapphireTestnet.ts +0 -4
- package/chains/definitions/shibarium.ts +0 -3
- package/chains/definitions/shimmer.ts +0 -3
- package/chains/definitions/shimmerTestnet.ts +0 -3
- package/chains/definitions/taikoJolnir.ts +2 -2
- package/chains/definitions/tenet.ts +0 -1
- package/chains/definitions/zilliqa.ts +20 -0
- package/chains/definitions/zilliqaTestnet.ts +20 -0
- package/chains/definitions/zkSyncSepoliaTestnet.ts +28 -0
- package/chains/definitions/zkSyncTestnet.ts +1 -0
- package/chains/definitions/zora.ts +5 -0
- package/chains/definitions/zoraSepolia.ts +5 -4
- package/chains/index.ts +9 -0
- package/chains/opStack/abis.ts +367 -0
- package/chains/opStack/actions/buildDepositTransaction.ts +11 -6
- package/chains/opStack/actions/buildInitiateWithdrawal.ts +118 -0
- package/chains/opStack/actions/buildProveWithdrawal.ts +149 -0
- package/chains/opStack/actions/depositTransaction.ts +50 -44
- package/chains/opStack/actions/estimateDepositTransactionGas.ts +138 -0
- package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +118 -0
- package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +118 -0
- package/chains/opStack/actions/estimateProveWithdrawalGas.ts +139 -0
- package/chains/opStack/actions/finalizeWithdrawal.ts +130 -0
- package/chains/opStack/actions/getL2Output.ts +89 -0
- package/chains/opStack/actions/getTimeToFinalize.ts +122 -0
- package/chains/opStack/actions/getTimeToNextL2Output.ts +162 -0
- package/chains/opStack/actions/getTimeToProve.ts +79 -0
- package/chains/opStack/actions/getWithdrawalStatus.ts +152 -0
- package/chains/opStack/actions/initiateWithdrawal.ts +153 -0
- package/chains/opStack/actions/proveWithdrawal.ts +151 -0
- package/chains/opStack/actions/waitForNextL2Output.ts +111 -0
- package/chains/opStack/actions/waitToFinalize.ts +64 -0
- package/chains/opStack/actions/waitToProve.ts +99 -0
- package/chains/opStack/chains.ts +2 -0
- package/chains/opStack/decorators/publicL1.ts +514 -0
- package/chains/opStack/decorators/publicL2.ts +129 -37
- package/chains/opStack/decorators/walletL1.ts +71 -2
- package/chains/opStack/decorators/walletL2.ts +84 -0
- package/chains/opStack/errors/withdrawal.ts +15 -0
- package/chains/opStack/index.ts +112 -21
- package/chains/opStack/types/deposit.ts +28 -0
- package/chains/opStack/types/withdrawal.ts +23 -0
- package/chains/opStack/utils/extractWithdrawalMessageLogs.ts +36 -0
- package/chains/opStack/utils/getL2TransactionHash.ts +2 -2
- package/chains/opStack/utils/getWithdrawalHashStorageSlot.ts +29 -0
- package/chains/opStack/utils/getWithdrawals.ts +25 -0
- package/chains/opStack/utils/{fromOpaqueData.ts → opaqueDataToDepositData.ts} +9 -4
- package/clients/decorators/public.ts +2 -2
- package/clients/decorators/wallet.ts +2 -2
- package/errors/abi.ts +22 -1
- package/errors/version.ts +1 -1
- package/index.ts +40 -0
- package/package.json +1 -1
- package/types/account.ts +1 -1
- package/types/eip1193.ts +12 -0
- package/utils/abi/getAbiItem.ts +71 -2
- package/utils/hash/ripemd160.ts +31 -0
- package/utils/hash/sha256.ts +31 -0
- package/utils/index.ts +2 -0
- package/_cjs/chains/opStack/utils/fromOpaqueData.js.map +0 -1
- package/_esm/chains/opStack/utils/fromOpaqueData.js.map +0 -1
- package/_types/chains/opStack/utils/fromOpaqueData.d.ts +0 -15
- package/_types/chains/opStack/utils/fromOpaqueData.d.ts.map +0 -1
- package/chains/celo/package.json +0 -6
- package/chains/opStack/package.json +0 -6
- package/chains/zksync/package.json +0 -6
@@ -2,10 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.publicActionsL2 = void 0;
|
4
4
|
const buildDepositTransaction_js_1 = require("../actions/buildDepositTransaction.js");
|
5
|
+
const buildProveWithdrawal_js_1 = require("../actions/buildProveWithdrawal.js");
|
5
6
|
const estimateContractL1Fee_js_1 = require("../actions/estimateContractL1Fee.js");
|
6
7
|
const estimateContractL1Gas_js_1 = require("../actions/estimateContractL1Gas.js");
|
7
8
|
const estimateContractTotalFee_js_1 = require("../actions/estimateContractTotalFee.js");
|
8
9
|
const estimateContractTotalGas_js_1 = require("../actions/estimateContractTotalGas.js");
|
10
|
+
const estimateInitiateWithdrawalGas_js_1 = require("../actions/estimateInitiateWithdrawalGas.js");
|
9
11
|
const estimateL1Fee_js_1 = require("../actions/estimateL1Fee.js");
|
10
12
|
const estimateL1Gas_js_1 = require("../actions/estimateL1Gas.js");
|
11
13
|
const estimateTotalFee_js_1 = require("../actions/estimateTotalFee.js");
|
@@ -13,15 +15,17 @@ const estimateTotalGas_js_1 = require("../actions/estimateTotalGas.js");
|
|
13
15
|
function publicActionsL2() {
|
14
16
|
return (client) => {
|
15
17
|
return {
|
18
|
+
buildDepositTransaction: (args) => (0, buildDepositTransaction_js_1.buildDepositTransaction)(client, args),
|
19
|
+
buildProveWithdrawal: (args) => (0, buildProveWithdrawal_js_1.buildProveWithdrawal)(client, args),
|
16
20
|
estimateContractL1Fee: (args) => (0, estimateContractL1Fee_js_1.estimateContractL1Fee)(client, args),
|
17
21
|
estimateContractL1Gas: (args) => (0, estimateContractL1Gas_js_1.estimateContractL1Gas)(client, args),
|
18
22
|
estimateContractTotalFee: (args) => (0, estimateContractTotalFee_js_1.estimateContractTotalFee)(client, args),
|
19
23
|
estimateContractTotalGas: (args) => (0, estimateContractTotalGas_js_1.estimateContractTotalGas)(client, args),
|
24
|
+
estimateInitiateWithdrawalGas: (args) => (0, estimateInitiateWithdrawalGas_js_1.estimateInitiateWithdrawalGas)(client, args),
|
20
25
|
estimateL1Fee: (args) => (0, estimateL1Fee_js_1.estimateL1Fee)(client, args),
|
21
26
|
estimateL1Gas: (args) => (0, estimateL1Gas_js_1.estimateL1Gas)(client, args),
|
22
27
|
estimateTotalFee: (args) => (0, estimateTotalFee_js_1.estimateTotalFee)(client, args),
|
23
28
|
estimateTotalGas: (args) => (0, estimateTotalGas_js_1.estimateTotalGas)(client, args),
|
24
|
-
buildDepositTransaction: (args) => (0, buildDepositTransaction_js_1.buildDepositTransaction)(client, args),
|
25
29
|
};
|
26
30
|
};
|
27
31
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publicL2.js","sourceRoot":"","sources":["../../../../chains/opStack/decorators/publicL2.ts"],"names":[],"mappings":";;;AASA,sFAI8C;AAC9C,kFAI4C;AAC5C,kFAI4C;AAC5C,wFAI+C;AAC/C,wFAI+C;AAC/C,kEAIoC;AACpC,kEAIoC;AACpC,wEAIuC;AACvC,wEAIuC;
|
1
|
+
{"version":3,"file":"publ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E,IAAI,CAAC;YAC1D,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,sCAAgB,EAAC,MAAM,EAAE,IAAI,CAAC;SAC3D,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAzBD,0CAyBC"}
|
@@ -2,10 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.walletActionsL1 = void 0;
|
4
4
|
const depositTransaction_js_1 = require("../actions/depositTransaction.js");
|
5
|
+
const finalizeWithdrawal_js_1 = require("../actions/finalizeWithdrawal.js");
|
6
|
+
const proveWithdrawal_js_1 = require("../actions/proveWithdrawal.js");
|
5
7
|
function walletActionsL1() {
|
6
8
|
return (client) => {
|
7
9
|
return {
|
8
10
|
depositTransaction: (args) => (0, depositTransaction_js_1.depositTransaction)(client, args),
|
11
|
+
finalizeWithdrawal: (args) => (0, finalizeWithdrawal_js_1.finalizeWithdrawal)(client, args),
|
12
|
+
proveWithdrawal: (args) => (0, proveWithdrawal_js_1.proveWithdrawal)(client, args),
|
9
13
|
};
|
10
14
|
};
|
11
15
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"walletL1.js","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL1.ts"],"names":[],"mappings":";;;AAIA,4EAIyC;
|
1
|
+
{"version":3,"file":"walletL1.js","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL1.ts"],"names":[],"mappings":";;;AAIA,4EAIyC;AACzC,4EAIyC;AACzC,sEAIsC;AA0HtC,SAAgB,eAAe;IAC7B,OAAO,CAKL,MAA4C,EACT,EAAE;QACrC,OAAO;YACL,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0CAAkB,EAAC,MAAM,EAAE,IAAI,CAAC;YAC9D,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0CAAkB,EAAC,MAAM,EAAE,IAAI,CAAC;YAC9D,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;SACzD,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAdD,0CAcC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.walletActionsL2 = void 0;
|
4
|
+
const initiateWithdrawal_js_1 = require("../actions/initiateWithdrawal.js");
|
5
|
+
function walletActionsL2() {
|
6
|
+
return (client) => {
|
7
|
+
return {
|
8
|
+
initiateWithdrawal: (args) => (0, initiateWithdrawal_js_1.initiateWithdrawal)(client, args),
|
9
|
+
};
|
10
|
+
};
|
11
|
+
}
|
12
|
+
exports.walletActionsL2 = walletActionsL2;
|
13
|
+
//# sourceMappingURL=walletL2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"walletL2.js","sourceRoot":"","sources":["../../../../chains/opStack/decorators/walletL2.ts"],"names":[],"mappings":";;;AAIA,4EAIyC;AA+DzC,SAAgB,eAAe;IAC7B,OAAO,CAKL,MAA4C,EACT,EAAE;QACrC,OAAO;YACL,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,0CAAkB,EAAC,MAAM,EAAE,IAAI,CAAC;SAC/D,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAZD,0CAYC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ReceiptContainsNoWithdrawalsError = void 0;
|
4
|
+
const base_js_1 = require("../../../errors/base.js");
|
5
|
+
class ReceiptContainsNoWithdrawalsError extends base_js_1.BaseError {
|
6
|
+
constructor({ hash }) {
|
7
|
+
super(`The provided transaction receipt with hash "${hash}" contains no withdrawals.`);
|
8
|
+
Object.defineProperty(this, "name", {
|
9
|
+
enumerable: true,
|
10
|
+
configurable: true,
|
11
|
+
writable: true,
|
12
|
+
value: 'ReceiptContainsNoWithdrawalsError'
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
exports.ReceiptContainsNoWithdrawalsError = ReceiptContainsNoWithdrawalsError;
|
17
|
+
//# sourceMappingURL=withdrawal.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"withdrawal.js","sourceRoot":"","sources":["../../../../chains/opStack/errors/withdrawal.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAOnD,MAAa,iCAAkC,SAAQ,mBAAS;IAE9D,YAAY,EAAE,IAAI,EAAiB;QACjC,KAAK,CACH,+CAA+C,IAAI,4BAA4B,CAChF,CAAA;QAJM;;;;mBAAO,mCAAmC;WAAA;IAKnD,CAAC;CACF;AAPD,8EAOC"}
|
@@ -1,6 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getSourceHash = exports.getL2TransactionHashes = exports.getL2TransactionHash = exports.
|
3
|
+
exports.getWithdrawals = exports.getWithdrawalHashStorageSlot = exports.getSourceHash = exports.getL2TransactionHashes = exports.getL2TransactionHash = exports.opaqueDataToDepositData = exports.extractTransactionDepositedLogs = exports.extractWithdrawalMessageLogs = exports.serializers = exports.serializeTransaction = exports.parseTransaction = exports.walletActionsL2 = exports.walletActionsL1 = exports.publicActionsL2 = exports.publicActionsL1 = exports.chainConfig = exports.waitToProve = exports.waitToFinalize = exports.waitForNextL2Output = exports.proveWithdrawal = exports.initiateWithdrawal = exports.getWithdrawalStatus = exports.getTimeToProve = exports.getTimeToNextL2Output = exports.getTimeToFinalize = exports.getL2Output = exports.finalizeWithdrawal = exports.estimateTotalGas = exports.estimateTotalFee = exports.estimateL1Gas = exports.estimateL1Fee = exports.estimateContractTotalGas = exports.estimateContractTotalFee = exports.estimateContractL1Gas = exports.estimateContractL1Fee = exports.depositTransaction = exports.buildProveWithdrawal = exports.buildInitiateWithdrawal = exports.buildDepositTransaction = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
var buildDepositTransaction_js_1 = require("./actions/buildDepositTransaction.js");
|
6
|
+
Object.defineProperty(exports, "buildDepositTransaction", { enumerable: true, get: function () { return buildDepositTransaction_js_1.buildDepositTransaction; } });
|
7
|
+
var buildInitiateWithdrawal_js_1 = require("./actions/buildInitiateWithdrawal.js");
|
8
|
+
Object.defineProperty(exports, "buildInitiateWithdrawal", { enumerable: true, get: function () { return buildInitiateWithdrawal_js_1.buildInitiateWithdrawal; } });
|
9
|
+
var buildProveWithdrawal_js_1 = require("./actions/buildProveWithdrawal.js");
|
10
|
+
Object.defineProperty(exports, "buildProveWithdrawal", { enumerable: true, get: function () { return buildProveWithdrawal_js_1.buildProveWithdrawal; } });
|
4
11
|
var depositTransaction_js_1 = require("./actions/depositTransaction.js");
|
5
12
|
Object.defineProperty(exports, "depositTransaction", { enumerable: true, get: function () { return depositTransaction_js_1.depositTransaction; } });
|
6
13
|
var estimateContractL1Fee_js_1 = require("./actions/estimateContractL1Fee.js");
|
@@ -19,37 +26,58 @@ var estimateTotalFee_js_1 = require("./actions/estimateTotalFee.js");
|
|
19
26
|
Object.defineProperty(exports, "estimateTotalFee", { enumerable: true, get: function () { return estimateTotalFee_js_1.estimateTotalFee; } });
|
20
27
|
var estimateTotalGas_js_1 = require("./actions/estimateTotalGas.js");
|
21
28
|
Object.defineProperty(exports, "estimateTotalGas", { enumerable: true, get: function () { return estimateTotalGas_js_1.estimateTotalGas; } });
|
22
|
-
var
|
23
|
-
Object.defineProperty(exports, "
|
29
|
+
var finalizeWithdrawal_js_1 = require("./actions/finalizeWithdrawal.js");
|
30
|
+
Object.defineProperty(exports, "finalizeWithdrawal", { enumerable: true, get: function () { return finalizeWithdrawal_js_1.finalizeWithdrawal; } });
|
31
|
+
var getL2Output_js_1 = require("./actions/getL2Output.js");
|
32
|
+
Object.defineProperty(exports, "getL2Output", { enumerable: true, get: function () { return getL2Output_js_1.getL2Output; } });
|
33
|
+
var getTimeToFinalize_js_1 = require("./actions/getTimeToFinalize.js");
|
34
|
+
Object.defineProperty(exports, "getTimeToFinalize", { enumerable: true, get: function () { return getTimeToFinalize_js_1.getTimeToFinalize; } });
|
35
|
+
var getTimeToNextL2Output_js_1 = require("./actions/getTimeToNextL2Output.js");
|
36
|
+
Object.defineProperty(exports, "getTimeToNextL2Output", { enumerable: true, get: function () { return getTimeToNextL2Output_js_1.getTimeToNextL2Output; } });
|
37
|
+
var getTimeToProve_js_1 = require("./actions/getTimeToProve.js");
|
38
|
+
Object.defineProperty(exports, "getTimeToProve", { enumerable: true, get: function () { return getTimeToProve_js_1.getTimeToProve; } });
|
39
|
+
var getWithdrawalStatus_js_1 = require("./actions/getWithdrawalStatus.js");
|
40
|
+
Object.defineProperty(exports, "getWithdrawalStatus", { enumerable: true, get: function () { return getWithdrawalStatus_js_1.getWithdrawalStatus; } });
|
41
|
+
var initiateWithdrawal_js_1 = require("./actions/initiateWithdrawal.js");
|
42
|
+
Object.defineProperty(exports, "initiateWithdrawal", { enumerable: true, get: function () { return initiateWithdrawal_js_1.initiateWithdrawal; } });
|
43
|
+
var proveWithdrawal_js_1 = require("./actions/proveWithdrawal.js");
|
44
|
+
Object.defineProperty(exports, "proveWithdrawal", { enumerable: true, get: function () { return proveWithdrawal_js_1.proveWithdrawal; } });
|
45
|
+
var waitForNextL2Output_js_1 = require("./actions/waitForNextL2Output.js");
|
46
|
+
Object.defineProperty(exports, "waitForNextL2Output", { enumerable: true, get: function () { return waitForNextL2Output_js_1.waitForNextL2Output; } });
|
47
|
+
var waitToFinalize_js_1 = require("./actions/waitToFinalize.js");
|
48
|
+
Object.defineProperty(exports, "waitToFinalize", { enumerable: true, get: function () { return waitToFinalize_js_1.waitToFinalize; } });
|
49
|
+
var waitToProve_js_1 = require("./actions/waitToProve.js");
|
50
|
+
Object.defineProperty(exports, "waitToProve", { enumerable: true, get: function () { return waitToProve_js_1.waitToProve; } });
|
24
51
|
var chainConfig_js_1 = require("./chainConfig.js");
|
25
52
|
Object.defineProperty(exports, "chainConfig", { enumerable: true, get: function () { return chainConfig_js_1.chainConfig; } });
|
26
|
-
|
27
|
-
|
28
|
-
Object.defineProperty(exports, "
|
29
|
-
Object.defineProperty(exports, "baseSepolia", { enumerable: true, get: function () { return chains_js_1.baseSepolia; } });
|
30
|
-
Object.defineProperty(exports, "optimism", { enumerable: true, get: function () { return chains_js_1.optimism; } });
|
31
|
-
Object.defineProperty(exports, "optimismGoerli", { enumerable: true, get: function () { return chains_js_1.optimismGoerli; } });
|
32
|
-
Object.defineProperty(exports, "optimismSepolia", { enumerable: true, get: function () { return chains_js_1.optimismSepolia; } });
|
33
|
-
Object.defineProperty(exports, "zora", { enumerable: true, get: function () { return chains_js_1.zora; } });
|
34
|
-
Object.defineProperty(exports, "zoraSepolia", { enumerable: true, get: function () { return chains_js_1.zoraSepolia; } });
|
35
|
-
Object.defineProperty(exports, "zoraTestnet", { enumerable: true, get: function () { return chains_js_1.zoraTestnet; } });
|
53
|
+
tslib_1.__exportStar(require("./chains.js"), exports);
|
54
|
+
var publicL1_js_1 = require("./decorators/publicL1.js");
|
55
|
+
Object.defineProperty(exports, "publicActionsL1", { enumerable: true, get: function () { return publicL1_js_1.publicActionsL1; } });
|
36
56
|
var publicL2_js_1 = require("./decorators/publicL2.js");
|
37
57
|
Object.defineProperty(exports, "publicActionsL2", { enumerable: true, get: function () { return publicL2_js_1.publicActionsL2; } });
|
38
58
|
var walletL1_js_1 = require("./decorators/walletL1.js");
|
39
59
|
Object.defineProperty(exports, "walletActionsL1", { enumerable: true, get: function () { return walletL1_js_1.walletActionsL1; } });
|
60
|
+
var walletL2_js_1 = require("./decorators/walletL2.js");
|
61
|
+
Object.defineProperty(exports, "walletActionsL2", { enumerable: true, get: function () { return walletL2_js_1.walletActionsL2; } });
|
40
62
|
var parsers_js_1 = require("./parsers.js");
|
41
63
|
Object.defineProperty(exports, "parseTransaction", { enumerable: true, get: function () { return parsers_js_1.parseTransaction; } });
|
42
64
|
var serializers_js_1 = require("./serializers.js");
|
43
65
|
Object.defineProperty(exports, "serializeTransaction", { enumerable: true, get: function () { return serializers_js_1.serializeTransaction; } });
|
44
66
|
Object.defineProperty(exports, "serializers", { enumerable: true, get: function () { return serializers_js_1.serializers; } });
|
67
|
+
var extractWithdrawalMessageLogs_js_1 = require("./utils/extractWithdrawalMessageLogs.js");
|
68
|
+
Object.defineProperty(exports, "extractWithdrawalMessageLogs", { enumerable: true, get: function () { return extractWithdrawalMessageLogs_js_1.extractWithdrawalMessageLogs; } });
|
45
69
|
var extractTransactionDepositedLogs_js_1 = require("./utils/extractTransactionDepositedLogs.js");
|
46
70
|
Object.defineProperty(exports, "extractTransactionDepositedLogs", { enumerable: true, get: function () { return extractTransactionDepositedLogs_js_1.extractTransactionDepositedLogs; } });
|
47
|
-
var
|
48
|
-
Object.defineProperty(exports, "
|
71
|
+
var opaqueDataToDepositData_js_1 = require("./utils/opaqueDataToDepositData.js");
|
72
|
+
Object.defineProperty(exports, "opaqueDataToDepositData", { enumerable: true, get: function () { return opaqueDataToDepositData_js_1.opaqueDataToDepositData; } });
|
49
73
|
var getL2TransactionHash_js_1 = require("./utils/getL2TransactionHash.js");
|
50
74
|
Object.defineProperty(exports, "getL2TransactionHash", { enumerable: true, get: function () { return getL2TransactionHash_js_1.getL2TransactionHash; } });
|
51
75
|
var getL2TransactionHashes_js_1 = require("./utils/getL2TransactionHashes.js");
|
52
76
|
Object.defineProperty(exports, "getL2TransactionHashes", { enumerable: true, get: function () { return getL2TransactionHashes_js_1.getL2TransactionHashes; } });
|
53
77
|
var getSourceHash_js_1 = require("./utils/getSourceHash.js");
|
54
78
|
Object.defineProperty(exports, "getSourceHash", { enumerable: true, get: function () { return getSourceHash_js_1.getSourceHash; } });
|
79
|
+
var getWithdrawalHashStorageSlot_js_1 = require("./utils/getWithdrawalHashStorageSlot.js");
|
80
|
+
Object.defineProperty(exports, "getWithdrawalHashStorageSlot", { enumerable: true, get: function () { return getWithdrawalHashStorageSlot_js_1.getWithdrawalHashStorageSlot; } });
|
81
|
+
var getWithdrawals_js_1 = require("./utils/getWithdrawals.js");
|
82
|
+
Object.defineProperty(exports, "getWithdrawals", { enumerable: true, get: function () { return getWithdrawals_js_1.getWithdrawals; } });
|
55
83
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../chains/opStack/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../chains/opStack/index.ts"],"names":[],"mappings":";;;;AAAA,mFAK6C;AAJ3C,qIAAA,uBAAuB,OAAA;AAKzB,mFAK6C;AAJ3C,qIAAA,uBAAuB,OAAA;AAKzB,6EAK0C;AAJxC,+HAAA,oBAAoB,OAAA;AAKtB,yEAKwC;AAJtC,2HAAA,kBAAkB,OAAA;AAKpB,+EAK2C;AAJzC,iIAAA,qBAAqB,OAAA;AAKvB,+EAK2C;AAJzC,iIAAA,qBAAqB,OAAA;AAKvB,qFAK8C;AAJ5C,uIAAA,wBAAwB,OAAA;AAK1B,qFAK8C;AAJ5C,uIAAA,wBAAwB,OAAA;AAK1B,+DAKmC;AAJjC,iHAAA,aAAa,OAAA;AAKf,+DAKmC;AAJjC,iHAAA,aAAa,OAAA;AAKf,qEAKsC;AAJpC,uHAAA,gBAAgB,OAAA;AAKlB,qEAKsC;AAJpC,uHAAA,gBAAgB,OAAA;AAKlB,yEAKwC;AAJtC,2HAAA,kBAAkB,OAAA;AAKpB,2DAKiC;AAJ/B,6GAAA,WAAW,OAAA;AAKb,uEAKuC;AAJrC,yHAAA,iBAAiB,OAAA;AAKnB,+EAK2C;AAJzC,iIAAA,qBAAqB,OAAA;AAKvB,iEAKoC;AAJlC,mHAAA,cAAc,OAAA;AAKhB,2EAKyC;AAJvC,6HAAA,mBAAmB,OAAA;AAKrB,yEAKwC;AAJtC,2HAAA,kBAAkB,OAAA;AAKpB,mEAKqC;AAJnC,qHAAA,eAAe,OAAA;AAKjB,2EAKyC;AAJvC,6HAAA,mBAAmB,OAAA;AAKrB,iEAKoC;AAJlC,mHAAA,cAAc,OAAA;AAKhB,2DAKiC;AAJ/B,6GAAA,WAAW,OAAA;AAMb,mDAA8C;AAArC,6GAAA,WAAW,OAAA;AAEpB,sDAA2B;AAE3B,wDAAgF;AAAvE,8GAAA,eAAe,OAAA;AACxB,wDAAgF;AAAvE,8GAAA,eAAe,OAAA;AACxB,wDAAgF;AAAvE,8GAAA,eAAe,OAAA;AACxB,wDAAgF;AAAvE,8GAAA,eAAe,OAAA;AAExB,2CAIqB;AAHnB,8GAAA,gBAAgB,OAAA;AAKlB,mDAKyB;AAJvB,sHAAA,oBAAoB,OAAA;AACpB,6GAAA,WAAW,OAAA;AAsBb,2FAKgD;AAJ9C,+IAAA,4BAA4B,OAAA;AAM9B,iGAKmD;AAJjD,qJAAA,+BAA+B,OAAA;AAMjC,iFAK2C;AAJzC,qIAAA,uBAAuB,OAAA;AAMzB,2EAKwC;AAJtC,+HAAA,oBAAoB,OAAA;AAMtB,+EAK0C;AAJxC,mIAAA,sBAAsB,OAAA;AAMxB,6DAKiC;AAJ/B,iHAAA,aAAa,OAAA;AAMf,2FAKgD;AAJ9C,+IAAA,4BAA4B,OAAA;AAM9B,+DAKkC;AAJhC,mHAAA,cAAc,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deposit.js","sourceRoot":"","sources":["../../../../chains/opStack/types/deposit.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"withdrawal.js","sourceRoot":"","sources":["../../../../chains/opStack/types/withdrawal.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.extractWithdrawalMessageLogs = void 0;
|
4
|
+
const parseEventLogs_js_1 = require("../../../utils/abi/parseEventLogs.js");
|
5
|
+
const abis_js_1 = require("../abis.js");
|
6
|
+
function extractWithdrawalMessageLogs({ logs, }) {
|
7
|
+
return (0, parseEventLogs_js_1.parseEventLogs)({
|
8
|
+
abi: abis_js_1.l2ToL1MessagePasserAbi,
|
9
|
+
eventName: 'MessagePassed',
|
10
|
+
logs,
|
11
|
+
});
|
12
|
+
}
|
13
|
+
exports.extractWithdrawalMessageLogs = extractWithdrawalMessageLogs;
|
14
|
+
//# sourceMappingURL=extractWithdrawalMessageLogs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extractWithdrawalMessageLogs.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/extractWithdrawalMessageLogs.ts"],"names":[],"mappings":";;;AAEA,4EAG6C;AAC7C,wCAAmD;AAqBnD,SAAgB,4BAA4B,CAAC,EAC3C,IAAI,GACmC;IACvC,OAAO,IAAA,kCAAc,EAAC;QACpB,GAAG,EAAE,gCAAsB;QAC3B,SAAS,EAAE,eAAe;QAC1B,IAAI;KACL,CAAC,CAAA;AACJ,CAAC;AARD,oEAQC"}
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getL2TransactionHash = void 0;
|
4
4
|
const keccak256_js_1 = require("../../../utils/hash/keccak256.js");
|
5
5
|
const serializers_js_1 = require("../serializers.js");
|
6
|
-
const fromOpaqueData_js_1 = require("./fromOpaqueData.js");
|
7
6
|
const getSourceHash_js_1 = require("./getSourceHash.js");
|
7
|
+
const opaqueDataToDepositData_js_1 = require("./opaqueDataToDepositData.js");
|
8
8
|
function getL2TransactionHash({ log }) {
|
9
9
|
const sourceHash = (0, getSourceHash_js_1.getSourceHash)({
|
10
10
|
domain: 'userDeposit',
|
11
11
|
l1BlockHash: log.blockHash,
|
12
12
|
l1LogIndex: log.logIndex,
|
13
13
|
});
|
14
|
-
const { data, gas, isCreation, mint, value } = (0,
|
14
|
+
const { data, gas, isCreation, mint, value } = (0, opaqueDataToDepositData_js_1.opaqueDataToDepositData)(log.args.opaqueData);
|
15
15
|
return (0, keccak256_js_1.keccak256)((0, serializers_js_1.serializeTransaction)({
|
16
16
|
from: log.args.from,
|
17
17
|
to: isCreation ? undefined : log.args.to,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL2TransactionHash.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/getL2TransactionHash.ts"],"names":[],"mappings":";;;AAKA,mEAA4D;AAE5D,sDAAwD;AACxD,
|
1
|
+
{"version":3,"file":"getL2TransactionHash.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/getL2TransactionHash.ts"],"names":[],"mappings":";;;AAKA,mEAA4D;AAE5D,sDAAwD;AACxD,yDAAkD;AAClD,6EAAsE;AAmBtE,SAAgB,oBAAoB,CAAC,EAAE,GAAG,EAAkC;IAC1E,MAAM,UAAU,GAAG,IAAA,gCAAa,EAAC;QAC/B,MAAM,EAAE,aAAa;QACrB,WAAW,EAAE,GAAG,CAAC,SAAS;QAC1B,UAAU,EAAE,GAAG,CAAC,QAAQ;KACzB,CAAC,CAAA;IACF,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAA,oDAAuB,EACpE,GAAG,CAAC,IAAI,CAAC,UAAU,CACpB,CAAA;IAED,OAAO,IAAA,wBAAS,EACd,IAAA,qCAAoB,EAAC;QACnB,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI;QACnB,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACxC,UAAU;QACV,IAAI;QACJ,GAAG;QACH,UAAU,EAAE,KAAK;QACjB,IAAI;QACJ,IAAI,EAAE,SAAS;QACf,KAAK;KACN,CAAC,CACH,CAAA;AACH,CAAC;AAvBD,oDAuBC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getWithdrawalHashStorageSlot = void 0;
|
4
|
+
const encodeAbiParameters_js_1 = require("../../../utils/abi/encodeAbiParameters.js");
|
5
|
+
const keccak256_js_1 = require("../../../utils/hash/keccak256.js");
|
6
|
+
function getWithdrawalHashStorageSlot({ withdrawalHash, }) {
|
7
|
+
const data = (0, encodeAbiParameters_js_1.encodeAbiParameters)([{ type: 'bytes32' }, { type: 'uint256' }], [withdrawalHash, 0n]);
|
8
|
+
return (0, keccak256_js_1.keccak256)(data);
|
9
|
+
}
|
10
|
+
exports.getWithdrawalHashStorageSlot = getWithdrawalHashStorageSlot;
|
11
|
+
//# sourceMappingURL=getWithdrawalHashStorageSlot.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getWithdrawalHashStorageSlot.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/getWithdrawalHashStorageSlot.ts"],"names":[],"mappings":";;;AAEA,sFAGkD;AAClD,mEAGyC;AAWzC,SAAgB,4BAA4B,CAAC,EAC3C,cAAc,GACyB;IACvC,MAAM,IAAI,GAAG,IAAA,4CAAmB,EAC9B,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAC1C,CAAC,cAAc,EAAE,EAAE,CAAC,CACrB,CAAA;IACD,OAAO,IAAA,wBAAS,EAAC,IAAI,CAAC,CAAA;AACxB,CAAC;AARD,oEAQC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getWithdrawals = void 0;
|
4
|
+
const extractWithdrawalMessageLogs_js_1 = require("./extractWithdrawalMessageLogs.js");
|
5
|
+
function getWithdrawals({ logs, }) {
|
6
|
+
const extractedLogs = (0, extractWithdrawalMessageLogs_js_1.extractWithdrawalMessageLogs)({ logs });
|
7
|
+
return extractedLogs.map((log) => log.args);
|
8
|
+
}
|
9
|
+
exports.getWithdrawals = getWithdrawals;
|
10
|
+
//# sourceMappingURL=getWithdrawals.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getWithdrawals.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/getWithdrawals.ts"],"names":[],"mappings":";;;AAGA,uFAG0C;AAa1C,SAAgB,cAAc,CAAC,EAC7B,IAAI,GACqB;IACzB,MAAM,aAAa,GAAG,IAAA,8DAA4B,EAAC,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5D,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AAC7C,CAAC;AALD,wCAKC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.opaqueDataToDepositData = void 0;
|
4
4
|
const size_js_1 = require("../../../utils/data/size.js");
|
5
5
|
const slice_js_1 = require("../../../utils/data/slice.js");
|
6
6
|
const fromHex_js_1 = require("../../../utils/encoding/fromHex.js");
|
7
|
-
function
|
7
|
+
function opaqueDataToDepositData(opaqueData) {
|
8
8
|
let offset = 0;
|
9
9
|
const mint = (0, slice_js_1.slice)(opaqueData, offset, offset + 32);
|
10
10
|
offset += 32;
|
@@ -25,5 +25,5 @@ function fromOpaqueData(opaqueData) {
|
|
25
25
|
data,
|
26
26
|
};
|
27
27
|
}
|
28
|
-
exports.
|
29
|
-
//# sourceMappingURL=
|
28
|
+
exports.opaqueDataToDepositData = opaqueDataToDepositData;
|
29
|
+
//# sourceMappingURL=opaqueDataToDepositData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"opaqueDataToDepositData.js","sourceRoot":"","sources":["../../../../chains/opStack/utils/opaqueDataToDepositData.ts"],"names":[],"mappings":";;;AAEA,yDAAsE;AACtE,2DAAyE;AACzE,mEAAgE;AAiBhE,SAAgB,uBAAuB,CACrC,UAAe;IAEf,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,MAAM,IAAI,GAAG,IAAA,gBAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,CAAA;IACnD,MAAM,IAAI,EAAE,CAAA;IACZ,MAAM,KAAK,GAAG,IAAA,gBAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,CAAA;IACpD,MAAM,IAAI,EAAE,CAAA;IACZ,MAAM,GAAG,GAAG,IAAA,gBAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAA;IACjD,MAAM,IAAI,CAAC,CAAA;IACX,MAAM,UAAU,GAAG,MAAM,CAAC,IAAA,gBAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAA;IACvE,MAAM,IAAI,CAAC,CAAA;IACX,MAAM,IAAI,GACR,MAAM,GAAG,IAAA,cAAI,EAAC,UAAU,CAAC,GAAG,CAAC;QAC3B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,IAAA,gBAAK,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAClD,OAAO;QACL,IAAI,EAAE,IAAA,wBAAW,EAAC,IAAI,CAAC;QACvB,KAAK,EAAE,IAAA,wBAAW,EAAC,KAAK,CAAC;QACzB,GAAG,EAAE,IAAA,wBAAW,EAAC,GAAG,CAAC;QACrB,UAAU;QACV,IAAI;KACL,CAAA;AACH,CAAC;AAvBD,0DAuBC"}
|
package/_cjs/errors/abi.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UnsupportedPackedAbiType = exports.InvalidDefinitionTypeError = exports.InvalidArrayError = exports.InvalidAbiDecodingTypeError = exports.InvalidAbiEncodingTypeError = exports.DecodeLogTopicsMismatch = exports.DecodeLogDataMismatch = exports.BytesSizeMismatchError = exports.AbiFunctionSignatureNotFoundError = exports.AbiFunctionOutputsNotFoundError = exports.AbiFunctionNotFoundError = exports.AbiEventNotFoundError = exports.AbiEventSignatureNotFoundError = exports.AbiEventSignatureEmptyTopicsError = exports.AbiErrorSignatureNotFoundError = exports.AbiErrorNotFoundError = exports.AbiErrorInputsNotFoundError = exports.AbiEncodingLengthMismatchError = exports.AbiEncodingBytesSizeMismatchError = exports.AbiEncodingArrayLengthMismatchError = exports.AbiDecodingZeroDataError = exports.AbiDecodingDataSizeTooSmallError = exports.AbiDecodingDataSizeInvalidError = exports.AbiConstructorParamsNotFoundError = exports.AbiConstructorNotFoundError = void 0;
|
3
|
+
exports.UnsupportedPackedAbiType = exports.InvalidDefinitionTypeError = exports.InvalidArrayError = exports.InvalidAbiDecodingTypeError = exports.InvalidAbiEncodingTypeError = exports.DecodeLogTopicsMismatch = exports.DecodeLogDataMismatch = exports.BytesSizeMismatchError = exports.AbiItemAmbiguityError = exports.AbiFunctionSignatureNotFoundError = exports.AbiFunctionOutputsNotFoundError = exports.AbiFunctionNotFoundError = exports.AbiEventNotFoundError = exports.AbiEventSignatureNotFoundError = exports.AbiEventSignatureEmptyTopicsError = exports.AbiErrorSignatureNotFoundError = exports.AbiErrorNotFoundError = exports.AbiErrorInputsNotFoundError = exports.AbiEncodingLengthMismatchError = exports.AbiEncodingBytesSizeMismatchError = exports.AbiEncodingArrayLengthMismatchError = exports.AbiDecodingZeroDataError = exports.AbiDecodingDataSizeTooSmallError = exports.AbiDecodingDataSizeInvalidError = exports.AbiConstructorParamsNotFoundError = exports.AbiConstructorNotFoundError = void 0;
|
4
4
|
const formatAbiItem_js_1 = require("../utils/abi/formatAbiItem.js");
|
5
5
|
const size_js_1 = require("../utils/data/size.js");
|
6
6
|
const base_js_1 = require("./base.js");
|
@@ -309,6 +309,26 @@ class AbiFunctionSignatureNotFoundError extends base_js_1.BaseError {
|
|
309
309
|
}
|
310
310
|
}
|
311
311
|
exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError;
|
312
|
+
class AbiItemAmbiguityError extends base_js_1.BaseError {
|
313
|
+
constructor(x, y) {
|
314
|
+
super('Found ambiguous types in overloaded ABI items.', {
|
315
|
+
metaMessages: [
|
316
|
+
`\`${x.type}\` in \`${(0, formatAbiItem_js_1.formatAbiItem)(x.abiItem)}\`, and`,
|
317
|
+
`\`${y.type}\` in \`${(0, formatAbiItem_js_1.formatAbiItem)(y.abiItem)}\``,
|
318
|
+
'',
|
319
|
+
'These types encode differently and cannot be distinguished at runtime.',
|
320
|
+
'Remove one of the ambiguous items in the ABI.',
|
321
|
+
],
|
322
|
+
});
|
323
|
+
Object.defineProperty(this, "name", {
|
324
|
+
enumerable: true,
|
325
|
+
configurable: true,
|
326
|
+
writable: true,
|
327
|
+
value: 'AbiItemAmbiguityError'
|
328
|
+
});
|
329
|
+
}
|
330
|
+
}
|
331
|
+
exports.AbiItemAmbiguityError = AbiItemAmbiguityError;
|
312
332
|
class BytesSizeMismatchError extends base_js_1.BaseError {
|
313
333
|
constructor({ expectedSize, givenSize, }) {
|
314
334
|
super(`Expected bytes${expectedSize}, got bytes${givenSize}.`);
|
package/_cjs/errors/abi.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../errors/abi.ts"],"names":[],"mappings":";;;AAGA,oEAA8E;AAC9E,mDAA4C;AAE5C,uCAAqC;AAKrC,MAAa,2BAA4B,SAAQ,mBAAS;IAExD,YAAY,EAAE,QAAQ,EAAwB;QAC5C,KAAK,CACH;YACE,yCAAyC;YACzC,gFAAgF;SACjF,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,QAAQ;SACT,CACF,CAAA;QAVM;;;;mBAAO,6BAA6B;WAAA;IAW7C,CAAC;CACF;AAbD,kEAaC;AAOD,MAAa,iCAAkC,SAAQ,mBAAS;IAE9D,YAAY,EAAE,QAAQ,EAAwB;QAC5C,KAAK,CACH;YACE,kHAAkH;YAClH,qGAAqG;S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CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAFrD;;;;mBAAO,mBAAmB;WAAA;IAGnC,CAAC;CACF;AALD,8CAKC;AAKD,MAAa,0BAA2B,SAAQ,mBAAS;IAEvD,YAAY,IAAY;QACtB,KAAK,CACH;YACE,IAAI,IAAI,mCAAmC;YAC3C,2CAA2C;SAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAA;QAPM;;;;mBAAO,4BAA4B;WAAA;IAQ5C,CAAC;CACF;AAVD,gEAUC;AAKD,MAAa,wBAAyB,SAAQ,mBAAS;IAErD,YAAY,IAAa;QACvB,KAAK,CAAC,SAAS,IAAI,yCAAyC,CAAC,CAAA;QAFtD;;;;mBAAO,0BAA0B;WAAA;IAG1C,CAAC;CACF;AALD,4DAKC"}
|
package/_cjs/errors/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,YAAY,CAAA"}
|
package/_cjs/index.js
CHANGED
@@ -6,8 +6,8 @@ exports.AbiEventNotFoundError = exports.AbiErrorSignatureNotFoundError = exports
|
|
6
6
|
exports.InvalidBytesBooleanError = exports.InvalidChainIdError = exports.ClientChainNotConfiguredError = exports.ChainNotFoundError = exports.ChainMismatchError = exports.ChainDoesNotSupportContract = exports.UserRejectedRequestError = exports.UnsupportedProviderMethodError = exports.UnknownRpcError = exports.UnauthorizedProviderError = exports.TransactionRejectedRpcError = exports.SwitchChainError = exports.RpcError = exports.ResourceUnavailableRpcError = exports.ResourceNotFoundRpcError = exports.ProviderRpcError = exports.ProviderDisconnectedError = exports.ParseRpcError = exports.MethodNotSupportedRpcError = exports.MethodNotFoundRpcError = exports.LimitExceededRpcError = exports.JsonRpcVersionUnsupportedError = exports.InvalidRequestRpcError = exports.InvalidParamsRpcError = exports.InvalidInputRpcError = exports.InternalRpcError = exports.ChainDisconnectedError = exports.MaxFeePerGasTooLowError = exports.Eip1559FeesNotSupportedError = exports.BaseFeeScalarError = exports.RawContractError = exports.ContractFunctionZeroDataError = exports.ContractFunctionRevertedError = exports.ContractFunctionExecutionError = exports.CallExecutionError = exports.BlockNotFoundError = exports.BaseError = exports.UnsupportedPackedAbiType = exports.InvalidDefinitionTypeError = exports.InvalidArrayError = exports.InvalidAbiEncodingTypeError = exports.InvalidAbiDecodingTypeError = exports.DecodeLogTopicsMismatch = exports.DecodeLogDataMismatch = exports.BytesSizeMismatchError = exports.AbiFunctionSignatureNotFoundError = exports.AbiFunctionOutputsNotFoundError = exports.AbiFunctionNotFoundError = exports.AbiEventSignatureNotFoundError = exports.AbiEventSignatureEmptyTopicsError = void 0;
|
7
7
|
exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = exports.decodeErrorResult = exports.decodeDeployData = exports.decodeAbiParameters = exports.formatLog = exports.formatBlock = exports.defineBlock = exports.namehash = exports.labelhash = exports.UrlRequiredError = exports.SliceOffsetOutOfBoundsError = exports.SizeExceedsPaddingSizeError = exports.WaitForTransactionReceiptTimeoutError = exports.TransactionReceiptNotFoundError = exports.TransactionNotFoundError = exports.TransactionExecutionError = exports.InvalidStorageKeySizeError = exports.InvalidSerializedTransactionTypeError = exports.InvalidSerializedTransactionError = exports.InvalidSerializableTransactionError = exports.InvalidLegacyVError = exports.FeeConflictError = exports.InvalidAddressError = exports.WebSocketRequestError = exports.TimeoutError = exports.RpcRequestError = exports.HttpRequestError = exports.FilterTypeNotSupportedError = exports.UnknownNodeError = exports.TransactionTypeNotSupportedError = exports.TipAboveFeeCapError = exports.NonceTooLowError = exports.NonceTooHighError = exports.NonceMaxValueError = exports.IntrinsicGasTooLowError = exports.IntrinsicGasTooHighError = exports.InsufficientFundsError = exports.FeeCapTooLowError = exports.FeeCapTooHighError = exports.ExecutionRevertedError = exports.EstimateGasExecutionError = exports.EnsAvatarUnsupportedNamespaceError = exports.EnsAvatarInvalidNftUriError = exports.EnsAvatarUriResolutionError = exports.SizeOverflowError = exports.InvalidHexValueError = exports.InvalidHexBooleanError = exports.IntegerOutOfRangeError = void 0;
|
8
8
|
exports.stringToHex = exports.numberToHex = exports.bytesToHex = exports.boolToHex = exports.toBytes = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.boolToBytes = exports.assertTransactionLegacy = exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.verifyTypedData = exports.verifyMessage = exports.toRlp = exports.hexToRlp = exports.bytesToRlp = exports.signatureToHex = exports.compactSignatureToHex = exports.signatureToCompactSignature = exports.recoverTypedDataAddress = exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.hexToSignature = exports.hexToCompactSignature = exports.compactSignatureToSignature = exports.hashTypedData = exports.hashDomain = exports.getTransactionType = exports.getSerializedTransactionType = exports.getCreateAddress = exports.getCreate2Address = exports.getContractAddress = exports.getAbiItem = exports.rpcTransactionType = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.formatTransactionReceipt = exports.defineTransactionReceipt = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.encodeFunctionResult = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = void 0;
|
9
|
-
exports.
|
10
|
-
exports.getTypesForEIP712Domain = exports.domainSeparator = exports.validateTypedData = exports.trim = exports.stringify = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = void 0;
|
9
|
+
exports.parseGwei = exports.parseEther = exports.padHex = exports.padBytes = exports.pad = exports.ripemd160 = exports.sha256 = exports.keccak256 = exports.isHex = exports.isHash = exports.isBytes = exports.isAddressEqual = exports.isAddress = exports.hashMessage = exports.getFunctionSignature = exports.getFunctionSelector = exports.getEventSignature = exports.getEventSelector = exports.getContractError = exports.getAddress = exports.checksumAddress = exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBool = exports.hexToBigInt = exports.fromHex = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.withTimeout = exports.withRetry = exports.encodePacked = exports.getChainContractAddress = exports.extractChain = exports.defineChain = exports.assertCurrentChain = exports.concatHex = exports.concatBytes = exports.concat = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigInt = exports.toHex = void 0;
|
10
|
+
exports.getTypesForEIP712Domain = exports.domainSeparator = exports.validateTypedData = exports.trim = exports.stringify = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.serializeTransaction = exports.serializeAccessList = exports.parseUnits = exports.parseTransaction = void 0;
|
11
11
|
var abitype_1 = require("abitype");
|
12
12
|
Object.defineProperty(exports, "CircularReferenceError", { enumerable: true, get: function () { return abitype_1.CircularReferenceError; } });
|
13
13
|
Object.defineProperty(exports, "InvalidAbiParameterError", { enumerable: true, get: function () { return abitype_1.InvalidAbiParameterError; } });
|
@@ -412,6 +412,10 @@ var getChainContractAddress_js_1 = require("./utils/chain/getChainContractAddres
|
|
412
412
|
Object.defineProperty(exports, "getChainContractAddress", { enumerable: true, get: function () { return getChainContractAddress_js_1.getChainContractAddress; } });
|
413
413
|
var encodePacked_js_1 = require("./utils/abi/encodePacked.js");
|
414
414
|
Object.defineProperty(exports, "encodePacked", { enumerable: true, get: function () { return encodePacked_js_1.encodePacked; } });
|
415
|
+
var withRetry_js_1 = require("./utils/promise/withRetry.js");
|
416
|
+
Object.defineProperty(exports, "withRetry", { enumerable: true, get: function () { return withRetry_js_1.withRetry; } });
|
417
|
+
var withTimeout_js_1 = require("./utils/promise/withTimeout.js");
|
418
|
+
Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return withTimeout_js_1.withTimeout; } });
|
415
419
|
var formatEther_js_1 = require("./utils/unit/formatEther.js");
|
416
420
|
Object.defineProperty(exports, "formatEther", { enumerable: true, get: function () { return formatEther_js_1.formatEther; } });
|
417
421
|
var formatGwei_js_1 = require("./utils/unit/formatGwei.js");
|
@@ -453,6 +457,10 @@ var isHex_js_1 = require("./utils/data/isHex.js");
|
|
453
457
|
Object.defineProperty(exports, "isHex", { enumerable: true, get: function () { return isHex_js_1.isHex; } });
|
454
458
|
var keccak256_js_1 = require("./utils/hash/keccak256.js");
|
455
459
|
Object.defineProperty(exports, "keccak256", { enumerable: true, get: function () { return keccak256_js_1.keccak256; } });
|
460
|
+
var sha256_js_1 = require("./utils/hash/sha256.js");
|
461
|
+
Object.defineProperty(exports, "sha256", { enumerable: true, get: function () { return sha256_js_1.sha256; } });
|
462
|
+
var ripemd160_js_1 = require("./utils/hash/ripemd160.js");
|
463
|
+
Object.defineProperty(exports, "ripemd160", { enumerable: true, get: function () { return ripemd160_js_1.ripemd160; } });
|
456
464
|
var pad_js_1 = require("./utils/data/pad.js");
|
457
465
|
Object.defineProperty(exports, "pad", { enumerable: true, get: function () { return pad_js_1.pad; } });
|
458
466
|
Object.defineProperty(exports, "padBytes", { enumerable: true, get: function () { return pad_js_1.padBytes; } });
|
package/_cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,mCAmCgB;AAlBd,iHAAA,sBAAsB,OAAA;AACtB,mHAAA,wBAAwB,OAAA;AACxB,oHAAA,yBAAyB,OAAA;AACzB,8GAAA,mBAAmB,OAAA;AACnB,uHAAA,4BAA4B,OAAA;AAC5B,uHAAA,4BAA4B,OAAA;AAC5B,+GAAA,oBAAoB,OAAA;AACpB,gHAAA,qBAAqB,OAAA;AACrB,kHAAA,uBAAuB,OAAA;AACvB,gHAAA,qBAAqB,OAAA;AACrB,sHAAA,2BAA2B,OAAA;AAC3B,wHAAA,6BAA6B,OAAA;AAC7B,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,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,OAAA;AACR,gGAAA,MAAM,OAAA;AAER,4DAGmC;AADjC,2GAAA,UAAU,OAAA;AAEZ,0DAA8E;AAA5C,yGAAA,SAAS,OAAA;AAC3C,+EAIgD;AAD9C,uHAAA,gBAAgB,OAAA;AAElB,4DAGmC;AADjC,2GAAA,UAAU,OAAA;AAEZ,qFAGmD;AADjD,6HAAA,mBAAmB,OAAA;AAErB,uFAKoD;AAJlD,+HAAA,oBAAoB,OAAA;AAKtB,gDAA+D;AAAlC,+FAAA,IAAI,OAAA;AACjC,kDAO8B;AAH5B,iGAAA,KAAK,OAAA;AACL,sGAAA,UAAU,OAAA;AACV,oGAAA,QAAQ,OAAA;AAEV,qDAAyE;AAAvC,yGAAA,SAAS,OAAA;AAC3C,gDAI6B;AAD3B,+FAAA,IAAI,OAAA;AAEN,qDAO6B;AAH3B,iHAAA,iBAAiB,OAAA;AACjB,+GAAA,eAAe,OAAA;AACf,uHAAA,uBAAuB,OAAA"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isArgOfType = exports.getAbiItem = void 0;
|
3
|
+
exports.getAmbiguousTypes = exports.isArgOfType = exports.getAbiItem = void 0;
|
4
|
+
const abi_js_1 = require("../../errors/abi.js");
|
4
5
|
const isHex_js_1 = require("../../utils/data/isHex.js");
|
5
6
|
const getEventSelector_js_1 = require("../../utils/hash/getEventSelector.js");
|
6
7
|
const getFunctionSelector_js_1 = require("../../utils/hash/getFunctionSelector.js");
|
@@ -22,6 +23,7 @@ function getAbiItem(parameters) {
|
|
22
23
|
return undefined;
|
23
24
|
if (abiItems.length === 1)
|
24
25
|
return abiItems[0];
|
26
|
+
let matchedAbiItem = undefined;
|
25
27
|
for (const abiItem of abiItems) {
|
26
28
|
if (!('inputs' in abiItem))
|
27
29
|
continue;
|
@@ -42,9 +44,25 @@ function getAbiItem(parameters) {
|
|
42
44
|
return false;
|
43
45
|
return isArgOfType(arg, abiParameter);
|
44
46
|
});
|
45
|
-
if (matched)
|
46
|
-
|
47
|
+
if (matched) {
|
48
|
+
if (matchedAbiItem &&
|
49
|
+
'inputs' in matchedAbiItem &&
|
50
|
+
matchedAbiItem.inputs) {
|
51
|
+
const ambiguousTypes = getAmbiguousTypes(abiItem.inputs, matchedAbiItem.inputs, args);
|
52
|
+
if (ambiguousTypes)
|
53
|
+
throw new abi_js_1.AbiItemAmbiguityError({
|
54
|
+
abiItem,
|
55
|
+
type: ambiguousTypes[0],
|
56
|
+
}, {
|
57
|
+
abiItem: matchedAbiItem,
|
58
|
+
type: ambiguousTypes[1],
|
59
|
+
});
|
60
|
+
}
|
61
|
+
matchedAbiItem = abiItem;
|
62
|
+
}
|
47
63
|
}
|
64
|
+
if (matchedAbiItem)
|
65
|
+
return matchedAbiItem;
|
48
66
|
return abiItems[0];
|
49
67
|
}
|
50
68
|
exports.getAbiItem = getAbiItem;
|
@@ -81,4 +99,29 @@ function isArgOfType(arg, abiParameter) {
|
|
81
99
|
}
|
82
100
|
}
|
83
101
|
exports.isArgOfType = isArgOfType;
|
102
|
+
function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
103
|
+
for (const parameterIndex in sourceParameters) {
|
104
|
+
const sourceParameter = sourceParameters[parameterIndex];
|
105
|
+
const targetParameter = targetParameters[parameterIndex];
|
106
|
+
if (sourceParameter.type === 'tuple' &&
|
107
|
+
targetParameter.type === 'tuple' &&
|
108
|
+
'components' in sourceParameter &&
|
109
|
+
'components' in targetParameter)
|
110
|
+
return getAmbiguousTypes(sourceParameter.components, targetParameter.components, args[parameterIndex]);
|
111
|
+
const types = [sourceParameter.type, targetParameter.type];
|
112
|
+
const ambiguous = (() => {
|
113
|
+
if (types.includes('address') && types.includes('bytes20'))
|
114
|
+
return true;
|
115
|
+
if (types.includes('address') && types.includes('string'))
|
116
|
+
return (0, isAddress_js_1.isAddress)(args[parameterIndex]);
|
117
|
+
if (types.includes('address') && types.includes('bytes'))
|
118
|
+
return (0, isAddress_js_1.isAddress)(args[parameterIndex]);
|
119
|
+
return false;
|
120
|
+
})();
|
121
|
+
if (ambiguous)
|
122
|
+
return types;
|
123
|
+
}
|
124
|
+
return;
|
125
|
+
}
|
126
|
+
exports.getAmbiguousTypes = getAmbiguousTypes;
|
84
127
|
//# sourceMappingURL=getAbiItem.js.map
|