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
package/actions/public/call.ts
CHANGED
@@ -77,8 +77,8 @@ import type {
|
|
77
77
|
} from '../../utils/transaction/assertRequest.js'
|
78
78
|
|
79
79
|
export type CallParameters<
|
80
|
-
|
81
|
-
> = UnionOmit<FormattedCall<
|
80
|
+
chain extends Chain | undefined = Chain | undefined,
|
81
|
+
> = UnionOmit<FormattedCall<chain>, 'from'> & {
|
82
82
|
/** Account attached to the call (msg.sender). */
|
83
83
|
account?: Account | Address | undefined
|
84
84
|
/** Whether or not to enable multicall batching on this call. */
|
@@ -106,8 +106,8 @@ export type CallParameters<
|
|
106
106
|
blockTag?: BlockTag | undefined
|
107
107
|
}
|
108
108
|
)
|
109
|
-
type FormattedCall<
|
110
|
-
FormattedTransactionRequest<
|
109
|
+
type FormattedCall<chain extends Chain | undefined = Chain | undefined> =
|
110
|
+
FormattedTransactionRequest<chain>
|
111
111
|
|
112
112
|
export type CallReturnType = { data: Hex | undefined }
|
113
113
|
|
@@ -148,9 +148,9 @@ export type CallErrorType = GetCallErrorReturnType<
|
|
148
148
|
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
149
149
|
* })
|
150
150
|
*/
|
151
|
-
export async function call<
|
152
|
-
client: Client<Transport,
|
153
|
-
args: CallParameters<
|
151
|
+
export async function call<chain extends Chain | undefined>(
|
152
|
+
client: Client<Transport, chain>,
|
153
|
+
args: CallParameters<chain>,
|
154
154
|
): Promise<CallReturnType> {
|
155
155
|
const {
|
156
156
|
account: account_ = client.account,
|
@@ -239,7 +239,7 @@ export async function call<TChain extends Chain | undefined>(
|
|
239
239
|
...request,
|
240
240
|
blockNumber,
|
241
241
|
blockTag,
|
242
|
-
} as unknown as ScheduleMulticallParameters<
|
242
|
+
} as unknown as ScheduleMulticallParameters<chain>)
|
243
243
|
} catch (err) {
|
244
244
|
if (
|
245
245
|
!(err instanceof ClientChainNotConfiguredError) &&
|
@@ -304,8 +304,8 @@ function shouldPerformMulticall({ request }: { request: TransactionRequest }) {
|
|
304
304
|
return true
|
305
305
|
}
|
306
306
|
|
307
|
-
type ScheduleMulticallParameters<
|
308
|
-
CallParameters<
|
307
|
+
type ScheduleMulticallParameters<chain extends Chain | undefined> = Pick<
|
308
|
+
CallParameters<chain>,
|
309
309
|
'blockNumber' | 'blockTag'
|
310
310
|
> & {
|
311
311
|
data: Hex
|
@@ -322,9 +322,9 @@ type ScheduleMulticallErrorType =
|
|
322
322
|
| RawContractErrorType
|
323
323
|
| ErrorType
|
324
324
|
|
325
|
-
async function scheduleMulticall<
|
325
|
+
async function scheduleMulticall<chain extends Chain | undefined>(
|
326
326
|
client: Client<Transport>,
|
327
|
-
args: ScheduleMulticallParameters<
|
327
|
+
args: ScheduleMulticallParameters<chain>,
|
328
328
|
) {
|
329
329
|
const { batchSize = 1024, wait = 0 } =
|
330
330
|
typeof client.batch?.multicall === 'object' ? client.batch.multicall : {}
|
@@ -31,8 +31,8 @@ export type CreateBlockFilterErrorType = RequestErrorType | ErrorType
|
|
31
31
|
* const filter = await createBlockFilter(client)
|
32
32
|
* // { id: "0x345a6572337856574a76364e457a4366", type: 'block' }
|
33
33
|
*/
|
34
|
-
export async function createBlockFilter<
|
35
|
-
client: Client<Transport,
|
34
|
+
export async function createBlockFilter<chain extends Chain | undefined>(
|
35
|
+
client: Client<Transport, chain>,
|
36
36
|
): Promise<CreateBlockFilterReturnType> {
|
37
37
|
const getRequest = createFilterRequestScope(client, {
|
38
38
|
method: 'eth_newBlockFilter',
|
@@ -47,11 +47,11 @@ export type CreateContractEventFilterParameters<
|
|
47
47
|
? {
|
48
48
|
args?: undefined
|
49
49
|
}
|
50
|
-
: MaybeExtractEventArgsFromAbi<abi, eventName> extends infer
|
50
|
+
: MaybeExtractEventArgsFromAbi<abi, eventName> extends infer eventFilterArgs
|
51
51
|
? {
|
52
52
|
args?:
|
53
|
-
|
|
54
|
-
| (args extends
|
53
|
+
| eventFilterArgs
|
54
|
+
| (args extends eventFilterArgs ? args : never)
|
55
55
|
| undefined
|
56
56
|
}
|
57
57
|
: {
|
@@ -25,58 +25,59 @@ import {
|
|
25
25
|
import { createFilterRequestScope } from '../../utils/filters/createFilterRequestScope.js'
|
26
26
|
|
27
27
|
export type CreateEventFilterParameters<
|
28
|
-
|
29
|
-
|
28
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
29
|
+
abiEvents extends
|
30
30
|
| readonly AbiEvent[]
|
31
31
|
| readonly unknown[]
|
32
|
-
| undefined =
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
33
|
+
strict extends boolean | undefined = undefined,
|
34
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
35
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
36
|
+
//
|
37
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
38
|
+
_args extends
|
39
|
+
| MaybeExtractEventArgsFromAbi<abiEvents, _eventName>
|
39
40
|
| undefined = undefined,
|
40
41
|
> = {
|
41
42
|
address?: Address | Address[] | undefined
|
42
|
-
fromBlock?:
|
43
|
-
toBlock?:
|
43
|
+
fromBlock?: fromBlock | BlockNumber | BlockTag | undefined
|
44
|
+
toBlock?: toBlock | BlockNumber | BlockTag | undefined
|
44
45
|
} & (MaybeExtractEventArgsFromAbi<
|
45
|
-
|
46
|
-
|
47
|
-
> extends infer
|
46
|
+
abiEvents,
|
47
|
+
_eventName
|
48
|
+
> extends infer eventFilterArgs
|
48
49
|
?
|
49
50
|
| {
|
50
51
|
args:
|
51
|
-
|
|
52
|
-
| (
|
53
|
-
event:
|
52
|
+
| eventFilterArgs
|
53
|
+
| (_args extends eventFilterArgs ? _args : never)
|
54
|
+
event: abiEvent
|
54
55
|
events?: undefined
|
55
56
|
/**
|
56
57
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
57
58
|
* @default false
|
58
59
|
*/
|
59
|
-
strict?:
|
60
|
+
strict?: strict | undefined
|
60
61
|
}
|
61
62
|
| {
|
62
63
|
args?: undefined
|
63
|
-
event?:
|
64
|
+
event?: abiEvent | undefined
|
64
65
|
events?: undefined
|
65
66
|
/**
|
66
67
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
67
68
|
* @default false
|
68
69
|
*/
|
69
|
-
strict?:
|
70
|
+
strict?: strict | undefined
|
70
71
|
}
|
71
72
|
| {
|
72
73
|
args?: undefined
|
73
74
|
event?: undefined
|
74
|
-
events:
|
75
|
+
events: abiEvents | undefined
|
75
76
|
/**
|
76
77
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
77
78
|
* @default false
|
78
79
|
*/
|
79
|
-
strict?:
|
80
|
+
strict?: strict | undefined
|
80
81
|
}
|
81
82
|
| {
|
82
83
|
args?: undefined
|
@@ -92,20 +93,20 @@ export type CreateEventFilterParameters<
|
|
92
93
|
})
|
93
94
|
|
94
95
|
export type CreateEventFilterReturnType<
|
95
|
-
|
96
|
-
|
96
|
+
abiEvent extends AbiEvent | undefined = undefined,
|
97
|
+
abiEvents extends
|
97
98
|
| readonly AbiEvent[]
|
98
99
|
| readonly unknown[]
|
99
|
-
| undefined =
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
| MaybeExtractEventArgsFromAbi<
|
100
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
101
|
+
strict extends boolean | undefined = undefined,
|
102
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
103
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
104
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
105
|
+
_args extends
|
106
|
+
| MaybeExtractEventArgsFromAbi<abiEvents, _eventName>
|
106
107
|
| undefined = undefined,
|
107
108
|
> = Prettify<
|
108
|
-
Filter<'event',
|
109
|
+
Filter<'event', abiEvents, _eventName, _args, strict, fromBlock, toBlock>
|
109
110
|
>
|
110
111
|
|
111
112
|
export type CreateEventFilterErrorType =
|
@@ -138,21 +139,21 @@ export type CreateEventFilterErrorType =
|
|
138
139
|
* })
|
139
140
|
*/
|
140
141
|
export async function createEventFilter<
|
141
|
-
|
142
|
-
const
|
143
|
-
const
|
142
|
+
chain extends Chain | undefined,
|
143
|
+
const abiEvent extends AbiEvent | undefined = undefined,
|
144
|
+
const abiEvents extends
|
144
145
|
| readonly AbiEvent[]
|
145
146
|
| readonly unknown[]
|
146
|
-
| undefined =
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
| MaybeExtractEventArgsFromAbi<
|
147
|
+
| undefined = abiEvent extends AbiEvent ? [abiEvent] : undefined,
|
148
|
+
strict extends boolean | undefined = undefined,
|
149
|
+
fromBlock extends BlockNumber<bigint> | BlockTag | undefined = undefined,
|
150
|
+
toBlock extends BlockNumber<bigint> | BlockTag | undefined = undefined,
|
151
|
+
_eventName extends string | undefined = MaybeAbiEventName<abiEvent>,
|
152
|
+
_args extends
|
153
|
+
| MaybeExtractEventArgsFromAbi<abiEvents, _eventName>
|
153
154
|
| undefined = undefined,
|
154
155
|
>(
|
155
|
-
client: Client<Transport,
|
156
|
+
client: Client<Transport, chain>,
|
156
157
|
{
|
157
158
|
address,
|
158
159
|
args,
|
@@ -162,23 +163,23 @@ export async function createEventFilter<
|
|
162
163
|
strict,
|
163
164
|
toBlock,
|
164
165
|
}: CreateEventFilterParameters<
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
166
|
+
abiEvent,
|
167
|
+
abiEvents,
|
168
|
+
strict,
|
169
|
+
fromBlock,
|
170
|
+
toBlock,
|
171
|
+
_eventName,
|
172
|
+
_args
|
172
173
|
> = {} as any,
|
173
174
|
): Promise<
|
174
175
|
CreateEventFilterReturnType<
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
176
|
+
abiEvent,
|
177
|
+
abiEvents,
|
178
|
+
strict,
|
179
|
+
fromBlock,
|
180
|
+
toBlock,
|
181
|
+
_eventName,
|
182
|
+
_args
|
182
183
|
>
|
183
184
|
> {
|
184
185
|
const events = events_ ?? (event ? [event] : undefined)
|
@@ -225,12 +226,12 @@ export async function createEventFilter<
|
|
225
226
|
toBlock,
|
226
227
|
type: 'event',
|
227
228
|
} as unknown as CreateEventFilterReturnType<
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
229
|
+
abiEvent,
|
230
|
+
abiEvents,
|
231
|
+
strict,
|
232
|
+
fromBlock,
|
233
|
+
toBlock,
|
234
|
+
_eventName,
|
235
|
+
_args
|
235
236
|
>
|
236
237
|
}
|
@@ -34,10 +34,10 @@ export type CreatePendingTransactionFilterErrorType =
|
|
34
34
|
* // { id: "0x345a6572337856574a76364e457a4366", type: 'transaction' }
|
35
35
|
*/
|
36
36
|
export async function createPendingTransactionFilter<
|
37
|
-
|
38
|
-
|
37
|
+
transport extends Transport,
|
38
|
+
chain extends Chain | undefined,
|
39
39
|
>(
|
40
|
-
client: Client<
|
40
|
+
client: Client<transport, chain>,
|
41
41
|
): Promise<CreatePendingTransactionFilterReturnType> {
|
42
42
|
const getRequest = createFilterRequestScope(client, {
|
43
43
|
method: 'eth_newPendingTransactionFilter',
|
@@ -38,8 +38,8 @@ import {
|
|
38
38
|
} from '../wallet/prepareTransactionRequest.js'
|
39
39
|
|
40
40
|
export type EstimateGasParameters<
|
41
|
-
|
42
|
-
> = UnionOmit<FormattedEstimateGas<
|
41
|
+
chain extends Chain | undefined = Chain | undefined,
|
42
|
+
> = UnionOmit<FormattedEstimateGas<chain>, 'from'> & {
|
43
43
|
account?: Account | Address | undefined
|
44
44
|
stateOverride?: StateOverride | undefined
|
45
45
|
} & (
|
@@ -57,9 +57,8 @@ export type EstimateGasParameters<
|
|
57
57
|
blockTag?: BlockTag | undefined
|
58
58
|
}
|
59
59
|
)
|
60
|
-
type FormattedEstimateGas<
|
61
|
-
|
62
|
-
> = FormattedTransactionRequest<TChain>
|
60
|
+
type FormattedEstimateGas<chain extends Chain | undefined = Chain | undefined> =
|
61
|
+
FormattedTransactionRequest<chain>
|
63
62
|
|
64
63
|
export type EstimateGasReturnType = bigint
|
65
64
|
|
@@ -96,11 +95,11 @@ export type EstimateGasErrorType = GetEstimateGasErrorReturnType<
|
|
96
95
|
* })
|
97
96
|
*/
|
98
97
|
export async function estimateGas<
|
99
|
-
|
100
|
-
|
98
|
+
chain extends Chain | undefined,
|
99
|
+
account extends Account | undefined = undefined,
|
101
100
|
>(
|
102
|
-
client: Client<Transport,
|
103
|
-
args: EstimateGasParameters<
|
101
|
+
client: Client<Transport, chain, account>,
|
102
|
+
args: EstimateGasParameters<chain>,
|
104
103
|
): Promise<EstimateGasReturnType> {
|
105
104
|
const account_ = args.account ?? client.account
|
106
105
|
const account = account_ ? parseAccount(account_) : undefined
|
@@ -69,8 +69,8 @@ export type GetBalanceErrorType =
|
|
69
69
|
* })
|
70
70
|
* // 10000000000000000000000n (wei)
|
71
71
|
*/
|
72
|
-
export async function getBalance<
|
73
|
-
client: Client<Transport,
|
72
|
+
export async function getBalance<chain extends Chain | undefined>(
|
73
|
+
client: Client<Transport, chain>,
|
74
74
|
{ address, blockNumber, blockTag = 'latest' }: GetBalanceParameters,
|
75
75
|
): Promise<GetBalanceReturnType> {
|
76
76
|
const blockNumberHex = blockNumber ? numberToHex(blockNumber) : undefined
|
@@ -30,10 +30,10 @@ export type GetBlobBaseFeeErrorType = RequestErrorType | ErrorType
|
|
30
30
|
* const blobBaseFee = await getBlobBaseFee(client)
|
31
31
|
*/
|
32
32
|
export async function getBlobBaseFee<
|
33
|
-
|
34
|
-
|
33
|
+
chain extends Chain | undefined,
|
34
|
+
account extends Account | undefined,
|
35
35
|
>(
|
36
|
-
client: Client<Transport,
|
36
|
+
client: Client<Transport, chain, account>,
|
37
37
|
): Promise<GetBlobBaseFeeReturnType> {
|
38
38
|
const baseFee = await client.request({
|
39
39
|
method: 'eth_blobBaseFee',
|
@@ -22,11 +22,11 @@ import {
|
|
22
22
|
} from '../../utils/formatters/block.js'
|
23
23
|
|
24
24
|
export type GetBlockParameters<
|
25
|
-
|
26
|
-
|
25
|
+
includeTransactions extends boolean = false,
|
26
|
+
blockTag extends BlockTag = 'latest',
|
27
27
|
> = {
|
28
28
|
/** Whether or not to include transaction data in the response. */
|
29
|
-
includeTransactions?:
|
29
|
+
includeTransactions?: includeTransactions | undefined
|
30
30
|
} & (
|
31
31
|
| {
|
32
32
|
/** Hash of the block. */
|
@@ -47,15 +47,15 @@ export type GetBlockParameters<
|
|
47
47
|
* The block tag.
|
48
48
|
* @default 'latest'
|
49
49
|
*/
|
50
|
-
blockTag?:
|
50
|
+
blockTag?: blockTag | BlockTag | undefined
|
51
51
|
}
|
52
52
|
)
|
53
53
|
|
54
54
|
export type GetBlockReturnType<
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
> = Prettify<FormattedBlock<
|
55
|
+
chain extends Chain | undefined = undefined,
|
56
|
+
includeTransactions extends boolean = false,
|
57
|
+
blockTag extends BlockTag = 'latest',
|
58
|
+
> = Prettify<FormattedBlock<chain, includeTransactions, blockTag>>
|
59
59
|
|
60
60
|
export type GetBlockErrorType =
|
61
61
|
| BlockNotFoundErrorType
|
@@ -88,19 +88,19 @@ export type GetBlockErrorType =
|
|
88
88
|
* const block = await getBlock(client)
|
89
89
|
*/
|
90
90
|
export async function getBlock<
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
chain extends Chain | undefined,
|
92
|
+
account extends Account | undefined,
|
93
|
+
includeTransactions extends boolean = false,
|
94
|
+
blockTag extends BlockTag = 'latest',
|
95
95
|
>(
|
96
|
-
client: Client<Transport,
|
96
|
+
client: Client<Transport, chain, account>,
|
97
97
|
{
|
98
98
|
blockHash,
|
99
99
|
blockNumber,
|
100
100
|
blockTag: blockTag_,
|
101
101
|
includeTransactions: includeTransactions_,
|
102
|
-
}: GetBlockParameters<
|
103
|
-
): Promise<GetBlockReturnType<
|
102
|
+
}: GetBlockParameters<includeTransactions, blockTag> = {},
|
103
|
+
): Promise<GetBlockReturnType<chain, includeTransactions, blockTag>> {
|
104
104
|
const blockTag = blockTag_ ?? 'latest'
|
105
105
|
const includeTransactions = includeTransactions_ ?? false
|
106
106
|
|
@@ -51,8 +51,8 @@ export function getBlockNumberCache(id: string) {
|
|
51
51
|
* const blockNumber = await getBlockNumber(client)
|
52
52
|
* // 69420n
|
53
53
|
*/
|
54
|
-
export async function getBlockNumber<
|
55
|
-
client: Client<Transport,
|
54
|
+
export async function getBlockNumber<chain extends Chain | undefined>(
|
55
|
+
client: Client<Transport, chain>,
|
56
56
|
{ cacheTime = client.cacheTime }: GetBlockNumberParameters = {},
|
57
57
|
): Promise<GetBlockNumberReturnType> {
|
58
58
|
const blockNumberHex = await withCache(
|
@@ -66,10 +66,8 @@ export type GetBlockTransactionCountErrorType =
|
|
66
66
|
* })
|
67
67
|
* const count = await getBlockTransactionCount(client)
|
68
68
|
*/
|
69
|
-
export async function getBlockTransactionCount<
|
70
|
-
|
71
|
-
>(
|
72
|
-
client: Client<Transport, TChain>,
|
69
|
+
export async function getBlockTransactionCount<chain extends Chain | undefined>(
|
70
|
+
client: Client<Transport, chain>,
|
73
71
|
{
|
74
72
|
blockHash,
|
75
73
|
blockNumber,
|
@@ -38,9 +38,9 @@ export type GetChainIdErrorType =
|
|
38
38
|
* // 1
|
39
39
|
*/
|
40
40
|
export async function getChainId<
|
41
|
-
|
42
|
-
|
43
|
-
>(client: Client<Transport,
|
41
|
+
chain extends Chain | undefined,
|
42
|
+
account extends Account | undefined,
|
43
|
+
>(client: Client<Transport, chain, account>): Promise<GetChainIdReturnType> {
|
44
44
|
const chainIdHex = await client.request(
|
45
45
|
{
|
46
46
|
method: 'eth_chainId',
|
@@ -55,8 +55,8 @@ export type GetCodeErrorType =
|
|
55
55
|
* address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
|
56
56
|
* })
|
57
57
|
*/
|
58
|
-
export async function getCode<
|
59
|
-
client: Client<Transport,
|
58
|
+
export async function getCode<chain extends Chain | undefined>(
|
59
|
+
client: Client<Transport, chain>,
|
60
60
|
{ address, blockNumber, blockTag = 'latest' }: GetCodeParameters,
|
61
61
|
): Promise<GetCodeReturnType> {
|
62
62
|
const blockNumberHex =
|
@@ -116,20 +116,20 @@ export async function getContractEvents<
|
|
116
116
|
chain extends Chain | undefined,
|
117
117
|
const abi extends Abi | readonly unknown[],
|
118
118
|
eventName extends ContractEventName<abi> | undefined = undefined,
|
119
|
-
|
120
|
-
|
121
|
-
|
119
|
+
strict extends boolean | undefined = undefined,
|
120
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
121
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
122
122
|
>(
|
123
123
|
client: Client<Transport, chain>,
|
124
124
|
parameters: GetContractEventsParameters<
|
125
125
|
abi,
|
126
126
|
eventName,
|
127
|
-
|
128
|
-
|
129
|
-
|
127
|
+
strict,
|
128
|
+
fromBlock,
|
129
|
+
toBlock
|
130
130
|
>,
|
131
131
|
): Promise<
|
132
|
-
GetContractEventsReturnType<abi, eventName,
|
132
|
+
GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>
|
133
133
|
> {
|
134
134
|
const {
|
135
135
|
abi,
|
@@ -163,8 +163,8 @@ export async function getContractEvents<
|
|
163
163
|
} as {} as GetLogsParameters) as unknown as GetContractEventsReturnType<
|
164
164
|
abi,
|
165
165
|
eventName,
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
strict,
|
167
|
+
fromBlock,
|
168
|
+
toBlock
|
169
169
|
>
|
170
170
|
}
|
@@ -68,8 +68,8 @@ export type GetFeeHistoryErrorType =
|
|
68
68
|
* rewardPercentiles: [25, 75],
|
69
69
|
* })
|
70
70
|
*/
|
71
|
-
export async function getFeeHistory<
|
72
|
-
client: Client<Transport,
|
71
|
+
export async function getFeeHistory<chain extends Chain | undefined>(
|
72
|
+
client: Client<Transport, chain>,
|
73
73
|
{
|
74
74
|
blockCount,
|
75
75
|
blockNumber,
|