viem 2.0.0-beta.2 → 2.0.0-beta.4
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
@@ -1,184 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getEventParameters = exports.getFunctionParameters = exports.getContract = void 0;
|
4
|
-
const getAction_js_1 = require("../utils/getAction.js");
|
5
|
-
const createContractEventFilter_js_1 = require("./public/createContractEventFilter.js");
|
6
|
-
const estimateContractGas_js_1 = require("./public/estimateContractGas.js");
|
7
|
-
const getContractEvents_js_1 = require("./public/getContractEvents.js");
|
8
|
-
const readContract_js_1 = require("./public/readContract.js");
|
9
|
-
const simulateContract_js_1 = require("./public/simulateContract.js");
|
10
|
-
const watchContractEvent_js_1 = require("./public/watchContractEvent.js");
|
11
|
-
const writeContract_js_1 = require("./wallet/writeContract.js");
|
12
|
-
function getContract({ abi, address, client: client_, }) {
|
13
|
-
const client = client_;
|
14
|
-
const [publicClient, walletClient] = (() => {
|
15
|
-
if (!client)
|
16
|
-
return [undefined, undefined];
|
17
|
-
if ('publicClient' in client && 'walletClient' in client)
|
18
|
-
return [client.publicClient, client.walletClient];
|
19
|
-
if ('publicClient' in client)
|
20
|
-
return [client.publicClient, undefined];
|
21
|
-
if ('walletClient' in client)
|
22
|
-
return [undefined, client.walletClient];
|
23
|
-
return [client, client];
|
24
|
-
})();
|
25
|
-
const hasPublicClient = publicClient !== undefined && publicClient !== null;
|
26
|
-
const hasWalletClient = walletClient !== undefined && walletClient !== null;
|
27
|
-
const contract = {};
|
28
|
-
let hasReadFunction = false;
|
29
|
-
let hasWriteFunction = false;
|
30
|
-
let hasEvent = false;
|
31
|
-
for (const item of abi) {
|
32
|
-
if (item.type === 'function')
|
33
|
-
if (item.stateMutability === 'view' || item.stateMutability === 'pure')
|
34
|
-
hasReadFunction = true;
|
35
|
-
else
|
36
|
-
hasWriteFunction = true;
|
37
|
-
else if (item.type === 'event')
|
38
|
-
hasEvent = true;
|
39
|
-
if (hasReadFunction && hasWriteFunction && hasEvent)
|
40
|
-
break;
|
41
|
-
}
|
42
|
-
if (hasPublicClient) {
|
43
|
-
if (hasReadFunction)
|
44
|
-
contract.read = new Proxy({}, {
|
45
|
-
get(_, functionName) {
|
46
|
-
return (...parameters) => {
|
47
|
-
const { args, options } = getFunctionParameters(parameters);
|
48
|
-
return (0, getAction_js_1.getAction)(publicClient, readContract_js_1.readContract)({
|
49
|
-
abi,
|
50
|
-
address,
|
51
|
-
functionName,
|
52
|
-
args,
|
53
|
-
...options,
|
54
|
-
});
|
55
|
-
};
|
56
|
-
},
|
57
|
-
});
|
58
|
-
if (hasWriteFunction)
|
59
|
-
contract.simulate = new Proxy({}, {
|
60
|
-
get(_, functionName) {
|
61
|
-
return (...parameters) => {
|
62
|
-
const { args, options } = getFunctionParameters(parameters);
|
63
|
-
return (0, getAction_js_1.getAction)(publicClient, simulateContract_js_1.simulateContract)({
|
64
|
-
abi,
|
65
|
-
address,
|
66
|
-
functionName,
|
67
|
-
args,
|
68
|
-
...options,
|
69
|
-
});
|
70
|
-
};
|
71
|
-
},
|
72
|
-
});
|
73
|
-
if (hasEvent) {
|
74
|
-
contract.createEventFilter = new Proxy({}, {
|
75
|
-
get(_, eventName) {
|
76
|
-
return (...parameters) => {
|
77
|
-
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
78
|
-
const { args, options } = getEventParameters(parameters, abiEvent);
|
79
|
-
return (0, getAction_js_1.getAction)(publicClient, createContractEventFilter_js_1.createContractEventFilter)({
|
80
|
-
abi,
|
81
|
-
address,
|
82
|
-
eventName,
|
83
|
-
args,
|
84
|
-
...options,
|
85
|
-
});
|
86
|
-
};
|
87
|
-
},
|
88
|
-
});
|
89
|
-
contract.getEvents = new Proxy({}, {
|
90
|
-
get(_, eventName) {
|
91
|
-
return (...parameters) => {
|
92
|
-
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
93
|
-
const { args, options } = getEventParameters(parameters, abiEvent);
|
94
|
-
return (0, getAction_js_1.getAction)(publicClient, getContractEvents_js_1.getContractEvents)({
|
95
|
-
abi,
|
96
|
-
address,
|
97
|
-
eventName,
|
98
|
-
args,
|
99
|
-
...options,
|
100
|
-
});
|
101
|
-
};
|
102
|
-
},
|
103
|
-
});
|
104
|
-
contract.watchEvent = new Proxy({}, {
|
105
|
-
get(_, eventName) {
|
106
|
-
return (...parameters) => {
|
107
|
-
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
108
|
-
const { args, options } = getEventParameters(parameters, abiEvent);
|
109
|
-
return (0, getAction_js_1.getAction)(publicClient, watchContractEvent_js_1.watchContractEvent)({
|
110
|
-
abi,
|
111
|
-
address,
|
112
|
-
eventName,
|
113
|
-
args,
|
114
|
-
...options,
|
115
|
-
});
|
116
|
-
};
|
117
|
-
},
|
118
|
-
});
|
119
|
-
}
|
120
|
-
}
|
121
|
-
if (hasWalletClient) {
|
122
|
-
if (hasWriteFunction)
|
123
|
-
contract.write = new Proxy({}, {
|
124
|
-
get(_, functionName) {
|
125
|
-
return (...parameters) => {
|
126
|
-
const { args, options } = getFunctionParameters(parameters);
|
127
|
-
return (0, getAction_js_1.getAction)(walletClient, writeContract_js_1.writeContract)({
|
128
|
-
abi,
|
129
|
-
address,
|
130
|
-
functionName,
|
131
|
-
args,
|
132
|
-
...options,
|
133
|
-
});
|
134
|
-
};
|
135
|
-
},
|
136
|
-
});
|
137
|
-
}
|
138
|
-
if (hasPublicClient || hasWalletClient)
|
139
|
-
if (hasWriteFunction)
|
140
|
-
contract.estimateGas = new Proxy({}, {
|
141
|
-
get(_, functionName) {
|
142
|
-
return (...parameters) => {
|
143
|
-
const { args, options } = getFunctionParameters(parameters);
|
144
|
-
const client = (publicClient ?? walletClient);
|
145
|
-
return (0, getAction_js_1.getAction)(client, estimateContractGas_js_1.estimateContractGas)({
|
146
|
-
abi,
|
147
|
-
address,
|
148
|
-
functionName,
|
149
|
-
args,
|
150
|
-
...options,
|
151
|
-
account: options.account ??
|
152
|
-
walletClient.account,
|
153
|
-
});
|
154
|
-
};
|
155
|
-
},
|
156
|
-
});
|
157
|
-
contract.address = address;
|
158
|
-
contract.abi = abi;
|
159
|
-
return contract;
|
160
|
-
}
|
161
|
-
exports.getContract = getContract;
|
162
|
-
function getFunctionParameters(values) {
|
163
|
-
const hasArgs = values.length && Array.isArray(values[0]);
|
164
|
-
const args = hasArgs ? values[0] : [];
|
165
|
-
const options = (hasArgs ? values[1] : values[0]) ?? {};
|
166
|
-
return { args, options };
|
167
|
-
}
|
168
|
-
exports.getFunctionParameters = getFunctionParameters;
|
169
|
-
function getEventParameters(values, abiEvent) {
|
170
|
-
let hasArgs = false;
|
171
|
-
if (Array.isArray(values[0]))
|
172
|
-
hasArgs = true;
|
173
|
-
else if (values.length === 1) {
|
174
|
-
hasArgs = abiEvent.inputs.some((x) => x.indexed);
|
175
|
-
}
|
176
|
-
else if (values.length === 2) {
|
177
|
-
hasArgs = true;
|
178
|
-
}
|
179
|
-
const args = hasArgs ? values[0] : undefined;
|
180
|
-
const options = (hasArgs ? values[1] : values[0]) ?? {};
|
181
|
-
return { args, options };
|
182
|
-
}
|
183
|
-
exports.getEventParameters = getEventParameters;
|
184
|
-
//# sourceMappingURL=getContract.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getContract.js","sourceRoot":"","sources":["../../actions/getContract.ts"],"names":[],"mappings":";;;AAiCA,wDAAiD;AACjD,wFAI8C;AAC9C,4EAI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E;QAC9B,OAAO,GAAG,IAAI,CAAA;KACf;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAC7C,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAC1B,CAAC;AAnBD,gDAmBC"}
|
package/_cjs/actions/index.js
DELETED
@@ -1,167 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reset = exports.inspectTxpool = exports.getTxpoolStatus = exports.getTxpoolContent = exports.getAutomine = exports.dropTransaction = exports.requestPermissions = exports.requestAddresses = exports.waitForTransactionReceipt = exports.getPermissions = exports.getAddresses = exports.readContract = exports.watchPendingTransactions = exports.watchEvent = exports.watchBlockNumber = exports.watchBlocks = exports.multicall = exports.mine = exports.increaseTime = exports.impersonateAccount = exports.getTransactionReceipt = exports.getTransaction = exports.getTransactionCount = exports.getTransactionConfirmations = exports.getStorageAt = exports.getLogs = exports.getGasPrice = exports.getFilterLogs = exports.getFilterChanges = exports.getFeeHistory = exports.getChainId = exports.getBytecode = exports.getBlockTransactionCount = exports.getBlockNumber = exports.getBlock = exports.getBalance = exports.estimateGas = exports.estimateMaxPriorityFeePerGas = exports.estimateFeesPerGas = exports.estimateContractGas = exports.createPendingTransactionFilter = exports.createEventFilter = exports.createContractEventFilter = exports.createBlockFilter = exports.call = exports.getEnsText = exports.getEnsResolver = exports.getEnsName = exports.getEnsAvatar = exports.getEnsAddress = void 0;
|
4
|
-
exports.writeContract = exports.watchContractEvent = exports.watchAsset = exports.verifyTypedData = exports.verifyMessage = exports.verifyHash = exports.uninstallFilter = exports.switchChain = exports.stopImpersonatingAccount = exports.simulateContract = exports.signTypedData = exports.signMessage = exports.snapshot = exports.setStorageAt = exports.setNonce = exports.setNextBlockTimestamp = exports.setNextBlockBaseFeePerGas = exports.setMinGasPrice = exports.setIntervalMining = exports.setCoinbase = exports.setCode = exports.setBlockTimestampInterval = exports.setBlockGasLimit = exports.setAutomine = exports.setBalance = exports.sendUnsignedTransaction = exports.sendRawTransaction = exports.signTransaction = exports.sendTransaction = exports.prepareTransactionRequest = exports.revert = void 0;
|
5
|
-
var getEnsAddress_js_1 = require("./ens/getEnsAddress.js");
|
6
|
-
Object.defineProperty(exports, "getEnsAddress", { enumerable: true, get: function () { return getEnsAddress_js_1.getEnsAddress; } });
|
7
|
-
var getEnsAvatar_js_1 = require("./ens/getEnsAvatar.js");
|
8
|
-
Object.defineProperty(exports, "getEnsAvatar", { enumerable: true, get: function () { return getEnsAvatar_js_1.getEnsAvatar; } });
|
9
|
-
var getEnsName_js_1 = require("./ens/getEnsName.js");
|
10
|
-
Object.defineProperty(exports, "getEnsName", { enumerable: true, get: function () { return getEnsName_js_1.getEnsName; } });
|
11
|
-
var getEnsResolver_js_1 = require("./ens/getEnsResolver.js");
|
12
|
-
Object.defineProperty(exports, "getEnsResolver", { enumerable: true, get: function () { return getEnsResolver_js_1.getEnsResolver; } });
|
13
|
-
var getEnsText_js_1 = require("./ens/getEnsText.js");
|
14
|
-
Object.defineProperty(exports, "getEnsText", { enumerable: true, get: function () { return getEnsText_js_1.getEnsText; } });
|
15
|
-
var call_js_1 = require("./public/call.js");
|
16
|
-
Object.defineProperty(exports, "call", { enumerable: true, get: function () { return call_js_1.call; } });
|
17
|
-
var createBlockFilter_js_1 = require("./public/createBlockFilter.js");
|
18
|
-
Object.defineProperty(exports, "createBlockFilter", { enumerable: true, get: function () { return createBlockFilter_js_1.createBlockFilter; } });
|
19
|
-
var createContractEventFilter_js_1 = require("./public/createContractEventFilter.js");
|
20
|
-
Object.defineProperty(exports, "createContractEventFilter", { enumerable: true, get: function () { return createContractEventFilter_js_1.createContractEventFilter; } });
|
21
|
-
var createEventFilter_js_1 = require("./public/createEventFilter.js");
|
22
|
-
Object.defineProperty(exports, "createEventFilter", { enumerable: true, get: function () { return createEventFilter_js_1.createEventFilter; } });
|
23
|
-
var createPendingTransactionFilter_js_1 = require("./public/createPendingTransactionFilter.js");
|
24
|
-
Object.defineProperty(exports, "createPendingTransactionFilter", { enumerable: true, get: function () { return createPendingTransactionFilter_js_1.createPendingTransactionFilter; } });
|
25
|
-
var estimateContractGas_js_1 = require("./public/estimateContractGas.js");
|
26
|
-
Object.defineProperty(exports, "estimateContractGas", { enumerable: true, get: function () { return estimateContractGas_js_1.estimateContractGas; } });
|
27
|
-
var estimateFeesPerGas_js_1 = require("./public/estimateFeesPerGas.js");
|
28
|
-
Object.defineProperty(exports, "estimateFeesPerGas", { enumerable: true, get: function () { return estimateFeesPerGas_js_1.estimateFeesPerGas; } });
|
29
|
-
var estimateMaxPriorityFeePerGas_js_1 = require("./public/estimateMaxPriorityFeePerGas.js");
|
30
|
-
Object.defineProperty(exports, "estimateMaxPriorityFeePerGas", { enumerable: true, get: function () { return estimateMaxPriorityFeePerGas_js_1.estimateMaxPriorityFeePerGas; } });
|
31
|
-
var estimateGas_js_1 = require("./public/estimateGas.js");
|
32
|
-
Object.defineProperty(exports, "estimateGas", { enumerable: true, get: function () { return estimateGas_js_1.estimateGas; } });
|
33
|
-
var getBalance_js_1 = require("./public/getBalance.js");
|
34
|
-
Object.defineProperty(exports, "getBalance", { enumerable: true, get: function () { return getBalance_js_1.getBalance; } });
|
35
|
-
var getBlock_js_1 = require("./public/getBlock.js");
|
36
|
-
Object.defineProperty(exports, "getBlock", { enumerable: true, get: function () { return getBlock_js_1.getBlock; } });
|
37
|
-
var getBlockNumber_js_1 = require("./public/getBlockNumber.js");
|
38
|
-
Object.defineProperty(exports, "getBlockNumber", { enumerable: true, get: function () { return getBlockNumber_js_1.getBlockNumber; } });
|
39
|
-
var getBlockTransactionCount_js_1 = require("./public/getBlockTransactionCount.js");
|
40
|
-
Object.defineProperty(exports, "getBlockTransactionCount", { enumerable: true, get: function () { return getBlockTransactionCount_js_1.getBlockTransactionCount; } });
|
41
|
-
var getBytecode_js_1 = require("./public/getBytecode.js");
|
42
|
-
Object.defineProperty(exports, "getBytecode", { enumerable: true, get: function () { return getBytecode_js_1.getBytecode; } });
|
43
|
-
var getChainId_js_1 = require("./public/getChainId.js");
|
44
|
-
Object.defineProperty(exports, "getChainId", { enumerable: true, get: function () { return getChainId_js_1.getChainId; } });
|
45
|
-
var getFeeHistory_js_1 = require("./public/getFeeHistory.js");
|
46
|
-
Object.defineProperty(exports, "getFeeHistory", { enumerable: true, get: function () { return getFeeHistory_js_1.getFeeHistory; } });
|
47
|
-
var getFilterChanges_js_1 = require("./public/getFilterChanges.js");
|
48
|
-
Object.defineProperty(exports, "getFilterChanges", { enumerable: true, get: function () { return getFilterChanges_js_1.getFilterChanges; } });
|
49
|
-
var getFilterLogs_js_1 = require("./public/getFilterLogs.js");
|
50
|
-
Object.defineProperty(exports, "getFilterLogs", { enumerable: true, get: function () { return getFilterLogs_js_1.getFilterLogs; } });
|
51
|
-
var getGasPrice_js_1 = require("./public/getGasPrice.js");
|
52
|
-
Object.defineProperty(exports, "getGasPrice", { enumerable: true, get: function () { return getGasPrice_js_1.getGasPrice; } });
|
53
|
-
var getLogs_js_1 = require("./public/getLogs.js");
|
54
|
-
Object.defineProperty(exports, "getLogs", { enumerable: true, get: function () { return getLogs_js_1.getLogs; } });
|
55
|
-
var getStorageAt_js_1 = require("./public/getStorageAt.js");
|
56
|
-
Object.defineProperty(exports, "getStorageAt", { enumerable: true, get: function () { return getStorageAt_js_1.getStorageAt; } });
|
57
|
-
var getTransactionConfirmations_js_1 = require("./public/getTransactionConfirmations.js");
|
58
|
-
Object.defineProperty(exports, "getTransactionConfirmations", { enumerable: true, get: function () { return getTransactionConfirmations_js_1.getTransactionConfirmations; } });
|
59
|
-
var getTransactionCount_js_1 = require("./public/getTransactionCount.js");
|
60
|
-
Object.defineProperty(exports, "getTransactionCount", { enumerable: true, get: function () { return getTransactionCount_js_1.getTransactionCount; } });
|
61
|
-
var getTransaction_js_1 = require("./public/getTransaction.js");
|
62
|
-
Object.defineProperty(exports, "getTransaction", { enumerable: true, get: function () { return getTransaction_js_1.getTransaction; } });
|
63
|
-
var getTransactionReceipt_js_1 = require("./public/getTransactionReceipt.js");
|
64
|
-
Object.defineProperty(exports, "getTransactionReceipt", { enumerable: true, get: function () { return getTransactionReceipt_js_1.getTransactionReceipt; } });
|
65
|
-
var impersonateAccount_js_1 = require("./test/impersonateAccount.js");
|
66
|
-
Object.defineProperty(exports, "impersonateAccount", { enumerable: true, get: function () { return impersonateAccount_js_1.impersonateAccount; } });
|
67
|
-
var increaseTime_js_1 = require("./test/increaseTime.js");
|
68
|
-
Object.defineProperty(exports, "increaseTime", { enumerable: true, get: function () { return increaseTime_js_1.increaseTime; } });
|
69
|
-
var mine_js_1 = require("./test/mine.js");
|
70
|
-
Object.defineProperty(exports, "mine", { enumerable: true, get: function () { return mine_js_1.mine; } });
|
71
|
-
var multicall_js_1 = require("./public/multicall.js");
|
72
|
-
Object.defineProperty(exports, "multicall", { enumerable: true, get: function () { return multicall_js_1.multicall; } });
|
73
|
-
var watchBlocks_js_1 = require("./public/watchBlocks.js");
|
74
|
-
Object.defineProperty(exports, "watchBlocks", { enumerable: true, get: function () { return watchBlocks_js_1.watchBlocks; } });
|
75
|
-
var watchBlockNumber_js_1 = require("./public/watchBlockNumber.js");
|
76
|
-
Object.defineProperty(exports, "watchBlockNumber", { enumerable: true, get: function () { return watchBlockNumber_js_1.watchBlockNumber; } });
|
77
|
-
var watchEvent_js_1 = require("./public/watchEvent.js");
|
78
|
-
Object.defineProperty(exports, "watchEvent", { enumerable: true, get: function () { return watchEvent_js_1.watchEvent; } });
|
79
|
-
var watchPendingTransactions_js_1 = require("./public/watchPendingTransactions.js");
|
80
|
-
Object.defineProperty(exports, "watchPendingTransactions", { enumerable: true, get: function () { return watchPendingTransactions_js_1.watchPendingTransactions; } });
|
81
|
-
var readContract_js_1 = require("./public/readContract.js");
|
82
|
-
Object.defineProperty(exports, "readContract", { enumerable: true, get: function () { return readContract_js_1.readContract; } });
|
83
|
-
var getAddresses_js_1 = require("./wallet/getAddresses.js");
|
84
|
-
Object.defineProperty(exports, "getAddresses", { enumerable: true, get: function () { return getAddresses_js_1.getAddresses; } });
|
85
|
-
var getPermissions_js_1 = require("./wallet/getPermissions.js");
|
86
|
-
Object.defineProperty(exports, "getPermissions", { enumerable: true, get: function () { return getPermissions_js_1.getPermissions; } });
|
87
|
-
var waitForTransactionReceipt_js_1 = require("./public/waitForTransactionReceipt.js");
|
88
|
-
Object.defineProperty(exports, "waitForTransactionReceipt", { enumerable: true, get: function () { return waitForTransactionReceipt_js_1.waitForTransactionReceipt; } });
|
89
|
-
var requestAddresses_js_1 = require("./wallet/requestAddresses.js");
|
90
|
-
Object.defineProperty(exports, "requestAddresses", { enumerable: true, get: function () { return requestAddresses_js_1.requestAddresses; } });
|
91
|
-
var requestPermissions_js_1 = require("./wallet/requestPermissions.js");
|
92
|
-
Object.defineProperty(exports, "requestPermissions", { enumerable: true, get: function () { return requestPermissions_js_1.requestPermissions; } });
|
93
|
-
var dropTransaction_js_1 = require("./test/dropTransaction.js");
|
94
|
-
Object.defineProperty(exports, "dropTransaction", { enumerable: true, get: function () { return dropTransaction_js_1.dropTransaction; } });
|
95
|
-
var getAutomine_js_1 = require("./test/getAutomine.js");
|
96
|
-
Object.defineProperty(exports, "getAutomine", { enumerable: true, get: function () { return getAutomine_js_1.getAutomine; } });
|
97
|
-
var getTxpoolContent_js_1 = require("./test/getTxpoolContent.js");
|
98
|
-
Object.defineProperty(exports, "getTxpoolContent", { enumerable: true, get: function () { return getTxpoolContent_js_1.getTxpoolContent; } });
|
99
|
-
var getTxpoolStatus_js_1 = require("./test/getTxpoolStatus.js");
|
100
|
-
Object.defineProperty(exports, "getTxpoolStatus", { enumerable: true, get: function () { return getTxpoolStatus_js_1.getTxpoolStatus; } });
|
101
|
-
var inspectTxpool_js_1 = require("./test/inspectTxpool.js");
|
102
|
-
Object.defineProperty(exports, "inspectTxpool", { enumerable: true, get: function () { return inspectTxpool_js_1.inspectTxpool; } });
|
103
|
-
var reset_js_1 = require("./test/reset.js");
|
104
|
-
Object.defineProperty(exports, "reset", { enumerable: true, get: function () { return reset_js_1.reset; } });
|
105
|
-
var revert_js_1 = require("./test/revert.js");
|
106
|
-
Object.defineProperty(exports, "revert", { enumerable: true, get: function () { return revert_js_1.revert; } });
|
107
|
-
var prepareTransactionRequest_js_1 = require("./wallet/prepareTransactionRequest.js");
|
108
|
-
Object.defineProperty(exports, "prepareTransactionRequest", { enumerable: true, get: function () { return prepareTransactionRequest_js_1.prepareTransactionRequest; } });
|
109
|
-
var sendTransaction_js_1 = require("./wallet/sendTransaction.js");
|
110
|
-
Object.defineProperty(exports, "sendTransaction", { enumerable: true, get: function () { return sendTransaction_js_1.sendTransaction; } });
|
111
|
-
var signTransaction_js_1 = require("./wallet/signTransaction.js");
|
112
|
-
Object.defineProperty(exports, "signTransaction", { enumerable: true, get: function () { return signTransaction_js_1.signTransaction; } });
|
113
|
-
var sendRawTransaction_js_1 = require("./wallet/sendRawTransaction.js");
|
114
|
-
Object.defineProperty(exports, "sendRawTransaction", { enumerable: true, get: function () { return sendRawTransaction_js_1.sendRawTransaction; } });
|
115
|
-
var sendUnsignedTransaction_js_1 = require("./test/sendUnsignedTransaction.js");
|
116
|
-
Object.defineProperty(exports, "sendUnsignedTransaction", { enumerable: true, get: function () { return sendUnsignedTransaction_js_1.sendUnsignedTransaction; } });
|
117
|
-
var setBalance_js_1 = require("./test/setBalance.js");
|
118
|
-
Object.defineProperty(exports, "setBalance", { enumerable: true, get: function () { return setBalance_js_1.setBalance; } });
|
119
|
-
var setAutomine_js_1 = require("./test/setAutomine.js");
|
120
|
-
Object.defineProperty(exports, "setAutomine", { enumerable: true, get: function () { return setAutomine_js_1.setAutomine; } });
|
121
|
-
var setBlockGasLimit_js_1 = require("./test/setBlockGasLimit.js");
|
122
|
-
Object.defineProperty(exports, "setBlockGasLimit", { enumerable: true, get: function () { return setBlockGasLimit_js_1.setBlockGasLimit; } });
|
123
|
-
var setBlockTimestampInterval_js_1 = require("./test/setBlockTimestampInterval.js");
|
124
|
-
Object.defineProperty(exports, "setBlockTimestampInterval", { enumerable: true, get: function () { return setBlockTimestampInterval_js_1.setBlockTimestampInterval; } });
|
125
|
-
var setCode_js_1 = require("./test/setCode.js");
|
126
|
-
Object.defineProperty(exports, "setCode", { enumerable: true, get: function () { return setCode_js_1.setCode; } });
|
127
|
-
var setCoinbase_js_1 = require("./test/setCoinbase.js");
|
128
|
-
Object.defineProperty(exports, "setCoinbase", { enumerable: true, get: function () { return setCoinbase_js_1.setCoinbase; } });
|
129
|
-
var setIntervalMining_js_1 = require("./test/setIntervalMining.js");
|
130
|
-
Object.defineProperty(exports, "setIntervalMining", { enumerable: true, get: function () { return setIntervalMining_js_1.setIntervalMining; } });
|
131
|
-
var setMinGasPrice_js_1 = require("./test/setMinGasPrice.js");
|
132
|
-
Object.defineProperty(exports, "setMinGasPrice", { enumerable: true, get: function () { return setMinGasPrice_js_1.setMinGasPrice; } });
|
133
|
-
var setNextBlockBaseFeePerGas_js_1 = require("./test/setNextBlockBaseFeePerGas.js");
|
134
|
-
Object.defineProperty(exports, "setNextBlockBaseFeePerGas", { enumerable: true, get: function () { return setNextBlockBaseFeePerGas_js_1.setNextBlockBaseFeePerGas; } });
|
135
|
-
var setNextBlockTimestamp_js_1 = require("./test/setNextBlockTimestamp.js");
|
136
|
-
Object.defineProperty(exports, "setNextBlockTimestamp", { enumerable: true, get: function () { return setNextBlockTimestamp_js_1.setNextBlockTimestamp; } });
|
137
|
-
var setNonce_js_1 = require("./test/setNonce.js");
|
138
|
-
Object.defineProperty(exports, "setNonce", { enumerable: true, get: function () { return setNonce_js_1.setNonce; } });
|
139
|
-
var setStorageAt_js_1 = require("./test/setStorageAt.js");
|
140
|
-
Object.defineProperty(exports, "setStorageAt", { enumerable: true, get: function () { return setStorageAt_js_1.setStorageAt; } });
|
141
|
-
var snapshot_js_1 = require("./test/snapshot.js");
|
142
|
-
Object.defineProperty(exports, "snapshot", { enumerable: true, get: function () { return snapshot_js_1.snapshot; } });
|
143
|
-
var signMessage_js_1 = require("./wallet/signMessage.js");
|
144
|
-
Object.defineProperty(exports, "signMessage", { enumerable: true, get: function () { return signMessage_js_1.signMessage; } });
|
145
|
-
var signTypedData_js_1 = require("./wallet/signTypedData.js");
|
146
|
-
Object.defineProperty(exports, "signTypedData", { enumerable: true, get: function () { return signTypedData_js_1.signTypedData; } });
|
147
|
-
var simulateContract_js_1 = require("./public/simulateContract.js");
|
148
|
-
Object.defineProperty(exports, "simulateContract", { enumerable: true, get: function () { return simulateContract_js_1.simulateContract; } });
|
149
|
-
var stopImpersonatingAccount_js_1 = require("./test/stopImpersonatingAccount.js");
|
150
|
-
Object.defineProperty(exports, "stopImpersonatingAccount", { enumerable: true, get: function () { return stopImpersonatingAccount_js_1.stopImpersonatingAccount; } });
|
151
|
-
var switchChain_js_1 = require("./wallet/switchChain.js");
|
152
|
-
Object.defineProperty(exports, "switchChain", { enumerable: true, get: function () { return switchChain_js_1.switchChain; } });
|
153
|
-
var uninstallFilter_js_1 = require("./public/uninstallFilter.js");
|
154
|
-
Object.defineProperty(exports, "uninstallFilter", { enumerable: true, get: function () { return uninstallFilter_js_1.uninstallFilter; } });
|
155
|
-
var verifyHash_js_1 = require("./public/verifyHash.js");
|
156
|
-
Object.defineProperty(exports, "verifyHash", { enumerable: true, get: function () { return verifyHash_js_1.verifyHash; } });
|
157
|
-
var verifyMessage_js_1 = require("./public/verifyMessage.js");
|
158
|
-
Object.defineProperty(exports, "verifyMessage", { enumerable: true, get: function () { return verifyMessage_js_1.verifyMessage; } });
|
159
|
-
var verifyTypedData_js_1 = require("./public/verifyTypedData.js");
|
160
|
-
Object.defineProperty(exports, "verifyTypedData", { enumerable: true, get: function () { return verifyTypedData_js_1.verifyTypedData; } });
|
161
|
-
var watchAsset_js_1 = require("./wallet/watchAsset.js");
|
162
|
-
Object.defineProperty(exports, "watchAsset", { enumerable: true, get: function () { return watchAsset_js_1.watchAsset; } });
|
163
|
-
var watchContractEvent_js_1 = require("./public/watchContractEvent.js");
|
164
|
-
Object.defineProperty(exports, "watchContractEvent", { enumerable: true, get: function () { return watchContractEvent_js_1.watchContractEvent; } });
|
165
|
-
var writeContract_js_1 = require("./wallet/writeContract.js");
|
166
|
-
Object.defineProperty(exports, "writeContract", { enumerable: true, get: function () { return writeContract_js_1.writeContract; } });
|
167
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;;AAAA,2DAK+B;AAD7B,iHAAA,aAAa,OAAA;AAEf,yDAK8B;AAD5B,+GAAA,YAAY,OAAA;AAEd,qDAK4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,6DAKgC;AAD9B,mHAAA,cAAc,OAAA;AAEhB,qDAK4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,4CAKyB;AADvB,+FAAA,IAAI,OAAA;AAEN,sEAIsC;AADpC,yHAAA,iBAAiB,OAAA;AAEnB,sFAK8C;AAD5C,yIAAA,yBAAyB,OAAA;AAE3B,sEAKsC;AADpC,yHAAA,iBAAiB,OAAA;AAEnB,gGAImD;AADjD,mJAAA,8BAA8B,OAAA;AAEhC,0EAKwC;AADtC,6HAAA,mBAAmB,OAAA;AAErB,wEAKuC;AADrC,2HAAA,kBAAkB,OAAA;AAEpB,4FAKiD;AAD/C,+IAAA,4BAA4B,OAAA;AAE9B,0DAKgC;AAD9B,6GAAA,WAAW,OAAA;AAEb,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,oDAK6B;AAD3B,uGAAA,QAAQ,OAAA;AAEV,gEAKmC;AADjC,mHAAA,cAAc,OAAA;AAEhB,oFAK6C;AAD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AA,aAAa,OAAA;AAEf,kEAKoC;AADlC,qHAAA,eAAe,OAAA;AAEjB,wDAK+B;AAD7B,2GAAA,UAAU,OAAA;AAEZ,wEAKuC;AADrC,2HAAA,kBAAkB,OAAA;AAEpB,8DAKkC;AADhC,iHAAA,aAAa,OAAA"}
|
@@ -1,156 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getRevertErrorData = exports.call = void 0;
|
4
|
-
const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
|
5
|
-
const abis_js_1 = require("../../constants/abis.js");
|
6
|
-
const contract_js_1 = require("../../constants/contract.js");
|
7
|
-
const base_js_1 = require("../../errors/base.js");
|
8
|
-
const chain_js_1 = require("../../errors/chain.js");
|
9
|
-
const contract_js_2 = require("../../errors/contract.js");
|
10
|
-
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
11
|
-
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
12
|
-
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
13
|
-
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
14
|
-
const getCallError_js_1 = require("../../utils/errors/getCallError.js");
|
15
|
-
const extract_js_1 = require("../../utils/formatters/extract.js");
|
16
|
-
const transactionRequest_js_1 = require("../../utils/formatters/transactionRequest.js");
|
17
|
-
const createBatchScheduler_js_1 = require("../../utils/promise/createBatchScheduler.js");
|
18
|
-
const assertRequest_js_1 = require("../../utils/transaction/assertRequest.js");
|
19
|
-
async function call(client, args) {
|
20
|
-
const { account: account_ = client.account, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = 'latest', accessList, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest } = args;
|
21
|
-
const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : undefined;
|
22
|
-
try {
|
23
|
-
(0, assertRequest_js_1.assertRequest)(args);
|
24
|
-
const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
|
25
|
-
const block = blockNumberHex || blockTag;
|
26
|
-
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
27
|
-
const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
|
28
|
-
const request = format({
|
29
|
-
...(0, extract_js_1.extract)(rest, { format: chainFormat }),
|
30
|
-
from: account?.address,
|
31
|
-
accessList,
|
32
|
-
data,
|
33
|
-
gas,
|
34
|
-
gasPrice,
|
35
|
-
maxFeePerGas,
|
36
|
-
maxPriorityFeePerGas,
|
37
|
-
nonce,
|
38
|
-
to,
|
39
|
-
value,
|
40
|
-
});
|
41
|
-
if (batch && shouldPerformMulticall({ request })) {
|
42
|
-
try {
|
43
|
-
return await scheduleMulticall(client, {
|
44
|
-
...request,
|
45
|
-
blockNumber,
|
46
|
-
blockTag,
|
47
|
-
});
|
48
|
-
}
|
49
|
-
catch (err) {
|
50
|
-
if (!(err instanceof chain_js_1.ClientChainNotConfiguredError) &&
|
51
|
-
!(err instanceof chain_js_1.ChainDoesNotSupportContract))
|
52
|
-
throw err;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
const response = await client.request({
|
56
|
-
method: 'eth_call',
|
57
|
-
params: block
|
58
|
-
? [request, block]
|
59
|
-
: [request],
|
60
|
-
});
|
61
|
-
if (response === '0x')
|
62
|
-
return { data: undefined };
|
63
|
-
return { data: response };
|
64
|
-
}
|
65
|
-
catch (err) {
|
66
|
-
const data = getRevertErrorData(err);
|
67
|
-
const { offchainLookup, offchainLookupSignature } = await Promise.resolve().then(() => require('../../utils/ccip.js'));
|
68
|
-
if (data?.slice(0, 10) === offchainLookupSignature && to) {
|
69
|
-
return { data: await offchainLookup(client, { data, to }) };
|
70
|
-
}
|
71
|
-
throw (0, getCallError_js_1.getCallError)(err, {
|
72
|
-
...args,
|
73
|
-
account,
|
74
|
-
chain: client.chain,
|
75
|
-
});
|
76
|
-
}
|
77
|
-
}
|
78
|
-
exports.call = call;
|
79
|
-
function shouldPerformMulticall({ request }) {
|
80
|
-
const { data, to, ...request_ } = request;
|
81
|
-
if (!data)
|
82
|
-
return false;
|
83
|
-
if (data.startsWith(contract_js_1.aggregate3Signature))
|
84
|
-
return false;
|
85
|
-
if (!to)
|
86
|
-
return false;
|
87
|
-
if (Object.values(request_).filter((x) => typeof x !== 'undefined').length > 0)
|
88
|
-
return false;
|
89
|
-
return true;
|
90
|
-
}
|
91
|
-
async function scheduleMulticall(client, args) {
|
92
|
-
const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === 'object' ? client.batch.multicall : {};
|
93
|
-
const { blockNumber, blockTag = 'latest', data, multicallAddress: multicallAddress_, to, } = args;
|
94
|
-
let multicallAddress = multicallAddress_;
|
95
|
-
if (!multicallAddress) {
|
96
|
-
if (!client.chain)
|
97
|
-
throw new chain_js_1.ClientChainNotConfiguredError();
|
98
|
-
multicallAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
99
|
-
blockNumber,
|
100
|
-
chain: client.chain,
|
101
|
-
contract: 'multicall3',
|
102
|
-
});
|
103
|
-
}
|
104
|
-
const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
|
105
|
-
const block = blockNumberHex || blockTag;
|
106
|
-
const { schedule } = (0, createBatchScheduler_js_1.createBatchScheduler)({
|
107
|
-
id: `${client.uid}.${block}`,
|
108
|
-
wait,
|
109
|
-
shouldSplitBatch(args) {
|
110
|
-
const size = args.reduce((size, { data }) => size + (data.length - 2), 0);
|
111
|
-
return size > batchSize * 2;
|
112
|
-
},
|
113
|
-
fn: async (requests) => {
|
114
|
-
const calls = requests.map((request) => ({
|
115
|
-
allowFailure: true,
|
116
|
-
callData: request.data,
|
117
|
-
target: request.to,
|
118
|
-
}));
|
119
|
-
const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
120
|
-
abi: abis_js_1.multicall3Abi,
|
121
|
-
args: [calls],
|
122
|
-
functionName: 'aggregate3',
|
123
|
-
});
|
124
|
-
const data = await client.request({
|
125
|
-
method: 'eth_call',
|
126
|
-
params: [
|
127
|
-
{
|
128
|
-
data: calldata,
|
129
|
-
to: multicallAddress,
|
130
|
-
},
|
131
|
-
block,
|
132
|
-
],
|
133
|
-
});
|
134
|
-
return (0, decodeFunctionResult_js_1.decodeFunctionResult)({
|
135
|
-
abi: abis_js_1.multicall3Abi,
|
136
|
-
args: [calls],
|
137
|
-
functionName: 'aggregate3',
|
138
|
-
data: data || '0x',
|
139
|
-
});
|
140
|
-
},
|
141
|
-
});
|
142
|
-
const [{ returnData, success }] = await schedule({ data, to });
|
143
|
-
if (!success)
|
144
|
-
throw new contract_js_2.RawContractError({ data: returnData });
|
145
|
-
if (returnData === '0x')
|
146
|
-
return { data: undefined };
|
147
|
-
return { data: returnData };
|
148
|
-
}
|
149
|
-
function getRevertErrorData(err) {
|
150
|
-
if (!(err instanceof base_js_1.BaseError))
|
151
|
-
return undefined;
|
152
|
-
const error = err.walk();
|
153
|
-
return typeof error.data === 'object' ? error.data.data : error.data;
|
154
|
-
}
|
155
|
-
exports.getRevertErrorData = getRevertErrorData;
|
156
|
-
//# sourceMappingURL=call.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../actions/public/call.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAG7C,qDAAuD;AACvD,6DAAiE;AACjE,kDAAgD;AAChD,oDAG8B;AAC9B,0DAGiC;AAQjC,qFAGgD;AAChD,iFAG8C;AAE9C,6FAGqD;AACrD,4DAGsC;AACtC,wEAG2C;AAC3C,kEAA2D;AAC3D,wFAIqD;AACrD,yFAGoD;AACpD,+EAAwE;AAmEjE,KAAK,UAAU,IAAI,CACxB,MAAiC,EACjC,IAA4B;IAE5B,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SA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I,UAAU,KAAK,IAAI;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;IACnD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;AAC7B,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,IAAI,CAAC,CAAC,GAAG,YAAY,mBAAS,CAAC;QAAE,OAAO,SAAS,CAAA;IACjD,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAsB,CAAA;IAC5C,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAA;AACtE,CAAC;AAJD,gDAIC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createBlockFilter = void 0;
|
4
|
-
const createFilterRequestScope_js_1 = require("../../utils/filters/createFilterRequestScope.js");
|
5
|
-
async function createBlockFilter(client) {
|
6
|
-
const getRequest = (0, createFilterRequestScope_js_1.createFilterRequestScope)(client, {
|
7
|
-
method: 'eth_newBlockFilter',
|
8
|
-
});
|
9
|
-
const id = await client.request({
|
10
|
-
method: 'eth_newBlockFilter',
|
11
|
-
});
|
12
|
-
return { id, request: getRequest(id), type: 'block' };
|
13
|
-
}
|
14
|
-
exports.createBlockFilter = createBlockFilter;
|
15
|
-
//# sourceMappingURL=createBlockFilter.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createBlockFilter.js","sourceRoot":"","sources":["../../../actions/public/createBlockFilter.ts"],"names":[],"mappings":";;;AAMA,iGAA0F;AA2BnF,KAAK,UAAU,iBAAiB,CACrC,MAAiC;IAEjC,MAAM,UAAU,GAAG,IAAA,sDAAwB,EAAC,MAAM,EAAE;QAClD,MAAM,EAAE,oBAAoB;KAC7B,CAAC,CAAA;IACF,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAC9B,MAAM,EAAE,oBAAoB;KAC7B,CAAC,CAAA;IACF,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AACvD,CAAC;AAVD,8CAUC"}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createContractEventFilter = void 0;
|
4
|
-
const encodeEventTopics_js_1 = require("../../utils/abi/encodeEventTopics.js");
|
5
|
-
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
|
-
const createFilterRequestScope_js_1 = require("../../utils/filters/createFilterRequestScope.js");
|
7
|
-
async function createContractEventFilter(client, parameters) {
|
8
|
-
const { address, abi, args, eventName, fromBlock, strict, toBlock } = parameters;
|
9
|
-
const getRequest = (0, createFilterRequestScope_js_1.createFilterRequestScope)(client, {
|
10
|
-
method: 'eth_newFilter',
|
11
|
-
});
|
12
|
-
const topics = eventName
|
13
|
-
? (0, encodeEventTopics_js_1.encodeEventTopics)({
|
14
|
-
abi,
|
15
|
-
args,
|
16
|
-
eventName,
|
17
|
-
})
|
18
|
-
: undefined;
|
19
|
-
const id = await client.request({
|
20
|
-
method: 'eth_newFilter',
|
21
|
-
params: [
|
22
|
-
{
|
23
|
-
address,
|
24
|
-
fromBlock: typeof fromBlock === 'bigint' ? (0, toHex_js_1.numberToHex)(fromBlock) : fromBlock,
|
25
|
-
toBlock: typeof toBlock === 'bigint' ? (0, toHex_js_1.numberToHex)(toBlock) : toBlock,
|
26
|
-
topics,
|
27
|
-
},
|
28
|
-
],
|
29
|
-
});
|
30
|
-
return {
|
31
|
-
abi,
|
32
|
-
args,
|
33
|
-
eventName,
|
34
|
-
id,
|
35
|
-
request: getRequest(id),
|
36
|
-
strict,
|
37
|
-
type: 'event',
|
38
|
-
};
|
39
|
-
}
|
40
|
-
exports.createContractEventFilter = createContractEventFilter;
|
41
|
-
//# sourceMappingURL=createContractEventFilter.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createContractEventFilter.js","sourceRoot":"","sources":["../../../actions/public/createContractEventFilter.ts"],"names":[],"mappings":";;;AAaA,+EAI6C;AAE7C,4DAGsC;AACtC,iGAA0F;AAyEnF,KAAK,UAAU,yBAAyB,CAS7C,MAAgC,EAChC,UAOC;IAWD,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GACjE,UAAiD,CAAA;IAEnD,MAAM,UAAU,GAAG,IAAA,sDAAwB,EAAC,MAAM,EAAE;QAClD,MAAM,EAAE,eAAe;KACxB,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,SAAS;QACtB,CAAC,CAAC,IAAA,wCAAiB,EAAC;YAChB,GAAG;YACH,IAAI;YACJ,SAAS;SACgC,CAAC;QAC9C,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,EAAE,GAAQ,MAAM,MAAM,CAAC,OAAO,CAAC;QACnC,MAAM,EAAE,eAAe;QACvB,MAAM,EAAE;YACN;gBACE,OAAO;gBACP,SAAS,EACP,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,sBAAW,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;gBACpE,OAAO,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrE,MAAM;aACP;SACF;KACF,CAAC,CAAA;IAEF,OAAO;QACL,GAAG;QACH,IAAI;QACJ,SAAS;QACT,EAAE;QACF,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC;QACvB,MAAM;QACN,IAAI,EAAE,OAAO;KAQd,CAAA;AACH,CAAC;AAvED,8DAuEC"}
|