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
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
type EncodeDeployDataErrorType,
|
|
14
14
|
encodeDeployData,
|
|
15
15
|
} from '../../utils/abi/encodeDeployData.js'
|
|
16
|
+
import { getAddress } from '../../utils/address/getAddress.js'
|
|
17
|
+
import { isAddressEqual } from '../../utils/address/isAddressEqual.js'
|
|
16
18
|
import {
|
|
17
19
|
type IsBytesEqualErrorType,
|
|
18
20
|
isBytesEqual,
|
|
@@ -21,6 +23,7 @@ import { type IsHexErrorType, isHex } from '../../utils/data/isHex.js'
|
|
|
21
23
|
import { type ToHexErrorType, bytesToHex } from '../../utils/encoding/toHex.js'
|
|
22
24
|
import { getAction } from '../../utils/getAction.js'
|
|
23
25
|
import { isErc6492Signature } from '../../utils/signature/isErc6492Signature.js'
|
|
26
|
+
import { recoverAddress } from '../../utils/signature/recoverAddress.js'
|
|
24
27
|
import { serializeErc6492Signature } from '../../utils/signature/serializeErc6492Signature.js'
|
|
25
28
|
import { serializeSignature } from '../../utils/signature/serializeSignature.js'
|
|
26
29
|
import { type CallErrorType, type CallParameters, call } from './call.js'
|
|
@@ -55,8 +58,8 @@ export type VerifyHashErrorType =
|
|
|
55
58
|
* @param parameters - {@link VerifyHashParameters}
|
|
56
59
|
* @returns Whether or not the signature is valid. {@link VerifyHashReturnType}
|
|
57
60
|
*/
|
|
58
|
-
export async function verifyHash<
|
|
59
|
-
client: Client<Transport,
|
|
61
|
+
export async function verifyHash<chain extends Chain | undefined>(
|
|
62
|
+
client: Client<Transport, chain>,
|
|
60
63
|
parameters: VerifyHashParameters,
|
|
61
64
|
): Promise<VerifyHashReturnType> {
|
|
62
65
|
const { address, factory, factoryData, hash, signature, ...rest } = parameters
|
|
@@ -105,6 +108,15 @@ export async function verifyHash<TChain extends Chain | undefined>(
|
|
|
105
108
|
|
|
106
109
|
return isBytesEqual(data ?? '0x0', '0x1')
|
|
107
110
|
} catch (error) {
|
|
111
|
+
// Fallback attempt to verify the signature via ECDSA recovery.
|
|
112
|
+
try {
|
|
113
|
+
const verified = isAddressEqual(
|
|
114
|
+
getAddress(address),
|
|
115
|
+
await recoverAddress({ hash, signature }),
|
|
116
|
+
)
|
|
117
|
+
if (verified) return true
|
|
118
|
+
} catch {}
|
|
119
|
+
|
|
108
120
|
if (error instanceof CallExecutionError) {
|
|
109
121
|
// if the execution fails, the signature was not valid and an internal method inside of the validator reverted
|
|
110
122
|
// this can happen for many reasons, for example if signer can not be recovered from the signature
|
|
@@ -48,8 +48,8 @@ export type VerifyMessageErrorType =
|
|
|
48
48
|
* @param parameters - {@link VerifyMessageParameters}
|
|
49
49
|
* @returns Whether or not the signature is valid. {@link VerifyMessageReturnType}
|
|
50
50
|
*/
|
|
51
|
-
export async function verifyMessage<
|
|
52
|
-
client: Client<Transport,
|
|
51
|
+
export async function verifyMessage<chain extends Chain | undefined>(
|
|
52
|
+
client: Client<Transport, chain>,
|
|
53
53
|
{
|
|
54
54
|
address,
|
|
55
55
|
message,
|
|
@@ -36,20 +36,20 @@ import {
|
|
|
36
36
|
|
|
37
37
|
export type ReplacementReason = 'cancelled' | 'replaced' | 'repriced'
|
|
38
38
|
export type ReplacementReturnType<
|
|
39
|
-
|
|
39
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
40
40
|
> = {
|
|
41
41
|
reason: ReplacementReason
|
|
42
42
|
replacedTransaction: Transaction
|
|
43
43
|
transaction: Transaction
|
|
44
|
-
transactionReceipt: GetTransactionReceiptReturnType<
|
|
44
|
+
transactionReceipt: GetTransactionReceiptReturnType<chain>
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export type WaitForTransactionReceiptReturnType<
|
|
48
|
-
|
|
49
|
-
> = GetTransactionReceiptReturnType<
|
|
48
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
49
|
+
> = GetTransactionReceiptReturnType<chain>
|
|
50
50
|
|
|
51
51
|
export type WaitForTransactionReceiptParameters<
|
|
52
|
-
|
|
52
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
53
53
|
> = {
|
|
54
54
|
/**
|
|
55
55
|
* The number of confirmations (blocks that have passed) to wait before resolving.
|
|
@@ -59,7 +59,7 @@ export type WaitForTransactionReceiptParameters<
|
|
|
59
59
|
/** The hash of the transaction. */
|
|
60
60
|
hash: Hash
|
|
61
61
|
/** Optional callback to emit if the transaction has been replaced. */
|
|
62
|
-
onReplaced?: ((response: ReplacementReturnType<
|
|
62
|
+
onReplaced?: ((response: ReplacementReturnType<chain>) => void) | undefined
|
|
63
63
|
/**
|
|
64
64
|
* Polling frequency (in ms). Defaults to the client's pollingInterval config.
|
|
65
65
|
* @default client.pollingInterval
|
|
@@ -126,9 +126,9 @@ export type WaitForTransactionReceiptErrorType =
|
|
|
126
126
|
* })
|
|
127
127
|
*/
|
|
128
128
|
export async function waitForTransactionReceipt<
|
|
129
|
-
|
|
129
|
+
chain extends Chain | undefined,
|
|
130
130
|
>(
|
|
131
|
-
client: Client<Transport,
|
|
131
|
+
client: Client<Transport, chain>,
|
|
132
132
|
{
|
|
133
133
|
confirmations = 1,
|
|
134
134
|
hash,
|
|
@@ -137,14 +137,14 @@ export async function waitForTransactionReceipt<
|
|
|
137
137
|
retryCount = 6,
|
|
138
138
|
retryDelay = ({ count }) => ~~(1 << count) * 200, // exponential backoff
|
|
139
139
|
timeout,
|
|
140
|
-
}: WaitForTransactionReceiptParameters<
|
|
141
|
-
): Promise<WaitForTransactionReceiptReturnType<
|
|
140
|
+
}: WaitForTransactionReceiptParameters<chain>,
|
|
141
|
+
): Promise<WaitForTransactionReceiptReturnType<chain>> {
|
|
142
142
|
const observerId = stringify(['waitForTransactionReceipt', client.uid, hash])
|
|
143
143
|
|
|
144
144
|
let count = 0
|
|
145
|
-
let transaction: GetTransactionReturnType<
|
|
146
|
-
let replacedTransaction: GetTransactionReturnType<
|
|
147
|
-
let receipt: GetTransactionReceiptReturnType<
|
|
145
|
+
let transaction: GetTransactionReturnType<chain> | undefined
|
|
146
|
+
let replacedTransaction: GetTransactionReturnType<chain> | undefined
|
|
147
|
+
let receipt: GetTransactionReceiptReturnType<chain>
|
|
148
148
|
let retrying = false
|
|
149
149
|
|
|
150
150
|
return new Promise((resolve, reject) => {
|
|
@@ -210,7 +210,7 @@ export async function waitForTransactionReceipt<
|
|
|
210
210
|
client,
|
|
211
211
|
getTransaction,
|
|
212
212
|
'getTransaction',
|
|
213
|
-
)({ hash })) as GetTransactionReturnType<
|
|
213
|
+
)({ hash })) as GetTransactionReturnType<chain>
|
|
214
214
|
if (transaction.blockNumber)
|
|
215
215
|
blockNumber = transaction.blockNumber
|
|
216
216
|
},
|
|
@@ -21,14 +21,14 @@ export type OnBlockNumberFn = (
|
|
|
21
21
|
) => void
|
|
22
22
|
|
|
23
23
|
export type WatchBlockNumberParameters<
|
|
24
|
-
|
|
24
|
+
transport extends Transport = Transport,
|
|
25
25
|
> = {
|
|
26
26
|
/** The callback to call when a new block number is received. */
|
|
27
27
|
onBlockNumber: OnBlockNumberFn
|
|
28
28
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
|
29
29
|
onError?: ((error: Error) => void) | undefined
|
|
30
30
|
} & (
|
|
31
|
-
| (HasTransportType<
|
|
31
|
+
| (HasTransportType<transport, 'webSocket'> extends true
|
|
32
32
|
? {
|
|
33
33
|
emitMissed?: undefined
|
|
34
34
|
emitOnBegin?: undefined
|
|
@@ -78,10 +78,10 @@ export type WatchBlockNumberErrorType = PollErrorType | ErrorType
|
|
|
78
78
|
* })
|
|
79
79
|
*/
|
|
80
80
|
export function watchBlockNumber<
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
chain extends Chain | undefined,
|
|
82
|
+
transport extends Transport,
|
|
83
83
|
>(
|
|
84
|
-
client: Client<
|
|
84
|
+
client: Client<transport, chain>,
|
|
85
85
|
{
|
|
86
86
|
emitOnBegin = false,
|
|
87
87
|
emitMissed = false,
|
|
@@ -89,7 +89,7 @@ export function watchBlockNumber<
|
|
|
89
89
|
onError,
|
|
90
90
|
poll: poll_,
|
|
91
91
|
pollingInterval = client.pollingInterval,
|
|
92
|
-
}: WatchBlockNumberParameters<
|
|
92
|
+
}: WatchBlockNumberParameters<transport>,
|
|
93
93
|
): WatchBlockNumberReturnType {
|
|
94
94
|
const enablePolling = (() => {
|
|
95
95
|
if (typeof poll_ !== 'undefined') return poll_
|
|
@@ -13,34 +13,32 @@ import { type StringifyErrorType, stringify } from '../../utils/stringify.js'
|
|
|
13
13
|
import { type GetBlockReturnType, getBlock } from './getBlock.js'
|
|
14
14
|
|
|
15
15
|
export type OnBlockParameter<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
> = GetBlockReturnType<
|
|
16
|
+
chain extends Chain | undefined = Chain,
|
|
17
|
+
includeTransactions extends boolean = false,
|
|
18
|
+
blockTag extends BlockTag = 'latest',
|
|
19
|
+
> = GetBlockReturnType<chain, includeTransactions, blockTag>
|
|
20
20
|
|
|
21
21
|
export type OnBlock<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
chain extends Chain | undefined = Chain,
|
|
23
|
+
includeTransactions extends boolean = false,
|
|
24
|
+
blockTag extends BlockTag = 'latest',
|
|
25
25
|
> = (
|
|
26
|
-
block: OnBlockParameter<
|
|
27
|
-
prevBlock:
|
|
28
|
-
| OnBlockParameter<TChain, TIncludeTransactions, TBlockTag>
|
|
29
|
-
| undefined,
|
|
26
|
+
block: OnBlockParameter<chain, includeTransactions, blockTag>,
|
|
27
|
+
prevBlock: OnBlockParameter<chain, includeTransactions, blockTag> | undefined,
|
|
30
28
|
) => void
|
|
31
29
|
|
|
32
30
|
export type WatchBlocksParameters<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
transport extends Transport = Transport,
|
|
32
|
+
chain extends Chain | undefined = Chain,
|
|
33
|
+
includeTransactions extends boolean = false,
|
|
34
|
+
blockTag extends BlockTag = 'latest',
|
|
37
35
|
> = {
|
|
38
36
|
/** The callback to call when a new block is received. */
|
|
39
|
-
onBlock: OnBlock<
|
|
37
|
+
onBlock: OnBlock<chain, includeTransactions, blockTag>
|
|
40
38
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
|
41
39
|
onError?: ((error: Error) => void) | undefined
|
|
42
40
|
} & (
|
|
43
|
-
| (HasTransportType<
|
|
41
|
+
| (HasTransportType<transport, 'webSocket'> extends true
|
|
44
42
|
? {
|
|
45
43
|
blockTag?: undefined
|
|
46
44
|
emitMissed?: undefined
|
|
@@ -53,13 +51,13 @@ export type WatchBlocksParameters<
|
|
|
53
51
|
: never)
|
|
54
52
|
| {
|
|
55
53
|
/** The block tag. Defaults to "latest". */
|
|
56
|
-
blockTag?:
|
|
54
|
+
blockTag?: blockTag | BlockTag | undefined
|
|
57
55
|
/** Whether or not to emit the missed blocks to the callback. */
|
|
58
56
|
emitMissed?: boolean | undefined
|
|
59
57
|
/** Whether or not to emit the block to the callback when the subscription opens. */
|
|
60
58
|
emitOnBegin?: boolean | undefined
|
|
61
59
|
/** Whether or not to include transaction data in the response. */
|
|
62
|
-
includeTransactions?:
|
|
60
|
+
includeTransactions?: includeTransactions | undefined
|
|
63
61
|
poll?: true | undefined
|
|
64
62
|
/** Polling frequency (in ms). Defaults to the client's pollingInterval config. */
|
|
65
63
|
pollingInterval?: number | undefined
|
|
@@ -99,12 +97,12 @@ export type WatchBlocksErrorType =
|
|
|
99
97
|
* })
|
|
100
98
|
*/
|
|
101
99
|
export function watchBlocks<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
transport extends Transport,
|
|
101
|
+
chain extends Chain | undefined,
|
|
102
|
+
includeTransactions extends boolean = false,
|
|
103
|
+
blockTag extends BlockTag = 'latest',
|
|
106
104
|
>(
|
|
107
|
-
client: Client<
|
|
105
|
+
client: Client<transport, chain>,
|
|
108
106
|
{
|
|
109
107
|
blockTag = 'latest',
|
|
110
108
|
emitMissed = false,
|
|
@@ -114,7 +112,7 @@ export function watchBlocks<
|
|
|
114
112
|
includeTransactions: includeTransactions_,
|
|
115
113
|
poll: poll_,
|
|
116
114
|
pollingInterval = client.pollingInterval,
|
|
117
|
-
}: WatchBlocksParameters<
|
|
115
|
+
}: WatchBlocksParameters<transport, chain, includeTransactions, blockTag>,
|
|
118
116
|
): WatchBlocksReturnType {
|
|
119
117
|
const enablePolling = (() => {
|
|
120
118
|
if (typeof poll_ !== 'undefined') return poll_
|
|
@@ -129,7 +127,7 @@ export function watchBlocks<
|
|
|
129
127
|
const includeTransactions = includeTransactions_ ?? false
|
|
130
128
|
|
|
131
129
|
let prevBlock:
|
|
132
|
-
| GetBlockReturnType<
|
|
130
|
+
| GetBlockReturnType<chain, false | includeTransactions, 'latest'>
|
|
133
131
|
| undefined
|
|
134
132
|
|
|
135
133
|
const pollBlocks = () => {
|
|
@@ -171,7 +169,7 @@ export function watchBlocks<
|
|
|
171
169
|
)({
|
|
172
170
|
blockNumber: i,
|
|
173
171
|
includeTransactions,
|
|
174
|
-
})) as GetBlockReturnType<
|
|
172
|
+
})) as GetBlockReturnType<chain>
|
|
175
173
|
emit.onBlock(block as any, prevBlock as any)
|
|
176
174
|
prevBlock = block
|
|
177
175
|
}
|
|
@@ -39,35 +39,37 @@ import { type GetLogsParameters, getLogs } from './getLogs.js'
|
|
|
39
39
|
import { uninstallFilter } from './uninstallFilter.js'
|
|
40
40
|
|
|
41
41
|
export type WatchEventOnLogsParameter<
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
|
43
|
+
abiEvents extends
|
|
44
44
|
| readonly AbiEvent[]
|
|
45
45
|
| readonly unknown[]
|
|
46
|
-
| undefined =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
> = Log<bigint, number, false,
|
|
46
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
47
|
+
strict extends boolean | undefined = undefined,
|
|
48
|
+
eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
|
49
|
+
> = Log<bigint, number, false, abiEvent, strict, abiEvents, eventName>[]
|
|
50
50
|
export type WatchEventOnLogsFn<
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
|
52
|
+
abiEvents extends
|
|
53
53
|
| readonly AbiEvent[]
|
|
54
54
|
| readonly unknown[]
|
|
55
|
-
| undefined =
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
56
|
+
strict extends boolean | undefined = undefined,
|
|
57
|
+
//
|
|
58
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
|
58
59
|
> = (
|
|
59
|
-
logs: WatchEventOnLogsParameter<
|
|
60
|
+
logs: WatchEventOnLogsParameter<abiEvent, abiEvents, strict, _eventName>,
|
|
60
61
|
) => void
|
|
61
62
|
|
|
62
63
|
export type WatchEventParameters<
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
|
65
|
+
abiEvents extends
|
|
65
66
|
| readonly AbiEvent[]
|
|
66
67
|
| readonly unknown[]
|
|
67
|
-
| undefined =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
69
|
+
strict extends boolean | undefined = undefined,
|
|
70
|
+
transport extends Transport = Transport,
|
|
71
|
+
//
|
|
72
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
|
71
73
|
> = {
|
|
72
74
|
/** The address of the contract. */
|
|
73
75
|
address?: Address | Address[] | undefined
|
|
@@ -76,28 +78,28 @@ export type WatchEventParameters<
|
|
|
76
78
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
|
77
79
|
onError?: ((error: Error) => void) | undefined
|
|
78
80
|
/** The callback to call when new event logs are received. */
|
|
79
|
-
onLogs: WatchEventOnLogsFn<
|
|
80
|
-
} & GetPollOptions<
|
|
81
|
+
onLogs: WatchEventOnLogsFn<abiEvent, abiEvents, strict, _eventName>
|
|
82
|
+
} & GetPollOptions<transport> &
|
|
81
83
|
(
|
|
82
84
|
| {
|
|
83
|
-
event:
|
|
85
|
+
event: abiEvent
|
|
84
86
|
events?: undefined
|
|
85
|
-
args?: MaybeExtractEventArgsFromAbi<
|
|
87
|
+
args?: MaybeExtractEventArgsFromAbi<abiEvents, _eventName> | undefined
|
|
86
88
|
/**
|
|
87
89
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
|
88
90
|
* @default false
|
|
89
91
|
*/
|
|
90
|
-
strict?:
|
|
92
|
+
strict?: strict | undefined
|
|
91
93
|
}
|
|
92
94
|
| {
|
|
93
95
|
event?: undefined
|
|
94
|
-
events?:
|
|
96
|
+
events?: abiEvents | undefined
|
|
95
97
|
args?: undefined
|
|
96
98
|
/**
|
|
97
99
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
|
98
100
|
* @default false
|
|
99
101
|
*/
|
|
100
|
-
strict?:
|
|
102
|
+
strict?: strict | undefined
|
|
101
103
|
}
|
|
102
104
|
| {
|
|
103
105
|
event?: undefined
|
|
@@ -147,17 +149,17 @@ export type WatchEventErrorType =
|
|
|
147
149
|
* })
|
|
148
150
|
*/
|
|
149
151
|
export function watchEvent<
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
const
|
|
152
|
+
chain extends Chain | undefined,
|
|
153
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
|
154
|
+
const abiEvents extends
|
|
153
155
|
| readonly AbiEvent[]
|
|
154
156
|
| readonly unknown[]
|
|
155
|
-
| undefined =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
|
158
|
+
strict extends boolean | undefined = undefined,
|
|
159
|
+
transport extends Transport = Transport,
|
|
160
|
+
_eventName extends string | undefined = undefined,
|
|
159
161
|
>(
|
|
160
|
-
client: Client<
|
|
162
|
+
client: Client<transport, chain>,
|
|
161
163
|
{
|
|
162
164
|
address,
|
|
163
165
|
args,
|
|
@@ -170,7 +172,7 @@ export function watchEvent<
|
|
|
170
172
|
poll: poll_,
|
|
171
173
|
pollingInterval = client.pollingInterval,
|
|
172
174
|
strict: strict_,
|
|
173
|
-
}: WatchEventParameters<
|
|
175
|
+
}: WatchEventParameters<abiEvent, abiEvents, strict, transport>,
|
|
174
176
|
): WatchEventReturnType {
|
|
175
177
|
const enablePolling = (() => {
|
|
176
178
|
if (typeof poll_ !== 'undefined') return poll_
|
|
@@ -200,7 +202,7 @@ export function watchEvent<
|
|
|
200
202
|
return observe(observerId, { onLogs, onError }, (emit) => {
|
|
201
203
|
let previousBlockNumber: bigint
|
|
202
204
|
if (fromBlock !== undefined) previousBlockNumber = fromBlock - 1n
|
|
203
|
-
let filter: Filter<'event',
|
|
205
|
+
let filter: Filter<'event', abiEvents, _eventName, any>
|
|
204
206
|
let initialized = false
|
|
205
207
|
|
|
206
208
|
const unwatch = poll(
|
|
@@ -220,8 +222,8 @@ export function watchEvent<
|
|
|
220
222
|
fromBlock,
|
|
221
223
|
} as unknown as CreateEventFilterParameters)) as unknown as Filter<
|
|
222
224
|
'event',
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
abiEvents,
|
|
226
|
+
_eventName
|
|
225
227
|
>
|
|
226
228
|
} catch {}
|
|
227
229
|
initialized = true
|
|
@@ -18,13 +18,13 @@ export type OnTransactionsParameter = Hash[]
|
|
|
18
18
|
export type OnTransactionsFn = (transactions: OnTransactionsParameter) => void
|
|
19
19
|
|
|
20
20
|
export type WatchPendingTransactionsParameters<
|
|
21
|
-
|
|
21
|
+
transport extends Transport = Transport,
|
|
22
22
|
> = {
|
|
23
23
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
|
24
24
|
onError?: ((error: Error) => void) | undefined
|
|
25
25
|
/** The callback to call when new transactions are received. */
|
|
26
26
|
onTransactions: OnTransactionsFn
|
|
27
|
-
} & GetPollOptions<
|
|
27
|
+
} & GetPollOptions<transport>
|
|
28
28
|
|
|
29
29
|
export type WatchPendingTransactionsReturnType = () => void
|
|
30
30
|
|
|
@@ -63,17 +63,17 @@ export type WatchPendingTransactionsErrorType =
|
|
|
63
63
|
* })
|
|
64
64
|
*/
|
|
65
65
|
export function watchPendingTransactions<
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
transport extends Transport,
|
|
67
|
+
chain extends Chain | undefined,
|
|
68
68
|
>(
|
|
69
|
-
client: Client<
|
|
69
|
+
client: Client<transport, chain>,
|
|
70
70
|
{
|
|
71
71
|
batch = true,
|
|
72
72
|
onError,
|
|
73
73
|
onTransactions,
|
|
74
74
|
poll: poll_,
|
|
75
75
|
pollingInterval = client.pollingInterval,
|
|
76
|
-
}: WatchPendingTransactionsParameters<
|
|
76
|
+
}: WatchPendingTransactionsParameters<transport>,
|
|
77
77
|
) {
|
|
78
78
|
const enablePolling =
|
|
79
79
|
typeof poll_ !== 'undefined' ? poll_ : client.transport.type !== 'webSocket'
|
|
@@ -39,10 +39,10 @@ export type DropTransactionErrorType = RequestErrorType | ErrorType
|
|
|
39
39
|
* })
|
|
40
40
|
*/
|
|
41
41
|
export async function dropTransaction<
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
chain extends Chain | undefined,
|
|
43
|
+
account extends Account | undefined,
|
|
44
44
|
>(
|
|
45
|
-
client: TestClient<TestClientMode, Transport,
|
|
45
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
46
46
|
{ hash }: DropTransactionParameters,
|
|
47
47
|
) {
|
|
48
48
|
await client.request({
|
|
@@ -33,10 +33,10 @@ export type DumpStateErrorType = RequestErrorType | ErrorType
|
|
|
33
33
|
* await dumpState(client)
|
|
34
34
|
*/
|
|
35
35
|
export async function dumpState<
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
chain extends Chain | undefined,
|
|
37
|
+
account extends Account | undefined,
|
|
38
38
|
>(
|
|
39
|
-
client: TestClient<TestClientMode, Transport,
|
|
39
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
40
40
|
): Promise<DumpStateReturnType> {
|
|
41
41
|
return client.request({
|
|
42
42
|
method: `${client.mode}_dumpState`,
|
|
@@ -33,10 +33,10 @@ export type GetAutomineErrorType = RequestErrorType | ErrorType
|
|
|
33
33
|
* const isAutomining = await getAutomine(client)
|
|
34
34
|
*/
|
|
35
35
|
export async function getAutomine<
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
chain extends Chain | undefined,
|
|
37
|
+
account extends Account | undefined,
|
|
38
38
|
>(
|
|
39
|
-
client: TestClient<TestClientMode, Transport,
|
|
39
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
40
40
|
): Promise<GetAutomineReturnType> {
|
|
41
41
|
if (client.mode === 'ganache')
|
|
42
42
|
return await client.request({
|
|
@@ -41,10 +41,10 @@ export type GetTxpoolContentErrorType = RequestErrorType | ErrorType
|
|
|
41
41
|
* const content = await getTxpoolContent(client)
|
|
42
42
|
*/
|
|
43
43
|
export async function getTxpoolContent<
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
chain extends Chain | undefined,
|
|
45
|
+
account extends Account | undefined,
|
|
46
46
|
>(
|
|
47
|
-
client: TestClient<TestClientMode, Transport,
|
|
47
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
48
48
|
): Promise<GetTxpoolContentReturnType> {
|
|
49
49
|
return await client.request({
|
|
50
50
|
method: 'txpool_content',
|
|
@@ -37,10 +37,10 @@ export type GetTxpoolStatusErrorType = RequestErrorType | ErrorType
|
|
|
37
37
|
* const status = await getTxpoolStatus(client)
|
|
38
38
|
*/
|
|
39
39
|
export async function getTxpoolStatus<
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
chain extends Chain | undefined,
|
|
41
|
+
account extends Account | undefined,
|
|
42
42
|
>(
|
|
43
|
-
client: TestClient<TestClientMode, Transport,
|
|
43
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
44
44
|
): Promise<GetTxpoolStatusReturnType> {
|
|
45
45
|
const { pending, queued } = await client.request({
|
|
46
46
|
method: 'txpool_status',
|
|
@@ -40,10 +40,10 @@ export type ImpersonateAccountErrorType = RequestErrorType | ErrorType
|
|
|
40
40
|
* })
|
|
41
41
|
*/
|
|
42
42
|
export async function impersonateAccount<
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
chain extends Chain | undefined,
|
|
44
|
+
account extends Account | undefined,
|
|
45
45
|
>(
|
|
46
|
-
client: TestClient<TestClientMode, Transport,
|
|
46
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
47
47
|
{ address }: ImpersonateAccountParameters,
|
|
48
48
|
) {
|
|
49
49
|
await client.request({
|
|
@@ -39,10 +39,10 @@ export type IncreaseTimeErrorType = RequestErrorType | ErrorType
|
|
|
39
39
|
* })
|
|
40
40
|
*/
|
|
41
41
|
export async function increaseTime<
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
chain extends Chain | undefined,
|
|
43
|
+
account extends Account | undefined,
|
|
44
44
|
>(
|
|
45
|
-
client: TestClient<TestClientMode, Transport,
|
|
45
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
46
46
|
{ seconds }: IncreaseTimeParameters,
|
|
47
47
|
) {
|
|
48
48
|
return await client.request({
|
|
@@ -38,10 +38,10 @@ export type InspectTxpoolErrorType = RequestErrorType | ErrorType
|
|
|
38
38
|
* const data = await inspectTxpool(client)
|
|
39
39
|
*/
|
|
40
40
|
export async function inspectTxpool<
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
chain extends Chain | undefined,
|
|
42
|
+
account extends Account | undefined,
|
|
43
43
|
>(
|
|
44
|
-
client: TestClient<TestClientMode, Transport,
|
|
44
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
45
45
|
): Promise<InspectTxpoolReturnType> {
|
|
46
46
|
return await client.request({
|
|
47
47
|
method: 'txpool_inspect',
|
|
@@ -34,10 +34,10 @@ export type LoadStateErrorType = RequestErrorType | ErrorType
|
|
|
34
34
|
* await loadState(client, { state: '0x...' })
|
|
35
35
|
*/
|
|
36
36
|
export async function loadState<
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
chain extends Chain | undefined,
|
|
38
|
+
account extends Account | undefined,
|
|
39
39
|
>(
|
|
40
|
-
client: TestClient<TestClientMode, Transport,
|
|
40
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
41
41
|
{ state }: LoadStateParameters,
|
|
42
42
|
): Promise<LoadStateReturnType> {
|
|
43
43
|
await client.request({
|
package/actions/test/mine.ts
CHANGED
|
@@ -39,10 +39,10 @@ export type MineErrorType = RequestErrorType | ErrorType
|
|
|
39
39
|
* await mine(client, { blocks: 1 })
|
|
40
40
|
*/
|
|
41
41
|
export async function mine<
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
chain extends Chain | undefined,
|
|
43
|
+
account extends Account | undefined,
|
|
44
44
|
>(
|
|
45
|
-
client: TestClient<TestClientMode, Transport,
|
|
45
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
46
46
|
{ blocks, interval }: MineParameters,
|
|
47
47
|
) {
|
|
48
48
|
if (client.mode === 'ganache')
|
|
@@ -30,9 +30,9 @@ export type RemoveBlockTimestampIntervalErrorType = RequestErrorType | ErrorType
|
|
|
30
30
|
* await removeBlockTimestampInterval(client)
|
|
31
31
|
*/
|
|
32
32
|
export async function removeBlockTimestampInterval<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
>(client: TestClient<TestClientMode, Transport,
|
|
33
|
+
chain extends Chain | undefined,
|
|
34
|
+
account extends Account | undefined,
|
|
35
|
+
>(client: TestClient<TestClientMode, Transport, chain, account, false>) {
|
|
36
36
|
await client.request({
|
|
37
37
|
method: `${client.mode}_removeBlockTimestampInterval`,
|
|
38
38
|
})
|
package/actions/test/reset.ts
CHANGED
|
@@ -38,10 +38,10 @@ export type ResetErrorType = RequestErrorType | ErrorType
|
|
|
38
38
|
* await reset(client, { blockNumber: 69420n })
|
|
39
39
|
*/
|
|
40
40
|
export async function reset<
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
chain extends Chain | undefined,
|
|
42
|
+
account extends Account | undefined,
|
|
43
43
|
>(
|
|
44
|
-
client: TestClient<TestClientMode, Transport,
|
|
44
|
+
client: TestClient<TestClientMode, Transport, chain, account, false>,
|
|
45
45
|
{ blockNumber, jsonRpcUrl }: ResetParameters = {},
|
|
46
46
|
) {
|
|
47
47
|
await client.request({
|