viem 2.17.2 → 2.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createBlockFilter.js.map +1 -1
- package/_cjs/actions/public/createEventFilter.js.map +1 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/getBalance.js.map +1 -1
- package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
- package/_cjs/actions/public/getBlock.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getChainId.js.map +1 -1
- package/_cjs/actions/public/getCode.js.map +1 -1
- package/_cjs/actions/public/getFeeHistory.js.map +1 -1
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getGasPrice.js.map +1 -1
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/getProof.js.map +1 -1
- package/_cjs/actions/public/getStorageAt.js.map +1 -1
- package/_cjs/actions/public/getTransaction.js.map +1 -1
- package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_cjs/actions/public/getTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/uninstallFilter.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +9 -0
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/test/dropTransaction.js.map +1 -1
- package/_cjs/actions/test/dumpState.js.map +1 -1
- package/_cjs/actions/test/getAutomine.js.map +1 -1
- package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
- package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
- package/_cjs/actions/test/impersonateAccount.js.map +1 -1
- package/_cjs/actions/test/increaseTime.js.map +1 -1
- package/_cjs/actions/test/inspectTxpool.js.map +1 -1
- package/_cjs/actions/test/loadState.js.map +1 -1
- package/_cjs/actions/test/mine.js.map +1 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/reset.js.map +1 -1
- package/_cjs/actions/test/revert.js.map +1 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_cjs/actions/test/setAutomine.js.map +1 -1
- package/_cjs/actions/test/setBalance.js.map +1 -1
- package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/setCode.js.map +1 -1
- package/_cjs/actions/test/setCoinbase.js.map +1 -1
- package/_cjs/actions/test/setIntervalMining.js.map +1 -1
- package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
- package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_cjs/actions/test/setNonce.js.map +1 -1
- package/_cjs/actions/test/setRpcUrl.js.map +1 -1
- package/_cjs/actions/test/setStorageAt.js.map +1 -1
- package/_cjs/actions/test/snapshot.js.map +1 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_cjs/actions/wallet/addChain.js.map +1 -1
- package/_cjs/actions/wallet/getAddresses.js.map +1 -1
- package/_cjs/actions/wallet/getPermissions.js.map +1 -1
- package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
- package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
- package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signMessage.js.map +1 -1
- package/_cjs/actions/wallet/switchChain.js.map +1 -1
- package/_cjs/actions/wallet/watchAsset.js.map +1 -1
- package/_cjs/celo/parsers.js.map +1 -1
- package/_cjs/chains/definitions/dreyerxTestnet.js +26 -0
- package/_cjs/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_cjs/chains/index.js +8 -6
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
- package/_cjs/op-stack/parsers.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/data/trim.js.map +1 -1
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/hash/keccak256.js.map +1 -1
- package/_cjs/utils/hash/ripemd160.js.map +1 -1
- package/_cjs/utils/hash/sha256.js.map +1 -1
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/poll.js.map +1 -1
- package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
- package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
- package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
- package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
- package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_cjs/zksync/actions/getLogProof.js.map +1 -1
- package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/signTransaction.js.map +1 -1
- package/_cjs/zksync/decorators/publicL1.js.map +1 -1
- package/_cjs/zksync/decorators/publicL2.js.map +1 -1
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/ens/getEnsResolver.js.map +1 -1
- package/_esm/actions/ens/getEnsText.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createBlockFilter.js.map +1 -1
- package/_esm/actions/public/createEventFilter.js.map +1 -1
- package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/getBalance.js.map +1 -1
- package/_esm/actions/public/getBlobBaseFee.js.map +1 -1
- package/_esm/actions/public/getBlock.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_esm/actions/public/getChainId.js.map +1 -1
- package/_esm/actions/public/getCode.js.map +1 -1
- package/_esm/actions/public/getFeeHistory.js.map +1 -1
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getGasPrice.js.map +1 -1
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/getProof.js.map +1 -1
- package/_esm/actions/public/getStorageAt.js.map +1 -1
- package/_esm/actions/public/getTransaction.js.map +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js.map +1 -1
- package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/uninstallFilter.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +10 -0
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
- package/_esm/actions/test/dropTransaction.js.map +1 -1
- package/_esm/actions/test/dumpState.js.map +1 -1
- package/_esm/actions/test/getAutomine.js.map +1 -1
- package/_esm/actions/test/getTxpoolContent.js.map +1 -1
- package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
- package/_esm/actions/test/impersonateAccount.js.map +1 -1
- package/_esm/actions/test/increaseTime.js.map +1 -1
- package/_esm/actions/test/inspectTxpool.js.map +1 -1
- package/_esm/actions/test/loadState.js.map +1 -1
- package/_esm/actions/test/mine.js.map +1 -1
- package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/reset.js.map +1 -1
- package/_esm/actions/test/revert.js.map +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_esm/actions/test/setAutomine.js.map +1 -1
- package/_esm/actions/test/setBalance.js.map +1 -1
- package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
- package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/setCode.js.map +1 -1
- package/_esm/actions/test/setCoinbase.js.map +1 -1
- package/_esm/actions/test/setIntervalMining.js.map +1 -1
- package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
- package/_esm/actions/test/setMinGasPrice.js.map +1 -1
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_esm/actions/test/setNonce.js.map +1 -1
- package/_esm/actions/test/setRpcUrl.js.map +1 -1
- package/_esm/actions/test/setStorageAt.js.map +1 -1
- package/_esm/actions/test/snapshot.js.map +1 -1
- package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_esm/actions/wallet/addChain.js.map +1 -1
- package/_esm/actions/wallet/getAddresses.js.map +1 -1
- package/_esm/actions/wallet/getPermissions.js.map +1 -1
- package/_esm/actions/wallet/requestAddresses.js.map +1 -1
- package/_esm/actions/wallet/requestPermissions.js.map +1 -1
- package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_esm/actions/wallet/signMessage.js.map +1 -1
- package/_esm/actions/wallet/switchChain.js.map +1 -1
- package/_esm/actions/wallet/watchAsset.js.map +1 -1
- package/_esm/celo/parsers.js.map +1 -1
- package/_esm/chains/definitions/dreyerxTestnet.js +23 -0
- package/_esm/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/test.js.map +1 -1
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/clients/transports/createTransport.js.map +1 -1
- package/_esm/clients/transports/custom.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_esm/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_esm/op-stack/decorators/publicL1.js.map +1 -1
- package/_esm/op-stack/decorators/publicL2.js.map +1 -1
- package/_esm/op-stack/decorators/walletL1.js.map +1 -1
- package/_esm/op-stack/decorators/walletL2.js.map +1 -1
- package/_esm/op-stack/parsers.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodePacked.js.map +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/data/concat.js.map +1 -1
- package/_esm/utils/data/pad.js.map +1 -1
- package/_esm/utils/data/slice.js.map +1 -1
- package/_esm/utils/data/trim.js.map +1 -1
- package/_esm/utils/encoding/fromBytes.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_esm/utils/formatters/formatter.js.map +1 -1
- package/_esm/utils/hash/keccak256.js.map +1 -1
- package/_esm/utils/hash/ripemd160.js.map +1 -1
- package/_esm/utils/hash/sha256.js.map +1 -1
- package/_esm/utils/observe.js.map +1 -1
- package/_esm/utils/poll.js.map +1 -1
- package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
- package/_esm/utils/promise/withCache.js.map +1 -1
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/zksync/actions/getAllBalances.js.map +1 -1
- package/_esm/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_esm/zksync/actions/getBlockDetails.js.map +1 -1
- package/_esm/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
- package/_esm/zksync/actions/getL1Balance.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_esm/zksync/actions/getL1ChainId.js.map +1 -1
- package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_esm/zksync/actions/getLogProof.js.map +1 -1
- package/_esm/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_esm/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_esm/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_esm/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_esm/zksync/actions/signTransaction.js.map +1 -1
- package/_esm/zksync/decorators/publicL1.js.map +1 -1
- package/_esm/zksync/decorators/publicL2.js.map +1 -1
- package/_types/accounts/toAccount.d.ts +2 -2
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +6 -6
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts +1 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
- package/_types/actions/ens/getEnsText.d.ts +1 -1
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +60 -60
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +3 -3
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createBlockFilter.d.ts +1 -1
- package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
- package/_types/actions/public/createContractEventFilter.d.ts +2 -2
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createEventFilter.d.ts +13 -13
- package/_types/actions/public/createEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +3 -3
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +1 -1
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +5 -5
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -1
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getChainId.d.ts +1 -1
- package/_types/actions/public/getChainId.d.ts.map +1 -1
- package/_types/actions/public/getCode.d.ts +1 -1
- package/_types/actions/public/getCode.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts +1 -1
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +1 -1
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
- package/_types/actions/public/getFilterChanges.d.ts +4 -4
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/getFilterLogs.d.ts +4 -4
- package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/_types/actions/public/getGasPrice.d.ts +1 -1
- package/_types/actions/public/getGasPrice.d.ts.map +1 -1
- package/_types/actions/public/getLogs.d.ts +10 -10
- package/_types/actions/public/getLogs.d.ts.map +1 -1
- package/_types/actions/public/getProof.d.ts +1 -1
- package/_types/actions/public/getProof.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +1 -1
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +4 -4
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +3 -3
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +1 -1
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/uninstallFilter.d.ts +1 -1
- package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -7
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +3 -3
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts +8 -8
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +11 -11
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts +3 -3
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
- package/_types/actions/test/dropTransaction.d.ts +1 -1
- package/_types/actions/test/dropTransaction.d.ts.map +1 -1
- package/_types/actions/test/dumpState.d.ts +1 -1
- package/_types/actions/test/dumpState.d.ts.map +1 -1
- package/_types/actions/test/getAutomine.d.ts +1 -1
- package/_types/actions/test/getAutomine.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
- package/_types/actions/test/impersonateAccount.d.ts +1 -1
- package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
- package/_types/actions/test/increaseTime.d.ts +1 -1
- package/_types/actions/test/increaseTime.d.ts.map +1 -1
- package/_types/actions/test/inspectTxpool.d.ts +1 -1
- package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
- package/_types/actions/test/loadState.d.ts +1 -1
- package/_types/actions/test/loadState.d.ts.map +1 -1
- package/_types/actions/test/mine.d.ts +1 -1
- package/_types/actions/test/mine.d.ts.map +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/reset.d.ts +1 -1
- package/_types/actions/test/reset.d.ts.map +1 -1
- package/_types/actions/test/revert.d.ts +1 -1
- package/_types/actions/test/revert.d.ts.map +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
- package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/_types/actions/test/setAutomine.d.ts +1 -1
- package/_types/actions/test/setAutomine.d.ts.map +1 -1
- package/_types/actions/test/setBalance.d.ts +1 -1
- package/_types/actions/test/setBalance.d.ts.map +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/setCode.d.ts +1 -1
- package/_types/actions/test/setCode.d.ts.map +1 -1
- package/_types/actions/test/setCoinbase.d.ts +1 -1
- package/_types/actions/test/setCoinbase.d.ts.map +1 -1
- package/_types/actions/test/setIntervalMining.d.ts +1 -1
- package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
- package/_types/actions/test/setNonce.d.ts +1 -1
- package/_types/actions/test/setNonce.d.ts.map +1 -1
- package/_types/actions/test/setRpcUrl.d.ts +1 -1
- package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
- package/_types/actions/test/setStorageAt.d.ts +1 -1
- package/_types/actions/test/setStorageAt.d.ts.map +1 -1
- package/_types/actions/test/snapshot.d.ts +1 -1
- package/_types/actions/test/snapshot.d.ts.map +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
- package/_types/actions/wallet/addChain.d.ts +1 -1
- package/_types/actions/wallet/addChain.d.ts.map +1 -1
- package/_types/actions/wallet/getAddresses.d.ts +1 -1
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/getPermissions.d.ts +1 -1
- package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signMessage.d.ts +2 -2
- package/_types/actions/wallet/signMessage.d.ts.map +1 -1
- package/_types/actions/wallet/switchChain.d.ts +1 -1
- package/_types/actions/wallet/switchChain.d.ts.map +1 -1
- package/_types/actions/wallet/watchAsset.d.ts +1 -1
- package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
- package/_types/celo/parsers.d.ts +2 -2
- package/_types/celo/parsers.d.ts.map +1 -1
- package/_types/celo/types.d.ts +1 -1
- package/_types/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/dreyerxTestnet.d.ts +35 -0
- package/_types/chains/definitions/dreyerxTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +23 -23
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts +4 -4
- package/_types/clients/decorators/test.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +10 -10
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/clients/transports/createTransport.d.ts +9 -9
- package/_types/clients/transports/createTransport.d.ts.map +1 -1
- package/_types/clients/transports/custom.d.ts +1 -1
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/errors/rpc.d.ts +5 -5
- package/_types/errors/rpc.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/op-stack/actions/estimateL1Gas.d.ts +2 -2
- package/_types/op-stack/actions/estimateL1Gas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalFee.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalFee.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalGas.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/getL1BaseFee.d.ts +2 -2
- package/_types/op-stack/actions/getL1BaseFee.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
- package/_types/op-stack/parsers.d.ts +2 -2
- package/_types/op-stack/parsers.d.ts.map +1 -1
- package/_types/op-stack/types/block.d.ts +2 -2
- package/_types/op-stack/types/block.d.ts.map +1 -1
- package/_types/op-stack/types/transaction.d.ts +8 -8
- package/_types/op-stack/types/transaction.d.ts.map +1 -1
- package/_types/types/account.d.ts +5 -5
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/block.d.ts +7 -7
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/contract.d.ts +20 -20
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +35 -35
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/filter.d.ts +16 -16
- package/_types/types/filter.d.ts.map +1 -1
- package/_types/types/log.d.ts +20 -20
- package/_types/types/log.d.ts.map +1 -1
- package/_types/types/proof.d.ts +6 -6
- package/_types/types/proof.d.ts.map +1 -1
- package/_types/types/rpc.d.ts +2 -2
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/transport.d.ts +1 -1
- package/_types/types/transport.d.ts.map +1 -1
- package/_types/types/utils.d.ts +2 -2
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +2 -2
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodePacked.d.ts +4 -4
- package/_types/utils/abi/encodePacked.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +1 -1
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/data/concat.d.ts +2 -2
- package/_types/utils/data/concat.d.ts.map +1 -1
- package/_types/utils/data/pad.d.ts +2 -2
- package/_types/utils/data/pad.d.ts.map +1 -1
- package/_types/utils/data/slice.d.ts +3 -3
- package/_types/utils/data/slice.d.ts.map +1 -1
- package/_types/utils/data/trim.d.ts +2 -2
- package/_types/utils/data/trim.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +4 -4
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +4 -4
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts +1 -1
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +7 -7
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +6 -6
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +7 -7
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +6 -6
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +6 -6
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/hash/keccak256.d.ts +2 -2
- package/_types/utils/hash/keccak256.d.ts.map +1 -1
- package/_types/utils/hash/ripemd160.d.ts +2 -2
- package/_types/utils/hash/ripemd160.d.ts.map +1 -1
- package/_types/utils/hash/sha256.d.ts +2 -2
- package/_types/utils/hash/sha256.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +2 -2
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/poll.d.ts +4 -4
- package/_types/utils/poll.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +11 -11
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +7 -7
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts +1 -1
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts +3 -3
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +4 -4
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +2 -2
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +2 -2
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/_types/zksync/actions/getAllBalances.d.ts +2 -2
- package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts.map +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Allowance.d.ts +2 -2
- package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Balance.d.ts +2 -2
- package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts.map +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts.map +1 -1
- package/_types/zksync/actions/getL1TokenBalance.d.ts +2 -2
- package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
- package/_types/zksync/actions/getLogProof.d.ts +1 -1
- package/_types/zksync/actions/getLogProof.d.ts.map +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts.map +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts.map +1 -1
- package/_types/zksync/actions/signEip712Transaction.d.ts +3 -3
- package/_types/zksync/actions/signEip712Transaction.d.ts.map +1 -1
- package/_types/zksync/actions/signTransaction.d.ts +3 -3
- package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL1.d.ts +5 -5
- package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL2.d.ts +4 -4
- package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
- package/_types/zksync/types/block.d.ts +2 -2
- package/_types/zksync/types/block.d.ts.map +1 -1
- package/_types/zksync/types/eip712.d.ts +3 -3
- package/_types/zksync/types/eip712.d.ts.map +1 -1
- package/_types/zksync/types/fee.d.ts +9 -9
- package/_types/zksync/types/fee.d.ts.map +1 -1
- package/_types/zksync/types/log.d.ts +3 -3
- package/_types/zksync/types/log.d.ts.map +1 -1
- package/_types/zksync/types/transaction.d.ts +18 -18
- package/_types/zksync/types/transaction.d.ts.map +1 -1
- package/accounts/toAccount.ts +8 -8
- package/accounts/types.ts +8 -8
- package/actions/ens/getEnsAddress.ts +2 -2
- package/actions/ens/getEnsAvatar.ts +2 -2
- package/actions/ens/getEnsName.ts +2 -2
- package/actions/ens/getEnsResolver.ts +2 -2
- package/actions/ens/getEnsText.ts +2 -2
- package/actions/getContract.ts +302 -300
- package/actions/public/call.ts +12 -12
- package/actions/public/createBlockFilter.ts +2 -2
- package/actions/public/createContractEventFilter.ts +3 -3
- package/actions/public/createEventFilter.ts +65 -64
- package/actions/public/createPendingTransactionFilter.ts +3 -3
- package/actions/public/estimateGas.ts +8 -9
- package/actions/public/getBalance.ts +2 -2
- package/actions/public/getBlobBaseFee.ts +3 -3
- package/actions/public/getBlock.ts +15 -15
- package/actions/public/getBlockNumber.ts +2 -2
- package/actions/public/getBlockTransactionCount.ts +2 -4
- package/actions/public/getChainId.ts +3 -3
- package/actions/public/getCode.ts +2 -2
- package/actions/public/getContractEvents.ts +10 -10
- package/actions/public/getFeeHistory.ts +2 -2
- package/actions/public/getFilterChanges.ts +59 -67
- package/actions/public/getFilterLogs.ts +36 -36
- package/actions/public/getGasPrice.ts +3 -3
- package/actions/public/getLogs.ts +47 -53
- package/actions/public/getProof.ts +2 -2
- package/actions/public/getStorageAt.ts +2 -2
- package/actions/public/getTransaction.ts +10 -10
- package/actions/public/getTransactionConfirmations.ts +5 -5
- package/actions/public/getTransactionCount.ts +3 -3
- package/actions/public/getTransactionReceipt.ts +5 -5
- package/actions/public/uninstallFilter.ts +3 -3
- package/actions/public/verifyHash.ts +14 -2
- package/actions/public/verifyMessage.ts +2 -2
- package/actions/public/waitForTransactionReceipt.ts +14 -14
- package/actions/public/watchBlockNumber.ts +6 -6
- package/actions/public/watchBlocks.ts +25 -27
- package/actions/public/watchEvent.ts +39 -37
- package/actions/public/watchPendingTransactions.ts +6 -6
- package/actions/test/dropTransaction.ts +3 -3
- package/actions/test/dumpState.ts +3 -3
- package/actions/test/getAutomine.ts +3 -3
- package/actions/test/getTxpoolContent.ts +3 -3
- package/actions/test/getTxpoolStatus.ts +3 -3
- package/actions/test/impersonateAccount.ts +3 -3
- package/actions/test/increaseTime.ts +3 -3
- package/actions/test/inspectTxpool.ts +3 -3
- package/actions/test/loadState.ts +3 -3
- package/actions/test/mine.ts +3 -3
- package/actions/test/removeBlockTimestampInterval.ts +3 -3
- package/actions/test/reset.ts +3 -3
- package/actions/test/revert.ts +3 -3
- package/actions/test/sendUnsignedTransaction.ts +6 -6
- package/actions/test/setAutomine.ts +3 -3
- package/actions/test/setBalance.ts +3 -3
- package/actions/test/setBlockGasLimit.ts +3 -3
- package/actions/test/setBlockTimestampInterval.ts +3 -3
- package/actions/test/setCode.ts +3 -3
- package/actions/test/setCoinbase.ts +3 -3
- package/actions/test/setIntervalMining.ts +3 -3
- package/actions/test/setLoggingEnabled.ts +3 -3
- package/actions/test/setMinGasPrice.ts +3 -3
- package/actions/test/setNextBlockBaseFeePerGas.ts +3 -3
- package/actions/test/setNextBlockTimestamp.ts +3 -3
- package/actions/test/setNonce.ts +3 -3
- package/actions/test/setRpcUrl.ts +3 -3
- package/actions/test/setStorageAt.ts +3 -3
- package/actions/test/snapshot.ts +3 -3
- package/actions/test/stopImpersonatingAccount.ts +3 -3
- package/actions/wallet/addChain.ts +3 -3
- package/actions/wallet/getAddresses.ts +3 -5
- package/actions/wallet/getPermissions.ts +3 -3
- package/actions/wallet/requestAddresses.ts +3 -3
- package/actions/wallet/requestPermissions.ts +3 -3
- package/actions/wallet/sendRawTransaction.ts +2 -2
- package/actions/wallet/signMessage.ts +6 -6
- package/actions/wallet/switchChain.ts +3 -3
- package/actions/wallet/watchAsset.ts +3 -3
- package/celo/parsers.ts +10 -10
- package/celo/types.ts +2 -2
- package/chains/definitions/dreyerxTestnet.ts +23 -0
- package/chains/index.ts +1 -0
- package/clients/decorators/public.ts +130 -138
- package/clients/decorators/test.ts +12 -12
- package/clients/decorators/wallet.ts +34 -36
- package/clients/transports/createTransport.ts +17 -17
- package/clients/transports/custom.ts +2 -2
- package/errors/rpc.ts +6 -6
- package/errors/version.ts +1 -1
- package/op-stack/actions/estimateL1Gas.ts +10 -10
- package/op-stack/actions/estimateTotalFee.ts +9 -9
- package/op-stack/actions/estimateTotalGas.ts +9 -9
- package/op-stack/actions/getL1BaseFee.ts +7 -7
- package/op-stack/decorators/publicL1.ts +5 -5
- package/op-stack/decorators/publicL2.ts +5 -5
- package/op-stack/decorators/walletL1.ts +5 -5
- package/op-stack/decorators/walletL2.ts +5 -5
- package/op-stack/parsers.ts +9 -9
- package/op-stack/types/block.ts +10 -10
- package/op-stack/types/transaction.ts +19 -19
- package/package.json +1 -1
- package/types/account.ts +12 -12
- package/types/block.ts +14 -14
- package/types/contract.ts +60 -56
- package/types/eip1193.ts +52 -55
- package/types/filter.ts +25 -25
- package/types/log.ts +50 -50
- package/types/proof.ts +6 -6
- package/types/rpc.ts +9 -9
- package/types/transport.ts +2 -2
- package/types/utils.ts +2 -2
- package/utils/abi/decodeAbiParameters.ts +6 -6
- package/utils/abi/decodeErrorResult.ts +4 -4
- package/utils/abi/encodeAbiParameters.ts +18 -18
- package/utils/abi/encodePacked.ts +8 -8
- package/utils/ccip.ts +2 -2
- package/utils/data/concat.ts +8 -7
- package/utils/data/pad.ts +6 -6
- package/utils/data/slice.ts +6 -6
- package/utils/data/trim.ts +6 -6
- package/utils/encoding/fromBytes.ts +16 -16
- package/utils/encoding/fromHex.ts +15 -15
- package/utils/ens/avatar/parseAvatarRecord.ts +4 -4
- package/utils/ens/avatar/utils.ts +2 -2
- package/utils/filters/createFilterRequestScope.ts +2 -2
- package/utils/formatters/block.ts +9 -9
- package/utils/formatters/formatter.ts +11 -11
- package/utils/formatters/transaction.ts +5 -5
- package/utils/formatters/transactionReceipt.ts +2 -2
- package/utils/formatters/transactionRequest.ts +2 -2
- package/utils/hash/keccak256.ts +8 -8
- package/utils/hash/ripemd160.ts +8 -8
- package/utils/hash/sha256.ts +8 -8
- package/utils/observe.ts +8 -8
- package/utils/poll.ts +6 -6
- package/utils/promise/createBatchScheduler.ts +27 -30
- package/utils/promise/withCache.ts +8 -8
- package/utils/promise/withRetry.ts +3 -3
- package/utils/promise/withTimeout.ts +3 -3
- package/utils/rpc/http.ts +7 -7
- package/utils/signature/hashMessage.ts +6 -6
- package/utils/transaction/parseTransaction.ts +13 -13
- package/zksync/actions/getAllBalances.ts +6 -6
- package/zksync/actions/getBaseTokenL1Address.ts +3 -3
- package/zksync/actions/getBlockDetails.ts +3 -3
- package/zksync/actions/getBridgehubContractAddress.ts +3 -3
- package/zksync/actions/getDefaultBridgeAddresses.ts +3 -3
- package/zksync/actions/getL1Allowance.ts +6 -6
- package/zksync/actions/getL1Balance.ts +9 -9
- package/zksync/actions/getL1BatchBlockRange.ts +3 -3
- package/zksync/actions/getL1BatchDetails.ts +3 -3
- package/zksync/actions/getL1BatchNumber.ts +3 -3
- package/zksync/actions/getL1ChainId.ts +3 -3
- package/zksync/actions/getL1TokenBalance.ts +6 -6
- package/zksync/actions/getLogProof.ts +3 -3
- package/zksync/actions/getMainContractAddress.ts +3 -3
- package/zksync/actions/getRawBlockTransactions.ts +3 -3
- package/zksync/actions/getTestnetPaymasterAddress.ts +3 -3
- package/zksync/actions/getTransactionDetails.ts +3 -3
- package/zksync/actions/signEip712Transaction.ts +13 -13
- package/zksync/actions/signTransaction.ts +13 -13
- package/zksync/decorators/publicL1.ts +10 -10
- package/zksync/decorators/publicL2.ts +9 -9
- package/zksync/types/block.ts +10 -10
- package/zksync/types/eip712.ts +5 -5
- package/zksync/types/fee.ts +9 -9
- package/zksync/types/log.ts +12 -12
- package/zksync/types/transaction.ts +52 -53
package/types/contract.ts
CHANGED
|
@@ -302,32 +302,32 @@ export type ExtractAbiItemForArgs<
|
|
|
302
302
|
export type EventDefinition = `${string}(${string})`
|
|
303
303
|
|
|
304
304
|
export type GetValue<
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
? ExtractAbiFunction<
|
|
305
|
+
abi extends Abi | readonly unknown[],
|
|
306
|
+
functionName extends string,
|
|
307
|
+
valueType = TransactionRequest['value'],
|
|
308
|
+
abiFunction extends AbiFunction = abi extends Abi
|
|
309
|
+
? ExtractAbiFunction<abi, functionName>
|
|
310
310
|
: AbiFunction,
|
|
311
|
-
_Narrowable extends boolean = IsNarrowable<
|
|
311
|
+
_Narrowable extends boolean = IsNarrowable<abi, Abi>,
|
|
312
312
|
> = _Narrowable extends true
|
|
313
|
-
?
|
|
314
|
-
? { value?: NoInfer<
|
|
315
|
-
:
|
|
316
|
-
? { value?: NoInfer<
|
|
313
|
+
? abiFunction['stateMutability'] extends 'payable'
|
|
314
|
+
? { value?: NoInfer<valueType> | undefined }
|
|
315
|
+
: abiFunction['payable'] extends true
|
|
316
|
+
? { value?: NoInfer<valueType> | undefined }
|
|
317
317
|
: { value?: undefined }
|
|
318
|
-
: { value?: NoInfer<
|
|
318
|
+
: { value?: NoInfer<valueType> | undefined }
|
|
319
319
|
|
|
320
320
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
321
321
|
|
|
322
|
-
export type MaybeAbiEventName<
|
|
323
|
-
|
|
322
|
+
export type MaybeAbiEventName<abiEvent extends AbiEvent | undefined> =
|
|
323
|
+
abiEvent extends AbiEvent ? abiEvent['name'] : undefined
|
|
324
324
|
|
|
325
325
|
export type MaybeExtractEventArgsFromAbi<
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
> =
|
|
329
|
-
?
|
|
330
|
-
? GetEventArgs<
|
|
326
|
+
abi extends Abi | readonly unknown[] | undefined,
|
|
327
|
+
eventName extends string | undefined,
|
|
328
|
+
> = abi extends Abi | readonly unknown[]
|
|
329
|
+
? eventName extends string
|
|
330
|
+
? GetEventArgs<abi, eventName>
|
|
331
331
|
: undefined
|
|
332
332
|
: undefined
|
|
333
333
|
|
|
@@ -335,19 +335,19 @@ export type MaybeExtractEventArgsFromAbi<
|
|
|
335
335
|
// ABI item args
|
|
336
336
|
|
|
337
337
|
export type GetEventArgs<
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
? ExtractAbiEvent<
|
|
338
|
+
abi extends Abi | readonly unknown[],
|
|
339
|
+
eventName extends string,
|
|
340
|
+
config extends EventParameterOptions = DefaultEventParameterOptions,
|
|
341
|
+
abiEvent extends AbiEvent & { type: 'event' } = abi extends Abi
|
|
342
|
+
? ExtractAbiEvent<abi, eventName>
|
|
343
343
|
: AbiEvent & { type: 'event' },
|
|
344
|
-
|
|
344
|
+
args = AbiEventParametersToPrimitiveTypes<abiEvent['inputs'], config>,
|
|
345
345
|
FailedToParseArgs =
|
|
346
|
-
| ([
|
|
347
|
-
| (readonly unknown[] extends
|
|
346
|
+
| ([args] extends [never] ? true : false)
|
|
347
|
+
| (readonly unknown[] extends args ? true : false),
|
|
348
348
|
> = true extends FailedToParseArgs
|
|
349
349
|
? readonly unknown[] | Record<string, unknown>
|
|
350
|
-
:
|
|
350
|
+
: args
|
|
351
351
|
|
|
352
352
|
//////////////////////////////////////////////////////////////////////
|
|
353
353
|
// ABI event types
|
|
@@ -364,14 +364,15 @@ type DefaultEventParameterOptions = {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
export type AbiEventParametersToPrimitiveTypes<
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
abiParameters extends readonly AbiParameter[],
|
|
368
|
+
//
|
|
369
|
+
_options extends EventParameterOptions = DefaultEventParameterOptions,
|
|
369
370
|
// Remove non-indexed parameters based on `Options['IndexedOnly']`
|
|
370
|
-
> =
|
|
371
|
+
> = abiParameters extends readonly []
|
|
371
372
|
? readonly []
|
|
372
373
|
: Filter<
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
abiParameters,
|
|
375
|
+
_options['IndexedOnly'] extends true ? { indexed: true } : object
|
|
375
376
|
> extends infer Filtered extends readonly AbiParameter[]
|
|
376
377
|
? _HasUnnamedAbiParameter<Filtered> extends true
|
|
377
378
|
? // Has unnamed tuple parameters so return as array
|
|
@@ -379,12 +380,12 @@ export type AbiEventParametersToPrimitiveTypes<
|
|
|
379
380
|
...{
|
|
380
381
|
[K in keyof Filtered]: AbiEventParameterToPrimitiveType<
|
|
381
382
|
Filtered[K],
|
|
382
|
-
|
|
383
|
+
_options
|
|
383
384
|
>
|
|
384
385
|
},
|
|
385
386
|
]
|
|
386
387
|
// Distribute over tuple to represent optional parameters
|
|
387
|
-
| (
|
|
388
|
+
| (_options['Required'] extends true
|
|
388
389
|
? never
|
|
389
390
|
: // Distribute over tuple to represent optional parameters
|
|
390
391
|
Filtered extends readonly [
|
|
@@ -393,7 +394,7 @@ export type AbiEventParametersToPrimitiveTypes<
|
|
|
393
394
|
]
|
|
394
395
|
? AbiEventParametersToPrimitiveTypes<
|
|
395
396
|
readonly [...{ [K in keyof Head]: Omit<Head[K], 'name'> }],
|
|
396
|
-
|
|
397
|
+
_options
|
|
397
398
|
>
|
|
398
399
|
: never)
|
|
399
400
|
: // All tuple parameters are named so return as object
|
|
@@ -403,21 +404,23 @@ export type AbiEventParametersToPrimitiveTypes<
|
|
|
403
404
|
}
|
|
404
405
|
? Name
|
|
405
406
|
: never]?:
|
|
406
|
-
| AbiEventParameterToPrimitiveType<Parameter,
|
|
407
|
+
| AbiEventParameterToPrimitiveType<Parameter, _options>
|
|
407
408
|
| undefined
|
|
408
409
|
} extends infer Mapped
|
|
409
410
|
? Prettify<
|
|
410
411
|
MaybeRequired<
|
|
411
412
|
Mapped,
|
|
412
|
-
|
|
413
|
+
_options['Required'] extends boolean
|
|
414
|
+
? _options['Required']
|
|
415
|
+
: false
|
|
413
416
|
>
|
|
414
417
|
>
|
|
415
418
|
: never
|
|
416
419
|
: never
|
|
417
420
|
|
|
418
421
|
// TODO: Speed up by returning immediately as soon as named parameter is found.
|
|
419
|
-
type _HasUnnamedAbiParameter<
|
|
420
|
-
|
|
422
|
+
type _HasUnnamedAbiParameter<abiParameters extends readonly AbiParameter[]> =
|
|
423
|
+
abiParameters extends readonly [
|
|
421
424
|
infer Head extends AbiParameter,
|
|
422
425
|
...infer Tail extends readonly AbiParameter[],
|
|
423
426
|
]
|
|
@@ -432,13 +435,13 @@ type _HasUnnamedAbiParameter<TAbiParameters extends readonly AbiParameter[]> =
|
|
|
432
435
|
* @internal
|
|
433
436
|
*/
|
|
434
437
|
export type LogTopicType<
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
> =
|
|
438
|
-
?
|
|
439
|
-
:
|
|
440
|
-
?
|
|
441
|
-
:
|
|
438
|
+
primitiveType = Hex,
|
|
439
|
+
topic extends LogTopic = LogTopic,
|
|
440
|
+
> = topic extends Hex
|
|
441
|
+
? primitiveType
|
|
442
|
+
: topic extends Hex[]
|
|
443
|
+
? primitiveType[]
|
|
444
|
+
: topic extends null
|
|
442
445
|
? null
|
|
443
446
|
: never
|
|
444
447
|
|
|
@@ -446,10 +449,11 @@ export type LogTopicType<
|
|
|
446
449
|
* @internal
|
|
447
450
|
*/
|
|
448
451
|
export type AbiEventParameterToPrimitiveType<
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
abiParameter extends AbiParameter,
|
|
453
|
+
//
|
|
454
|
+
_options extends EventParameterOptions = DefaultEventParameterOptions,
|
|
455
|
+
_type = AbiParameterToPrimitiveType<abiParameter>,
|
|
456
|
+
> = _options['EnableUnion'] extends true ? LogTopicType<_type> : _type
|
|
453
457
|
|
|
454
458
|
type HashedEventTypes = 'bytes' | 'string' | 'tuple' | `${string}[${string}]`
|
|
455
459
|
|
|
@@ -457,9 +461,9 @@ type HashedEventTypes = 'bytes' | 'string' | 'tuple' | `${string}[${string}]`
|
|
|
457
461
|
* @internal
|
|
458
462
|
*/
|
|
459
463
|
export type AbiEventTopicToPrimitiveType<
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
?
|
|
464
|
-
: AbiParameterToPrimitiveType<
|
|
465
|
-
> = LogTopicType<
|
|
464
|
+
abiParameter extends AbiParameter,
|
|
465
|
+
topic extends LogTopic,
|
|
466
|
+
primitiveType = abiParameter['type'] extends HashedEventTypes
|
|
467
|
+
? topic
|
|
468
|
+
: AbiParameterToPrimitiveType<abiParameter>,
|
|
469
|
+
> = LogTopicType<primitiveType, topic>
|
package/types/eip1193.ts
CHANGED
|
@@ -67,13 +67,13 @@ export type EIP1193EventMap = {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export type EIP1193Events = {
|
|
70
|
-
on<
|
|
71
|
-
event:
|
|
72
|
-
listener: EIP1193EventMap[
|
|
70
|
+
on<event extends keyof EIP1193EventMap>(
|
|
71
|
+
event: event,
|
|
72
|
+
listener: EIP1193EventMap[event],
|
|
73
73
|
): void
|
|
74
|
-
removeListener<
|
|
75
|
-
event:
|
|
76
|
-
listener: EIP1193EventMap[
|
|
74
|
+
removeListener<event extends keyof EIP1193EventMap>(
|
|
75
|
+
event: event,
|
|
76
|
+
listener: EIP1193EventMap[event],
|
|
77
77
|
): void
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -808,13 +808,13 @@ export type PublicRpcSchema = [
|
|
|
808
808
|
},
|
|
809
809
|
]
|
|
810
810
|
|
|
811
|
-
export type TestRpcSchema<
|
|
811
|
+
export type TestRpcSchema<mode extends string> = [
|
|
812
812
|
/**
|
|
813
813
|
* @description Add information about compiled contracts
|
|
814
814
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_addcompilationresult
|
|
815
815
|
*/
|
|
816
816
|
{
|
|
817
|
-
Method: `${
|
|
817
|
+
Method: `${mode}_addCompilationResult`
|
|
818
818
|
Parameters: any[]
|
|
819
819
|
ReturnType: any
|
|
820
820
|
},
|
|
@@ -823,7 +823,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
823
823
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_droptransaction
|
|
824
824
|
*/
|
|
825
825
|
{
|
|
826
|
-
Method: `${
|
|
826
|
+
Method: `${mode}_dropTransaction`
|
|
827
827
|
Parameters: [hash: Hash]
|
|
828
828
|
ReturnType: void
|
|
829
829
|
},
|
|
@@ -831,7 +831,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
831
831
|
* @description Serializes the current state (including contracts code, contract's storage, accounts properties, etc.) into a savable data blob.
|
|
832
832
|
*/
|
|
833
833
|
{
|
|
834
|
-
Method: `${
|
|
834
|
+
Method: `${mode}_dumpState`
|
|
835
835
|
Parameters?: undefined
|
|
836
836
|
ReturnType: Hex
|
|
837
837
|
},
|
|
@@ -839,7 +839,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
839
839
|
* @description Turn on call traces for transactions that are returned to the user when they execute a transaction (instead of just txhash/receipt).
|
|
840
840
|
*/
|
|
841
841
|
{
|
|
842
|
-
Method: `${
|
|
842
|
+
Method: `${mode}_enableTraces`
|
|
843
843
|
Parameters?: undefined
|
|
844
844
|
ReturnType: void
|
|
845
845
|
},
|
|
@@ -848,7 +848,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
848
848
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_impersonateaccount
|
|
849
849
|
*/
|
|
850
850
|
{
|
|
851
|
-
Method: `${
|
|
851
|
+
Method: `${mode}_impersonateAccount`
|
|
852
852
|
Parameters: [address: Address]
|
|
853
853
|
ReturnType: void
|
|
854
854
|
},
|
|
@@ -857,7 +857,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
857
857
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_getautomine
|
|
858
858
|
*/
|
|
859
859
|
{
|
|
860
|
-
Method: `${
|
|
860
|
+
Method: `${mode}_getAutomine`
|
|
861
861
|
Parameters?: undefined
|
|
862
862
|
ReturnType: boolean
|
|
863
863
|
},
|
|
@@ -865,7 +865,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
865
865
|
* @description Adds state previously dumped with `dumpState` to the current chain.
|
|
866
866
|
*/
|
|
867
867
|
{
|
|
868
|
-
Method: `${
|
|
868
|
+
Method: `${mode}_loadState`
|
|
869
869
|
Parameters?: [Hex] | undefined
|
|
870
870
|
ReturnType: void
|
|
871
871
|
},
|
|
@@ -874,7 +874,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
874
874
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_mine
|
|
875
875
|
*/
|
|
876
876
|
{
|
|
877
|
-
Method: `${
|
|
877
|
+
Method: `${mode}_mine`
|
|
878
878
|
Parameters: [
|
|
879
879
|
/** Number of blocks to mine. */
|
|
880
880
|
count: Hex,
|
|
@@ -888,7 +888,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
888
888
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_reset
|
|
889
889
|
*/
|
|
890
890
|
{
|
|
891
|
-
Method: `${
|
|
891
|
+
Method: `${mode}_reset`
|
|
892
892
|
Parameters: any[]
|
|
893
893
|
ReturnType: void
|
|
894
894
|
},
|
|
@@ -897,7 +897,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
897
897
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setbalance
|
|
898
898
|
*/
|
|
899
899
|
{
|
|
900
|
-
Method: `${
|
|
900
|
+
Method: `${mode}_setBalance`
|
|
901
901
|
Parameters: [
|
|
902
902
|
/** The address of the target account. */
|
|
903
903
|
address: Address,
|
|
@@ -911,7 +911,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
911
911
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setcode
|
|
912
912
|
*/
|
|
913
913
|
{
|
|
914
|
-
Method: `${
|
|
914
|
+
Method: `${mode}_setCode`
|
|
915
915
|
Parameters: [
|
|
916
916
|
/** The address of the contract. */
|
|
917
917
|
address: Address,
|
|
@@ -925,7 +925,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
925
925
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setcoinbase
|
|
926
926
|
*/
|
|
927
927
|
{
|
|
928
|
-
Method: `${
|
|
928
|
+
Method: `${mode}_setCoinbase`
|
|
929
929
|
Parameters: [
|
|
930
930
|
/** The address to set as the coinbase address. */
|
|
931
931
|
address: Address,
|
|
@@ -937,7 +937,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
937
937
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setcoinbase
|
|
938
938
|
*/
|
|
939
939
|
{
|
|
940
|
-
Method: `${
|
|
940
|
+
Method: `${mode}_setLoggingEnabled`
|
|
941
941
|
Parameters: [enabled: boolean]
|
|
942
942
|
ReturnType: void
|
|
943
943
|
},
|
|
@@ -946,7 +946,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
946
946
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setmingasprice
|
|
947
947
|
*/
|
|
948
948
|
{
|
|
949
|
-
Method: `${
|
|
949
|
+
Method: `${mode}_setMinGasPrice`
|
|
950
950
|
Parameters: [gasPrice: Quantity]
|
|
951
951
|
ReturnType: void
|
|
952
952
|
},
|
|
@@ -955,7 +955,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
955
955
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setnextblockbasefeepergas
|
|
956
956
|
*/
|
|
957
957
|
{
|
|
958
|
-
Method: `${
|
|
958
|
+
Method: `${mode}_setNextBlockBaseFeePerGas`
|
|
959
959
|
Parameters: [baseFeePerGas: Quantity]
|
|
960
960
|
ReturnType: void
|
|
961
961
|
},
|
|
@@ -964,7 +964,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
964
964
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setnonce
|
|
965
965
|
*/
|
|
966
966
|
{
|
|
967
|
-
Method: `${
|
|
967
|
+
Method: `${mode}_setNonce`
|
|
968
968
|
Parameters: [
|
|
969
969
|
/** The account address. */
|
|
970
970
|
address: Address,
|
|
@@ -977,7 +977,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
977
977
|
* @description Sets the backend RPC URL.
|
|
978
978
|
*/
|
|
979
979
|
{
|
|
980
|
-
Method: `${
|
|
980
|
+
Method: `${mode}_setRpcUrl`
|
|
981
981
|
Parameters: [url: string]
|
|
982
982
|
ReturnType: void
|
|
983
983
|
},
|
|
@@ -986,7 +986,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
986
986
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_setstorageat
|
|
987
987
|
*/
|
|
988
988
|
{
|
|
989
|
-
Method: `${
|
|
989
|
+
Method: `${mode}_setStorageAt`
|
|
990
990
|
Parameters: [
|
|
991
991
|
/** The account address. */
|
|
992
992
|
address: Address,
|
|
@@ -1002,7 +1002,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
1002
1002
|
* @link https://hardhat.org/hardhat-network/docs/reference#hardhat_stopimpersonatingaccount
|
|
1003
1003
|
*/
|
|
1004
1004
|
{
|
|
1005
|
-
Method: `${
|
|
1005
|
+
Method: `${mode}_stopImpersonatingAccount`
|
|
1006
1006
|
Parameters: [
|
|
1007
1007
|
/** The address to stop impersonating. */
|
|
1008
1008
|
address: Address,
|
|
@@ -1014,7 +1014,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
1014
1014
|
* @link https://github.com/trufflesuite/ganache/blob/ef1858d5d6f27e4baeb75cccd57fb3dc77a45ae8/src/chains/ethereum/ethereum/RPC-METHODS.md#evm_increasetime
|
|
1015
1015
|
*/
|
|
1016
1016
|
{
|
|
1017
|
-
Method: `${
|
|
1017
|
+
Method: `${mode}_increaseTime`
|
|
1018
1018
|
Parameters: [seconds: number]
|
|
1019
1019
|
ReturnType: Quantity
|
|
1020
1020
|
},
|
|
@@ -1064,7 +1064,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
1064
1064
|
* The timestamp of the next block will be computed as `lastBlock_timestamp` + `interval`
|
|
1065
1065
|
*/
|
|
1066
1066
|
{
|
|
1067
|
-
Method: `${
|
|
1067
|
+
Method: `${mode}_setBlockTimestampInterval`
|
|
1068
1068
|
Parameters: [seconds: number]
|
|
1069
1069
|
ReturnType: void
|
|
1070
1070
|
},
|
|
@@ -1072,7 +1072,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
|
1072
1072
|
* @description Removes `setBlockTimestampInterval` if it exists
|
|
1073
1073
|
*/
|
|
1074
1074
|
{
|
|
1075
|
-
Method: `${
|
|
1075
|
+
Method: `${mode}_removeBlockTimestampInterval`
|
|
1076
1076
|
Parameters?: undefined
|
|
1077
1077
|
ReturnType: void
|
|
1078
1078
|
},
|
|
@@ -1507,18 +1507,18 @@ export type RpcSchema = readonly {
|
|
|
1507
1507
|
export type RpcSchemaOverride = Omit<RpcSchema[number], 'Method'>
|
|
1508
1508
|
|
|
1509
1509
|
export type EIP1193Parameters<
|
|
1510
|
-
|
|
1511
|
-
> =
|
|
1510
|
+
rpcSchema extends RpcSchema | undefined = undefined,
|
|
1511
|
+
> = rpcSchema extends RpcSchema
|
|
1512
1512
|
? {
|
|
1513
|
-
[K in keyof
|
|
1513
|
+
[K in keyof rpcSchema]: Prettify<
|
|
1514
1514
|
{
|
|
1515
|
-
method:
|
|
1516
|
-
?
|
|
1515
|
+
method: rpcSchema[K] extends rpcSchema[number]
|
|
1516
|
+
? rpcSchema[K]['Method']
|
|
1517
1517
|
: never
|
|
1518
|
-
} & (
|
|
1519
|
-
?
|
|
1518
|
+
} & (rpcSchema[K] extends rpcSchema[number]
|
|
1519
|
+
? rpcSchema[K]['Parameters'] extends undefined
|
|
1520
1520
|
? { params?: undefined }
|
|
1521
|
-
: { params:
|
|
1521
|
+
: { params: rpcSchema[K]['Parameters'] }
|
|
1522
1522
|
: never)
|
|
1523
1523
|
>
|
|
1524
1524
|
}[number]
|
|
@@ -1539,29 +1539,26 @@ export type EIP1193RequestOptions = {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
1541
|
type DerivedRpcSchema<
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
> =
|
|
1545
|
-
? [
|
|
1546
|
-
:
|
|
1542
|
+
rpcSchema extends RpcSchema | undefined,
|
|
1543
|
+
rpcSchemaOverride extends RpcSchemaOverride | undefined,
|
|
1544
|
+
> = rpcSchemaOverride extends RpcSchemaOverride
|
|
1545
|
+
? [rpcSchemaOverride & { Method: string }]
|
|
1546
|
+
: rpcSchema
|
|
1547
1547
|
|
|
1548
1548
|
export type EIP1193RequestFn<
|
|
1549
|
-
|
|
1549
|
+
rpcSchema extends RpcSchema | undefined = undefined,
|
|
1550
1550
|
> = <
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
DerivedRpcSchema<
|
|
1554
|
-
> = EIP1193Parameters<DerivedRpcSchema<
|
|
1555
|
-
|
|
1556
|
-
TRpcSchema,
|
|
1557
|
-
TRpcSchemaOverride
|
|
1558
|
-
> extends RpcSchema
|
|
1551
|
+
rpcSchemaOverride extends RpcSchemaOverride | undefined = undefined,
|
|
1552
|
+
_parameters extends EIP1193Parameters<
|
|
1553
|
+
DerivedRpcSchema<rpcSchema, rpcSchemaOverride>
|
|
1554
|
+
> = EIP1193Parameters<DerivedRpcSchema<rpcSchema, rpcSchemaOverride>>,
|
|
1555
|
+
_returnType = DerivedRpcSchema<rpcSchema, rpcSchemaOverride> extends RpcSchema
|
|
1559
1556
|
? Extract<
|
|
1560
|
-
DerivedRpcSchema<
|
|
1561
|
-
{ Method:
|
|
1557
|
+
DerivedRpcSchema<rpcSchema, rpcSchemaOverride>[number],
|
|
1558
|
+
{ Method: _parameters['method'] }
|
|
1562
1559
|
>['ReturnType']
|
|
1563
1560
|
: unknown,
|
|
1564
1561
|
>(
|
|
1565
|
-
args:
|
|
1562
|
+
args: _parameters,
|
|
1566
1563
|
options?: EIP1193RequestOptions | undefined,
|
|
1567
|
-
) => Promise<
|
|
1564
|
+
) => Promise<_returnType>
|
package/types/filter.ts
CHANGED
|
@@ -16,43 +16,43 @@ type FilterRpcSchema = Filter_<
|
|
|
16
16
|
>
|
|
17
17
|
|
|
18
18
|
export type Filter<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
| MaybeExtractEventArgsFromAbi<
|
|
24
|
-
| undefined = MaybeExtractEventArgsFromAbi<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
filterType extends FilterType = 'event',
|
|
20
|
+
abi extends Abi | readonly unknown[] | undefined = undefined,
|
|
21
|
+
eventName extends string | undefined = undefined,
|
|
22
|
+
args extends
|
|
23
|
+
| MaybeExtractEventArgsFromAbi<abi, eventName>
|
|
24
|
+
| undefined = MaybeExtractEventArgsFromAbi<abi, eventName>,
|
|
25
|
+
strict extends boolean | undefined = undefined,
|
|
26
|
+
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
27
|
+
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
|
28
28
|
> = {
|
|
29
29
|
id: Hex
|
|
30
30
|
request: EIP1193RequestFn<FilterRpcSchema>
|
|
31
|
-
type:
|
|
32
|
-
} & (
|
|
31
|
+
type: filterType
|
|
32
|
+
} & (filterType extends 'event'
|
|
33
33
|
? {
|
|
34
|
-
fromBlock?:
|
|
35
|
-
toBlock?:
|
|
36
|
-
} & (
|
|
37
|
-
? undefined extends
|
|
34
|
+
fromBlock?: fromBlock | undefined
|
|
35
|
+
toBlock?: toBlock | undefined
|
|
36
|
+
} & (abi extends Abi
|
|
37
|
+
? undefined extends eventName
|
|
38
38
|
? {
|
|
39
|
-
abi:
|
|
39
|
+
abi: abi
|
|
40
40
|
args?: undefined
|
|
41
41
|
eventName?: undefined
|
|
42
|
-
strict:
|
|
42
|
+
strict: strict
|
|
43
43
|
}
|
|
44
|
-
:
|
|
44
|
+
: args extends MaybeExtractEventArgsFromAbi<abi, eventName>
|
|
45
45
|
? {
|
|
46
|
-
abi:
|
|
47
|
-
args:
|
|
48
|
-
eventName:
|
|
49
|
-
strict:
|
|
46
|
+
abi: abi
|
|
47
|
+
args: args
|
|
48
|
+
eventName: eventName
|
|
49
|
+
strict: strict
|
|
50
50
|
}
|
|
51
51
|
: {
|
|
52
|
-
abi:
|
|
52
|
+
abi: abi
|
|
53
53
|
args?: undefined
|
|
54
|
-
eventName:
|
|
55
|
-
strict:
|
|
54
|
+
eventName: eventName
|
|
55
|
+
strict: strict
|
|
56
56
|
}
|
|
57
57
|
: {
|
|
58
58
|
abi?: undefined
|