viem 2.17.2 → 2.17.4
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -18,41 +18,33 @@ import {
|
|
18
18
|
} from '../../utils/formatters/log.js'
|
19
19
|
|
20
20
|
export type GetFilterChangesParameters<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
filterType extends FilterType = FilterType,
|
22
|
+
abi extends Abi | readonly unknown[] | undefined = undefined,
|
23
|
+
eventName extends string | undefined = undefined,
|
24
|
+
strict extends boolean | undefined = undefined,
|
25
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
26
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
27
27
|
> = {
|
28
|
-
filter: Filter<
|
29
|
-
TFilterType,
|
30
|
-
TAbi,
|
31
|
-
TEventName,
|
32
|
-
any,
|
33
|
-
TStrict,
|
34
|
-
TFromBlock,
|
35
|
-
TToBlock
|
36
|
-
>
|
28
|
+
filter: Filter<filterType, abi, eventName, any, strict, fromBlock, toBlock>
|
37
29
|
}
|
38
30
|
|
39
31
|
export type GetFilterChangesReturnType<
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
_AbiEvent extends AbiEvent | undefined =
|
47
|
-
?
|
48
|
-
? ExtractAbiEvent<
|
32
|
+
filterType extends FilterType = FilterType,
|
33
|
+
abi extends Abi | readonly unknown[] | undefined = undefined,
|
34
|
+
eventName extends string | undefined = undefined,
|
35
|
+
strict extends boolean | undefined = undefined,
|
36
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
37
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
38
|
+
_AbiEvent extends AbiEvent | undefined = abi extends Abi
|
39
|
+
? eventName extends string
|
40
|
+
? ExtractAbiEvent<abi, eventName>
|
49
41
|
: undefined
|
50
42
|
: undefined,
|
51
43
|
_Pending extends boolean =
|
52
|
-
| (
|
53
|
-
| (
|
54
|
-
> =
|
55
|
-
? Log<bigint, number, _Pending, _AbiEvent,
|
44
|
+
| (fromBlock extends 'pending' ? true : false)
|
45
|
+
| (toBlock extends 'pending' ? true : false),
|
46
|
+
> = filterType extends 'event'
|
47
|
+
? Log<bigint, number, _Pending, _AbiEvent, strict, abi, eventName>[]
|
56
48
|
: Hash[]
|
57
49
|
|
58
50
|
export type GetFilterChangesErrorType =
|
@@ -144,34 +136,34 @@ export type GetFilterChangesErrorType =
|
|
144
136
|
* const hashes = await getFilterChanges(client, { filter })
|
145
137
|
*/
|
146
138
|
export async function getFilterChanges<
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
const
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
139
|
+
transport extends Transport,
|
140
|
+
chain extends Chain | undefined,
|
141
|
+
filterType extends FilterType,
|
142
|
+
const abi extends Abi | readonly unknown[] | undefined,
|
143
|
+
eventName extends string | undefined,
|
144
|
+
strict extends boolean | undefined = undefined,
|
145
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
146
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
155
147
|
>(
|
156
|
-
_client: Client<
|
148
|
+
_client: Client<transport, chain>,
|
157
149
|
{
|
158
150
|
filter,
|
159
151
|
}: GetFilterChangesParameters<
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
152
|
+
filterType,
|
153
|
+
abi,
|
154
|
+
eventName,
|
155
|
+
strict,
|
156
|
+
fromBlock,
|
157
|
+
toBlock
|
166
158
|
>,
|
167
159
|
): Promise<
|
168
160
|
GetFilterChangesReturnType<
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
161
|
+
filterType,
|
162
|
+
abi,
|
163
|
+
eventName,
|
164
|
+
strict,
|
165
|
+
fromBlock,
|
166
|
+
toBlock
|
175
167
|
>
|
176
168
|
> {
|
177
169
|
const strict = 'strict' in filter && filter.strict
|
@@ -183,34 +175,34 @@ export async function getFilterChanges<
|
|
183
175
|
|
184
176
|
if (typeof logs[0] === 'string')
|
185
177
|
return logs as GetFilterChangesReturnType<
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
178
|
+
filterType,
|
179
|
+
abi,
|
180
|
+
eventName,
|
181
|
+
strict,
|
182
|
+
fromBlock,
|
183
|
+
toBlock
|
192
184
|
>
|
193
185
|
|
194
186
|
const formattedLogs = logs.map((log) => formatLog(log as RpcLog))
|
195
187
|
if (!('abi' in filter) || !filter.abi)
|
196
188
|
return formattedLogs as GetFilterChangesReturnType<
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
189
|
+
filterType,
|
190
|
+
abi,
|
191
|
+
eventName,
|
192
|
+
strict,
|
193
|
+
fromBlock,
|
194
|
+
toBlock
|
203
195
|
>
|
204
196
|
return parseEventLogs({
|
205
197
|
abi: filter.abi,
|
206
198
|
logs: formattedLogs,
|
207
199
|
strict,
|
208
200
|
}) as unknown as GetFilterChangesReturnType<
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
201
|
+
filterType,
|
202
|
+
abi,
|
203
|
+
eventName,
|
204
|
+
strict,
|
205
|
+
fromBlock,
|
206
|
+
toBlock
|
215
207
|
>
|
216
208
|
}
|
@@ -17,29 +17,29 @@ import {
|
|
17
17
|
} from '../../utils/formatters/log.js'
|
18
18
|
|
19
19
|
export type GetFilterLogsParameters<
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
abi extends Abi | readonly unknown[] | undefined = undefined,
|
21
|
+
eventName extends string | undefined = undefined,
|
22
|
+
strict extends boolean | undefined = undefined,
|
23
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
24
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
25
25
|
> = {
|
26
|
-
filter: Filter<'event',
|
26
|
+
filter: Filter<'event', abi, eventName, any, strict, fromBlock, toBlock>
|
27
27
|
}
|
28
28
|
export type GetFilterLogsReturnType<
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
_AbiEvent extends AbiEvent | undefined =
|
35
|
-
?
|
36
|
-
? ExtractAbiEvent<
|
29
|
+
abi extends Abi | readonly unknown[] | undefined = undefined,
|
30
|
+
eventName extends string | undefined = undefined,
|
31
|
+
strict extends boolean | undefined = undefined,
|
32
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
33
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
34
|
+
_AbiEvent extends AbiEvent | undefined = abi extends Abi
|
35
|
+
? eventName extends string
|
36
|
+
? ExtractAbiEvent<abi, eventName>
|
37
37
|
: undefined
|
38
38
|
: undefined,
|
39
39
|
_Pending extends boolean =
|
40
|
-
| (
|
41
|
-
| (
|
42
|
-
> = Log<bigint, number, _Pending, _AbiEvent,
|
40
|
+
| (fromBlock extends 'pending' ? true : false)
|
41
|
+
| (toBlock extends 'pending' ? true : false),
|
42
|
+
> = Log<bigint, number, _Pending, _AbiEvent, strict, abi, eventName>[]
|
43
43
|
|
44
44
|
export type GetFilterLogsErrorType =
|
45
45
|
| RequestErrorType
|
@@ -75,19 +75,19 @@ export type GetFilterLogsErrorType =
|
|
75
75
|
* const logs = await getFilterLogs(client, { filter })
|
76
76
|
*/
|
77
77
|
export async function getFilterLogs<
|
78
|
-
|
79
|
-
const
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
chain extends Chain | undefined,
|
79
|
+
const abi extends Abi | readonly unknown[] | undefined,
|
80
|
+
eventName extends string | undefined,
|
81
|
+
strict extends boolean | undefined = undefined,
|
82
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
83
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
84
84
|
>(
|
85
|
-
_client: Client<Transport,
|
85
|
+
_client: Client<Transport, chain>,
|
86
86
|
{
|
87
87
|
filter,
|
88
|
-
}: GetFilterLogsParameters<
|
88
|
+
}: GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>,
|
89
89
|
): Promise<
|
90
|
-
GetFilterLogsReturnType<
|
90
|
+
GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>
|
91
91
|
> {
|
92
92
|
const strict = filter.strict ?? false
|
93
93
|
|
@@ -99,21 +99,21 @@ export async function getFilterLogs<
|
|
99
99
|
const formattedLogs = logs.map((log) => formatLog(log))
|
100
100
|
if (!filter.abi)
|
101
101
|
return formattedLogs as GetFilterLogsReturnType<
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
102
|
+
abi,
|
103
|
+
eventName,
|
104
|
+
strict,
|
105
|
+
fromBlock,
|
106
|
+
toBlock
|
107
107
|
>
|
108
108
|
return parseEventLogs({
|
109
109
|
abi: filter.abi,
|
110
110
|
logs: formattedLogs,
|
111
111
|
strict,
|
112
112
|
}) as unknown as GetFilterLogsReturnType<
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
113
|
+
abi,
|
114
|
+
eventName,
|
115
|
+
strict,
|
116
|
+
fromBlock,
|
117
|
+
toBlock
|
118
118
|
>
|
119
119
|
}
|
@@ -30,9 +30,9 @@ export type GetGasPriceErrorType = RequestErrorType | ErrorType
|
|
30
30
|
* const gasPrice = await getGasPrice(client)
|
31
31
|
*/
|
32
32
|
export async function getGasPrice<
|
33
|
-
|
34
|
-
|
35
|
-
>(client: Client<Transport,
|
33
|
+
chain extends Chain | undefined,
|
34
|
+
account extends Account | undefined,
|
35
|
+
>(client: Client<Transport, chain, account>): Promise<GetGasPriceReturnType> {
|
36
36
|
const gasPrice = await client.request({
|
37
37
|
method: 'eth_gasPrice',
|
38
38
|
})
|
@@ -30,38 +30,39 @@ import {
|
|
30
30
|
} from '../../utils/formatters/log.js'
|
31
31
|
|
32
32
|
export type GetLogsParameters<
|
33
|
-
|
34
|
-
|
33
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
34
|
+
abiEvents extends
|
35
35
|
| readonly AbiEvent[]
|
36
36
|
| readonly unknown[]
|
37
|
-
| undefined =
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
38
|
+
strict extends boolean | undefined = undefined,
|
39
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
40
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
41
|
+
//
|
42
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
42
43
|
> = {
|
43
44
|
/** Address or list of addresses from which logs originated */
|
44
45
|
address?: Address | Address[] | undefined
|
45
46
|
} & (
|
46
47
|
| {
|
47
|
-
event:
|
48
|
+
event: abiEvent
|
48
49
|
events?: undefined
|
49
|
-
args?: MaybeExtractEventArgsFromAbi<
|
50
|
+
args?: MaybeExtractEventArgsFromAbi<abiEvents, _eventName> | undefined
|
50
51
|
/**
|
51
52
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
52
53
|
* @default false
|
53
54
|
*/
|
54
|
-
strict?:
|
55
|
+
strict?: strict | undefined
|
55
56
|
}
|
56
57
|
| {
|
57
58
|
event?: undefined
|
58
|
-
events:
|
59
|
+
events: abiEvents
|
59
60
|
args?: undefined
|
60
61
|
/**
|
61
62
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
62
63
|
* @default false
|
63
64
|
*/
|
64
|
-
strict?:
|
65
|
+
strict?: strict | undefined
|
65
66
|
}
|
66
67
|
| {
|
67
68
|
event?: undefined
|
@@ -73,9 +74,9 @@ export type GetLogsParameters<
|
|
73
74
|
(
|
74
75
|
| {
|
75
76
|
/** Block number or tag after which to include logs */
|
76
|
-
fromBlock?:
|
77
|
+
fromBlock?: fromBlock | BlockNumber | BlockTag | undefined
|
77
78
|
/** Block number or tag before which to include logs */
|
78
|
-
toBlock?:
|
79
|
+
toBlock?: toBlock | BlockNumber | BlockTag | undefined
|
79
80
|
blockHash?: undefined
|
80
81
|
}
|
81
82
|
| {
|
@@ -87,19 +88,20 @@ export type GetLogsParameters<
|
|
87
88
|
)
|
88
89
|
|
89
90
|
export type GetLogsReturnType<
|
90
|
-
|
91
|
-
|
91
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
92
|
+
abiEvents extends
|
92
93
|
| readonly AbiEvent[]
|
93
94
|
| readonly unknown[]
|
94
|
-
| undefined =
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
| (
|
102
|
-
|
95
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
96
|
+
strict extends boolean | undefined = undefined,
|
97
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
98
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
99
|
+
//
|
100
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
101
|
+
_pending extends boolean =
|
102
|
+
| (fromBlock extends 'pending' ? true : false)
|
103
|
+
| (toBlock extends 'pending' ? true : false),
|
104
|
+
> = Log<bigint, number, _pending, abiEvent, strict, abiEvents, _eventName>[]
|
103
105
|
|
104
106
|
export type GetLogsErrorType =
|
105
107
|
| DecodeEventLogErrorType
|
@@ -132,17 +134,17 @@ export type GetLogsErrorType =
|
|
132
134
|
* const logs = await getLogs(client)
|
133
135
|
*/
|
134
136
|
export async function getLogs<
|
135
|
-
|
136
|
-
const
|
137
|
-
const
|
137
|
+
chain extends Chain | undefined,
|
138
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
139
|
+
const abiEvents extends
|
138
140
|
| readonly AbiEvent[]
|
139
141
|
| readonly unknown[]
|
140
|
-
| undefined =
|
141
|
-
|
142
|
-
|
143
|
-
|
142
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
143
|
+
strict extends boolean | undefined = undefined,
|
144
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
145
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
144
146
|
>(
|
145
|
-
client: Client<Transport,
|
147
|
+
client: Client<Transport, chain>,
|
146
148
|
{
|
147
149
|
address,
|
148
150
|
blockHash,
|
@@ -152,16 +154,8 @@ export async function getLogs<
|
|
152
154
|
events: events_,
|
153
155
|
args,
|
154
156
|
strict: strict_,
|
155
|
-
}: GetLogsParameters<
|
156
|
-
|
157
|
-
TAbiEvents,
|
158
|
-
TStrict,
|
159
|
-
TFromBlock,
|
160
|
-
TToBlock
|
161
|
-
> = {},
|
162
|
-
): Promise<
|
163
|
-
GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>
|
164
|
-
> {
|
157
|
+
}: GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> = {},
|
158
|
+
): Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>> {
|
165
159
|
const strict = strict_ ?? false
|
166
160
|
const events = events_ ?? (event ? [event] : undefined)
|
167
161
|
|
@@ -203,21 +197,21 @@ export async function getLogs<
|
|
203
197
|
const formattedLogs = logs.map((log) => formatLog(log))
|
204
198
|
if (!events)
|
205
199
|
return formattedLogs as GetLogsReturnType<
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
200
|
+
abiEvent,
|
201
|
+
abiEvents,
|
202
|
+
strict,
|
203
|
+
fromBlock,
|
204
|
+
toBlock
|
211
205
|
>
|
212
206
|
return parseEventLogs({
|
213
207
|
abi: events,
|
214
208
|
logs: formattedLogs,
|
215
209
|
strict,
|
216
210
|
}) as unknown as GetLogsReturnType<
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
211
|
+
abiEvent,
|
212
|
+
abiEvents,
|
213
|
+
strict,
|
214
|
+
fromBlock,
|
215
|
+
toBlock
|
222
216
|
>
|
223
217
|
}
|
@@ -70,8 +70,8 @@ export type GetProofErrorType =
|
|
70
70
|
* storageKeys: ['0x...'],
|
71
71
|
* })
|
72
72
|
*/
|
73
|
-
export async function getProof<
|
74
|
-
client: Client<Transport,
|
73
|
+
export async function getProof<chain extends Chain | undefined>(
|
74
|
+
client: Client<Transport, chain>,
|
75
75
|
{
|
76
76
|
address,
|
77
77
|
blockNumber,
|
@@ -57,8 +57,8 @@ export type GetStorageAtErrorType =
|
|
57
57
|
* slot: toHex(0),
|
58
58
|
* })
|
59
59
|
*/
|
60
|
-
export async function getStorageAt<
|
61
|
-
client: Client<Transport,
|
60
|
+
export async function getStorageAt<chain extends Chain | undefined>(
|
61
|
+
client: Client<Transport, chain>,
|
62
62
|
{ address, blockNumber, blockTag = 'latest', slot }: GetStorageAtParameters,
|
63
63
|
): Promise<GetStorageAtReturnType> {
|
64
64
|
const blockNumberHex =
|
@@ -17,7 +17,7 @@ import {
|
|
17
17
|
formatTransaction,
|
18
18
|
} from '../../utils/formatters/transaction.js'
|
19
19
|
|
20
|
-
export type GetTransactionParameters<
|
20
|
+
export type GetTransactionParameters<blockTag extends BlockTag = 'latest'> =
|
21
21
|
| {
|
22
22
|
/** The block hash */
|
23
23
|
blockHash: Hash
|
@@ -40,7 +40,7 @@ export type GetTransactionParameters<TBlockTag extends BlockTag = 'latest'> =
|
|
40
40
|
blockHash?: undefined
|
41
41
|
blockNumber?: undefined
|
42
42
|
/** The block tag. */
|
43
|
-
blockTag:
|
43
|
+
blockTag: blockTag | BlockTag
|
44
44
|
hash?: undefined
|
45
45
|
/** The index of the transaction on the block. */
|
46
46
|
index: number
|
@@ -55,9 +55,9 @@ export type GetTransactionParameters<TBlockTag extends BlockTag = 'latest'> =
|
|
55
55
|
}
|
56
56
|
|
57
57
|
export type GetTransactionReturnType<
|
58
|
-
|
59
|
-
|
60
|
-
> = Prettify<FormattedTransaction<
|
58
|
+
chain extends Chain | undefined = undefined,
|
59
|
+
blockTag extends BlockTag = 'latest',
|
60
|
+
> = Prettify<FormattedTransaction<chain, blockTag>>
|
61
61
|
|
62
62
|
export type GetTransactionErrorType =
|
63
63
|
| NumberToHexErrorType
|
@@ -89,18 +89,18 @@ export type GetTransactionErrorType =
|
|
89
89
|
* })
|
90
90
|
*/
|
91
91
|
export async function getTransaction<
|
92
|
-
|
93
|
-
|
92
|
+
chain extends Chain | undefined,
|
93
|
+
blockTag extends BlockTag = 'latest',
|
94
94
|
>(
|
95
|
-
client: Client<Transport,
|
95
|
+
client: Client<Transport, chain>,
|
96
96
|
{
|
97
97
|
blockHash,
|
98
98
|
blockNumber,
|
99
99
|
blockTag: blockTag_,
|
100
100
|
hash,
|
101
101
|
index,
|
102
|
-
}: GetTransactionParameters<
|
103
|
-
): Promise<GetTransactionReturnType<
|
102
|
+
}: GetTransactionParameters<blockTag>,
|
103
|
+
): Promise<GetTransactionReturnType<chain, blockTag>> {
|
104
104
|
const blockTag = blockTag_ || 'latest'
|
105
105
|
|
106
106
|
const blockNumberHex =
|
@@ -16,7 +16,7 @@ import {
|
|
16
16
|
} from './getTransaction.js'
|
17
17
|
|
18
18
|
export type GetTransactionConfirmationsParameters<
|
19
|
-
|
19
|
+
chain extends Chain | undefined = Chain,
|
20
20
|
> =
|
21
21
|
| {
|
22
22
|
/** The transaction hash. */
|
@@ -26,7 +26,7 @@ export type GetTransactionConfirmationsParameters<
|
|
26
26
|
| {
|
27
27
|
hash?: undefined
|
28
28
|
/** The transaction receipt. */
|
29
|
-
transactionReceipt: FormattedTransactionReceipt<
|
29
|
+
transactionReceipt: FormattedTransactionReceipt<chain>
|
30
30
|
}
|
31
31
|
|
32
32
|
export type GetTransactionConfirmationsReturnType = bigint
|
@@ -61,10 +61,10 @@ export type GetTransactionConfirmationsErrorType =
|
|
61
61
|
* })
|
62
62
|
*/
|
63
63
|
export async function getTransactionConfirmations<
|
64
|
-
|
64
|
+
chain extends Chain | undefined,
|
65
65
|
>(
|
66
|
-
client: Client<Transport,
|
67
|
-
{ hash, transactionReceipt }: GetTransactionConfirmationsParameters<
|
66
|
+
client: Client<Transport, chain>,
|
67
|
+
{ hash, transactionReceipt }: GetTransactionConfirmationsParameters<chain>,
|
68
68
|
): Promise<GetTransactionConfirmationsReturnType> {
|
69
69
|
const [blockNumber, transaction] = await Promise.all([
|
70
70
|
getAction(client, getBlockNumber, 'getBlockNumber')({}),
|
@@ -63,10 +63,10 @@ export type GetTransactionCountErrorType =
|
|
63
63
|
* })
|
64
64
|
*/
|
65
65
|
export async function getTransactionCount<
|
66
|
-
|
67
|
-
|
66
|
+
chain extends Chain | undefined,
|
67
|
+
account extends Account | undefined,
|
68
68
|
>(
|
69
|
-
client: Client<Transport,
|
69
|
+
client: Client<Transport, chain, account>,
|
70
70
|
{ address, blockTag = 'latest', blockNumber }: GetTransactionCountParameters,
|
71
71
|
): Promise<GetTransactionCountReturnType> {
|
72
72
|
const count = await client.request(
|
@@ -19,8 +19,8 @@ export type GetTransactionReceiptParameters = {
|
|
19
19
|
}
|
20
20
|
|
21
21
|
export type GetTransactionReceiptReturnType<
|
22
|
-
|
23
|
-
> = FormattedTransactionReceipt<
|
22
|
+
chain extends Chain | undefined = undefined,
|
23
|
+
> = FormattedTransactionReceipt<chain>
|
24
24
|
|
25
25
|
export type GetTransactionReceiptErrorType =
|
26
26
|
| RequestErrorType
|
@@ -51,8 +51,8 @@ export type GetTransactionReceiptErrorType =
|
|
51
51
|
* hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
|
52
52
|
* })
|
53
53
|
*/
|
54
|
-
export async function getTransactionReceipt<
|
55
|
-
client: Client<Transport,
|
54
|
+
export async function getTransactionReceipt<chain extends Chain | undefined>(
|
55
|
+
client: Client<Transport, chain>,
|
56
56
|
{ hash }: GetTransactionReceiptParameters,
|
57
57
|
) {
|
58
58
|
const receipt = await client.request(
|
@@ -68,5 +68,5 @@ export async function getTransactionReceipt<TChain extends Chain | undefined>(
|
|
68
68
|
const format =
|
69
69
|
client.chain?.formatters?.transactionReceipt?.format ||
|
70
70
|
formatTransactionReceipt
|
71
|
-
return format(receipt) as GetTransactionReceiptReturnType<
|
71
|
+
return format(receipt) as GetTransactionReceiptReturnType<chain>
|
72
72
|
}
|
@@ -37,10 +37,10 @@ export type UninstallFilterErrorType = RequestErrorType | ErrorType
|
|
37
37
|
* // true
|
38
38
|
*/
|
39
39
|
export async function uninstallFilter<
|
40
|
-
|
41
|
-
|
40
|
+
transport extends Transport,
|
41
|
+
chain extends Chain | undefined,
|
42
42
|
>(
|
43
|
-
_client: Client<
|
43
|
+
_client: Client<transport, chain>,
|
44
44
|
{ filter }: UninstallFilterParameters,
|
45
45
|
): Promise<UninstallFilterReturnType> {
|
46
46
|
return filter.request({
|