viem 2.17.2 → 2.17.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/CHANGELOG.md +12 -0
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createBlockFilter.js.map +1 -1
- package/_cjs/actions/public/createEventFilter.js.map +1 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/getBalance.js.map +1 -1
- package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
- package/_cjs/actions/public/getBlock.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getChainId.js.map +1 -1
- package/_cjs/actions/public/getCode.js.map +1 -1
- package/_cjs/actions/public/getFeeHistory.js.map +1 -1
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getGasPrice.js.map +1 -1
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/getProof.js.map +1 -1
- package/_cjs/actions/public/getStorageAt.js.map +1 -1
- package/_cjs/actions/public/getTransaction.js.map +1 -1
- package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_cjs/actions/public/getTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/uninstallFilter.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +9 -0
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/test/dropTransaction.js.map +1 -1
- package/_cjs/actions/test/dumpState.js.map +1 -1
- package/_cjs/actions/test/getAutomine.js.map +1 -1
- package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
- package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
- package/_cjs/actions/test/impersonateAccount.js.map +1 -1
- package/_cjs/actions/test/increaseTime.js.map +1 -1
- package/_cjs/actions/test/inspectTxpool.js.map +1 -1
- package/_cjs/actions/test/loadState.js.map +1 -1
- package/_cjs/actions/test/mine.js.map +1 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/reset.js.map +1 -1
- package/_cjs/actions/test/revert.js.map +1 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_cjs/actions/test/setAutomine.js.map +1 -1
- package/_cjs/actions/test/setBalance.js.map +1 -1
- package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/setCode.js.map +1 -1
- package/_cjs/actions/test/setCoinbase.js.map +1 -1
- package/_cjs/actions/test/setIntervalMining.js.map +1 -1
- package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
- package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_cjs/actions/test/setNonce.js.map +1 -1
- package/_cjs/actions/test/setRpcUrl.js.map +1 -1
- package/_cjs/actions/test/setStorageAt.js.map +1 -1
- package/_cjs/actions/test/snapshot.js.map +1 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_cjs/actions/wallet/addChain.js.map +1 -1
- package/_cjs/actions/wallet/getAddresses.js.map +1 -1
- package/_cjs/actions/wallet/getPermissions.js.map +1 -1
- package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
- package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
- package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signMessage.js.map +1 -1
- package/_cjs/actions/wallet/switchChain.js.map +1 -1
- package/_cjs/actions/wallet/watchAsset.js.map +1 -1
- package/_cjs/celo/parsers.js.map +1 -1
- package/_cjs/chains/definitions/dreyerxTestnet.js +26 -0
- package/_cjs/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_cjs/chains/index.js +8 -6
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
- package/_cjs/op-stack/parsers.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/data/trim.js.map +1 -1
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/hash/keccak256.js.map +1 -1
- package/_cjs/utils/hash/ripemd160.js.map +1 -1
- package/_cjs/utils/hash/sha256.js.map +1 -1
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/poll.js.map +1 -1
- package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
- package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
- package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
- package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
- package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_cjs/zksync/actions/getLogProof.js.map +1 -1
- package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/signTransaction.js.map +1 -1
- package/_cjs/zksync/decorators/publicL1.js.map +1 -1
- package/_cjs/zksync/decorators/publicL2.js.map +1 -1
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/ens/getEnsResolver.js.map +1 -1
- package/_esm/actions/ens/getEnsText.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createBlockFilter.js.map +1 -1
- package/_esm/actions/public/createEventFilter.js.map +1 -1
- package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/getBalance.js.map +1 -1
- package/_esm/actions/public/getBlobBaseFee.js.map +1 -1
- package/_esm/actions/public/getBlock.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_esm/actions/public/getChainId.js.map +1 -1
- package/_esm/actions/public/getCode.js.map +1 -1
- package/_esm/actions/public/getFeeHistory.js.map +1 -1
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getGasPrice.js.map +1 -1
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/getProof.js.map +1 -1
- package/_esm/actions/public/getStorageAt.js.map +1 -1
- package/_esm/actions/public/getTransaction.js.map +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js.map +1 -1
- package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/uninstallFilter.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +10 -0
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
- package/_esm/actions/test/dropTransaction.js.map +1 -1
- package/_esm/actions/test/dumpState.js.map +1 -1
- package/_esm/actions/test/getAutomine.js.map +1 -1
- package/_esm/actions/test/getTxpoolContent.js.map +1 -1
- package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
- package/_esm/actions/test/impersonateAccount.js.map +1 -1
- package/_esm/actions/test/increaseTime.js.map +1 -1
- package/_esm/actions/test/inspectTxpool.js.map +1 -1
- package/_esm/actions/test/loadState.js.map +1 -1
- package/_esm/actions/test/mine.js.map +1 -1
- package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/reset.js.map +1 -1
- package/_esm/actions/test/revert.js.map +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_esm/actions/test/setAutomine.js.map +1 -1
- package/_esm/actions/test/setBalance.js.map +1 -1
- package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
- package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/setCode.js.map +1 -1
- package/_esm/actions/test/setCoinbase.js.map +1 -1
- package/_esm/actions/test/setIntervalMining.js.map +1 -1
- package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
- package/_esm/actions/test/setMinGasPrice.js.map +1 -1
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_esm/actions/test/setNonce.js.map +1 -1
- package/_esm/actions/test/setRpcUrl.js.map +1 -1
- package/_esm/actions/test/setStorageAt.js.map +1 -1
- package/_esm/actions/test/snapshot.js.map +1 -1
- package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_esm/actions/wallet/addChain.js.map +1 -1
- package/_esm/actions/wallet/getAddresses.js.map +1 -1
- package/_esm/actions/wallet/getPermissions.js.map +1 -1
- package/_esm/actions/wallet/requestAddresses.js.map +1 -1
- package/_esm/actions/wallet/requestPermissions.js.map +1 -1
- package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_esm/actions/wallet/signMessage.js.map +1 -1
- package/_esm/actions/wallet/switchChain.js.map +1 -1
- package/_esm/actions/wallet/watchAsset.js.map +1 -1
- package/_esm/celo/parsers.js.map +1 -1
- package/_esm/chains/definitions/dreyerxTestnet.js +23 -0
- package/_esm/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/test.js.map +1 -1
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/clients/transports/createTransport.js.map +1 -1
- package/_esm/clients/transports/custom.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_esm/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_esm/op-stack/decorators/publicL1.js.map +1 -1
- package/_esm/op-stack/decorators/publicL2.js.map +1 -1
- package/_esm/op-stack/decorators/walletL1.js.map +1 -1
- package/_esm/op-stack/decorators/walletL2.js.map +1 -1
- package/_esm/op-stack/parsers.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodePacked.js.map +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/data/concat.js.map +1 -1
- package/_esm/utils/data/pad.js.map +1 -1
- package/_esm/utils/data/slice.js.map +1 -1
- package/_esm/utils/data/trim.js.map +1 -1
- package/_esm/utils/encoding/fromBytes.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_esm/utils/formatters/formatter.js.map +1 -1
- package/_esm/utils/hash/keccak256.js.map +1 -1
- package/_esm/utils/hash/ripemd160.js.map +1 -1
- package/_esm/utils/hash/sha256.js.map +1 -1
- package/_esm/utils/observe.js.map +1 -1
- package/_esm/utils/poll.js.map +1 -1
- package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
- package/_esm/utils/promise/withCache.js.map +1 -1
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/zksync/actions/getAllBalances.js.map +1 -1
- package/_esm/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_esm/zksync/actions/getBlockDetails.js.map +1 -1
- package/_esm/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
- package/_esm/zksync/actions/getL1Balance.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_esm/zksync/actions/getL1ChainId.js.map +1 -1
- package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_esm/zksync/actions/getLogProof.js.map +1 -1
- package/_esm/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_esm/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_esm/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_esm/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_esm/zksync/actions/signTransaction.js.map +1 -1
- package/_esm/zksync/decorators/publicL1.js.map +1 -1
- package/_esm/zksync/decorators/publicL2.js.map +1 -1
- package/_types/accounts/toAccount.d.ts +2 -2
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +6 -6
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts +1 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
- package/_types/actions/ens/getEnsText.d.ts +1 -1
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +60 -60
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +3 -3
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createBlockFilter.d.ts +1 -1
- package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
- package/_types/actions/public/createContractEventFilter.d.ts +2 -2
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createEventFilter.d.ts +13 -13
- package/_types/actions/public/createEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +3 -3
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +1 -1
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +5 -5
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -1
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getChainId.d.ts +1 -1
- package/_types/actions/public/getChainId.d.ts.map +1 -1
- package/_types/actions/public/getCode.d.ts +1 -1
- package/_types/actions/public/getCode.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts +1 -1
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +1 -1
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
- package/_types/actions/public/getFilterChanges.d.ts +4 -4
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/getFilterLogs.d.ts +4 -4
- package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/_types/actions/public/getGasPrice.d.ts +1 -1
- package/_types/actions/public/getGasPrice.d.ts.map +1 -1
- package/_types/actions/public/getLogs.d.ts +10 -10
- package/_types/actions/public/getLogs.d.ts.map +1 -1
- package/_types/actions/public/getProof.d.ts +1 -1
- package/_types/actions/public/getProof.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +1 -1
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +4 -4
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +3 -3
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +1 -1
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/uninstallFilter.d.ts +1 -1
- package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -7
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +3 -3
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts +8 -8
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +11 -11
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts +3 -3
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
- package/_types/actions/test/dropTransaction.d.ts +1 -1
- package/_types/actions/test/dropTransaction.d.ts.map +1 -1
- package/_types/actions/test/dumpState.d.ts +1 -1
- package/_types/actions/test/dumpState.d.ts.map +1 -1
- package/_types/actions/test/getAutomine.d.ts +1 -1
- package/_types/actions/test/getAutomine.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
- package/_types/actions/test/impersonateAccount.d.ts +1 -1
- package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
- package/_types/actions/test/increaseTime.d.ts +1 -1
- package/_types/actions/test/increaseTime.d.ts.map +1 -1
- package/_types/actions/test/inspectTxpool.d.ts +1 -1
- package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
- package/_types/actions/test/loadState.d.ts +1 -1
- package/_types/actions/test/loadState.d.ts.map +1 -1
- package/_types/actions/test/mine.d.ts +1 -1
- package/_types/actions/test/mine.d.ts.map +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/reset.d.ts +1 -1
- package/_types/actions/test/reset.d.ts.map +1 -1
- package/_types/actions/test/revert.d.ts +1 -1
- package/_types/actions/test/revert.d.ts.map +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
- package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/_types/actions/test/setAutomine.d.ts +1 -1
- package/_types/actions/test/setAutomine.d.ts.map +1 -1
- package/_types/actions/test/setBalance.d.ts +1 -1
- package/_types/actions/test/setBalance.d.ts.map +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/setCode.d.ts +1 -1
- package/_types/actions/test/setCode.d.ts.map +1 -1
- package/_types/actions/test/setCoinbase.d.ts +1 -1
- package/_types/actions/test/setCoinbase.d.ts.map +1 -1
- package/_types/actions/test/setIntervalMining.d.ts +1 -1
- package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
- package/_types/actions/test/setNonce.d.ts +1 -1
- package/_types/actions/test/setNonce.d.ts.map +1 -1
- package/_types/actions/test/setRpcUrl.d.ts +1 -1
- package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
- package/_types/actions/test/setStorageAt.d.ts +1 -1
- package/_types/actions/test/setStorageAt.d.ts.map +1 -1
- package/_types/actions/test/snapshot.d.ts +1 -1
- package/_types/actions/test/snapshot.d.ts.map +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
- package/_types/actions/wallet/addChain.d.ts +1 -1
- package/_types/actions/wallet/addChain.d.ts.map +1 -1
- package/_types/actions/wallet/getAddresses.d.ts +1 -1
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/getPermissions.d.ts +1 -1
- package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signMessage.d.ts +2 -2
- package/_types/actions/wallet/signMessage.d.ts.map +1 -1
- package/_types/actions/wallet/switchChain.d.ts +1 -1
- package/_types/actions/wallet/switchChain.d.ts.map +1 -1
- package/_types/actions/wallet/watchAsset.d.ts +1 -1
- package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
- package/_types/celo/parsers.d.ts +2 -2
- package/_types/celo/parsers.d.ts.map +1 -1
- package/_types/celo/types.d.ts +1 -1
- package/_types/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/dreyerxTestnet.d.ts +35 -0
- package/_types/chains/definitions/dreyerxTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +23 -23
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts +4 -4
- package/_types/clients/decorators/test.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +10 -10
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/clients/transports/createTransport.d.ts +9 -9
- package/_types/clients/transports/createTransport.d.ts.map +1 -1
- package/_types/clients/transports/custom.d.ts +1 -1
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/errors/rpc.d.ts +5 -5
- package/_types/errors/rpc.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/op-stack/actions/estimateL1Gas.d.ts +2 -2
- package/_types/op-stack/actions/estimateL1Gas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalFee.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalFee.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalGas.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/getL1BaseFee.d.ts +2 -2
- package/_types/op-stack/actions/getL1BaseFee.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
- package/_types/op-stack/parsers.d.ts +2 -2
- package/_types/op-stack/parsers.d.ts.map +1 -1
- package/_types/op-stack/types/block.d.ts +2 -2
- package/_types/op-stack/types/block.d.ts.map +1 -1
- package/_types/op-stack/types/transaction.d.ts +8 -8
- package/_types/op-stack/types/transaction.d.ts.map +1 -1
- package/_types/types/account.d.ts +5 -5
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/block.d.ts +7 -7
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/contract.d.ts +20 -20
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +35 -35
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/filter.d.ts +16 -16
- package/_types/types/filter.d.ts.map +1 -1
- package/_types/types/log.d.ts +20 -20
- package/_types/types/log.d.ts.map +1 -1
- package/_types/types/proof.d.ts +6 -6
- package/_types/types/proof.d.ts.map +1 -1
- package/_types/types/rpc.d.ts +2 -2
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/transport.d.ts +1 -1
- package/_types/types/transport.d.ts.map +1 -1
- package/_types/types/utils.d.ts +2 -2
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +2 -2
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodePacked.d.ts +4 -4
- package/_types/utils/abi/encodePacked.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +1 -1
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/data/concat.d.ts +2 -2
- package/_types/utils/data/concat.d.ts.map +1 -1
- package/_types/utils/data/pad.d.ts +2 -2
- package/_types/utils/data/pad.d.ts.map +1 -1
- package/_types/utils/data/slice.d.ts +3 -3
- package/_types/utils/data/slice.d.ts.map +1 -1
- package/_types/utils/data/trim.d.ts +2 -2
- package/_types/utils/data/trim.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +4 -4
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +4 -4
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts +1 -1
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +7 -7
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +6 -6
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +7 -7
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +6 -6
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +6 -6
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/hash/keccak256.d.ts +2 -2
- package/_types/utils/hash/keccak256.d.ts.map +1 -1
- package/_types/utils/hash/ripemd160.d.ts +2 -2
- package/_types/utils/hash/ripemd160.d.ts.map +1 -1
- package/_types/utils/hash/sha256.d.ts +2 -2
- package/_types/utils/hash/sha256.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +2 -2
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/poll.d.ts +4 -4
- package/_types/utils/poll.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +11 -11
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +7 -7
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts +1 -1
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts +3 -3
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +4 -4
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +2 -2
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +2 -2
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/_types/zksync/actions/getAllBalances.d.ts +2 -2
- package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts.map +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Allowance.d.ts +2 -2
- package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Balance.d.ts +2 -2
- package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts.map +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts.map +1 -1
- package/_types/zksync/actions/getL1TokenBalance.d.ts +2 -2
- package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
- package/_types/zksync/actions/getLogProof.d.ts +1 -1
- package/_types/zksync/actions/getLogProof.d.ts.map +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts.map +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts.map +1 -1
- package/_types/zksync/actions/signEip712Transaction.d.ts +3 -3
- package/_types/zksync/actions/signEip712Transaction.d.ts.map +1 -1
- package/_types/zksync/actions/signTransaction.d.ts +3 -3
- package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL1.d.ts +5 -5
- package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL2.d.ts +4 -4
- package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
- package/_types/zksync/types/block.d.ts +2 -2
- package/_types/zksync/types/block.d.ts.map +1 -1
- package/_types/zksync/types/eip712.d.ts +3 -3
- package/_types/zksync/types/eip712.d.ts.map +1 -1
- package/_types/zksync/types/fee.d.ts +9 -9
- package/_types/zksync/types/fee.d.ts.map +1 -1
- package/_types/zksync/types/log.d.ts +3 -3
- package/_types/zksync/types/log.d.ts.map +1 -1
- package/_types/zksync/types/transaction.d.ts +18 -18
- package/_types/zksync/types/transaction.d.ts.map +1 -1
- package/accounts/toAccount.ts +8 -8
- package/accounts/types.ts +8 -8
- package/actions/ens/getEnsAddress.ts +2 -2
- package/actions/ens/getEnsAvatar.ts +2 -2
- package/actions/ens/getEnsName.ts +2 -2
- package/actions/ens/getEnsResolver.ts +2 -2
- package/actions/ens/getEnsText.ts +2 -2
- package/actions/getContract.ts +302 -300
- package/actions/public/call.ts +12 -12
- package/actions/public/createBlockFilter.ts +2 -2
- package/actions/public/createContractEventFilter.ts +3 -3
- package/actions/public/createEventFilter.ts +65 -64
- package/actions/public/createPendingTransactionFilter.ts +3 -3
- package/actions/public/estimateGas.ts +8 -9
- package/actions/public/getBalance.ts +2 -2
- package/actions/public/getBlobBaseFee.ts +3 -3
- package/actions/public/getBlock.ts +15 -15
- package/actions/public/getBlockNumber.ts +2 -2
- package/actions/public/getBlockTransactionCount.ts +2 -4
- package/actions/public/getChainId.ts +3 -3
- package/actions/public/getCode.ts +2 -2
- package/actions/public/getContractEvents.ts +10 -10
- package/actions/public/getFeeHistory.ts +2 -2
- package/actions/public/getFilterChanges.ts +59 -67
- package/actions/public/getFilterLogs.ts +36 -36
- package/actions/public/getGasPrice.ts +3 -3
- package/actions/public/getLogs.ts +47 -53
- package/actions/public/getProof.ts +2 -2
- package/actions/public/getStorageAt.ts +2 -2
- package/actions/public/getTransaction.ts +10 -10
- package/actions/public/getTransactionConfirmations.ts +5 -5
- package/actions/public/getTransactionCount.ts +3 -3
- package/actions/public/getTransactionReceipt.ts +5 -5
- package/actions/public/uninstallFilter.ts +3 -3
- package/actions/public/verifyHash.ts +14 -2
- package/actions/public/verifyMessage.ts +2 -2
- package/actions/public/waitForTransactionReceipt.ts +14 -14
- package/actions/public/watchBlockNumber.ts +6 -6
- package/actions/public/watchBlocks.ts +25 -27
- package/actions/public/watchEvent.ts +39 -37
- package/actions/public/watchPendingTransactions.ts +6 -6
- package/actions/test/dropTransaction.ts +3 -3
- package/actions/test/dumpState.ts +3 -3
- package/actions/test/getAutomine.ts +3 -3
- package/actions/test/getTxpoolContent.ts +3 -3
- package/actions/test/getTxpoolStatus.ts +3 -3
- package/actions/test/impersonateAccount.ts +3 -3
- package/actions/test/increaseTime.ts +3 -3
- package/actions/test/inspectTxpool.ts +3 -3
- package/actions/test/loadState.ts +3 -3
- package/actions/test/mine.ts +3 -3
- package/actions/test/removeBlockTimestampInterval.ts +3 -3
- package/actions/test/reset.ts +3 -3
- package/actions/test/revert.ts +3 -3
- package/actions/test/sendUnsignedTransaction.ts +6 -6
- package/actions/test/setAutomine.ts +3 -3
- package/actions/test/setBalance.ts +3 -3
- package/actions/test/setBlockGasLimit.ts +3 -3
- package/actions/test/setBlockTimestampInterval.ts +3 -3
- package/actions/test/setCode.ts +3 -3
- package/actions/test/setCoinbase.ts +3 -3
- package/actions/test/setIntervalMining.ts +3 -3
- package/actions/test/setLoggingEnabled.ts +3 -3
- package/actions/test/setMinGasPrice.ts +3 -3
- package/actions/test/setNextBlockBaseFeePerGas.ts +3 -3
- package/actions/test/setNextBlockTimestamp.ts +3 -3
- package/actions/test/setNonce.ts +3 -3
- package/actions/test/setRpcUrl.ts +3 -3
- package/actions/test/setStorageAt.ts +3 -3
- package/actions/test/snapshot.ts +3 -3
- package/actions/test/stopImpersonatingAccount.ts +3 -3
- package/actions/wallet/addChain.ts +3 -3
- package/actions/wallet/getAddresses.ts +3 -5
- package/actions/wallet/getPermissions.ts +3 -3
- package/actions/wallet/requestAddresses.ts +3 -3
- package/actions/wallet/requestPermissions.ts +3 -3
- package/actions/wallet/sendRawTransaction.ts +2 -2
- package/actions/wallet/signMessage.ts +6 -6
- package/actions/wallet/switchChain.ts +3 -3
- package/actions/wallet/watchAsset.ts +3 -3
- package/celo/parsers.ts +10 -10
- package/celo/types.ts +2 -2
- package/chains/definitions/dreyerxTestnet.ts +23 -0
- package/chains/index.ts +1 -0
- package/clients/decorators/public.ts +130 -138
- package/clients/decorators/test.ts +12 -12
- package/clients/decorators/wallet.ts +34 -36
- package/clients/transports/createTransport.ts +17 -17
- package/clients/transports/custom.ts +2 -2
- package/errors/rpc.ts +6 -6
- package/errors/version.ts +1 -1
- package/op-stack/actions/estimateL1Gas.ts +10 -10
- package/op-stack/actions/estimateTotalFee.ts +9 -9
- package/op-stack/actions/estimateTotalGas.ts +9 -9
- package/op-stack/actions/getL1BaseFee.ts +7 -7
- package/op-stack/decorators/publicL1.ts +5 -5
- package/op-stack/decorators/publicL2.ts +5 -5
- package/op-stack/decorators/walletL1.ts +5 -5
- package/op-stack/decorators/walletL2.ts +5 -5
- package/op-stack/parsers.ts +9 -9
- package/op-stack/types/block.ts +10 -10
- package/op-stack/types/transaction.ts +19 -19
- package/package.json +1 -1
- package/types/account.ts +12 -12
- package/types/block.ts +14 -14
- package/types/contract.ts +60 -56
- package/types/eip1193.ts +52 -55
- package/types/filter.ts +25 -25
- package/types/log.ts +50 -50
- package/types/proof.ts +6 -6
- package/types/rpc.ts +9 -9
- package/types/transport.ts +2 -2
- package/types/utils.ts +2 -2
- package/utils/abi/decodeAbiParameters.ts +6 -6
- package/utils/abi/decodeErrorResult.ts +4 -4
- package/utils/abi/encodeAbiParameters.ts +18 -18
- package/utils/abi/encodePacked.ts +8 -8
- package/utils/ccip.ts +2 -2
- package/utils/data/concat.ts +8 -7
- package/utils/data/pad.ts +6 -6
- package/utils/data/slice.ts +6 -6
- package/utils/data/trim.ts +6 -6
- package/utils/encoding/fromBytes.ts +16 -16
- package/utils/encoding/fromHex.ts +15 -15
- package/utils/ens/avatar/parseAvatarRecord.ts +4 -4
- package/utils/ens/avatar/utils.ts +2 -2
- package/utils/filters/createFilterRequestScope.ts +2 -2
- package/utils/formatters/block.ts +9 -9
- package/utils/formatters/formatter.ts +11 -11
- package/utils/formatters/transaction.ts +5 -5
- package/utils/formatters/transactionReceipt.ts +2 -2
- package/utils/formatters/transactionRequest.ts +2 -2
- package/utils/hash/keccak256.ts +8 -8
- package/utils/hash/ripemd160.ts +8 -8
- package/utils/hash/sha256.ts +8 -8
- package/utils/observe.ts +8 -8
- package/utils/poll.ts +6 -6
- package/utils/promise/createBatchScheduler.ts +27 -30
- package/utils/promise/withCache.ts +8 -8
- package/utils/promise/withRetry.ts +3 -3
- package/utils/promise/withTimeout.ts +3 -3
- package/utils/rpc/http.ts +7 -7
- package/utils/signature/hashMessage.ts +6 -6
- package/utils/transaction/parseTransaction.ts +13 -13
- package/zksync/actions/getAllBalances.ts +6 -6
- package/zksync/actions/getBaseTokenL1Address.ts +3 -3
- package/zksync/actions/getBlockDetails.ts +3 -3
- package/zksync/actions/getBridgehubContractAddress.ts +3 -3
- package/zksync/actions/getDefaultBridgeAddresses.ts +3 -3
- package/zksync/actions/getL1Allowance.ts +6 -6
- package/zksync/actions/getL1Balance.ts +9 -9
- package/zksync/actions/getL1BatchBlockRange.ts +3 -3
- package/zksync/actions/getL1BatchDetails.ts +3 -3
- package/zksync/actions/getL1BatchNumber.ts +3 -3
- package/zksync/actions/getL1ChainId.ts +3 -3
- package/zksync/actions/getL1TokenBalance.ts +6 -6
- package/zksync/actions/getLogProof.ts +3 -3
- package/zksync/actions/getMainContractAddress.ts +3 -3
- package/zksync/actions/getRawBlockTransactions.ts +3 -3
- package/zksync/actions/getTestnetPaymasterAddress.ts +3 -3
- package/zksync/actions/getTransactionDetails.ts +3 -3
- package/zksync/actions/signEip712Transaction.ts +13 -13
- package/zksync/actions/signTransaction.ts +13 -13
- package/zksync/decorators/publicL1.ts +10 -10
- package/zksync/decorators/publicL2.ts +9 -9
- package/zksync/types/block.ts +10 -10
- package/zksync/types/eip712.ts +5 -5
- package/zksync/types/fee.ts +9 -9
- package/zksync/types/log.ts +12 -12
- package/zksync/types/transaction.ts +52 -53
|
@@ -257,9 +257,9 @@ import type { Client } from '../createClient.js'
|
|
|
257
257
|
import type { Transport } from '../transports/createTransport.js'
|
|
258
258
|
|
|
259
259
|
export type PublicActions<
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
transport extends Transport = Transport,
|
|
261
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
262
|
+
account extends Account | undefined = Account | undefined,
|
|
263
263
|
> = {
|
|
264
264
|
/**
|
|
265
265
|
* Executes a new message call immediately without submitting a transaction to the network.
|
|
@@ -284,7 +284,7 @@ export type PublicActions<
|
|
|
284
284
|
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
|
285
285
|
* })
|
|
286
286
|
*/
|
|
287
|
-
call: (parameters: CallParameters<
|
|
287
|
+
call: (parameters: CallParameters<chain>) => Promise<CallReturnType>
|
|
288
288
|
/**
|
|
289
289
|
* Creates a Filter to listen for new block hashes that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges).
|
|
290
290
|
*
|
|
@@ -326,29 +326,29 @@ export type PublicActions<
|
|
|
326
326
|
* })
|
|
327
327
|
*/
|
|
328
328
|
createContractEventFilter: <
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
329
|
+
const abi extends Abi | readonly unknown[],
|
|
330
|
+
eventName extends ContractEventName<abi> | undefined,
|
|
331
|
+
args extends MaybeExtractEventArgsFromAbi<abi, eventName> | undefined,
|
|
332
|
+
strict extends boolean | undefined = undefined,
|
|
333
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
334
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
335
335
|
>(
|
|
336
336
|
args: CreateContractEventFilterParameters<
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
337
|
+
abi,
|
|
338
|
+
eventName,
|
|
339
|
+
args,
|
|
340
|
+
strict,
|
|
341
|
+
fromBlock,
|
|
342
|
+
toBlock
|
|
343
343
|
>,
|
|
344
344
|
) => Promise<
|
|
345
345
|
CreateContractEventFilterReturnType<
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
346
|
+
abi,
|
|
347
|
+
eventName,
|
|
348
|
+
args,
|
|
349
|
+
strict,
|
|
350
|
+
fromBlock,
|
|
351
|
+
toBlock
|
|
352
352
|
>
|
|
353
353
|
>
|
|
354
354
|
/**
|
|
@@ -373,37 +373,37 @@ export type PublicActions<
|
|
|
373
373
|
* })
|
|
374
374
|
*/
|
|
375
375
|
createEventFilter: <
|
|
376
|
-
const
|
|
377
|
-
const
|
|
376
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
|
377
|
+
const abiEvents extends
|
|
378
378
|
| readonly AbiEvent[]
|
|
379
379
|
| readonly unknown[]
|
|
380
|
-
| undefined =
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
_EventName extends string | undefined = MaybeAbiEventName<
|
|
380
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
381
|
+
strict extends boolean | undefined = undefined,
|
|
382
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
383
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
384
|
+
_EventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
|
385
385
|
_Args extends
|
|
386
|
-
| MaybeExtractEventArgsFromAbi<
|
|
386
|
+
| MaybeExtractEventArgsFromAbi<abiEvents, _EventName>
|
|
387
387
|
| undefined = undefined,
|
|
388
388
|
>(
|
|
389
389
|
args?:
|
|
390
390
|
| CreateEventFilterParameters<
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
abiEvent,
|
|
392
|
+
abiEvents,
|
|
393
|
+
strict,
|
|
394
|
+
fromBlock,
|
|
395
|
+
toBlock,
|
|
396
396
|
_EventName,
|
|
397
397
|
_Args
|
|
398
398
|
>
|
|
399
399
|
| undefined,
|
|
400
400
|
) => Promise<
|
|
401
401
|
CreateEventFilterReturnType<
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
402
|
+
abiEvent,
|
|
403
|
+
abiEvents,
|
|
404
|
+
strict,
|
|
405
|
+
fromBlock,
|
|
406
|
+
toBlock,
|
|
407
407
|
_EventName,
|
|
408
408
|
_Args
|
|
409
409
|
>
|
|
@@ -455,7 +455,7 @@ export type PublicActions<
|
|
|
455
455
|
* })
|
|
456
456
|
*/
|
|
457
457
|
estimateContractGas: <
|
|
458
|
-
|
|
458
|
+
chain extends Chain | undefined,
|
|
459
459
|
const abi extends Abi | readonly unknown[],
|
|
460
460
|
functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>,
|
|
461
461
|
args extends ContractFunctionArgs<
|
|
@@ -464,7 +464,7 @@ export type PublicActions<
|
|
|
464
464
|
functionName
|
|
465
465
|
>,
|
|
466
466
|
>(
|
|
467
|
-
args: EstimateContractGasParameters<abi, functionName, args,
|
|
467
|
+
args: EstimateContractGasParameters<abi, functionName, args, chain>,
|
|
468
468
|
) => Promise<EstimateContractGasReturnType>
|
|
469
469
|
/**
|
|
470
470
|
* Estimates the gas necessary to complete a transaction without submitting it to the network.
|
|
@@ -490,7 +490,7 @@ export type PublicActions<
|
|
|
490
490
|
* })
|
|
491
491
|
*/
|
|
492
492
|
estimateGas: (
|
|
493
|
-
args: EstimateGasParameters<
|
|
493
|
+
args: EstimateGasParameters<chain>,
|
|
494
494
|
) => Promise<EstimateGasReturnType>
|
|
495
495
|
/**
|
|
496
496
|
* Returns the balance of an address in wei.
|
|
@@ -571,11 +571,11 @@ export type PublicActions<
|
|
|
571
571
|
* const block = await client.getBlock()
|
|
572
572
|
*/
|
|
573
573
|
getBlock: <
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
includeTransactions extends boolean = false,
|
|
575
|
+
blockTag extends BlockTag = 'latest',
|
|
576
576
|
>(
|
|
577
|
-
args?: GetBlockParameters<
|
|
578
|
-
) => Promise<GetBlockReturnType<
|
|
577
|
+
args?: GetBlockParameters<includeTransactions, blockTag> | undefined,
|
|
578
|
+
) => Promise<GetBlockReturnType<chain, includeTransactions, blockTag>>
|
|
579
579
|
/**
|
|
580
580
|
* Returns the number of the most recent block seen.
|
|
581
581
|
*
|
|
@@ -941,12 +941,10 @@ export type PublicActions<
|
|
|
941
941
|
* // { maxFeePerGas: ..., maxPriorityFeePerGas: ... }
|
|
942
942
|
*/
|
|
943
943
|
estimateFeesPerGas: <
|
|
944
|
-
|
|
945
|
-
|
|
944
|
+
chainOverride extends Chain | undefined = undefined,
|
|
945
|
+
type extends FeeValuesType = 'eip1559',
|
|
946
946
|
>(
|
|
947
|
-
args?:
|
|
948
|
-
| EstimateFeesPerGasParameters<TChain, TChainOverride, TType>
|
|
949
|
-
| undefined,
|
|
947
|
+
args?: EstimateFeesPerGasParameters<chain, chainOverride, type> | undefined,
|
|
950
948
|
) => Promise<EstimateFeesPerGasReturnType>
|
|
951
949
|
/**
|
|
952
950
|
* Returns a list of logs or hashes based on a [Filter](/docs/glossary/terms#filter) since the last time it was called.
|
|
@@ -1027,29 +1025,29 @@ export type PublicActions<
|
|
|
1027
1025
|
* const hashes = await client.getFilterChanges({ filter })
|
|
1028
1026
|
*/
|
|
1029
1027
|
getFilterChanges: <
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1028
|
+
filterType extends FilterType,
|
|
1029
|
+
const abi extends Abi | readonly unknown[] | undefined,
|
|
1030
|
+
eventName extends string | undefined,
|
|
1031
|
+
strict extends boolean | undefined = undefined,
|
|
1032
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1033
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1036
1034
|
>(
|
|
1037
1035
|
args: GetFilterChangesParameters<
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1036
|
+
filterType,
|
|
1037
|
+
abi,
|
|
1038
|
+
eventName,
|
|
1039
|
+
strict,
|
|
1040
|
+
fromBlock,
|
|
1041
|
+
toBlock
|
|
1044
1042
|
>,
|
|
1045
1043
|
) => Promise<
|
|
1046
1044
|
GetFilterChangesReturnType<
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1045
|
+
filterType,
|
|
1046
|
+
abi,
|
|
1047
|
+
eventName,
|
|
1048
|
+
strict,
|
|
1049
|
+
fromBlock,
|
|
1050
|
+
toBlock
|
|
1053
1051
|
>
|
|
1054
1052
|
>
|
|
1055
1053
|
/**
|
|
@@ -1079,21 +1077,15 @@ export type PublicActions<
|
|
|
1079
1077
|
* const logs = await client.getFilterLogs({ filter })
|
|
1080
1078
|
*/
|
|
1081
1079
|
getFilterLogs: <
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1080
|
+
const abi extends Abi | readonly unknown[] | undefined,
|
|
1081
|
+
eventName extends string | undefined,
|
|
1082
|
+
strict extends boolean | undefined = undefined,
|
|
1083
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1084
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1087
1085
|
>(
|
|
1088
|
-
args: GetFilterLogsParameters<
|
|
1089
|
-
TAbi,
|
|
1090
|
-
TEventName,
|
|
1091
|
-
TStrict,
|
|
1092
|
-
TFromBlock,
|
|
1093
|
-
TToBlock
|
|
1094
|
-
>,
|
|
1086
|
+
args: GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>,
|
|
1095
1087
|
) => Promise<
|
|
1096
|
-
GetFilterLogsReturnType<
|
|
1088
|
+
GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>
|
|
1097
1089
|
>
|
|
1098
1090
|
/**
|
|
1099
1091
|
* Returns the current price of gas (in wei).
|
|
@@ -1135,20 +1127,20 @@ export type PublicActions<
|
|
|
1135
1127
|
* const logs = await client.getLogs()
|
|
1136
1128
|
*/
|
|
1137
1129
|
getLogs: <
|
|
1138
|
-
const
|
|
1139
|
-
const
|
|
1130
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
|
1131
|
+
const abiEvents extends
|
|
1140
1132
|
| readonly AbiEvent[]
|
|
1141
1133
|
| readonly unknown[]
|
|
1142
|
-
| undefined =
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1134
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
1135
|
+
strict extends boolean | undefined = undefined,
|
|
1136
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1137
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
1146
1138
|
>(
|
|
1147
1139
|
args?:
|
|
1148
|
-
| GetLogsParameters<
|
|
1140
|
+
| GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock>
|
|
1149
1141
|
| undefined,
|
|
1150
1142
|
) => Promise<
|
|
1151
|
-
GetLogsReturnType<
|
|
1143
|
+
GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>
|
|
1152
1144
|
>
|
|
1153
1145
|
/**
|
|
1154
1146
|
* Returns the account and storage values of the specified account including the Merkle-proof.
|
|
@@ -1196,10 +1188,10 @@ export type PublicActions<
|
|
|
1196
1188
|
* // 10000000n
|
|
1197
1189
|
*/
|
|
1198
1190
|
estimateMaxPriorityFeePerGas: <
|
|
1199
|
-
|
|
1191
|
+
chainOverride extends Chain | undefined = undefined,
|
|
1200
1192
|
>(
|
|
1201
1193
|
args?:
|
|
1202
|
-
| EstimateMaxPriorityFeePerGasParameters<
|
|
1194
|
+
| EstimateMaxPriorityFeePerGasParameters<chain, chainOverride>
|
|
1203
1195
|
| undefined,
|
|
1204
1196
|
) => Promise<EstimateMaxPriorityFeePerGasReturnType>
|
|
1205
1197
|
/**
|
|
@@ -1250,9 +1242,9 @@ export type PublicActions<
|
|
|
1250
1242
|
* hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
|
|
1251
1243
|
* })
|
|
1252
1244
|
*/
|
|
1253
|
-
getTransaction: <
|
|
1254
|
-
args: GetTransactionParameters<
|
|
1255
|
-
) => Promise<GetTransactionReturnType<
|
|
1245
|
+
getTransaction: <blockTag extends BlockTag = 'latest'>(
|
|
1246
|
+
args: GetTransactionParameters<blockTag>,
|
|
1247
|
+
) => Promise<GetTransactionReturnType<chain, blockTag>>
|
|
1256
1248
|
/**
|
|
1257
1249
|
* Returns the number of blocks passed (confirmations) since the transaction was processed on a block.
|
|
1258
1250
|
*
|
|
@@ -1276,7 +1268,7 @@ export type PublicActions<
|
|
|
1276
1268
|
* })
|
|
1277
1269
|
*/
|
|
1278
1270
|
getTransactionConfirmations: (
|
|
1279
|
-
args: GetTransactionConfirmationsParameters<
|
|
1271
|
+
args: GetTransactionConfirmationsParameters<chain>,
|
|
1280
1272
|
) => Promise<GetTransactionConfirmationsReturnType>
|
|
1281
1273
|
/**
|
|
1282
1274
|
* Returns the number of [Transactions](https://viem.sh/docs/glossary/terms#transaction) an Account has broadcast / sent.
|
|
@@ -1326,7 +1318,7 @@ export type PublicActions<
|
|
|
1326
1318
|
*/
|
|
1327
1319
|
getTransactionReceipt: (
|
|
1328
1320
|
args: GetTransactionReceiptParameters,
|
|
1329
|
-
) => Promise<GetTransactionReceiptReturnType<
|
|
1321
|
+
) => Promise<GetTransactionReceiptReturnType<chain>>
|
|
1330
1322
|
/**
|
|
1331
1323
|
* Similar to [`readContract`](https://viem.sh/docs/contract/readContract), but batches up multiple functions on a contract in a single RPC call via the [`multicall3` contract](https://github.com/mds1/multicall).
|
|
1332
1324
|
*
|
|
@@ -1409,28 +1401,28 @@ export type PublicActions<
|
|
|
1409
1401
|
* })
|
|
1410
1402
|
*/
|
|
1411
1403
|
prepareTransactionRequest: <
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1414
|
-
|
|
1404
|
+
const request extends PrepareTransactionRequestRequest<
|
|
1405
|
+
chain,
|
|
1406
|
+
chainOverride
|
|
1415
1407
|
>,
|
|
1416
|
-
|
|
1417
|
-
|
|
1408
|
+
chainOverride extends Chain | undefined = undefined,
|
|
1409
|
+
accountOverride extends Account | Address | undefined = undefined,
|
|
1418
1410
|
>(
|
|
1419
1411
|
args: PrepareTransactionRequestParameters<
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1412
|
+
chain,
|
|
1413
|
+
account,
|
|
1414
|
+
chainOverride,
|
|
1415
|
+
accountOverride,
|
|
1416
|
+
request
|
|
1425
1417
|
>,
|
|
1426
1418
|
) => Promise<
|
|
1427
1419
|
PrepareTransactionRequestReturnType<
|
|
1428
1420
|
Chain,
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1421
|
+
account,
|
|
1422
|
+
chainOverride,
|
|
1423
|
+
accountOverride,
|
|
1432
1424
|
// @ts-expect-error
|
|
1433
|
-
|
|
1425
|
+
request
|
|
1434
1426
|
>
|
|
1435
1427
|
>
|
|
1436
1428
|
/**
|
|
@@ -1543,7 +1535,7 @@ export type PublicActions<
|
|
|
1543
1535
|
abi,
|
|
1544
1536
|
functionName,
|
|
1545
1537
|
args,
|
|
1546
|
-
|
|
1538
|
+
chain,
|
|
1547
1539
|
chainOverride,
|
|
1548
1540
|
accountOverride
|
|
1549
1541
|
>,
|
|
@@ -1552,8 +1544,8 @@ export type PublicActions<
|
|
|
1552
1544
|
abi,
|
|
1553
1545
|
functionName,
|
|
1554
1546
|
args,
|
|
1555
|
-
|
|
1556
|
-
|
|
1547
|
+
chain,
|
|
1548
|
+
account,
|
|
1557
1549
|
chainOverride,
|
|
1558
1550
|
accountOverride
|
|
1559
1551
|
>
|
|
@@ -1659,8 +1651,8 @@ export type PublicActions<
|
|
|
1659
1651
|
* })
|
|
1660
1652
|
*/
|
|
1661
1653
|
waitForTransactionReceipt: (
|
|
1662
|
-
args: WaitForTransactionReceiptParameters<
|
|
1663
|
-
) => Promise<WaitForTransactionReceiptReturnType<
|
|
1654
|
+
args: WaitForTransactionReceiptParameters<chain>,
|
|
1655
|
+
) => Promise<WaitForTransactionReceiptReturnType<chain>>
|
|
1664
1656
|
/**
|
|
1665
1657
|
* Watches and returns incoming block numbers.
|
|
1666
1658
|
*
|
|
@@ -1713,14 +1705,14 @@ export type PublicActions<
|
|
|
1713
1705
|
* })
|
|
1714
1706
|
*/
|
|
1715
1707
|
watchBlocks: <
|
|
1716
|
-
|
|
1717
|
-
|
|
1708
|
+
includeTransactions extends boolean = false,
|
|
1709
|
+
blockTag extends BlockTag = 'latest',
|
|
1718
1710
|
>(
|
|
1719
1711
|
args: WatchBlocksParameters<
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1712
|
+
transport,
|
|
1713
|
+
chain,
|
|
1714
|
+
includeTransactions,
|
|
1715
|
+
blockTag
|
|
1724
1716
|
>,
|
|
1725
1717
|
) => WatchBlocksReturnType
|
|
1726
1718
|
/**
|
|
@@ -1753,11 +1745,11 @@ export type PublicActions<
|
|
|
1753
1745
|
* })
|
|
1754
1746
|
*/
|
|
1755
1747
|
watchContractEvent: <
|
|
1756
|
-
const
|
|
1757
|
-
|
|
1758
|
-
|
|
1748
|
+
const abi extends Abi | readonly unknown[],
|
|
1749
|
+
eventName extends ContractEventName<abi>,
|
|
1750
|
+
strict extends boolean | undefined = undefined,
|
|
1759
1751
|
>(
|
|
1760
|
-
args: WatchContractEventParameters<
|
|
1752
|
+
args: WatchContractEventParameters<abi, eventName, strict, transport>,
|
|
1761
1753
|
) => WatchContractEventReturnType
|
|
1762
1754
|
/**
|
|
1763
1755
|
* Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms#event-log).
|
|
@@ -1791,14 +1783,14 @@ export type PublicActions<
|
|
|
1791
1783
|
* })
|
|
1792
1784
|
*/
|
|
1793
1785
|
watchEvent: <
|
|
1794
|
-
const
|
|
1795
|
-
const
|
|
1786
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
|
1787
|
+
const abiEvents extends
|
|
1796
1788
|
| readonly AbiEvent[]
|
|
1797
1789
|
| readonly unknown[]
|
|
1798
|
-
| undefined =
|
|
1799
|
-
|
|
1790
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
1791
|
+
strict extends boolean | undefined = undefined,
|
|
1800
1792
|
>(
|
|
1801
|
-
args: WatchEventParameters<
|
|
1793
|
+
args: WatchEventParameters<abiEvent, abiEvents, strict, transport>,
|
|
1802
1794
|
) => WatchEventReturnType
|
|
1803
1795
|
/**
|
|
1804
1796
|
* Watches and returns pending transaction hashes.
|
|
@@ -1829,17 +1821,17 @@ export type PublicActions<
|
|
|
1829
1821
|
* })
|
|
1830
1822
|
*/
|
|
1831
1823
|
watchPendingTransactions: (
|
|
1832
|
-
args: WatchPendingTransactionsParameters<
|
|
1824
|
+
args: WatchPendingTransactionsParameters<transport>,
|
|
1833
1825
|
) => WatchPendingTransactionsReturnType
|
|
1834
1826
|
}
|
|
1835
1827
|
|
|
1836
1828
|
export function publicActions<
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1829
|
+
transport extends Transport = Transport,
|
|
1830
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
1831
|
+
account extends Account | undefined = Account | undefined,
|
|
1840
1832
|
>(
|
|
1841
|
-
client: Client<
|
|
1842
|
-
): PublicActions<
|
|
1833
|
+
client: Client<transport, chain, account>,
|
|
1834
|
+
): PublicActions<transport, chain, account> {
|
|
1843
1835
|
return {
|
|
1844
1836
|
call: (args) => call(client, args),
|
|
1845
1837
|
createBlockFilter: () => createBlockFilter(client),
|
|
@@ -378,8 +378,8 @@ export type TestActions = {
|
|
|
378
378
|
* value: 1000000000000000000n,
|
|
379
379
|
* })
|
|
380
380
|
*/
|
|
381
|
-
sendUnsignedTransaction: <
|
|
382
|
-
args: SendUnsignedTransactionParameters<
|
|
381
|
+
sendUnsignedTransaction: <chain extends Chain | undefined>(
|
|
382
|
+
args: SendUnsignedTransactionParameters<chain>,
|
|
383
383
|
) => Promise<SendUnsignedTransactionReturnType>
|
|
384
384
|
/**
|
|
385
385
|
* Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
|
|
@@ -716,21 +716,21 @@ export type TestActions = {
|
|
|
716
716
|
) => Promise<void>
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
export function testActions<
|
|
719
|
+
export function testActions<mode extends TestClientMode>({
|
|
720
720
|
mode,
|
|
721
|
-
}: { mode:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
721
|
+
}: { mode: mode }): <
|
|
722
|
+
transport extends Transport = Transport,
|
|
723
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
724
|
+
account extends Account | undefined = Account | undefined,
|
|
725
725
|
>(
|
|
726
|
-
client: Client<
|
|
726
|
+
client: Client<transport, chain, account>,
|
|
727
727
|
) => TestActions {
|
|
728
728
|
return <
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
729
|
+
transport extends Transport = Transport,
|
|
730
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
731
|
+
account extends Account | undefined = Account | undefined,
|
|
732
732
|
>(
|
|
733
|
-
client_: Client<
|
|
733
|
+
client_: Client<transport, chain, account>,
|
|
734
734
|
): TestActions => {
|
|
735
735
|
const client = client_.extend(() => ({
|
|
736
736
|
mode,
|
|
@@ -86,8 +86,8 @@ import type { Client } from '../createClient.js'
|
|
|
86
86
|
import type { Transport } from '../transports/createTransport.js'
|
|
87
87
|
|
|
88
88
|
export type WalletActions<
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
90
|
+
account extends Account | undefined = Account | undefined,
|
|
91
91
|
> = {
|
|
92
92
|
/**
|
|
93
93
|
* Adds an EVM chain to the wallet.
|
|
@@ -136,7 +136,7 @@ export type WalletActions<
|
|
|
136
136
|
const abi extends Abi | readonly unknown[],
|
|
137
137
|
chainOverride extends Chain | undefined,
|
|
138
138
|
>(
|
|
139
|
-
args: DeployContractParameters<abi,
|
|
139
|
+
args: DeployContractParameters<abi, chain, account, chainOverride>,
|
|
140
140
|
) => Promise<DeployContractReturnType>
|
|
141
141
|
/**
|
|
142
142
|
* Returns a list of account addresses owned by the wallet or client.
|
|
@@ -235,28 +235,28 @@ export type WalletActions<
|
|
|
235
235
|
* })
|
|
236
236
|
*/
|
|
237
237
|
prepareTransactionRequest: <
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
const request extends PrepareTransactionRequestRequest<
|
|
239
|
+
chain,
|
|
240
|
+
chainOverride
|
|
241
241
|
>,
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
chainOverride extends Chain | undefined = undefined,
|
|
243
|
+
accountOverride extends Account | Address | undefined = undefined,
|
|
244
244
|
>(
|
|
245
245
|
args: PrepareTransactionRequestParameters<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
chain,
|
|
247
|
+
account,
|
|
248
|
+
chainOverride,
|
|
249
|
+
accountOverride,
|
|
250
|
+
request
|
|
251
251
|
>,
|
|
252
252
|
) => Promise<
|
|
253
253
|
PrepareTransactionRequestReturnType<
|
|
254
254
|
Chain,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
account,
|
|
256
|
+
chainOverride,
|
|
257
|
+
accountOverride,
|
|
258
258
|
// @ts-expect-error
|
|
259
|
-
|
|
259
|
+
request
|
|
260
260
|
>
|
|
261
261
|
>
|
|
262
262
|
/**
|
|
@@ -376,10 +376,10 @@ export type WalletActions<
|
|
|
376
376
|
* })
|
|
377
377
|
*/
|
|
378
378
|
sendTransaction: <
|
|
379
|
-
const
|
|
380
|
-
|
|
379
|
+
const request extends SendTransactionRequest<chain, chainOverride>,
|
|
380
|
+
chainOverride extends Chain | undefined = undefined,
|
|
381
381
|
>(
|
|
382
|
-
args: SendTransactionParameters<
|
|
382
|
+
args: SendTransactionParameters<chain, account, chainOverride, request>,
|
|
383
383
|
) => Promise<SendTransactionReturnType>
|
|
384
384
|
/**
|
|
385
385
|
* Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191): `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
|
|
@@ -425,7 +425,7 @@ export type WalletActions<
|
|
|
425
425
|
* })
|
|
426
426
|
*/
|
|
427
427
|
signMessage: (
|
|
428
|
-
args: SignMessageParameters<
|
|
428
|
+
args: SignMessageParameters<account>,
|
|
429
429
|
) => Promise<SignMessageReturnType>
|
|
430
430
|
/**
|
|
431
431
|
* Signs a transaction.
|
|
@@ -470,8 +470,8 @@ export type WalletActions<
|
|
|
470
470
|
* })
|
|
471
471
|
* const signature = await client.signTransaction(request)
|
|
472
472
|
*/
|
|
473
|
-
signTransaction: <
|
|
474
|
-
args: SignTransactionParameters<
|
|
473
|
+
signTransaction: <chainOverride extends Chain | undefined>(
|
|
474
|
+
args: SignTransactionParameters<chain, account, chainOverride>,
|
|
475
475
|
) => Promise<SignTransactionReturnType>
|
|
476
476
|
/**
|
|
477
477
|
* Signs typed data and calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191): `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
|
|
@@ -570,10 +570,10 @@ export type WalletActions<
|
|
|
570
570
|
* })
|
|
571
571
|
*/
|
|
572
572
|
signTypedData: <
|
|
573
|
-
const
|
|
574
|
-
|
|
573
|
+
const typedData extends TypedData | { [key: string]: unknown },
|
|
574
|
+
primaryType extends string,
|
|
575
575
|
>(
|
|
576
|
-
args: SignTypedDataParameters<
|
|
576
|
+
args: SignTypedDataParameters<typedData, primaryType, account>,
|
|
577
577
|
) => Promise<SignTypedDataReturnType>
|
|
578
578
|
/**
|
|
579
579
|
* Switch the target chain in a wallet.
|
|
@@ -676,26 +676,24 @@ export type WalletActions<
|
|
|
676
676
|
'payable' | 'nonpayable',
|
|
677
677
|
functionName
|
|
678
678
|
>,
|
|
679
|
-
|
|
679
|
+
chainOverride extends Chain | undefined = undefined,
|
|
680
680
|
>(
|
|
681
681
|
args: WriteContractParameters<
|
|
682
682
|
abi,
|
|
683
683
|
functionName,
|
|
684
684
|
args,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
chain,
|
|
686
|
+
account,
|
|
687
|
+
chainOverride
|
|
688
688
|
>,
|
|
689
689
|
) => Promise<WriteContractReturnType>
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
export function walletActions<
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
>(
|
|
697
|
-
client: Client<TTransport, TChain, TAccount>,
|
|
698
|
-
): WalletActions<TChain, TAccount> {
|
|
693
|
+
transport extends Transport,
|
|
694
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
695
|
+
account extends Account | undefined = Account | undefined,
|
|
696
|
+
>(client: Client<transport, chain, account>): WalletActions<chain, account> {
|
|
699
697
|
return {
|
|
700
698
|
addChain: (args) => addChain(client, args),
|
|
701
699
|
deployContract: (args) => deployContract(client, args),
|