viem 2.0.0-beta.8 → 2.0.0-rc.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/CHANGELOG.md +44 -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/wallet/prepareTransactionRequest.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/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 -0
- package/_cjs/chains/definitions/baseSepolia.js.map +1 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js +26 -0
- package/_cjs/chains/definitions/fantomSonicTestnet.js.map +1 -0
- 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 -0
- package/_cjs/chains/definitions/pgn.js.map +1 -1
- package/_cjs/chains/definitions/pgnTestnet.js +7 -0
- package/_cjs/chains/definitions/pgnTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zilliqa.js +26 -0
- package/_cjs/chains/definitions/zilliqa.js.map +1 -0
- package/_cjs/chains/definitions/zilliqaTestnet.js +26 -0
- package/_cjs/chains/definitions/zilliqaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +35 -0
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncTestnet.js +4 -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 -0
- 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/wallet/prepareTransactionRequest.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/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 -0
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js +23 -0
- package/_esm/chains/definitions/fantomSonicTestnet.js.map +1 -0
- 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 -0
- package/_esm/chains/definitions/pgn.js.map +1 -1
- package/_esm/chains/definitions/pgnTestnet.js +7 -0
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -1
- package/_esm/chains/definitions/zilliqa.js +23 -0
- package/_esm/chains/definitions/zilliqa.js.map +1 -0
- package/_esm/chains/definitions/zilliqaTestnet.js +23 -0
- package/_esm/chains/definitions/zilliqaTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +32 -0
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js +5 -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 -0
- 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/getBlock.d.ts +1 -1
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +1 -1
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +1 -1
- package/_types/actions/public/getTransactionReceipt.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 +180 -180
- package/_types/chains/celo/formatters.d.ts +180 -180
- package/_types/chains/definitions/arbitrumSepolia.d.ts +4 -0
- package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +142 -137
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +142 -137
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +142 -137
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +180 -180
- package/_types/chains/definitions/celoAlfajores.d.ts +180 -180
- package/_types/chains/definitions/celoCannoli.d.ts +180 -180
- package/_types/chains/definitions/fantomSonicTestnet.d.ts +38 -0
- package/_types/chains/definitions/fantomSonicTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/optimism.d.ts +142 -137
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +142 -137
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +142 -137
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/pgn.d.ts +147 -137
- package/_types/chains/definitions/pgn.d.ts.map +1 -1
- package/_types/chains/definitions/pgnTestnet.d.ts +142 -137
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqa.d.ts +38 -0
- package/_types/chains/definitions/zilliqa.d.ts.map +1 -0
- package/_types/chains/definitions/zilliqaTestnet.d.ts +38 -0
- package/_types/chains/definitions/zilliqaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +24 -24
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +533 -0
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts +29 -24
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +142 -137
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +142 -137
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +137 -137
- 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 +136 -136
- 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 +136 -136
- 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 +24 -24
- package/_types/chains/zksync/formatters.d.ts +24 -24
- 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/block.d.ts +1 -1
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +2 -2
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts.map +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/getBlock.ts +1 -1
- package/actions/public/getTransaction.ts +1 -1
- package/actions/public/getTransactionReceipt.ts +1 -1
- package/actions/wallet/prepareTransactionRequest.ts +16 -9
- package/chains/definitions/arbitrumSepolia.ts +4 -0
- package/chains/definitions/base.ts +5 -0
- package/chains/definitions/baseGoerli.ts +5 -0
- package/chains/definitions/baseSepolia.ts +5 -0
- package/chains/definitions/fantomSonicTestnet.ts +23 -0
- 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 -0
- package/chains/definitions/pgnTestnet.ts +8 -0
- package/chains/definitions/zilliqa.ts +23 -0
- package/chains/definitions/zilliqaTestnet.ts +23 -0
- package/chains/definitions/zkSyncSepoliaTestnet.ts +32 -0
- package/chains/definitions/zkSyncTestnet.ts +5 -0
- package/chains/definitions/zora.ts +5 -0
- package/chains/definitions/zoraSepolia.ts +5 -0
- 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/formatters/block.ts +1 -1
- package/utils/formatters/transaction.ts +1 -1
- package/utils/formatters/transactionReceipt.ts +1 -1
- 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
@@ -55,24 +55,24 @@ export declare const chainConfig: {
|
|
55
55
|
readonly transaction: {
|
56
56
|
exclude: [] | undefined;
|
57
57
|
format: (args: ({
|
58
|
+
gas?: `0x${string}` | undefined;
|
59
|
+
nonce?: `0x${string}` | undefined;
|
60
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
61
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
62
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
63
|
+
gasPrice?: `0x${string}` | undefined;
|
64
|
+
from?: `0x${string}` | undefined;
|
65
|
+
to?: `0x${string}` | null | undefined;
|
66
|
+
value?: `0x${string}` | undefined;
|
67
|
+
r?: `0x${string}` | undefined;
|
68
|
+
s?: `0x${string}` | undefined;
|
69
|
+
v?: `0x${string}` | undefined;
|
58
70
|
yParity?: `0x${string}` | undefined;
|
59
71
|
blockHash?: `0x${string}` | null | undefined;
|
60
72
|
blockNumber?: `0x${string}` | null | undefined;
|
61
|
-
from?: `0x${string}` | undefined;
|
62
|
-
gas?: `0x${string}` | undefined;
|
63
73
|
hash?: `0x${string}` | undefined;
|
64
74
|
input?: `0x${string}` | undefined;
|
65
|
-
nonce?: `0x${string}` | undefined;
|
66
|
-
r?: `0x${string}` | undefined;
|
67
|
-
s?: `0x${string}` | undefined;
|
68
|
-
to?: `0x${string}` | null | undefined;
|
69
75
|
transactionIndex?: `0x${string}` | null | undefined;
|
70
|
-
v?: `0x${string}` | undefined;
|
71
|
-
value?: `0x${string}` | undefined;
|
72
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
73
|
-
gasPrice?: `0x${string}` | undefined;
|
74
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
75
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
76
76
|
accessList?: undefined;
|
77
77
|
chainId?: `0x${string}` | undefined;
|
78
78
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -80,24 +80,24 @@ export declare const chainConfig: {
|
|
80
80
|
mint?: undefined;
|
81
81
|
sourceHash?: undefined;
|
82
82
|
}) | ({
|
83
|
+
gas?: `0x${string}` | undefined;
|
84
|
+
nonce?: `0x${string}` | undefined;
|
85
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
86
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
87
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
88
|
+
gasPrice?: `0x${string}` | undefined;
|
89
|
+
from?: `0x${string}` | undefined;
|
90
|
+
to?: `0x${string}` | null | undefined;
|
91
|
+
value?: `0x${string}` | undefined;
|
92
|
+
r?: `0x${string}` | undefined;
|
93
|
+
s?: `0x${string}` | undefined;
|
94
|
+
v?: `0x${string}` | undefined;
|
83
95
|
yParity?: `0x${string}` | undefined;
|
84
96
|
blockHash?: `0x${string}` | null | undefined;
|
85
97
|
blockNumber?: `0x${string}` | null | undefined;
|
86
|
-
from?: `0x${string}` | undefined;
|
87
|
-
gas?: `0x${string}` | undefined;
|
88
98
|
hash?: `0x${string}` | undefined;
|
89
99
|
input?: `0x${string}` | undefined;
|
90
|
-
nonce?: `0x${string}` | undefined;
|
91
|
-
r?: `0x${string}` | undefined;
|
92
|
-
s?: `0x${string}` | undefined;
|
93
|
-
to?: `0x${string}` | null | undefined;
|
94
100
|
transactionIndex?: `0x${string}` | null | undefined;
|
95
|
-
v?: `0x${string}` | undefined;
|
96
|
-
value?: `0x${string}` | undefined;
|
97
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
98
|
-
gasPrice?: `0x${string}` | undefined;
|
99
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
100
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
101
101
|
accessList?: undefined;
|
102
102
|
chainId?: `0x${string}` | undefined;
|
103
103
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -106,24 +106,24 @@ export declare const chainConfig: {
|
|
106
106
|
sourceHash: `0x${string}`;
|
107
107
|
type: "0x7e";
|
108
108
|
}) | ({
|
109
|
+
gas?: `0x${string}` | undefined;
|
110
|
+
nonce?: `0x${string}` | undefined;
|
111
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
112
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
113
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
114
|
+
gasPrice?: `0x${string}` | undefined;
|
115
|
+
from?: `0x${string}` | undefined;
|
116
|
+
to?: `0x${string}` | null | undefined;
|
117
|
+
value?: `0x${string}` | undefined;
|
118
|
+
r?: `0x${string}` | undefined;
|
119
|
+
s?: `0x${string}` | undefined;
|
120
|
+
v?: `0x${string}` | undefined;
|
109
121
|
yParity?: `0x${string}` | undefined;
|
110
122
|
blockHash?: `0x${string}` | null | undefined;
|
111
123
|
blockNumber?: `0x${string}` | null | undefined;
|
112
|
-
from?: `0x${string}` | undefined;
|
113
|
-
gas?: `0x${string}` | undefined;
|
114
124
|
hash?: `0x${string}` | undefined;
|
115
125
|
input?: `0x${string}` | undefined;
|
116
|
-
nonce?: `0x${string}` | undefined;
|
117
|
-
r?: `0x${string}` | undefined;
|
118
|
-
s?: `0x${string}` | undefined;
|
119
|
-
to?: `0x${string}` | null | undefined;
|
120
126
|
transactionIndex?: `0x${string}` | null | undefined;
|
121
|
-
v?: `0x${string}` | undefined;
|
122
|
-
value?: `0x${string}` | undefined;
|
123
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
124
|
-
gasPrice?: `0x${string}` | undefined;
|
125
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
126
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
127
127
|
accessList?: import("../../index.js").AccessList | undefined;
|
128
128
|
chainId?: `0x${string}` | undefined;
|
129
129
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -131,24 +131,24 @@ export declare const chainConfig: {
|
|
131
131
|
mint?: undefined;
|
132
132
|
sourceHash?: undefined;
|
133
133
|
}) | ({
|
134
|
+
gas?: `0x${string}` | undefined;
|
135
|
+
nonce?: `0x${string}` | undefined;
|
136
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
137
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
138
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
139
|
+
gasPrice?: `0x${string}` | undefined;
|
140
|
+
from?: `0x${string}` | undefined;
|
141
|
+
to?: `0x${string}` | null | undefined;
|
142
|
+
value?: `0x${string}` | undefined;
|
143
|
+
r?: `0x${string}` | undefined;
|
144
|
+
s?: `0x${string}` | undefined;
|
145
|
+
v?: `0x${string}` | undefined;
|
134
146
|
yParity?: `0x${string}` | undefined;
|
135
147
|
blockHash?: `0x${string}` | null | undefined;
|
136
148
|
blockNumber?: `0x${string}` | null | undefined;
|
137
|
-
from?: `0x${string}` | undefined;
|
138
|
-
gas?: `0x${string}` | undefined;
|
139
149
|
hash?: `0x${string}` | undefined;
|
140
150
|
input?: `0x${string}` | undefined;
|
141
|
-
nonce?: `0x${string}` | undefined;
|
142
|
-
r?: `0x${string}` | undefined;
|
143
|
-
s?: `0x${string}` | undefined;
|
144
|
-
to?: `0x${string}` | null | undefined;
|
145
151
|
transactionIndex?: `0x${string}` | null | undefined;
|
146
|
-
v?: `0x${string}` | undefined;
|
147
|
-
value?: `0x${string}` | undefined;
|
148
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
149
|
-
gasPrice?: `0x${string}` | undefined;
|
150
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
151
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
152
152
|
accessList?: import("../../index.js").AccessList | undefined;
|
153
153
|
chainId?: `0x${string}` | undefined;
|
154
154
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -156,24 +156,24 @@ export declare const chainConfig: {
|
|
156
156
|
mint?: undefined;
|
157
157
|
sourceHash?: undefined;
|
158
158
|
}) | ({
|
159
|
+
gas?: `0x${string}` | undefined;
|
160
|
+
nonce?: `0x${string}` | undefined;
|
161
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
162
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
163
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
164
|
+
gasPrice?: `0x${string}` | undefined;
|
165
|
+
from?: `0x${string}` | undefined;
|
166
|
+
to?: `0x${string}` | null | undefined;
|
167
|
+
value?: `0x${string}` | undefined;
|
168
|
+
r?: `0x${string}` | undefined;
|
169
|
+
s?: `0x${string}` | undefined;
|
170
|
+
v?: `0x${string}` | undefined;
|
159
171
|
yParity?: `0x${string}` | undefined;
|
160
172
|
blockHash?: `0x${string}` | null | undefined;
|
161
173
|
blockNumber?: `0x${string}` | null | undefined;
|
162
|
-
from?: `0x${string}` | undefined;
|
163
|
-
gas?: `0x${string}` | undefined;
|
164
174
|
hash?: `0x${string}` | undefined;
|
165
175
|
input?: `0x${string}` | undefined;
|
166
|
-
nonce?: `0x${string}` | undefined;
|
167
|
-
r?: `0x${string}` | undefined;
|
168
|
-
s?: `0x${string}` | undefined;
|
169
|
-
to?: `0x${string}` | null | undefined;
|
170
176
|
transactionIndex?: `0x${string}` | null | undefined;
|
171
|
-
v?: `0x${string}` | undefined;
|
172
|
-
value?: `0x${string}` | undefined;
|
173
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
174
|
-
gasPrice?: `0x${string}` | undefined;
|
175
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
176
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
177
177
|
accessList?: import("../../index.js").AccessList | undefined;
|
178
178
|
chainId?: `0x${string}` | undefined;
|
179
179
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -181,24 +181,24 @@ export declare const chainConfig: {
|
|
181
181
|
mint?: undefined;
|
182
182
|
sourceHash?: undefined;
|
183
183
|
}) | ({
|
184
|
+
gas?: `0x${string}` | undefined;
|
185
|
+
nonce?: `0x${string}` | undefined;
|
186
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
187
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
188
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
189
|
+
gasPrice?: `0x${string}` | undefined;
|
190
|
+
from?: `0x${string}` | undefined;
|
191
|
+
to?: `0x${string}` | null | undefined;
|
192
|
+
value?: `0x${string}` | undefined;
|
193
|
+
r?: `0x${string}` | undefined;
|
194
|
+
s?: `0x${string}` | undefined;
|
195
|
+
v?: `0x${string}` | undefined;
|
184
196
|
yParity?: `0x${string}` | undefined;
|
185
197
|
blockHash?: `0x${string}` | null | undefined;
|
186
198
|
blockNumber?: `0x${string}` | null | undefined;
|
187
|
-
from?: `0x${string}` | undefined;
|
188
|
-
gas?: `0x${string}` | undefined;
|
189
199
|
hash?: `0x${string}` | undefined;
|
190
200
|
input?: `0x${string}` | undefined;
|
191
|
-
nonce?: `0x${string}` | undefined;
|
192
|
-
r?: `0x${string}` | undefined;
|
193
|
-
s?: `0x${string}` | undefined;
|
194
|
-
to?: `0x${string}` | null | undefined;
|
195
201
|
transactionIndex?: `0x${string}` | null | undefined;
|
196
|
-
v?: `0x${string}` | undefined;
|
197
|
-
value?: `0x${string}` | undefined;
|
198
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
199
|
-
gasPrice?: `0x${string}` | undefined;
|
200
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
201
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
202
202
|
accessList?: import("../../index.js").AccessList | undefined;
|
203
203
|
chainId?: `0x${string}` | undefined;
|
204
204
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -207,24 +207,24 @@ export declare const chainConfig: {
|
|
207
207
|
sourceHash: `0x${string}`;
|
208
208
|
type: "0x7e";
|
209
209
|
}) | ({
|
210
|
+
gas?: `0x${string}` | undefined;
|
211
|
+
nonce?: `0x${string}` | undefined;
|
212
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
213
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
214
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
215
|
+
gasPrice?: `0x${string}` | undefined;
|
216
|
+
from?: `0x${string}` | undefined;
|
217
|
+
to?: `0x${string}` | null | undefined;
|
218
|
+
value?: `0x${string}` | undefined;
|
219
|
+
r?: `0x${string}` | undefined;
|
220
|
+
s?: `0x${string}` | undefined;
|
221
|
+
v?: `0x${string}` | undefined;
|
210
222
|
yParity?: `0x${string}` | undefined;
|
211
223
|
blockHash?: `0x${string}` | null | undefined;
|
212
224
|
blockNumber?: `0x${string}` | null | undefined;
|
213
|
-
from?: `0x${string}` | undefined;
|
214
|
-
gas?: `0x${string}` | undefined;
|
215
225
|
hash?: `0x${string}` | undefined;
|
216
226
|
input?: `0x${string}` | undefined;
|
217
|
-
nonce?: `0x${string}` | undefined;
|
218
|
-
r?: `0x${string}` | undefined;
|
219
|
-
s?: `0x${string}` | undefined;
|
220
|
-
to?: `0x${string}` | null | undefined;
|
221
227
|
transactionIndex?: `0x${string}` | null | undefined;
|
222
|
-
v?: `0x${string}` | undefined;
|
223
|
-
value?: `0x${string}` | undefined;
|
224
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
225
|
-
gasPrice?: `0x${string}` | undefined;
|
226
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
227
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
228
228
|
accessList?: import("../../index.js").AccessList | undefined;
|
229
229
|
chainId?: `0x${string}` | undefined;
|
230
230
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -232,24 +232,24 @@ export declare const chainConfig: {
|
|
232
232
|
mint?: undefined;
|
233
233
|
sourceHash?: undefined;
|
234
234
|
}) | ({
|
235
|
+
gas?: `0x${string}` | undefined;
|
236
|
+
nonce?: `0x${string}` | undefined;
|
237
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
238
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
239
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
240
|
+
gasPrice?: `0x${string}` | undefined;
|
241
|
+
from?: `0x${string}` | undefined;
|
242
|
+
to?: `0x${string}` | null | undefined;
|
243
|
+
value?: `0x${string}` | undefined;
|
244
|
+
r?: `0x${string}` | undefined;
|
245
|
+
s?: `0x${string}` | undefined;
|
246
|
+
v?: `0x${string}` | undefined;
|
235
247
|
yParity?: `0x${string}` | undefined;
|
236
248
|
blockHash?: `0x${string}` | null | undefined;
|
237
249
|
blockNumber?: `0x${string}` | null | undefined;
|
238
|
-
from?: `0x${string}` | undefined;
|
239
|
-
gas?: `0x${string}` | undefined;
|
240
250
|
hash?: `0x${string}` | undefined;
|
241
251
|
input?: `0x${string}` | undefined;
|
242
|
-
nonce?: `0x${string}` | undefined;
|
243
|
-
r?: `0x${string}` | undefined;
|
244
|
-
s?: `0x${string}` | undefined;
|
245
|
-
to?: `0x${string}` | null | undefined;
|
246
252
|
transactionIndex?: `0x${string}` | null | undefined;
|
247
|
-
v?: `0x${string}` | undefined;
|
248
|
-
value?: `0x${string}` | undefined;
|
249
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
250
|
-
gasPrice?: `0x${string}` | undefined;
|
251
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
252
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
253
253
|
accessList?: import("../../index.js").AccessList | undefined;
|
254
254
|
chainId?: `0x${string}` | undefined;
|
255
255
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -257,24 +257,24 @@ export declare const chainConfig: {
|
|
257
257
|
mint?: undefined;
|
258
258
|
sourceHash?: undefined;
|
259
259
|
}) | ({
|
260
|
+
gas?: `0x${string}` | undefined;
|
261
|
+
nonce?: `0x${string}` | undefined;
|
262
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
263
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
264
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
265
|
+
gasPrice?: `0x${string}` | undefined;
|
266
|
+
from?: `0x${string}` | undefined;
|
267
|
+
to?: `0x${string}` | null | undefined;
|
268
|
+
value?: `0x${string}` | undefined;
|
269
|
+
r?: `0x${string}` | undefined;
|
270
|
+
s?: `0x${string}` | undefined;
|
271
|
+
v?: `0x${string}` | undefined;
|
260
272
|
yParity?: `0x${string}` | undefined;
|
261
273
|
blockHash?: `0x${string}` | null | undefined;
|
262
274
|
blockNumber?: `0x${string}` | null | undefined;
|
263
|
-
from?: `0x${string}` | undefined;
|
264
|
-
gas?: `0x${string}` | undefined;
|
265
275
|
hash?: `0x${string}` | undefined;
|
266
276
|
input?: `0x${string}` | undefined;
|
267
|
-
nonce?: `0x${string}` | undefined;
|
268
|
-
r?: `0x${string}` | undefined;
|
269
|
-
s?: `0x${string}` | undefined;
|
270
|
-
to?: `0x${string}` | null | undefined;
|
271
277
|
transactionIndex?: `0x${string}` | null | undefined;
|
272
|
-
v?: `0x${string}` | undefined;
|
273
|
-
value?: `0x${string}` | undefined;
|
274
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
275
|
-
gasPrice?: `0x${string}` | undefined;
|
276
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
277
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
278
278
|
accessList?: import("../../index.js").AccessList | undefined;
|
279
279
|
chainId?: `0x${string}` | undefined;
|
280
280
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -282,24 +282,24 @@ export declare const chainConfig: {
|
|
282
282
|
mint?: undefined;
|
283
283
|
sourceHash?: undefined;
|
284
284
|
}) | ({
|
285
|
+
gas?: `0x${string}` | undefined;
|
286
|
+
nonce?: `0x${string}` | undefined;
|
287
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
288
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
289
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
290
|
+
gasPrice?: `0x${string}` | undefined;
|
291
|
+
from?: `0x${string}` | undefined;
|
292
|
+
to?: `0x${string}` | null | undefined;
|
293
|
+
value?: `0x${string}` | undefined;
|
294
|
+
r?: `0x${string}` | undefined;
|
295
|
+
s?: `0x${string}` | undefined;
|
296
|
+
v?: `0x${string}` | undefined;
|
285
297
|
yParity?: `0x${string}` | undefined;
|
286
298
|
blockHash?: `0x${string}` | null | undefined;
|
287
299
|
blockNumber?: `0x${string}` | null | undefined;
|
288
|
-
from?: `0x${string}` | undefined;
|
289
|
-
gas?: `0x${string}` | undefined;
|
290
300
|
hash?: `0x${string}` | undefined;
|
291
301
|
input?: `0x${string}` | undefined;
|
292
|
-
nonce?: `0x${string}` | undefined;
|
293
|
-
r?: `0x${string}` | undefined;
|
294
|
-
s?: `0x${string}` | undefined;
|
295
|
-
to?: `0x${string}` | null | undefined;
|
296
302
|
transactionIndex?: `0x${string}` | null | undefined;
|
297
|
-
v?: `0x${string}` | undefined;
|
298
|
-
value?: `0x${string}` | undefined;
|
299
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
300
|
-
gasPrice?: `0x${string}` | undefined;
|
301
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
302
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
303
303
|
accessList?: import("../../index.js").AccessList | undefined;
|
304
304
|
chainId?: `0x${string}` | undefined;
|
305
305
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -308,20 +308,20 @@ export declare const chainConfig: {
|
|
308
308
|
sourceHash: `0x${string}`;
|
309
309
|
type: "0x7e";
|
310
310
|
})) => ({
|
311
|
-
blockHash: `0x${string}` | null;
|
312
|
-
blockNumber: bigint | null;
|
313
|
-
from: `0x${string}`;
|
314
311
|
gas: bigint;
|
315
|
-
hash: `0x${string}`;
|
316
|
-
input: `0x${string}`;
|
317
312
|
nonce: number;
|
313
|
+
from: `0x${string}`;
|
314
|
+
to: `0x${string}` | null;
|
315
|
+
value: bigint;
|
318
316
|
r: `0x${string}`;
|
319
317
|
s: `0x${string}`;
|
320
|
-
|
318
|
+
v: bigint;
|
319
|
+
blockHash: `0x${string}` | null;
|
320
|
+
blockNumber: bigint | null;
|
321
|
+
hash: `0x${string}`;
|
322
|
+
input: `0x${string}`;
|
321
323
|
transactionIndex: number | null;
|
322
324
|
typeHex: `0x${string}` | null;
|
323
|
-
v: bigint;
|
324
|
-
value: bigint;
|
325
325
|
gasPrice: bigint;
|
326
326
|
maxFeePerGas?: undefined;
|
327
327
|
maxPriorityFeePerGas?: undefined;
|
@@ -333,20 +333,20 @@ export declare const chainConfig: {
|
|
333
333
|
mint?: undefined;
|
334
334
|
sourceHash?: undefined;
|
335
335
|
} | {
|
336
|
-
blockHash: `0x${string}` | null;
|
337
|
-
blockNumber: bigint | null;
|
338
|
-
from: `0x${string}`;
|
339
336
|
gas: bigint;
|
340
|
-
hash: `0x${string}`;
|
341
|
-
input: `0x${string}`;
|
342
337
|
nonce: number;
|
338
|
+
from: `0x${string}`;
|
339
|
+
to: `0x${string}` | null;
|
340
|
+
value: bigint;
|
343
341
|
r: `0x${string}`;
|
344
342
|
s: `0x${string}`;
|
345
|
-
|
343
|
+
v: bigint;
|
344
|
+
blockHash: `0x${string}` | null;
|
345
|
+
blockNumber: bigint | null;
|
346
|
+
hash: `0x${string}`;
|
347
|
+
input: `0x${string}`;
|
346
348
|
transactionIndex: number | null;
|
347
349
|
typeHex: `0x${string}` | null;
|
348
|
-
v: bigint;
|
349
|
-
value: bigint;
|
350
350
|
gasPrice: undefined;
|
351
351
|
maxFeePerGas: bigint;
|
352
352
|
maxPriorityFeePerGas: bigint;
|
@@ -4,6 +4,8 @@ export { baseSepolia } from '../definitions/baseSepolia.js';
|
|
4
4
|
export { optimism } from '../definitions/optimism.js';
|
5
5
|
export { optimismGoerli } from '../definitions/optimismGoerli.js';
|
6
6
|
export { optimismSepolia } from '../definitions/optimismSepolia.js';
|
7
|
+
export { pgn } from '../definitions/pgn.js';
|
8
|
+
export { pgnTestnet } from '../definitions/pgnTestnet.js';
|
7
9
|
export { zora } from '../definitions/zora.js';
|
8
10
|
export { zoraSepolia } from '../definitions/zoraSepolia.js';
|
9
11
|
export { zoraTestnet } from '../definitions/zoraTestnet.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../chains/opStack/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA"}
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../chains/opStack/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA"}
|