viem 2.0.0-beta.2 → 2.0.0-beta.3
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/_cjs/errors/version.js +1 -1
- package/_esm/chains/celo/chainConfig.js +7 -0
- package/_esm/chains/celo/chainConfig.js.map +1 -0
- package/_esm/chains/celo/formatters.js +1 -1
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/index.js +4 -0
- package/_esm/chains/celo/index.js.map +1 -0
- package/_esm/chains/celo/parsers.js +3 -3
- package/_esm/chains/celo/parsers.js.map +1 -1
- package/_esm/chains/celo/serializers.js +5 -5
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/definitions/base.js +3 -2
- package/_esm/chains/definitions/base.js.map +1 -1
- package/_esm/chains/definitions/baseGoerli.js +4 -3
- package/_esm/chains/definitions/baseGoerli.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +4 -3
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/celo.js +2 -4
- package/_esm/chains/definitions/celo.js.map +1 -1
- package/_esm/chains/definitions/celoAlfajores.js +2 -4
- package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
- package/_esm/chains/definitions/celoCannoli.js +2 -4
- package/_esm/chains/definitions/celoCannoli.js.map +1 -1
- package/_esm/chains/definitions/optimism.js +3 -2
- package/_esm/chains/definitions/optimism.js.map +1 -1
- package/_esm/chains/definitions/optimismGoerli.js +3 -2
- package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
- package/_esm/chains/definitions/optimismSepolia.js +3 -2
- package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
- package/_esm/chains/definitions/zkSync.js +2 -4
- package/_esm/chains/definitions/zkSync.js.map +1 -1
- package/_esm/chains/definitions/zkSyncTestnet.js +2 -4
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zora.js +3 -2
- package/_esm/chains/definitions/zora.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +3 -2
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
- package/_esm/chains/definitions/zoraTestnet.js +3 -2
- package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
- package/_esm/chains/opStack/abis.js +74 -0
- package/_esm/chains/opStack/abis.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractL1Fee.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractL1Fee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractL1Gas.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractL1Gas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractTotalFee.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractTotalFee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractTotalGas.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractTotalGas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateL1Fee.js +74 -0
- package/_esm/chains/opStack/actions/estimateL1Fee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateL1Gas.js +74 -0
- package/_esm/chains/opStack/actions/estimateL1Gas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateTotalFee.js +38 -0
- package/_esm/chains/opStack/actions/estimateTotalFee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateTotalGas.js +36 -0
- package/_esm/chains/opStack/actions/estimateTotalGas.js.map +1 -0
- package/_esm/chains/opStack/chainConfig.js +7 -0
- package/_esm/chains/opStack/chainConfig.js.map +1 -0
- package/_esm/chains/opStack/contracts.js +13 -0
- package/_esm/chains/opStack/contracts.js.map +1 -0
- package/_esm/chains/opStack/decorators/public.js +23 -0
- package/_esm/chains/opStack/decorators/public.js.map +1 -0
- package/_esm/chains/{optimism → opStack}/formatters.js +1 -1
- package/_esm/chains/opStack/formatters.js.map +1 -0
- package/_esm/chains/opStack/index.js +20 -0
- package/_esm/chains/opStack/index.js.map +1 -0
- package/{_cjs/accounts → _esm/chains/opStack}/types.js.map +1 -1
- package/_esm/chains/utils.js +0 -5
- package/_esm/chains/utils.js.map +1 -1
- package/_esm/chains/zksync/chainConfig.js +7 -0
- package/_esm/chains/zksync/chainConfig.js.map +1 -0
- package/_esm/chains/zksync/formatters.js +2 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/chains/zksync/index.js +3 -0
- package/_esm/chains/zksync/index.js.map +1 -0
- package/_esm/chains/zksync/serializers.js +7 -7
- package/_esm/chains/zksync/serializers.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/celo/chainConfig.d.ts +884 -0
- package/_types/chains/celo/chainConfig.d.ts.map +1 -0
- package/_types/chains/celo/formatters.d.ts +92 -92
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/index.d.ts +5 -0
- package/_types/chains/celo/index.d.ts.map +1 -0
- package/_types/chains/celo/parsers.d.ts +3 -3
- package/_types/chains/celo/parsers.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +2 -2
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +92 -74
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +92 -74
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +94 -82
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +97 -97
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +97 -97
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +97 -97
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +92 -74
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +92 -74
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +92 -74
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zkSync.d.ts +13 -13
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +13 -13
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +92 -74
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +92 -74
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +92 -74
- package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
- package/_types/chains/opStack/abis.d.ts +114 -0
- package/_types/chains/opStack/abis.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts +43 -0
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts +43 -0
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateTotalFee.d.ts +37 -0
- package/_types/chains/opStack/actions/estimateTotalFee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateTotalGas.d.ts +36 -0
- package/_types/chains/opStack/actions/estimateTotalGas.d.ts.map +1 -0
- package/_types/chains/opStack/chainConfig.d.ts +521 -0
- package/_types/chains/opStack/chainConfig.d.ts.map +1 -0
- package/_types/chains/opStack/contracts.d.ts +21 -0
- package/_types/chains/opStack/contracts.d.ts.map +1 -0
- package/_types/chains/opStack/decorators/public.d.ts +214 -0
- package/_types/chains/opStack/decorators/public.d.ts.map +1 -0
- package/_types/chains/{optimism → opStack}/formatters.d.ts +76 -76
- package/_types/chains/{optimism → opStack}/formatters.d.ts.map +1 -1
- package/_types/chains/opStack/index.d.ts +21 -0
- package/_types/chains/opStack/index.d.ts.map +1 -0
- package/_types/chains/opStack/types.d.ts +53 -0
- package/_types/chains/opStack/types.d.ts.map +1 -0
- package/_types/chains/utils.d.ts +0 -8
- package/_types/chains/utils.d.ts.map +1 -1
- package/_types/chains/zksync/chainConfig.d.ts +490 -0
- package/_types/chains/zksync/chainConfig.d.ts.map +1 -0
- package/_types/chains/zksync/formatters.d.ts +1 -1
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/index.d.ts +4 -0
- package/_types/chains/zksync/index.d.ts.map +1 -0
- package/_types/chains/zksync/serializers.d.ts +2 -2
- package/_types/chains/zksync/serializers.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/chains/celo/chainConfig.ts +7 -0
- package/chains/celo/formatters.ts +1 -1
- package/chains/celo/index.ts +35 -0
- package/chains/celo/package.json +6 -0
- package/chains/celo/parsers.ts +10 -12
- package/chains/celo/serializers.ts +5 -5
- package/chains/definitions/base.ts +3 -2
- package/chains/definitions/baseGoerli.ts +3 -2
- package/chains/definitions/baseSepolia.ts +3 -2
- package/chains/definitions/celo.ts +2 -4
- package/chains/definitions/celoAlfajores.ts +2 -4
- package/chains/definitions/celoCannoli.ts +2 -4
- package/chains/definitions/optimism.ts +3 -2
- package/chains/definitions/optimismGoerli.ts +3 -2
- package/chains/definitions/optimismSepolia.ts +3 -2
- package/chains/definitions/zkSync.ts +2 -4
- package/chains/definitions/zkSyncTestnet.ts +2 -4
- package/chains/definitions/zora.ts +3 -2
- package/chains/definitions/zoraSepolia.ts +3 -2
- package/chains/definitions/zoraTestnet.ts +3 -2
- package/chains/opStack/abis.ts +73 -0
- package/chains/opStack/actions/estimateContractL1Fee.ts +142 -0
- package/chains/opStack/actions/estimateContractL1Gas.ts +142 -0
- package/chains/opStack/actions/estimateContractTotalFee.ts +144 -0
- package/chains/opStack/actions/estimateContractTotalGas.ts +144 -0
- package/chains/opStack/actions/estimateL1Fee.ts +138 -0
- package/chains/opStack/actions/estimateL1Gas.ts +138 -0
- package/chains/opStack/actions/estimateTotalFee.ts +86 -0
- package/chains/opStack/actions/estimateTotalGas.ts +80 -0
- package/chains/opStack/chainConfig.ts +7 -0
- package/chains/opStack/contracts.ts +14 -0
- package/chains/opStack/decorators/public.ts +337 -0
- package/chains/{optimism → opStack}/formatters.ts +17 -17
- package/chains/opStack/index.ts +77 -0
- package/chains/opStack/package.json +6 -0
- package/chains/{optimism → opStack}/types.ts +20 -20
- package/chains/utils.ts +0 -83
- package/chains/zksync/chainConfig.ts +7 -0
- package/chains/zksync/formatters.ts +2 -2
- package/chains/zksync/index.ts +33 -0
- package/chains/zksync/package.json +6 -0
- package/chains/zksync/serializers.ts +7 -9
- package/errors/version.ts +1 -1
- package/package.json +26 -34
- package/_cjs/accounts/generateMnemonic.js +0 -9
- package/_cjs/accounts/generateMnemonic.js.map +0 -1
- package/_cjs/accounts/generatePrivateKey.js +0 -10
- package/_cjs/accounts/generatePrivateKey.js.map +0 -1
- package/_cjs/accounts/hdKeyToAccount.js +0 -16
- package/_cjs/accounts/hdKeyToAccount.js.map +0 -1
- package/_cjs/accounts/index.js +0 -52
- package/_cjs/accounts/index.js.map +0 -1
- package/_cjs/accounts/mnemonicToAccount.js +0 -12
- package/_cjs/accounts/mnemonicToAccount.js.map +0 -1
- package/_cjs/accounts/privateKeyToAccount.js +0 -33
- package/_cjs/accounts/privateKeyToAccount.js.map +0 -1
- package/_cjs/accounts/toAccount.js +0 -27
- package/_cjs/accounts/toAccount.js.map +0 -1
- package/_cjs/accounts/types.js +0 -3
- package/_cjs/accounts/utils/parseAccount.js +0 -10
- package/_cjs/accounts/utils/parseAccount.js.map +0 -1
- package/_cjs/accounts/utils/privateKeyToAddress.js +0 -12
- package/_cjs/accounts/utils/privateKeyToAddress.js.map +0 -1
- package/_cjs/accounts/utils/publicKeyToAddress.js +0 -11
- package/_cjs/accounts/utils/publicKeyToAddress.js.map +0 -1
- package/_cjs/accounts/utils/sign.js +0 -15
- package/_cjs/accounts/utils/sign.js.map +0 -1
- package/_cjs/accounts/utils/signMessage.js +0 -12
- package/_cjs/accounts/utils/signMessage.js.map +0 -1
- package/_cjs/accounts/utils/signTransaction.js +0 -15
- package/_cjs/accounts/utils/signTransaction.js.map +0 -1
- package/_cjs/accounts/utils/signTypedData.js +0 -16
- package/_cjs/accounts/utils/signTypedData.js.map +0 -1
- package/_cjs/actions/ens/getEnsAddress.js +0 -63
- package/_cjs/actions/ens/getEnsAddress.js.map +0 -1
- package/_cjs/actions/ens/getEnsAvatar.js +0 -25
- package/_cjs/actions/ens/getEnsAvatar.js.map +0 -1
- package/_cjs/actions/ens/getEnsName.js +0 -41
- package/_cjs/actions/ens/getEnsName.js.map +0 -1
- package/_cjs/actions/ens/getEnsResolver.js +0 -39
- package/_cjs/actions/ens/getEnsResolver.js.map +0 -1
- package/_cjs/actions/ens/getEnsText.js +0 -57
- package/_cjs/actions/ens/getEnsText.js.map +0 -1
- package/_cjs/actions/getContract.js +0 -184
- package/_cjs/actions/getContract.js.map +0 -1
- package/_cjs/actions/index.js +0 -167
- package/_cjs/actions/index.js.map +0 -1
- package/_cjs/actions/public/call.js +0 -156
- package/_cjs/actions/public/call.js.map +0 -1
- package/_cjs/actions/public/createBlockFilter.js +0 -15
- package/_cjs/actions/public/createBlockFilter.js.map +0 -1
- package/_cjs/actions/public/createContractEventFilter.js +0 -41
- package/_cjs/actions/public/createContractEventFilter.js.map +0 -1
- package/_cjs/actions/public/createEventFilter.js +0 -48
- package/_cjs/actions/public/createEventFilter.js.map +0 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js +0 -15
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +0 -1
- package/_cjs/actions/public/estimateContractGas.js +0 -37
- package/_cjs/actions/public/estimateContractGas.js.map +0 -1
- package/_cjs/actions/public/estimateFeesPerGas.js +0 -62
- package/_cjs/actions/public/estimateFeesPerGas.js.map +0 -1
- package/_cjs/actions/public/estimateGas.js +0 -56
- package/_cjs/actions/public/estimateGas.js.map +0 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +0 -45
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +0 -1
- package/_cjs/actions/public/getBalance.js +0 -14
- package/_cjs/actions/public/getBalance.js.map +0 -1
- package/_cjs/actions/public/getBlock.js +0 -30
- package/_cjs/actions/public/getBlock.js.map +0 -1
- package/_cjs/actions/public/getBlockNumber.js +0 -17
- package/_cjs/actions/public/getBlockNumber.js.map +0 -1
- package/_cjs/actions/public/getBlockTransactionCount.js +0 -24
- package/_cjs/actions/public/getBlockTransactionCount.js.map +0 -1
- package/_cjs/actions/public/getBytecode.js +0 -16
- package/_cjs/actions/public/getBytecode.js.map +0 -1
- package/_cjs/actions/public/getChainId.js +0 -12
- package/_cjs/actions/public/getChainId.js.map +0 -1
- package/_cjs/actions/public/getContractEvents.js +0 -27
- package/_cjs/actions/public/getContractEvents.js.map +0 -1
- package/_cjs/actions/public/getFeeHistory.js +0 -19
- package/_cjs/actions/public/getFeeHistory.js.map +0 -1
- package/_cjs/actions/public/getFilterChanges.js +0 -44
- package/_cjs/actions/public/getFilterChanges.js.map +0 -1
- package/_cjs/actions/public/getFilterLogs.js +0 -42
- package/_cjs/actions/public/getFilterLogs.js.map +0 -1
- package/_cjs/actions/public/getGasPrice.js +0 -11
- package/_cjs/actions/public/getGasPrice.js.map +0 -1
- package/_cjs/actions/public/getLogs.js +0 -73
- package/_cjs/actions/public/getLogs.js.map +0 -1
- package/_cjs/actions/public/getProof.js +0 -16
- package/_cjs/actions/public/getProof.js.map +0 -1
- package/_cjs/actions/public/getStorageAt.js +0 -14
- package/_cjs/actions/public/getStorageAt.js.map +0 -1
- package/_cjs/actions/public/getTransaction.js +0 -41
- package/_cjs/actions/public/getTransaction.js.map +0 -1
- package/_cjs/actions/public/getTransactionConfirmations.js +0 -18
- package/_cjs/actions/public/getTransactionConfirmations.js.map +0 -1
- package/_cjs/actions/public/getTransactionCount.js +0 -14
- package/_cjs/actions/public/getTransactionCount.js.map +0 -1
- package/_cjs/actions/public/getTransactionReceipt.js +0 -18
- package/_cjs/actions/public/getTransactionReceipt.js.map +0 -1
- package/_cjs/actions/public/multicall.js +0 -135
- package/_cjs/actions/public/multicall.js.map +0 -1
- package/_cjs/actions/public/readContract.js +0 -40
- package/_cjs/actions/public/readContract.js.map +0 -1
- package/_cjs/actions/public/simulateContract.js +0 -56
- package/_cjs/actions/public/simulateContract.js.map +0 -1
- package/_cjs/actions/public/uninstallFilter.js +0 -11
- package/_cjs/actions/public/uninstallFilter.js.map +0 -1
- package/_cjs/actions/public/verifyHash.js +0 -32
- package/_cjs/actions/public/verifyHash.js.map +0 -1
- package/_cjs/actions/public/verifyMessage.js +0 -16
- package/_cjs/actions/public/verifyMessage.js.map +0 -1
- package/_cjs/actions/public/verifyTypedData.js +0 -16
- package/_cjs/actions/public/verifyTypedData.js.map +0 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js +0 -119
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +0 -1
- package/_cjs/actions/public/watchBlockNumber.js +0 -78
- package/_cjs/actions/public/watchBlockNumber.js.map +0 -1
- package/_cjs/actions/public/watchBlocks.js +0 -90
- package/_cjs/actions/public/watchBlocks.js.map +0 -1
- package/_cjs/actions/public/watchContractEvent.js +0 -162
- package/_cjs/actions/public/watchContractEvent.js.map +0 -1
- package/_cjs/actions/public/watchEvent.js +0 -161
- package/_cjs/actions/public/watchEvent.js.map +0 -1
- package/_cjs/actions/public/watchPendingTransactions.js +0 -88
- package/_cjs/actions/public/watchPendingTransactions.js.map +0 -1
- package/_cjs/actions/test/dropTransaction.js +0 -11
- package/_cjs/actions/test/dropTransaction.js.map +0 -1
- package/_cjs/actions/test/getAutomine.js +0 -14
- package/_cjs/actions/test/getAutomine.js.map +0 -1
- package/_cjs/actions/test/getTxpoolContent.js +0 -10
- package/_cjs/actions/test/getTxpoolContent.js.map +0 -1
- package/_cjs/actions/test/getTxpoolStatus.js +0 -15
- package/_cjs/actions/test/getTxpoolStatus.js.map +0 -1
- package/_cjs/actions/test/impersonateAccount.js +0 -11
- package/_cjs/actions/test/impersonateAccount.js.map +0 -1
- package/_cjs/actions/test/increaseTime.js +0 -12
- package/_cjs/actions/test/increaseTime.js.map +0 -1
- package/_cjs/actions/test/inspectTxpool.js +0 -10
- package/_cjs/actions/test/inspectTxpool.js.map +0 -1
- package/_cjs/actions/test/mine.js +0 -18
- package/_cjs/actions/test/mine.js.map +0 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js +0 -10
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +0 -1
- package/_cjs/actions/test/reset.js +0 -11
- package/_cjs/actions/test/reset.js.map +0 -1
- package/_cjs/actions/test/revert.js +0 -11
- package/_cjs/actions/test/revert.js.map +0 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js +0 -30
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +0 -1
- package/_cjs/actions/test/setAutomine.js +0 -18
- package/_cjs/actions/test/setAutomine.js.map +0 -1
- package/_cjs/actions/test/setBalance.js +0 -18
- package/_cjs/actions/test/setBalance.js.map +0 -1
- package/_cjs/actions/test/setBlockGasLimit.js +0 -12
- package/_cjs/actions/test/setBlockGasLimit.js.map +0 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js +0 -16
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +0 -1
- package/_cjs/actions/test/setCode.js +0 -11
- package/_cjs/actions/test/setCode.js.map +0 -1
- package/_cjs/actions/test/setCoinbase.js +0 -11
- package/_cjs/actions/test/setCoinbase.js.map +0 -1
- package/_cjs/actions/test/setIntervalMining.js +0 -16
- package/_cjs/actions/test/setIntervalMining.js.map +0 -1
- package/_cjs/actions/test/setLoggingEnabled.js +0 -11
- package/_cjs/actions/test/setLoggingEnabled.js.map +0 -1
- package/_cjs/actions/test/setMinGasPrice.js +0 -12
- package/_cjs/actions/test/setMinGasPrice.js.map +0 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js +0 -12
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +0 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js +0 -12
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +0 -1
- package/_cjs/actions/test/setNonce.js +0 -12
- package/_cjs/actions/test/setNonce.js.map +0 -1
- package/_cjs/actions/test/setRpcUrl.js +0 -11
- package/_cjs/actions/test/setRpcUrl.js.map +0 -1
- package/_cjs/actions/test/setStorageAt.js +0 -16
- package/_cjs/actions/test/setStorageAt.js.map +0 -1
- package/_cjs/actions/test/snapshot.js +0 -10
- package/_cjs/actions/test/snapshot.js.map +0 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js +0 -11
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +0 -1
- package/_cjs/actions/wallet/addChain.js +0 -23
- package/_cjs/actions/wallet/addChain.js.map +0 -1
- package/_cjs/actions/wallet/deployContract.js +0 -15
- package/_cjs/actions/wallet/deployContract.js.map +0 -1
- package/_cjs/actions/wallet/getAddresses.js +0 -12
- package/_cjs/actions/wallet/getAddresses.js.map +0 -1
- package/_cjs/actions/wallet/getPermissions.js +0 -9
- package/_cjs/actions/wallet/getPermissions.js.map +0 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +0 -71
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +0 -1
- package/_cjs/actions/wallet/requestAddresses.js +0 -10
- package/_cjs/actions/wallet/requestAddresses.js.map +0 -1
- package/_cjs/actions/wallet/requestPermissions.js +0 -11
- package/_cjs/actions/wallet/requestPermissions.js.map +0 -1
- package/_cjs/actions/wallet/sendRawTransaction.js +0 -11
- package/_cjs/actions/wallet/sendRawTransaction.js.map +0 -1
- package/_cjs/actions/wallet/sendTransaction.js +0 -87
- package/_cjs/actions/wallet/sendTransaction.js.map +0 -1
- package/_cjs/actions/wallet/signMessage.js +0 -28
- package/_cjs/actions/wallet/signMessage.js.map +0 -1
- package/_cjs/actions/wallet/signTransaction.js +0 -48
- package/_cjs/actions/wallet/signTransaction.js.map +0 -1
- package/_cjs/actions/wallet/signTypedData.js +0 -30
- package/_cjs/actions/wallet/signTypedData.js.map +0 -1
- package/_cjs/actions/wallet/switchChain.js +0 -16
- package/_cjs/actions/wallet/switchChain.js.map +0 -1
- package/_cjs/actions/wallet/watchAsset.js +0 -12
- package/_cjs/actions/wallet/watchAsset.js.map +0 -1
- package/_cjs/actions/wallet/writeContract.js +0 -18
- package/_cjs/actions/wallet/writeContract.js.map +0 -1
- package/_cjs/chains/celo/formatters.js +0 -82
- package/_cjs/chains/celo/formatters.js.map +0 -1
- package/_cjs/chains/celo/parsers.js +0 -131
- package/_cjs/chains/celo/parsers.js.map +0 -1
- package/_cjs/chains/celo/serializers.js +0 -131
- package/_cjs/chains/celo/serializers.js.map +0 -1
- package/_cjs/chains/celo/types.js +0 -3
- package/_cjs/chains/celo/types.js.map +0 -1
- package/_cjs/chains/celo/utils.js +0 -44
- package/_cjs/chains/celo/utils.js.map +0 -1
- package/_cjs/chains/definitions/arbitrum.js +0 -24
- package/_cjs/chains/definitions/arbitrum.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumGoerli.js +0 -30
- package/_cjs/chains/definitions/arbitrumGoerli.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumNova.js +0 -24
- package/_cjs/chains/definitions/arbitrumNova.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +0 -32
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +0 -1
- package/_cjs/chains/definitions/astar.js +0 -29
- package/_cjs/chains/definitions/astar.js.map +0 -1
- package/_cjs/chains/definitions/astarZkatana.js +0 -42
- package/_cjs/chains/definitions/astarZkatana.js.map +0 -1
- package/_cjs/chains/definitions/aurora.js +0 -20
- package/_cjs/chains/definitions/aurora.js.map +0 -1
- package/_cjs/chains/definitions/auroraTestnet.js +0 -21
- package/_cjs/chains/definitions/auroraTestnet.js.map +0 -1
- package/_cjs/chains/definitions/avalanche.js +0 -26
- package/_cjs/chains/definitions/avalanche.js.map +0 -1
- package/_cjs/chains/definitions/avalancheFuji.js +0 -27
- package/_cjs/chains/definitions/avalancheFuji.js.map +0 -1
- package/_cjs/chains/definitions/base.js +0 -29
- package/_cjs/chains/definitions/base.js.map +0 -1
- package/_cjs/chains/definitions/baseGoerli.js +0 -29
- package/_cjs/chains/definitions/baseGoerli.js.map +0 -1
- package/_cjs/chains/definitions/baseSepolia.js +0 -33
- package/_cjs/chains/definitions/baseSepolia.js.map +0 -1
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js +0 -20
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +0 -1
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js +0 -24
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +0 -1
- package/_cjs/chains/definitions/boba.js +0 -26
- package/_cjs/chains/definitions/boba.js.map +0 -1
- package/_cjs/chains/definitions/bronos.js +0 -20
- package/_cjs/chains/definitions/bronos.js.map +0 -1
- package/_cjs/chains/definitions/bronosTestnet.js +0 -21
- package/_cjs/chains/definitions/bronosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/bsc.js +0 -26
- package/_cjs/chains/definitions/bsc.js.map +0 -1
- package/_cjs/chains/definitions/bscTestnet.js +0 -27
- package/_cjs/chains/definitions/bscTestnet.js.map +0 -1
- package/_cjs/chains/definitions/bxn.js +0 -21
- package/_cjs/chains/definitions/bxn.js.map +0 -1
- package/_cjs/chains/definitions/bxnTestnet.js +0 -25
- package/_cjs/chains/definitions/bxnTestnet.js.map +0 -1
- package/_cjs/chains/definitions/canto.js +0 -29
- package/_cjs/chains/definitions/canto.js.map +0 -1
- package/_cjs/chains/definitions/celo.js +0 -34
- package/_cjs/chains/definitions/celo.js.map +0 -1
- package/_cjs/chains/definitions/celoAlfajores.js +0 -36
- package/_cjs/chains/definitions/celoAlfajores.js.map +0 -1
- package/_cjs/chains/definitions/celoCannoli.js +0 -36
- package/_cjs/chains/definitions/celoCannoli.js.map +0 -1
- package/_cjs/chains/definitions/classic.js +0 -23
- package/_cjs/chains/definitions/classic.js.map +0 -1
- package/_cjs/chains/definitions/confluxESpace.js +0 -27
- package/_cjs/chains/definitions/confluxESpace.js.map +0 -1
- package/_cjs/chains/definitions/coreDao.js +0 -27
- package/_cjs/chains/definitions/coreDao.js.map +0 -1
- package/_cjs/chains/definitions/cronos.js +0 -26
- package/_cjs/chains/definitions/cronos.js.map +0 -1
- package/_cjs/chains/definitions/cronosTestnet.js +0 -30
- package/_cjs/chains/definitions/cronosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/crossbell.js +0 -28
- package/_cjs/chains/definitions/crossbell.js.map +0 -1
- package/_cjs/chains/definitions/dfk.js +0 -25
- package/_cjs/chains/definitions/dfk.js.map +0 -1
- package/_cjs/chains/definitions/dogechain.js +0 -23
- package/_cjs/chains/definitions/dogechain.js.map +0 -1
- package/_cjs/chains/definitions/edgeware.js +0 -26
- package/_cjs/chains/definitions/edgeware.js.map +0 -1
- package/_cjs/chains/definitions/edgewareTestnet.js +0 -23
- package/_cjs/chains/definitions/edgewareTestnet.js.map +0 -1
- package/_cjs/chains/definitions/ekta.js +0 -20
- package/_cjs/chains/definitions/ekta.js.map +0 -1
- package/_cjs/chains/definitions/ektaTestnet.js +0 -21
- package/_cjs/chains/definitions/ektaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/eon.js +0 -24
- package/_cjs/chains/definitions/eon.js.map +0 -1
- package/_cjs/chains/definitions/eos.js +0 -29
- package/_cjs/chains/definitions/eos.js.map +0 -1
- package/_cjs/chains/definitions/eosTestnet.js +0 -30
- package/_cjs/chains/definitions/eosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/evmos.js +0 -20
- package/_cjs/chains/definitions/evmos.js.map +0 -1
- package/_cjs/chains/definitions/evmosTestnet.js +0 -23
- package/_cjs/chains/definitions/evmosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/fantom.js +0 -26
- package/_cjs/chains/definitions/fantom.js.map +0 -1
- package/_cjs/chains/definitions/fantomTestnet.js +0 -26
- package/_cjs/chains/definitions/fantomTestnet.js.map +0 -1
- package/_cjs/chains/definitions/fibo.js +0 -20
- package/_cjs/chains/definitions/fibo.js.map +0 -1
- package/_cjs/chains/definitions/filecoin.js +0 -20
- package/_cjs/chains/definitions/filecoin.js.map +0 -1
- package/_cjs/chains/definitions/filecoinCalibration.js +0 -20
- package/_cjs/chains/definitions/filecoinCalibration.js.map +0 -1
- package/_cjs/chains/definitions/filecoinHyperspace.js +0 -20
- package/_cjs/chains/definitions/filecoinHyperspace.js.map +0 -1
- package/_cjs/chains/definitions/flare.js +0 -23
- package/_cjs/chains/definitions/flare.js.map +0 -1
- package/_cjs/chains/definitions/flareTestnet.js +0 -24
- package/_cjs/chains/definitions/flareTestnet.js.map +0 -1
- package/_cjs/chains/definitions/foundry.js +0 -20
- package/_cjs/chains/definitions/foundry.js.map +0 -1
- package/_cjs/chains/definitions/fuse.js +0 -22
- package/_cjs/chains/definitions/fuse.js.map +0 -1
- package/_cjs/chains/definitions/fuseSparknet.js +0 -19
- package/_cjs/chains/definitions/fuseSparknet.js.map +0 -1
- package/_cjs/chains/definitions/gnosis.js +0 -32
- package/_cjs/chains/definitions/gnosis.js.map +0 -1
- package/_cjs/chains/definitions/gnosisChiado.js +0 -33
- package/_cjs/chains/definitions/gnosisChiado.js.map +0 -1
- package/_cjs/chains/definitions/gobi.js +0 -22
- package/_cjs/chains/definitions/gobi.js.map +0 -1
- package/_cjs/chains/definitions/goerli.js +0 -35
- package/_cjs/chains/definitions/goerli.js.map +0 -1
- package/_cjs/chains/definitions/haqqMainnet.js +0 -25
- package/_cjs/chains/definitions/haqqMainnet.js.map +0 -1
- package/_cjs/chains/definitions/haqqTestedge2.js +0 -25
- package/_cjs/chains/definitions/haqqTestedge2.js.map +0 -1
- package/_cjs/chains/definitions/hardhat.js +0 -17
- package/_cjs/chains/definitions/hardhat.js.map +0 -1
- package/_cjs/chains/definitions/harmonyOne.js +0 -26
- package/_cjs/chains/definitions/harmonyOne.js.map +0 -1
- package/_cjs/chains/definitions/holesky.js +0 -22
- package/_cjs/chains/definitions/holesky.js.map +0 -1
- package/_cjs/chains/definitions/iotex.js +0 -23
- package/_cjs/chains/definitions/iotex.js.map +0 -1
- package/_cjs/chains/definitions/iotexTestnet.js +0 -23
- package/_cjs/chains/definitions/iotexTestnet.js.map +0 -1
- package/_cjs/chains/definitions/kava.js +0 -29
- package/_cjs/chains/definitions/kava.js.map +0 -1
- package/_cjs/chains/definitions/kavaTestnet.js +0 -32
- package/_cjs/chains/definitions/kavaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/klaytn.js +0 -20
- package/_cjs/chains/definitions/klaytn.js.map +0 -1
- package/_cjs/chains/definitions/kroma.js +0 -22
- package/_cjs/chains/definitions/kroma.js.map +0 -1
- package/_cjs/chains/definitions/kromaSepolia.js +0 -22
- package/_cjs/chains/definitions/kromaSepolia.js.map +0 -1
- package/_cjs/chains/definitions/linea.js +0 -29
- package/_cjs/chains/definitions/linea.js.map +0 -1
- package/_cjs/chains/definitions/lineaTestnet.js +0 -29
- package/_cjs/chains/definitions/lineaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/localhost.js +0 -17
- package/_cjs/chains/definitions/localhost.js.map +0 -1
- package/_cjs/chains/definitions/mainnet.js +0 -34
- package/_cjs/chains/definitions/mainnet.js.map +0 -1
- package/_cjs/chains/definitions/manta.js +0 -35
- package/_cjs/chains/definitions/manta.js.map +0 -1
- package/_cjs/chains/definitions/mantaTestnet.js +0 -36
- package/_cjs/chains/definitions/mantaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/mantle.js +0 -29
- package/_cjs/chains/definitions/mantle.js.map +0 -1
- package/_cjs/chains/definitions/mantleTestnet.js +0 -24
- package/_cjs/chains/definitions/mantleTestnet.js.map +0 -1
- package/_cjs/chains/definitions/meter.js +0 -20
- package/_cjs/chains/definitions/meter.js.map +0 -1
- package/_cjs/chains/definitions/meterTestnet.js +0 -23
- package/_cjs/chains/definitions/meterTestnet.js.map +0 -1
- package/_cjs/chains/definitions/metis.js +0 -29
- package/_cjs/chains/definitions/metis.js.map +0 -1
- package/_cjs/chains/definitions/metisGoerli.js +0 -29
- package/_cjs/chains/definitions/metisGoerli.js.map +0 -1
- package/_cjs/chains/definitions/mev.js +0 -31
- package/_cjs/chains/definitions/mev.js.map +0 -1
- package/_cjs/chains/definitions/mevTestnet.js +0 -32
- package/_cjs/chains/definitions/mevTestnet.js.map +0 -1
- package/_cjs/chains/definitions/modeTestnet.js +0 -28
- package/_cjs/chains/definitions/modeTestnet.js.map +0 -1
- package/_cjs/chains/definitions/moonbaseAlpha.js +0 -33
- package/_cjs/chains/definitions/moonbaseAlpha.js.map +0 -1
- package/_cjs/chains/definitions/moonbeam.js +0 -33
- package/_cjs/chains/definitions/moonbeam.js.map +0 -1
- package/_cjs/chains/definitions/moonbeamDev.js +0 -20
- package/_cjs/chains/definitions/moonbeamDev.js.map +0 -1
- package/_cjs/chains/definitions/moonriver.js +0 -33
- package/_cjs/chains/definitions/moonriver.js.map +0 -1
- package/_cjs/chains/definitions/neonDevnet.js +0 -28
- package/_cjs/chains/definitions/neonDevnet.js.map +0 -1
- package/_cjs/chains/definitions/neonMainnet.js +0 -27
- package/_cjs/chains/definitions/neonMainnet.js.map +0 -1
- package/_cjs/chains/definitions/nexi.js +0 -27
- package/_cjs/chains/definitions/nexi.js.map +0 -1
- package/_cjs/chains/definitions/nexilix.js +0 -26
- package/_cjs/chains/definitions/nexilix.js.map +0 -1
- package/_cjs/chains/definitions/oasys.js +0 -21
- package/_cjs/chains/definitions/oasys.js.map +0 -1
- package/_cjs/chains/definitions/okc.js +0 -26
- package/_cjs/chains/definitions/okc.js.map +0 -1
- package/_cjs/chains/definitions/opBNB.js +0 -26
- package/_cjs/chains/definitions/opBNB.js.map +0 -1
- package/_cjs/chains/definitions/opBNBTestnet.js +0 -27
- package/_cjs/chains/definitions/opBNBTestnet.js.map +0 -1
- package/_cjs/chains/definitions/optimism.js +0 -29
- package/_cjs/chains/definitions/optimism.js.map +0 -1
- package/_cjs/chains/definitions/optimismGoerli.js +0 -30
- package/_cjs/chains/definitions/optimismGoerli.js.map +0 -1
- package/_cjs/chains/definitions/optimismSepolia.js +0 -30
- package/_cjs/chains/definitions/optimismSepolia.js.map +0 -1
- package/_cjs/chains/definitions/plinga.js +0 -27
- package/_cjs/chains/definitions/plinga.js.map +0 -1
- package/_cjs/chains/definitions/polygon.js +0 -27
- package/_cjs/chains/definitions/polygon.js.map +0 -1
- package/_cjs/chains/definitions/polygonMumbai.js +0 -28
- package/_cjs/chains/definitions/polygonMumbai.js.map +0 -1
- package/_cjs/chains/definitions/polygonZkEvm.js +0 -27
- package/_cjs/chains/definitions/polygonZkEvm.js.map +0 -1
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js +0 -28
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +0 -1
- package/_cjs/chains/definitions/pulsechain.js +0 -32
- package/_cjs/chains/definitions/pulsechain.js.map +0 -1
- package/_cjs/chains/definitions/pulsechainV4.js +0 -32
- package/_cjs/chains/definitions/pulsechainV4.js.map +0 -1
- package/_cjs/chains/definitions/qMainnet.js +0 -23
- package/_cjs/chains/definitions/qMainnet.js.map +0 -1
- package/_cjs/chains/definitions/qTestnet.js +0 -24
- package/_cjs/chains/definitions/qTestnet.js.map +0 -1
- package/_cjs/chains/definitions/rollux.js +0 -29
- package/_cjs/chains/definitions/rollux.js.map +0 -1
- package/_cjs/chains/definitions/rolluxTestnet.js +0 -32
- package/_cjs/chains/definitions/rolluxTestnet.js.map +0 -1
- package/_cjs/chains/definitions/ronin.js +0 -24
- package/_cjs/chains/definitions/ronin.js.map +0 -1
- package/_cjs/chains/definitions/saigon.js +0 -28
- package/_cjs/chains/definitions/saigon.js.map +0 -1
- package/_cjs/chains/definitions/scroll.js +0 -29
- package/_cjs/chains/definitions/scroll.js.map +0 -1
- package/_cjs/chains/definitions/scrollSepolia.js +0 -28
- package/_cjs/chains/definitions/scrollSepolia.js.map +0 -1
- package/_cjs/chains/definitions/scrollTestnet.js +0 -23
- package/_cjs/chains/definitions/scrollTestnet.js.map +0 -1
- package/_cjs/chains/definitions/sepolia.js +0 -33
- package/_cjs/chains/definitions/sepolia.js.map +0 -1
- package/_cjs/chains/definitions/shardeumSphinx.js +0 -22
- package/_cjs/chains/definitions/shardeumSphinx.js.map +0 -1
- package/_cjs/chains/definitions/skale/brawl.js +0 -23
- package/_cjs/chains/definitions/skale/brawl.js.map +0 -1
- package/_cjs/chains/definitions/skale/calypso.js +0 -30
- package/_cjs/chains/definitions/skale/calypso.js.map +0 -1
- package/_cjs/chains/definitions/skale/calypsoTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/chaosTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/chaosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/cryptoBlades.js +0 -25
- package/_cjs/chains/definitions/skale/cryptoBlades.js.map +0 -1
- package/_cjs/chains/definitions/skale/cryptoColosseum.js +0 -23
- package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +0 -1
- package/_cjs/chains/definitions/skale/europa.js +0 -28
- package/_cjs/chains/definitions/skale/europa.js.map +0 -1
- package/_cjs/chains/definitions/skale/europaTestnet.js +0 -31
- package/_cjs/chains/definitions/skale/europaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/exorde.js +0 -23
- package/_cjs/chains/definitions/skale/exorde.js.map +0 -1
- package/_cjs/chains/definitions/skale/humanProtocol.js +0 -23
- package/_cjs/chains/definitions/skale/humanProtocol.js.map +0 -1
- package/_cjs/chains/definitions/skale/nebula.js +0 -28
- package/_cjs/chains/definitions/skale/nebula.js.map +0 -1
- package/_cjs/chains/definitions/skale/nebulaTestnet.js +0 -31
- package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/razor.js +0 -23
- package/_cjs/chains/definitions/skale/razor.js.map +0 -1
- package/_cjs/chains/definitions/skale/titan.js +0 -28
- package/_cjs/chains/definitions/skale/titan.js.map +0 -1
- package/_cjs/chains/definitions/skale/titanTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/titanTestnet.js.map +0 -1
- package/_cjs/chains/definitions/songbird.js +0 -23
- package/_cjs/chains/definitions/songbird.js.map +0 -1
- package/_cjs/chains/definitions/songbirdTestnet.js +0 -24
- package/_cjs/chains/definitions/songbirdTestnet.js.map +0 -1
- package/_cjs/chains/definitions/syscoin.js +0 -29
- package/_cjs/chains/definitions/syscoin.js.map +0 -1
- package/_cjs/chains/definitions/syscoinTestnet.js +0 -29
- package/_cjs/chains/definitions/syscoinTestnet.js.map +0 -1
- package/_cjs/chains/definitions/taikoJolnir.js +0 -21
- package/_cjs/chains/definitions/taikoJolnir.js.map +0 -1
- package/_cjs/chains/definitions/taikoTestnetSepolia.js +0 -21
- package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +0 -1
- package/_cjs/chains/definitions/taraxa.js +0 -21
- package/_cjs/chains/definitions/taraxa.js.map +0 -1
- package/_cjs/chains/definitions/taraxaTestnet.js +0 -22
- package/_cjs/chains/definitions/taraxaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/telos.js +0 -29
- package/_cjs/chains/definitions/telos.js.map +0 -1
- package/_cjs/chains/definitions/telosTestnet.js +0 -24
- package/_cjs/chains/definitions/telosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/tenet.js +0 -23
- package/_cjs/chains/definitions/tenet.js.map +0 -1
- package/_cjs/chains/definitions/thunderTestnet.js +0 -22
- package/_cjs/chains/definitions/thunderTestnet.js.map +0 -1
- package/_cjs/chains/definitions/vechain.js +0 -25
- package/_cjs/chains/definitions/vechain.js.map +0 -1
- package/_cjs/chains/definitions/wanchain.js +0 -30
- package/_cjs/chains/definitions/wanchain.js.map +0 -1
- package/_cjs/chains/definitions/wanchainTestnet.js +0 -28
- package/_cjs/chains/definitions/wanchainTestnet.js.map +0 -1
- package/_cjs/chains/definitions/xdc.js +0 -21
- package/_cjs/chains/definitions/xdc.js.map +0 -1
- package/_cjs/chains/definitions/xdcTestnet.js +0 -21
- package/_cjs/chains/definitions/xdcTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zetachainAthensTestnet.js +0 -26
- package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zhejiang.js +0 -22
- package/_cjs/chains/definitions/zhejiang.js.map +0 -1
- package/_cjs/chains/definitions/zkSync.js +0 -36
- package/_cjs/chains/definitions/zkSync.js.map +0 -1
- package/_cjs/chains/definitions/zkSyncTestnet.js +0 -33
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zora.js +0 -31
- package/_cjs/chains/definitions/zora.js.map +0 -1
- package/_cjs/chains/definitions/zoraSepolia.js +0 -40
- package/_cjs/chains/definitions/zoraSepolia.js.map +0 -1
- package/_cjs/chains/definitions/zoraTestnet.js +0 -35
- package/_cjs/chains/definitions/zoraTestnet.js.map +0 -1
- package/_cjs/chains/index.js +0 -319
- package/_cjs/chains/index.js.map +0 -1
- package/_cjs/chains/optimism/formatters.js +0 -54
- package/_cjs/chains/optimism/formatters.js.map +0 -1
- package/_cjs/chains/optimism/types.js +0 -3
- package/_cjs/chains/optimism/types.js.map +0 -1
- package/_cjs/chains/utils.js +0 -23
- package/_cjs/chains/utils.js.map +0 -1
- package/_cjs/chains/zksync/formatters.js +0 -128
- package/_cjs/chains/zksync/formatters.js.map +0 -1
- package/_cjs/chains/zksync/serializers.js +0 -74
- package/_cjs/chains/zksync/serializers.js.map +0 -1
- package/_cjs/chains/zksync/types.js +0 -3
- package/_cjs/chains/zksync/types.js.map +0 -1
- package/_cjs/clients/createClient.js +0 -42
- package/_cjs/clients/createClient.js.map +0 -1
- package/_cjs/clients/createPublicClient.js +0 -17
- package/_cjs/clients/createPublicClient.js.map +0 -1
- package/_cjs/clients/createTestClient.js +0 -20
- package/_cjs/clients/createTestClient.js.map +0 -1
- package/_cjs/clients/createWalletClient.js +0 -18
- package/_cjs/clients/createWalletClient.js.map +0 -1
- package/_cjs/clients/decorators/public.js +0 -101
- package/_cjs/clients/decorators/public.js.map +0 -1
- package/_cjs/clients/decorators/test.js +0 -70
- package/_cjs/clients/decorators/test.js.map +0 -1
- package/_cjs/clients/decorators/wallet.js +0 -41
- package/_cjs/clients/decorators/wallet.js.map +0 -1
- package/_cjs/clients/transports/createTransport.js +0 -13
- package/_cjs/clients/transports/createTransport.js.map +0 -1
- package/_cjs/clients/transports/custom.js +0 -17
- package/_cjs/clients/transports/custom.js.map +0 -1
- package/_cjs/clients/transports/fallback.js +0 -122
- package/_cjs/clients/transports/fallback.js.map +0 -1
- package/_cjs/clients/transports/http.js +0 -59
- package/_cjs/clients/transports/http.js.map +0 -1
- package/_cjs/clients/transports/webSocket.js +0 -81
- package/_cjs/clients/transports/webSocket.js.map +0 -1
- package/_cjs/constants/abis.js +0 -1350
- package/_cjs/constants/abis.js.map +0 -1
- package/_cjs/constants/address.js +0 -5
- package/_cjs/constants/address.js.map +0 -1
- package/_cjs/constants/contract.js +0 -5
- package/_cjs/constants/contract.js.map +0 -1
- package/_cjs/constants/contracts.js +0 -5
- package/_cjs/constants/contracts.js.map +0 -1
- package/_cjs/constants/number.js +0 -101
- package/_cjs/constants/number.js.map +0 -1
- package/_cjs/constants/solidity.js +0 -35
- package/_cjs/constants/solidity.js.map +0 -1
- package/_cjs/constants/unit.js +0 -16
- package/_cjs/constants/unit.js.map +0 -1
- package/_cjs/ens/index.js +0 -20
- package/_cjs/ens/index.js.map +0 -1
- package/_cjs/errors/abi.js +0 -461
- package/_cjs/errors/abi.js.map +0 -1
- package/_cjs/errors/account.js +0 -23
- package/_cjs/errors/account.js.map +0 -1
- package/_cjs/errors/address.js +0 -17
- package/_cjs/errors/address.js.map +0 -1
- package/_cjs/errors/base.js +0 -83
- package/_cjs/errors/base.js.map +0 -1
- package/_cjs/errors/block.js +0 -22
- package/_cjs/errors/block.js.map +0 -1
- package/_cjs/errors/ccip.js +0 -69
- package/_cjs/errors/ccip.js.map +0 -1
- package/_cjs/errors/chain.js +0 -86
- package/_cjs/errors/chain.js.map +0 -1
- package/_cjs/errors/contract.js +0 -286
- package/_cjs/errors/contract.js.map +0 -1
- package/_cjs/errors/cursor.js +0 -29
- package/_cjs/errors/cursor.js.map +0 -1
- package/_cjs/errors/data.js +0 -31
- package/_cjs/errors/data.js.map +0 -1
- package/_cjs/errors/encoding.js +0 -65
- package/_cjs/errors/encoding.js.map +0 -1
- package/_cjs/errors/ens.js +0 -59
- package/_cjs/errors/ens.js.map +0 -1
- package/_cjs/errors/estimateGas.js +0 -49
- package/_cjs/errors/estimateGas.js.map +0 -1
- package/_cjs/errors/fee.js +0 -42
- package/_cjs/errors/fee.js.map +0 -1
- package/_cjs/errors/log.js +0 -17
- package/_cjs/errors/log.js.map +0 -1
- package/_cjs/errors/node.js +0 -262
- package/_cjs/errors/node.js.map +0 -1
- package/_cjs/errors/request.js +0 -107
- package/_cjs/errors/request.js.map +0 -1
- package/_cjs/errors/rpc.js +0 -448
- package/_cjs/errors/rpc.js.map +0 -1
- package/_cjs/errors/transaction.js +0 -225
- package/_cjs/errors/transaction.js.map +0 -1
- package/_cjs/errors/transport.js +0 -13
- package/_cjs/errors/transport.js.map +0 -1
- package/_cjs/index.js +0 -482
- package/_cjs/index.js.map +0 -1
- package/_cjs/types/account.js +0 -3
- package/_cjs/types/account.js.map +0 -1
- package/_cjs/types/block.js +0 -3
- package/_cjs/types/block.js.map +0 -1
- package/_cjs/types/chain.js +0 -3
- package/_cjs/types/chain.js.map +0 -1
- package/_cjs/types/contract.js +0 -3
- package/_cjs/types/contract.js.map +0 -1
- package/_cjs/types/eip1193.js +0 -24
- package/_cjs/types/eip1193.js.map +0 -1
- package/_cjs/types/ens.js +0 -3
- package/_cjs/types/ens.js.map +0 -1
- package/_cjs/types/fee.js +0 -3
- package/_cjs/types/fee.js.map +0 -1
- package/_cjs/types/filter.js +0 -3
- package/_cjs/types/filter.js.map +0 -1
- package/_cjs/types/log.js +0 -3
- package/_cjs/types/log.js.map +0 -1
- package/_cjs/types/misc.js +0 -3
- package/_cjs/types/misc.js.map +0 -1
- package/_cjs/types/multicall.js +0 -3
- package/_cjs/types/multicall.js.map +0 -1
- package/_cjs/types/proof.js +0 -3
- package/_cjs/types/proof.js.map +0 -1
- package/_cjs/types/rpc.js +0 -3
- package/_cjs/types/rpc.js.map +0 -1
- package/_cjs/types/transaction.js +0 -3
- package/_cjs/types/transaction.js.map +0 -1
- package/_cjs/types/transport.js +0 -3
- package/_cjs/types/transport.js.map +0 -1
- package/_cjs/types/typedData.js +0 -3
- package/_cjs/types/typedData.js.map +0 -1
- package/_cjs/types/utils.js +0 -3
- package/_cjs/types/utils.js.map +0 -1
- package/_cjs/types/window.js +0 -3
- package/_cjs/types/window.js.map +0 -1
- package/_cjs/types/withdrawal.js +0 -3
- package/_cjs/types/withdrawal.js.map +0 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +0 -210
- package/_cjs/utils/abi/decodeAbiParameters.js.map +0 -1
- package/_cjs/utils/abi/decodeDeployData.js +0 -22
- package/_cjs/utils/abi/decodeDeployData.js.map +0 -1
- package/_cjs/utils/abi/decodeErrorResult.js +0 -30
- package/_cjs/utils/abi/decodeErrorResult.js.map +0 -1
- package/_cjs/utils/abi/decodeEventLog.js +0 -85
- package/_cjs/utils/abi/decodeEventLog.js.map +0 -1
- package/_cjs/utils/abi/decodeFunctionData.js +0 -28
- package/_cjs/utils/abi/decodeFunctionData.js.map +0 -1
- package/_cjs/utils/abi/decodeFunctionResult.js +0 -29
- package/_cjs/utils/abi/decodeFunctionResult.js.map +0 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +0 -211
- package/_cjs/utils/abi/encodeAbiParameters.js.map +0 -1
- package/_cjs/utils/abi/encodeDeployData.js +0 -23
- package/_cjs/utils/abi/encodeDeployData.js.map +0 -1
- package/_cjs/utils/abi/encodeErrorResult.js +0 -33
- package/_cjs/utils/abi/encodeErrorResult.js.map +0 -1
- package/_cjs/utils/abi/encodeEventTopics.js +0 -53
- package/_cjs/utils/abi/encodeEventTopics.js.map +0 -1
- package/_cjs/utils/abi/encodeFunctionData.js +0 -34
- package/_cjs/utils/abi/encodeFunctionData.js.map +0 -1
- package/_cjs/utils/abi/encodeFunctionResult.js +0 -27
- package/_cjs/utils/abi/encodeFunctionResult.js.map +0 -1
- package/_cjs/utils/abi/encodePacked.js +0 -73
- package/_cjs/utils/abi/encodePacked.js.map +0 -1
- package/_cjs/utils/abi/formatAbiItem.js +0 -27
- package/_cjs/utils/abi/formatAbiItem.js.map +0 -1
- package/_cjs/utils/abi/formatAbiItemWithArgs.js +0 -17
- package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +0 -1
- package/_cjs/utils/abi/getAbiItem.js +0 -84
- package/_cjs/utils/abi/getAbiItem.js.map +0 -1
- package/_cjs/utils/accounts.js +0 -8
- package/_cjs/utils/accounts.js.map +0 -1
- package/_cjs/utils/address/getAddress.js +0 -31
- package/_cjs/utils/address/getAddress.js.map +0 -1
- package/_cjs/utils/address/getContractAddress.js +0 -42
- package/_cjs/utils/address/getContractAddress.js.map +0 -1
- package/_cjs/utils/address/isAddress.js +0 -9
- package/_cjs/utils/address/isAddress.js.map +0 -1
- package/_cjs/utils/address/isAddressEqual.js +0 -14
- package/_cjs/utils/address/isAddressEqual.js.map +0 -1
- package/_cjs/utils/buildRequest.js +0 -93
- package/_cjs/utils/buildRequest.js.map +0 -1
- package/_cjs/utils/ccip.js +0 -121
- package/_cjs/utils/ccip.js.map +0 -1
- package/_cjs/utils/chain/assertCurrentChain.js +0 -12
- package/_cjs/utils/chain/assertCurrentChain.js.map +0 -1
- package/_cjs/utils/chain/defineChain.js +0 -13
- package/_cjs/utils/chain/defineChain.js.map +0 -1
- package/_cjs/utils/chain/extractChain.js +0 -8
- package/_cjs/utils/chain/extractChain.js.map +0 -1
- package/_cjs/utils/chain/getChainContractAddress.js +0 -26
- package/_cjs/utils/chain/getChainContractAddress.js.map +0 -1
- package/_cjs/utils/cursor.js +0 -134
- package/_cjs/utils/cursor.js.map +0 -1
- package/_cjs/utils/data/concat.js +0 -28
- package/_cjs/utils/data/concat.js.map +0 -1
- package/_cjs/utils/data/isBytes.js +0 -14
- package/_cjs/utils/data/isBytes.js.map +0 -1
- package/_cjs/utils/data/isBytesEqual.js +0 -13
- package/_cjs/utils/data/isBytesEqual.js.map +0 -1
- package/_cjs/utils/data/isHex.js +0 -12
- package/_cjs/utils/data/isHex.js.map +0 -1
- package/_cjs/utils/data/pad.js +0 -42
- package/_cjs/utils/data/pad.js.map +0 -1
- package/_cjs/utils/data/size.js +0 -11
- package/_cjs/utils/data/size.js.map +0 -1
- package/_cjs/utils/data/slice.js +0 -54
- package/_cjs/utils/data/slice.js.map +0 -1
- package/_cjs/utils/data/trim.js +0 -25
- package/_cjs/utils/data/trim.js.map +0 -1
- package/_cjs/utils/encoding/fromBytes.js +0 -56
- package/_cjs/utils/encoding/fromBytes.js.map +0 -1
- package/_cjs/utils/encoding/fromHex.js +0 -70
- package/_cjs/utils/encoding/fromHex.js.map +0 -1
- package/_cjs/utils/encoding/fromRlp.js +0 -67
- package/_cjs/utils/encoding/fromRlp.js.map +0 -1
- package/_cjs/utils/encoding/toBytes.js +0 -83
- package/_cjs/utils/encoding/toBytes.js.map +0 -1
- package/_cjs/utils/encoding/toHex.js +0 -79
- package/_cjs/utils/encoding/toHex.js.map +0 -1
- package/_cjs/utils/encoding/toRlp.js +0 -105
- package/_cjs/utils/encoding/toRlp.js.map +0 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js +0 -34
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +0 -1
- package/_cjs/utils/ens/avatar/utils.js +0 -186
- package/_cjs/utils/ens/avatar/utils.js.map +0 -1
- package/_cjs/utils/ens/encodeLabelhash.js +0 -8
- package/_cjs/utils/ens/encodeLabelhash.js.map +0 -1
- package/_cjs/utils/ens/encodedLabelToLabelhash.js +0 -18
- package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +0 -1
- package/_cjs/utils/ens/errors.js +0 -24
- package/_cjs/utils/ens/errors.js.map +0 -1
- package/_cjs/utils/ens/labelhash.js +0 -15
- package/_cjs/utils/ens/labelhash.js.map +0 -1
- package/_cjs/utils/ens/namehash.js +0 -24
- package/_cjs/utils/ens/namehash.js.map +0 -1
- package/_cjs/utils/ens/normalize.js +0 -9
- package/_cjs/utils/ens/normalize.js.map +0 -1
- package/_cjs/utils/ens/packetToBytes.js +0 -27
- package/_cjs/utils/ens/packetToBytes.js.map +0 -1
- package/_cjs/utils/errors/getCallError.js +0 -20
- package/_cjs/utils/errors/getCallError.js.map +0 -1
- package/_cjs/utils/errors/getContractError.js +0 -39
- package/_cjs/utils/errors/getContractError.js.map +0 -1
- package/_cjs/utils/errors/getEstimateGasError.js +0 -20
- package/_cjs/utils/errors/getEstimateGasError.js.map +0 -1
- package/_cjs/utils/errors/getNodeError.js +0 -65
- package/_cjs/utils/errors/getNodeError.js.map +0 -1
- package/_cjs/utils/errors/getTransactionError.js +0 -20
- package/_cjs/utils/errors/getTransactionError.js.map +0 -1
- package/_cjs/utils/filters/createFilterRequestScope.js +0 -14
- package/_cjs/utils/filters/createFilterRequestScope.js.map +0 -1
- package/_cjs/utils/formatters/block.js +0 -32
- package/_cjs/utils/formatters/block.js.map +0 -1
- package/_cjs/utils/formatters/extract.js +0 -24
- package/_cjs/utils/formatters/extract.js.map +0 -1
- package/_cjs/utils/formatters/feeHistory.js +0 -13
- package/_cjs/utils/formatters/feeHistory.js.map +0 -1
- package/_cjs/utils/formatters/formatter.js +0 -25
- package/_cjs/utils/formatters/formatter.js.map +0 -1
- package/_cjs/utils/formatters/log.js +0 -18
- package/_cjs/utils/formatters/log.js.map +0 -1
- package/_cjs/utils/formatters/proof.js +0 -22
- package/_cjs/utils/formatters/proof.js.map +0 -1
- package/_cjs/utils/formatters/transaction.js +0 -50
- package/_cjs/utils/formatters/transaction.js.map +0 -1
- package/_cjs/utils/formatters/transactionReceipt.js +0 -47
- package/_cjs/utils/formatters/transactionReceipt.js.map +0 -1
- package/_cjs/utils/formatters/transactionRequest.js +0 -39
- package/_cjs/utils/formatters/transactionRequest.js.map +0 -1
- package/_cjs/utils/getAction.js +0 -8
- package/_cjs/utils/getAction.js.map +0 -1
- package/_cjs/utils/hash/getEventSelector.js +0 -10
- package/_cjs/utils/hash/getEventSelector.js.map +0 -1
- package/_cjs/utils/hash/getEventSignature.js +0 -9
- package/_cjs/utils/hash/getEventSignature.js.map +0 -1
- package/_cjs/utils/hash/getFunctionSelector.js +0 -11
- package/_cjs/utils/hash/getFunctionSelector.js.map +0 -1
- package/_cjs/utils/hash/getFunctionSignature.js +0 -15
- package/_cjs/utils/hash/getFunctionSignature.js.map +0 -1
- package/_cjs/utils/hash/hashFunction.js +0 -17
- package/_cjs/utils/hash/hashFunction.js.map +0 -1
- package/_cjs/utils/hash/isHash.js +0 -10
- package/_cjs/utils/hash/isHash.js.map +0 -1
- package/_cjs/utils/hash/keccak256.js +0 -16
- package/_cjs/utils/hash/keccak256.js.map +0 -1
- package/_cjs/utils/hash/normalizeSignature.js +0 -48
- package/_cjs/utils/hash/normalizeSignature.js.map +0 -1
- package/_cjs/utils/index.js +0 -213
- package/_cjs/utils/index.js.map +0 -1
- package/_cjs/utils/observe.js +0 -42
- package/_cjs/utils/observe.js.map +0 -1
- package/_cjs/utils/poll.js +0 -27
- package/_cjs/utils/poll.js.map +0 -1
- package/_cjs/utils/promise/createBatchScheduler.js +0 -49
- package/_cjs/utils/promise/createBatchScheduler.js.map +0 -1
- package/_cjs/utils/promise/withCache.js +0 -47
- package/_cjs/utils/promise/withCache.js.map +0 -1
- package/_cjs/utils/promise/withRetry.js +0 -29
- package/_cjs/utils/promise/withRetry.js.map +0 -1
- package/_cjs/utils/promise/withTimeout.js +0 -35
- package/_cjs/utils/promise/withTimeout.js.map +0 -1
- package/_cjs/utils/regex.js +0 -7
- package/_cjs/utils/regex.js.map +0 -1
- package/_cjs/utils/rpc.js +0 -154
- package/_cjs/utils/rpc.js.map +0 -1
- package/_cjs/utils/signature/compactSignatureToHex.js +0 -10
- package/_cjs/utils/signature/compactSignatureToHex.js.map +0 -1
- package/_cjs/utils/signature/compactSignatureToSignature.js +0 -15
- package/_cjs/utils/signature/compactSignatureToSignature.js.map +0 -1
- package/_cjs/utils/signature/hashMessage.js +0 -19
- package/_cjs/utils/signature/hashMessage.js.map +0 -1
- package/_cjs/utils/signature/hashTypedData.js +0 -124
- package/_cjs/utils/signature/hashTypedData.js.map +0 -1
- package/_cjs/utils/signature/hexToCompactSignature.js +0 -14
- package/_cjs/utils/signature/hexToCompactSignature.js.map +0 -1
- package/_cjs/utils/signature/hexToSignature.js +0 -12
- package/_cjs/utils/signature/hexToSignature.js.map +0 -1
- package/_cjs/utils/signature/recoverAddress.js +0 -10
- package/_cjs/utils/signature/recoverAddress.js.map +0 -1
- package/_cjs/utils/signature/recoverMessageAddress.js +0 -10
- package/_cjs/utils/signature/recoverMessageAddress.js.map +0 -1
- package/_cjs/utils/signature/recoverPublicKey.js +0 -21
- package/_cjs/utils/signature/recoverPublicKey.js.map +0 -1
- package/_cjs/utils/signature/recoverTypedDataAddress.js +0 -19
- package/_cjs/utils/signature/recoverTypedDataAddress.js.map +0 -1
- package/_cjs/utils/signature/signatureToCompactSignature.js +0 -17
- package/_cjs/utils/signature/signatureToCompactSignature.js.map +0 -1
- package/_cjs/utils/signature/signatureToHex.js +0 -11
- package/_cjs/utils/signature/signatureToHex.js.map +0 -1
- package/_cjs/utils/signature/verifyMessage.js +0 -11
- package/_cjs/utils/signature/verifyMessage.js.map +0 -1
- package/_cjs/utils/signature/verifyTypedData.js +0 -18
- package/_cjs/utils/signature/verifyTypedData.js.map +0 -1
- package/_cjs/utils/stringify.js +0 -9
- package/_cjs/utils/stringify.js.map +0 -1
- package/_cjs/utils/transaction/assertRequest.js +0 -28
- package/_cjs/utils/transaction/assertRequest.js.map +0 -1
- package/_cjs/utils/transaction/assertTransaction.js +0 -51
- package/_cjs/utils/transaction/assertTransaction.js.map +0 -1
- package/_cjs/utils/transaction/getSerializedTransactionType.js +0 -18
- package/_cjs/utils/transaction/getSerializedTransactionType.js.map +0 -1
- package/_cjs/utils/transaction/getTransactionType.js +0 -19
- package/_cjs/utils/transaction/getTransactionType.js.map +0 -1
- package/_cjs/utils/transaction/parseTransaction.js +0 -213
- package/_cjs/utils/transaction/parseTransaction.js.map +0 -1
- package/_cjs/utils/transaction/serializeAccessList.js +0 -26
- package/_cjs/utils/transaction/serializeAccessList.js.map +0 -1
- package/_cjs/utils/transaction/serializeTransaction.js +0 -107
- package/_cjs/utils/transaction/serializeTransaction.js.map +0 -1
- package/_cjs/utils/typedData.js +0 -75
- package/_cjs/utils/typedData.js.map +0 -1
- package/_cjs/utils/uid.js +0 -18
- package/_cjs/utils/uid.js.map +0 -1
- package/_cjs/utils/unit/formatEther.js +0 -10
- package/_cjs/utils/unit/formatEther.js.map +0 -1
- package/_cjs/utils/unit/formatGwei.js +0 -10
- package/_cjs/utils/unit/formatGwei.js.map +0 -1
- package/_cjs/utils/unit/formatUnits.js +0 -18
- package/_cjs/utils/unit/formatUnits.js.map +0 -1
- package/_cjs/utils/unit/parseEther.js +0 -10
- package/_cjs/utils/unit/parseEther.js.map +0 -1
- package/_cjs/utils/unit/parseGwei.js +0 -10
- package/_cjs/utils/unit/parseGwei.js.map +0 -1
- package/_cjs/utils/unit/parseUnits.js +0 -38
- package/_cjs/utils/unit/parseUnits.js.map +0 -1
- package/_cjs/utils/wait.js +0 -8
- package/_cjs/utils/wait.js.map +0 -1
- package/_cjs/window/index.js +0 -4
- package/_cjs/window/index.js.map +0 -1
- package/_esm/chains/optimism/formatters.js.map +0 -1
- package/_esm/chains/optimism/types.js.map +0 -1
- package/_types/chains/optimism/types.d.ts +0 -53
- package/_types/chains/optimism/types.d.ts.map +0 -1
- /package/_esm/chains/{optimism → opStack}/types.js +0 -0
@@ -10,6 +10,24 @@ export declare const zoraTestnet: {
|
|
10
10
|
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
11
11
|
readonly blockCreated: 189123;
|
12
12
|
};
|
13
|
+
readonly gasPriceOracle: {
|
14
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
15
|
+
};
|
16
|
+
readonly l1Block: {
|
17
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
18
|
+
};
|
19
|
+
readonly l2CrossDomainMessenger: {
|
20
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
21
|
+
};
|
22
|
+
readonly l2Erc721Bridge: {
|
23
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
24
|
+
};
|
25
|
+
readonly l2StandardBridge: {
|
26
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
27
|
+
};
|
28
|
+
readonly l2ToL1MessagePasser: {
|
29
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
30
|
+
};
|
13
31
|
};
|
14
32
|
id: 999;
|
15
33
|
name: "Zora Goerli Testnet";
|
@@ -29,8 +47,8 @@ export declare const zoraTestnet: {
|
|
29
47
|
formatters: {
|
30
48
|
readonly block: {
|
31
49
|
exclude: [] | undefined;
|
32
|
-
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../
|
33
|
-
transactions: `0x${string}`[] | import("../
|
50
|
+
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../opStack/types.js").OpStackRpcBlockOverrides & {
|
51
|
+
transactions: `0x${string}`[] | import("../opStack/types.js").OpStackRpcTransaction[];
|
34
52
|
}>) => {
|
35
53
|
baseFeePerGas: bigint | null;
|
36
54
|
difficulty: bigint;
|
@@ -51,7 +69,7 @@ export declare const zoraTestnet: {
|
|
51
69
|
stateRoot: `0x${string}`;
|
52
70
|
timestamp: bigint;
|
53
71
|
totalDifficulty: bigint | null;
|
54
|
-
transactions: `0x${string}`[] | import("../
|
72
|
+
transactions: `0x${string}`[] | import("../opStack/types.js").OpStackTransaction[];
|
55
73
|
transactionsRoot: `0x${string}`;
|
56
74
|
uncles: `0x${string}`[];
|
57
75
|
withdrawals?: import("../../index.js").Withdrawal[] | undefined;
|
@@ -68,18 +86,18 @@ export declare const zoraTestnet: {
|
|
68
86
|
gasPrice?: `0x${string}` | undefined;
|
69
87
|
maxFeePerGas?: `0x${string}` | undefined;
|
70
88
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
71
|
-
blockHash?: `0x${string}` | null | undefined;
|
72
|
-
blockNumber?: `0x${string}` | null | undefined;
|
73
89
|
from?: `0x${string}` | undefined;
|
74
|
-
hash?: `0x${string}` | undefined;
|
75
|
-
input?: `0x${string}` | undefined;
|
76
90
|
nonce?: `0x${string}` | undefined;
|
91
|
+
to?: `0x${string}` | null | undefined;
|
92
|
+
accessList?: undefined;
|
77
93
|
r?: `0x${string}` | undefined;
|
78
94
|
s?: `0x${string}` | undefined;
|
79
|
-
to?: `0x${string}` | null | undefined;
|
80
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
81
95
|
v?: `0x${string}` | undefined;
|
82
|
-
|
96
|
+
hash?: `0x${string}` | undefined;
|
97
|
+
blockHash?: `0x${string}` | null | undefined;
|
98
|
+
blockNumber?: `0x${string}` | null | undefined;
|
99
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
100
|
+
input?: `0x${string}` | undefined;
|
83
101
|
chainId?: `0x${string}` | undefined;
|
84
102
|
} & import("../index.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
85
103
|
isSystemTx?: undefined;
|
@@ -92,18 +110,18 @@ export declare const zoraTestnet: {
|
|
92
110
|
gasPrice?: `0x${string}` | undefined;
|
93
111
|
maxFeePerGas?: `0x${string}` | undefined;
|
94
112
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
95
|
-
blockHash?: `0x${string}` | null | undefined;
|
96
|
-
blockNumber?: `0x${string}` | null | undefined;
|
97
113
|
from?: `0x${string}` | undefined;
|
98
|
-
hash?: `0x${string}` | undefined;
|
99
|
-
input?: `0x${string}` | undefined;
|
100
114
|
nonce?: `0x${string}` | undefined;
|
115
|
+
to?: `0x${string}` | null | undefined;
|
116
|
+
accessList?: undefined;
|
101
117
|
r?: `0x${string}` | undefined;
|
102
118
|
s?: `0x${string}` | undefined;
|
103
|
-
to?: `0x${string}` | null | undefined;
|
104
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
105
119
|
v?: `0x${string}` | undefined;
|
106
|
-
|
120
|
+
hash?: `0x${string}` | undefined;
|
121
|
+
blockHash?: `0x${string}` | null | undefined;
|
122
|
+
blockNumber?: `0x${string}` | null | undefined;
|
123
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
124
|
+
input?: `0x${string}` | undefined;
|
107
125
|
chainId?: `0x${string}` | undefined;
|
108
126
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
109
127
|
isSystemTx?: boolean | undefined;
|
@@ -117,18 +135,18 @@ export declare const zoraTestnet: {
|
|
117
135
|
gasPrice?: `0x${string}` | undefined;
|
118
136
|
maxFeePerGas?: `0x${string}` | undefined;
|
119
137
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
120
|
-
blockHash?: `0x${string}` | null | undefined;
|
121
|
-
blockNumber?: `0x${string}` | null | undefined;
|
122
138
|
from?: `0x${string}` | undefined;
|
123
|
-
hash?: `0x${string}` | undefined;
|
124
|
-
input?: `0x${string}` | undefined;
|
125
139
|
nonce?: `0x${string}` | undefined;
|
140
|
+
to?: `0x${string}` | null | undefined;
|
141
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
126
142
|
r?: `0x${string}` | undefined;
|
127
143
|
s?: `0x${string}` | undefined;
|
128
|
-
to?: `0x${string}` | null | undefined;
|
129
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
130
144
|
v?: `0x${string}` | undefined;
|
131
|
-
|
145
|
+
hash?: `0x${string}` | undefined;
|
146
|
+
blockHash?: `0x${string}` | null | undefined;
|
147
|
+
blockNumber?: `0x${string}` | null | undefined;
|
148
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
149
|
+
input?: `0x${string}` | undefined;
|
132
150
|
chainId?: `0x${string}` | undefined;
|
133
151
|
} & import("../index.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
134
152
|
isSystemTx?: undefined;
|
@@ -141,18 +159,18 @@ export declare const zoraTestnet: {
|
|
141
159
|
gasPrice?: `0x${string}` | undefined;
|
142
160
|
maxFeePerGas?: `0x${string}` | undefined;
|
143
161
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
144
|
-
blockHash?: `0x${string}` | null | undefined;
|
145
|
-
blockNumber?: `0x${string}` | null | undefined;
|
146
162
|
from?: `0x${string}` | undefined;
|
147
|
-
hash?: `0x${string}` | undefined;
|
148
|
-
input?: `0x${string}` | undefined;
|
149
163
|
nonce?: `0x${string}` | undefined;
|
164
|
+
to?: `0x${string}` | null | undefined;
|
165
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
150
166
|
r?: `0x${string}` | undefined;
|
151
167
|
s?: `0x${string}` | undefined;
|
152
|
-
to?: `0x${string}` | null | undefined;
|
153
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
154
168
|
v?: `0x${string}` | undefined;
|
155
|
-
|
169
|
+
hash?: `0x${string}` | undefined;
|
170
|
+
blockHash?: `0x${string}` | null | undefined;
|
171
|
+
blockNumber?: `0x${string}` | null | undefined;
|
172
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
173
|
+
input?: `0x${string}` | undefined;
|
156
174
|
chainId?: `0x${string}` | undefined;
|
157
175
|
} & import("../index.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
|
158
176
|
isSystemTx?: undefined;
|
@@ -165,18 +183,18 @@ export declare const zoraTestnet: {
|
|
165
183
|
gasPrice?: `0x${string}` | undefined;
|
166
184
|
maxFeePerGas?: `0x${string}` | undefined;
|
167
185
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
168
|
-
blockHash?: `0x${string}` | null | undefined;
|
169
|
-
blockNumber?: `0x${string}` | null | undefined;
|
170
186
|
from?: `0x${string}` | undefined;
|
171
|
-
hash?: `0x${string}` | undefined;
|
172
|
-
input?: `0x${string}` | undefined;
|
173
187
|
nonce?: `0x${string}` | undefined;
|
188
|
+
to?: `0x${string}` | null | undefined;
|
189
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
174
190
|
r?: `0x${string}` | undefined;
|
175
191
|
s?: `0x${string}` | undefined;
|
176
|
-
to?: `0x${string}` | null | undefined;
|
177
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
178
192
|
v?: `0x${string}` | undefined;
|
179
|
-
|
193
|
+
hash?: `0x${string}` | undefined;
|
194
|
+
blockHash?: `0x${string}` | null | undefined;
|
195
|
+
blockNumber?: `0x${string}` | null | undefined;
|
196
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
197
|
+
input?: `0x${string}` | undefined;
|
180
198
|
chainId?: `0x${string}` | undefined;
|
181
199
|
} & import("../index.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
|
182
200
|
isSystemTx?: undefined;
|
@@ -189,18 +207,18 @@ export declare const zoraTestnet: {
|
|
189
207
|
gasPrice?: `0x${string}` | undefined;
|
190
208
|
maxFeePerGas?: `0x${string}` | undefined;
|
191
209
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
192
|
-
blockHash?: `0x${string}` | null | undefined;
|
193
|
-
blockNumber?: `0x${string}` | null | undefined;
|
194
210
|
from?: `0x${string}` | undefined;
|
195
|
-
hash?: `0x${string}` | undefined;
|
196
|
-
input?: `0x${string}` | undefined;
|
197
211
|
nonce?: `0x${string}` | undefined;
|
212
|
+
to?: `0x${string}` | null | undefined;
|
213
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
198
214
|
r?: `0x${string}` | undefined;
|
199
215
|
s?: `0x${string}` | undefined;
|
200
|
-
to?: `0x${string}` | null | undefined;
|
201
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
202
216
|
v?: `0x${string}` | undefined;
|
203
|
-
|
217
|
+
hash?: `0x${string}` | undefined;
|
218
|
+
blockHash?: `0x${string}` | null | undefined;
|
219
|
+
blockNumber?: `0x${string}` | null | undefined;
|
220
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
221
|
+
input?: `0x${string}` | undefined;
|
204
222
|
chainId?: `0x${string}` | undefined;
|
205
223
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
206
224
|
isSystemTx?: boolean | undefined;
|
@@ -214,18 +232,18 @@ export declare const zoraTestnet: {
|
|
214
232
|
gasPrice?: `0x${string}` | undefined;
|
215
233
|
maxFeePerGas?: `0x${string}` | undefined;
|
216
234
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
217
|
-
blockHash?: `0x${string}` | null | undefined;
|
218
|
-
blockNumber?: `0x${string}` | null | undefined;
|
219
235
|
from?: `0x${string}` | undefined;
|
220
|
-
hash?: `0x${string}` | undefined;
|
221
|
-
input?: `0x${string}` | undefined;
|
222
236
|
nonce?: `0x${string}` | undefined;
|
237
|
+
to?: `0x${string}` | null | undefined;
|
238
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
223
239
|
r?: `0x${string}` | undefined;
|
224
240
|
s?: `0x${string}` | undefined;
|
225
|
-
to?: `0x${string}` | null | undefined;
|
226
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
227
241
|
v?: `0x${string}` | undefined;
|
228
|
-
|
242
|
+
hash?: `0x${string}` | undefined;
|
243
|
+
blockHash?: `0x${string}` | null | undefined;
|
244
|
+
blockNumber?: `0x${string}` | null | undefined;
|
245
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
246
|
+
input?: `0x${string}` | undefined;
|
229
247
|
chainId?: `0x${string}` | undefined;
|
230
248
|
} & import("../index.js").Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
231
249
|
isSystemTx?: undefined;
|
@@ -238,18 +256,18 @@ export declare const zoraTestnet: {
|
|
238
256
|
gasPrice?: `0x${string}` | undefined;
|
239
257
|
maxFeePerGas?: `0x${string}` | undefined;
|
240
258
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
241
|
-
blockHash?: `0x${string}` | null | undefined;
|
242
|
-
blockNumber?: `0x${string}` | null | undefined;
|
243
259
|
from?: `0x${string}` | undefined;
|
244
|
-
hash?: `0x${string}` | undefined;
|
245
|
-
input?: `0x${string}` | undefined;
|
246
260
|
nonce?: `0x${string}` | undefined;
|
261
|
+
to?: `0x${string}` | null | undefined;
|
262
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
247
263
|
r?: `0x${string}` | undefined;
|
248
264
|
s?: `0x${string}` | undefined;
|
249
|
-
to?: `0x${string}` | null | undefined;
|
250
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
251
265
|
v?: `0x${string}` | undefined;
|
252
|
-
|
266
|
+
hash?: `0x${string}` | undefined;
|
267
|
+
blockHash?: `0x${string}` | null | undefined;
|
268
|
+
blockNumber?: `0x${string}` | null | undefined;
|
269
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
270
|
+
input?: `0x${string}` | undefined;
|
253
271
|
chainId?: `0x${string}` | undefined;
|
254
272
|
} & import("../index.js").Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
|
255
273
|
isSystemTx?: undefined;
|
@@ -262,18 +280,18 @@ export declare const zoraTestnet: {
|
|
262
280
|
gasPrice?: `0x${string}` | undefined;
|
263
281
|
maxFeePerGas?: `0x${string}` | undefined;
|
264
282
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
265
|
-
blockHash?: `0x${string}` | null | undefined;
|
266
|
-
blockNumber?: `0x${string}` | null | undefined;
|
267
283
|
from?: `0x${string}` | undefined;
|
268
|
-
hash?: `0x${string}` | undefined;
|
269
|
-
input?: `0x${string}` | undefined;
|
270
284
|
nonce?: `0x${string}` | undefined;
|
285
|
+
to?: `0x${string}` | null | undefined;
|
286
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
271
287
|
r?: `0x${string}` | undefined;
|
272
288
|
s?: `0x${string}` | undefined;
|
273
|
-
to?: `0x${string}` | null | undefined;
|
274
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
275
289
|
v?: `0x${string}` | undefined;
|
276
|
-
|
290
|
+
hash?: `0x${string}` | undefined;
|
291
|
+
blockHash?: `0x${string}` | null | undefined;
|
292
|
+
blockNumber?: `0x${string}` | null | undefined;
|
293
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
294
|
+
input?: `0x${string}` | undefined;
|
277
295
|
chainId?: `0x${string}` | undefined;
|
278
296
|
} & import("../index.js").Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
|
279
297
|
isSystemTx?: undefined;
|
@@ -286,18 +304,18 @@ export declare const zoraTestnet: {
|
|
286
304
|
gasPrice?: `0x${string}` | undefined;
|
287
305
|
maxFeePerGas?: `0x${string}` | undefined;
|
288
306
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
289
|
-
blockHash?: `0x${string}` | null | undefined;
|
290
|
-
blockNumber?: `0x${string}` | null | undefined;
|
291
307
|
from?: `0x${string}` | undefined;
|
292
|
-
hash?: `0x${string}` | undefined;
|
293
|
-
input?: `0x${string}` | undefined;
|
294
308
|
nonce?: `0x${string}` | undefined;
|
309
|
+
to?: `0x${string}` | null | undefined;
|
310
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
295
311
|
r?: `0x${string}` | undefined;
|
296
312
|
s?: `0x${string}` | undefined;
|
297
|
-
to?: `0x${string}` | null | undefined;
|
298
|
-
transactionIndex?: `0x${string}` | null | undefined;
|
299
313
|
v?: `0x${string}` | undefined;
|
300
|
-
|
314
|
+
hash?: `0x${string}` | undefined;
|
315
|
+
blockHash?: `0x${string}` | null | undefined;
|
316
|
+
blockNumber?: `0x${string}` | null | undefined;
|
317
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
318
|
+
input?: `0x${string}` | undefined;
|
301
319
|
chainId?: `0x${string}` | undefined;
|
302
320
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
303
321
|
isSystemTx?: boolean | undefined;
|
@@ -501,7 +519,7 @@ export declare const zoraTestnet: {
|
|
501
519
|
};
|
502
520
|
readonly transactionReceipt: {
|
503
521
|
exclude: [] | undefined;
|
504
|
-
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../
|
522
|
+
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../opStack/types.js").OpStackRpcTransactionReceiptOverrides>) => {
|
505
523
|
blockHash: `0x${string}`;
|
506
524
|
blockNumber: bigint;
|
507
525
|
contractAddress: `0x${string}` | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"zoraTestnet.d.ts","sourceRoot":"","sources":["../../../chains/definitions/zoraTestnet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"zoraTestnet.d.ts","sourceRoot":"","sources":["../../../chains/definitions/zoraTestnet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB,CAAA"}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
export declare const gasPriceOracleAbi: readonly [{
|
2
|
+
readonly inputs: readonly [];
|
3
|
+
readonly stateMutability: "nonpayable";
|
4
|
+
readonly type: "constructor";
|
5
|
+
}, {
|
6
|
+
readonly inputs: readonly [];
|
7
|
+
readonly name: "DECIMALS";
|
8
|
+
readonly outputs: readonly [{
|
9
|
+
readonly internalType: "uint256";
|
10
|
+
readonly name: "";
|
11
|
+
readonly type: "uint256";
|
12
|
+
}];
|
13
|
+
readonly stateMutability: "view";
|
14
|
+
readonly type: "function";
|
15
|
+
}, {
|
16
|
+
readonly inputs: readonly [];
|
17
|
+
readonly name: "baseFee";
|
18
|
+
readonly outputs: readonly [{
|
19
|
+
readonly internalType: "uint256";
|
20
|
+
readonly name: "";
|
21
|
+
readonly type: "uint256";
|
22
|
+
}];
|
23
|
+
readonly stateMutability: "view";
|
24
|
+
readonly type: "function";
|
25
|
+
}, {
|
26
|
+
readonly inputs: readonly [];
|
27
|
+
readonly name: "decimals";
|
28
|
+
readonly outputs: readonly [{
|
29
|
+
readonly internalType: "uint256";
|
30
|
+
readonly name: "";
|
31
|
+
readonly type: "uint256";
|
32
|
+
}];
|
33
|
+
readonly stateMutability: "pure";
|
34
|
+
readonly type: "function";
|
35
|
+
}, {
|
36
|
+
readonly inputs: readonly [];
|
37
|
+
readonly name: "gasPrice";
|
38
|
+
readonly outputs: readonly [{
|
39
|
+
readonly internalType: "uint256";
|
40
|
+
readonly name: "";
|
41
|
+
readonly type: "uint256";
|
42
|
+
}];
|
43
|
+
readonly stateMutability: "view";
|
44
|
+
readonly type: "function";
|
45
|
+
}, {
|
46
|
+
readonly inputs: readonly [{
|
47
|
+
readonly internalType: "bytes";
|
48
|
+
readonly name: "_data";
|
49
|
+
readonly type: "bytes";
|
50
|
+
}];
|
51
|
+
readonly name: "getL1Fee";
|
52
|
+
readonly outputs: readonly [{
|
53
|
+
readonly internalType: "uint256";
|
54
|
+
readonly name: "";
|
55
|
+
readonly type: "uint256";
|
56
|
+
}];
|
57
|
+
readonly stateMutability: "view";
|
58
|
+
readonly type: "function";
|
59
|
+
}, {
|
60
|
+
readonly inputs: readonly [{
|
61
|
+
readonly internalType: "bytes";
|
62
|
+
readonly name: "_data";
|
63
|
+
readonly type: "bytes";
|
64
|
+
}];
|
65
|
+
readonly name: "getL1GasUsed";
|
66
|
+
readonly outputs: readonly [{
|
67
|
+
readonly internalType: "uint256";
|
68
|
+
readonly name: "";
|
69
|
+
readonly type: "uint256";
|
70
|
+
}];
|
71
|
+
readonly stateMutability: "view";
|
72
|
+
readonly type: "function";
|
73
|
+
}, {
|
74
|
+
readonly inputs: readonly [];
|
75
|
+
readonly name: "l1BaseFee";
|
76
|
+
readonly outputs: readonly [{
|
77
|
+
readonly internalType: "uint256";
|
78
|
+
readonly name: "";
|
79
|
+
readonly type: "uint256";
|
80
|
+
}];
|
81
|
+
readonly stateMutability: "view";
|
82
|
+
readonly type: "function";
|
83
|
+
}, {
|
84
|
+
readonly inputs: readonly [];
|
85
|
+
readonly name: "overhead";
|
86
|
+
readonly outputs: readonly [{
|
87
|
+
readonly internalType: "uint256";
|
88
|
+
readonly name: "";
|
89
|
+
readonly type: "uint256";
|
90
|
+
}];
|
91
|
+
readonly stateMutability: "view";
|
92
|
+
readonly type: "function";
|
93
|
+
}, {
|
94
|
+
readonly inputs: readonly [];
|
95
|
+
readonly name: "scalar";
|
96
|
+
readonly outputs: readonly [{
|
97
|
+
readonly internalType: "uint256";
|
98
|
+
readonly name: "";
|
99
|
+
readonly type: "uint256";
|
100
|
+
}];
|
101
|
+
readonly stateMutability: "view";
|
102
|
+
readonly type: "function";
|
103
|
+
}, {
|
104
|
+
readonly inputs: readonly [];
|
105
|
+
readonly name: "version";
|
106
|
+
readonly outputs: readonly [{
|
107
|
+
readonly internalType: "string";
|
108
|
+
readonly name: "";
|
109
|
+
readonly type: "string";
|
110
|
+
}];
|
111
|
+
readonly stateMutability: "view";
|
112
|
+
readonly type: "function";
|
113
|
+
}];
|
114
|
+
//# sourceMappingURL=abis.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../chains/opStack/abis.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEpB,CAAA"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { Abi } from 'abitype';
|
2
|
+
import type { Account } from '../../../accounts/types.js';
|
3
|
+
import { type ParseAccountErrorType } from '../../../accounts/utils/parseAccount.js';
|
4
|
+
import type { Client } from '../../../clients/createClient.js';
|
5
|
+
import type { Transport } from '../../../clients/transports/createTransport.js';
|
6
|
+
import type { Chain } from '../../../types/chain.js';
|
7
|
+
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, GetValue } from '../../../types/contract.js';
|
8
|
+
import type { UnionOmit } from '../../../types/utils.js';
|
9
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
10
|
+
import { type GetContractErrorReturnType } from '../../../utils/errors/getContractError.js';
|
11
|
+
import { type EstimateL1FeeErrorType, type EstimateL1FeeParameters } from './estimateL1Fee.js';
|
12
|
+
export type EstimateContractL1FeeParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = Chain | undefined> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args> & UnionOmit<EstimateL1FeeParameters<chain, account, chainOverride>, 'data' | 'to' | 'value'> & GetValue<abi, functionName, EstimateL1FeeParameters<chain, account, chainOverride> extends EstimateL1FeeParameters ? EstimateL1FeeParameters<chain, account, chainOverride>['value'] : EstimateL1FeeParameters['value']>;
|
13
|
+
export type EstimateContractL1FeeReturnType = bigint;
|
14
|
+
export type EstimateContractL1FeeErrorType = GetContractErrorReturnType<EncodeFunctionDataErrorType | EstimateL1FeeErrorType | ParseAccountErrorType>;
|
15
|
+
/**
|
16
|
+
* Estimates the L1 data fee required to execute an L2 contract write.
|
17
|
+
*
|
18
|
+
* @param client - Client to use
|
19
|
+
* @param parameters - {@link EstimateContractL1FeeParameters}
|
20
|
+
* @returns The gas estimate (in wei). {@link EstimateContractL1FeeReturnType}
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* import { createPublicClient, http, parseAbi } from 'viem'
|
24
|
+
* import { optimism } from 'viem/chains'
|
25
|
+
* import { estimateContractL1Fee } from 'viem/op-stack'
|
26
|
+
*
|
27
|
+
* const client = createPublicClient({
|
28
|
+
* chain: optimism,
|
29
|
+
* transport: http(),
|
30
|
+
* })
|
31
|
+
* const l1Fee = await estimateContractL1Fee(client, {
|
32
|
+
* address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
|
33
|
+
* abi: parseAbi(['function mint() public']),
|
34
|
+
* functionName: 'mint',
|
35
|
+
* account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
36
|
+
* })
|
37
|
+
*/
|
38
|
+
export declare function estimateContractL1Fee<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, chain extends Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: EstimateContractL1FeeParameters<abi, functionName, args, chain, account, chainOverride>): Promise<EstimateContractL1FeeReturnType>;
|
39
|
+
//# sourceMappingURL=estimateContractL1Fee.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"estimateContractL1Fee.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/actions/estimateContractL1Fee.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { Abi } from 'abitype';
|
2
|
+
import type { Account } from '../../../accounts/types.js';
|
3
|
+
import { type ParseAccountErrorType } from '../../../accounts/utils/parseAccount.js';
|
4
|
+
import type { Client } from '../../../clients/createClient.js';
|
5
|
+
import type { Transport } from '../../../clients/transports/createTransport.js';
|
6
|
+
import type { Chain } from '../../../types/chain.js';
|
7
|
+
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, GetValue } from '../../../types/contract.js';
|
8
|
+
import type { UnionOmit } from '../../../types/utils.js';
|
9
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
10
|
+
import { type GetContractErrorReturnType } from '../../../utils/errors/getContractError.js';
|
11
|
+
import { type EstimateL1GasErrorType, type EstimateL1GasParameters } from './estimateL1Gas.js';
|
12
|
+
export type EstimateContractL1GasParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = Chain | undefined> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args> & UnionOmit<EstimateL1GasParameters<chain, account, chainOverride>, 'data' | 'to' | 'value'> & GetValue<abi, functionName, EstimateL1GasParameters<chain, account, chainOverride> extends EstimateL1GasParameters ? EstimateL1GasParameters<chain, account, chainOverride>['value'] : EstimateL1GasParameters['value']>;
|
13
|
+
export type EstimateContractL1GasReturnType = bigint;
|
14
|
+
export type EstimateContractL1GasErrorType = GetContractErrorReturnType<EncodeFunctionDataErrorType | EstimateL1GasErrorType | ParseAccountErrorType>;
|
15
|
+
/**
|
16
|
+
* Estimates the L1 data gas required to successfully execute a contract write function call.
|
17
|
+
*
|
18
|
+
* @param client - Client to use
|
19
|
+
* @param parameters - {@link EstimateContractL1GasParameters}
|
20
|
+
* @returns The gas estimate (in wei). {@link EstimateContractL1GasReturnType}
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* import { createPublicClient, http, parseAbi } from 'viem'
|
24
|
+
* import { optimism } from 'viem/chains'
|
25
|
+
* import { estimateContractL1Gas } from 'viem/op-stack'
|
26
|
+
*
|
27
|
+
* const client = createPublicClient({
|
28
|
+
* chain: optimism,
|
29
|
+
* transport: http(),
|
30
|
+
* })
|
31
|
+
* const l1Gas = await estimateContractL1Gas(client, {
|
32
|
+
* address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
|
33
|
+
* abi: parseAbi(['function mint() public']),
|
34
|
+
* functionName: 'mint',
|
35
|
+
* account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
36
|
+
* })
|
37
|
+
*/
|
38
|
+
export declare function estimateContractL1Gas<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, chain extends Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: EstimateContractL1GasParameters<abi, functionName, args, chain, account, chainOverride>): Promise<EstimateContractL1GasReturnType>;
|
39
|
+
//# sourceMappingURL=estimateContractL1Gas.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"estimateContractL1Gas.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/actions/estimateContractL1Gas.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { Abi } from 'abitype';
|
2
|
+
import type { Account } from '../../../accounts/types.js';
|
3
|
+
import { type ParseAccountErrorType } from '../../../accounts/utils/parseAccount.js';
|
4
|
+
import type { Client } from '../../../clients/createClient.js';
|
5
|
+
import type { Transport } from '../../../clients/transports/createTransport.js';
|
6
|
+
import type { Chain } from '../../../types/chain.js';
|
7
|
+
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, GetValue } from '../../../types/contract.js';
|
8
|
+
import type { UnionOmit } from '../../../types/utils.js';
|
9
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
10
|
+
import { type GetContractErrorReturnType } from '../../../utils/errors/getContractError.js';
|
11
|
+
import { type EstimateTotalFeeErrorType, type EstimateTotalFeeParameters } from './estimateTotalFee.js';
|
12
|
+
export type EstimateContractTotalFeeParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = Chain | undefined> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args> & UnionOmit<EstimateTotalFeeParameters<chain, account, chainOverride>, 'data' | 'to' | 'value'> & GetValue<abi, functionName, EstimateTotalFeeParameters<chain, account, chainOverride> extends EstimateTotalFeeParameters ? EstimateTotalFeeParameters<chain, account, chainOverride>['value'] : EstimateTotalFeeParameters['value']>;
|
13
|
+
export type EstimateContractTotalFeeReturnType = bigint;
|
14
|
+
export type EstimateContractTotalFeeErrorType = GetContractErrorReturnType<EncodeFunctionDataErrorType | EstimateTotalFeeErrorType | ParseAccountErrorType>;
|
15
|
+
/**
|
16
|
+
* Estimates the L1 data fee + L2 fee to execute an L2 contract write.
|
17
|
+
*
|
18
|
+
* @param client - Client to use
|
19
|
+
* @param parameters - {@link EstimateContractTotalFeeParameters}
|
20
|
+
* @returns The gas estimate (in wei). {@link EstimateContractTotalFeeReturnType}
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* import { createPublicClient, http, parseAbi } from 'viem'
|
24
|
+
* import { optimism } from 'viem/chains'
|
25
|
+
* import { estimateContractTotalFee } from 'viem/op-stack'
|
26
|
+
*
|
27
|
+
* const client = createPublicClient({
|
28
|
+
* chain: optimism,
|
29
|
+
* transport: http(),
|
30
|
+
* })
|
31
|
+
* const totalFee = await estimateContractTotalFee(client, {
|
32
|
+
* address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
|
33
|
+
* abi: parseAbi(['function mint() public']),
|
34
|
+
* functionName: 'mint',
|
35
|
+
* account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
36
|
+
* })
|
37
|
+
*/
|
38
|
+
export declare function estimateContractTotalFee<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, chain extends Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: EstimateContractTotalFeeParameters<abi, functionName, args, chain, account, chainOverride>): Promise<EstimateContractTotalFeeReturnType>;
|
39
|
+
//# sourceMappingURL=estimateContractTotalFee.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"estimateContractTotalFee.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/actions/estimateContractTotalFee.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { Abi } from 'abitype';
|
2
|
+
import type { Account } from '../../../accounts/types.js';
|
3
|
+
import { type ParseAccountErrorType } from '../../../accounts/utils/parseAccount.js';
|
4
|
+
import type { Client } from '../../../clients/createClient.js';
|
5
|
+
import type { Transport } from '../../../clients/transports/createTransport.js';
|
6
|
+
import type { Chain } from '../../../types/chain.js';
|
7
|
+
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, GetValue } from '../../../types/contract.js';
|
8
|
+
import type { UnionOmit } from '../../../types/utils.js';
|
9
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
10
|
+
import { type GetContractErrorReturnType } from '../../../utils/errors/getContractError.js';
|
11
|
+
import { type EstimateTotalGasErrorType, type EstimateTotalGasParameters } from './estimateTotalGas.js';
|
12
|
+
export type EstimateContractTotalGasParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = Chain | undefined> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args> & UnionOmit<EstimateTotalGasParameters<chain, account, chainOverride>, 'data' | 'to' | 'value'> & GetValue<abi, functionName, EstimateTotalGasParameters<chain, account, chainOverride> extends EstimateTotalGasParameters ? EstimateTotalGasParameters<chain, account, chainOverride>['value'] : EstimateTotalGasParameters['value']>;
|
13
|
+
export type EstimateContractTotalGasReturnType = bigint;
|
14
|
+
export type EstimateContractTotalGasErrorType = GetContractErrorReturnType<EncodeFunctionDataErrorType | EstimateTotalGasErrorType | ParseAccountErrorType>;
|
15
|
+
/**
|
16
|
+
* Estimates the L1 data gas + L2 gas required to successfully execute a contract write function call.
|
17
|
+
*
|
18
|
+
* @param client - Client to use
|
19
|
+
* @param parameters - {@link EstimateContractTotalGasParameters}
|
20
|
+
* @returns The gas estimate (in wei). {@link EstimateContractTotalGasReturnType}
|
21
|
+
*
|
22
|
+
* @example
|
23
|
+
* import { createPublicClient, http, parseAbi } from 'viem'
|
24
|
+
* import { optimism } from 'viem/chains'
|
25
|
+
* import { estimateContractTotalGas } from 'viem/op-stack'
|
26
|
+
*
|
27
|
+
* const client = createPublicClient({
|
28
|
+
* chain: optimism,
|
29
|
+
* transport: http(),
|
30
|
+
* })
|
31
|
+
* const totalGas = await estimateContractTotalGas(client, {
|
32
|
+
* address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
|
33
|
+
* abi: parseAbi(['function mint() public']),
|
34
|
+
* functionName: 'mint',
|
35
|
+
* account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
36
|
+
* })
|
37
|
+
*/
|
38
|
+
export declare function estimateContractTotalGas<const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>, chain extends Chain | undefined, account extends Account | undefined = undefined, chainOverride extends Chain | undefined = undefined>(client: Client<Transport, chain, account>, parameters: EstimateContractTotalGasParameters<abi, functionName, args, chain, account, chainOverride>): Promise<EstimateContractTotalGasReturnType>;
|
39
|
+
//# sourceMappingURL=estimateContractTotalGas.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"estimateContractTotalGas.d.ts","sourceRoot":"","sources":["../../../../chains/opStack/actions/estimateContractTotalGas.ts"],"names":[],"mappings":"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"}
|