viem 2.8.9 → 2.8.11
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 +20 -0
- package/_cjs/accounts/generateMnemonic.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js +5 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
- package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js +1 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js +1 -1
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +73 -58
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js +1 -1
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/chains/celo/parsers.js.map +1 -1
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +1 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_cjs/chains/definitions/lukso.js +6 -0
- package/_cjs/chains/definitions/lukso.js.map +1 -1
- package/_cjs/chains/definitions/luksoTestnet.js +34 -0
- package/_cjs/chains/definitions/luksoTestnet.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncInMemoryNode.js +17 -0
- package/_cjs/chains/definitions/zkSyncInMemoryNode.js.map +1 -0
- package/_cjs/chains/definitions/zkSyncLocalNode.js +17 -0
- package/_cjs/chains/definitions/zkSyncLocalNode.js.map +1 -0
- package/_cjs/chains/index.js +19 -13
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/opStack/actions/getL1BaseFee.js.map +1 -1
- package/_cjs/chains/opStack/actions/getTimeToProve.js.map +1 -1
- package/_cjs/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
- package/_cjs/chains/zksync/formatters.js.map +1 -1
- package/_cjs/chains/zksync/serializers.js.map +1 -1
- package/_cjs/chains/zksync/utils/assertEip712Request.js.map +1 -1
- package/_cjs/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
- package/_cjs/chains/zksync/utils/isEip712Transaction.js.map +1 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/clients/transports/http.js.map +1 -1
- package/_cjs/errors/abi.js.map +1 -1
- package/_cjs/errors/account.js.map +1 -1
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/chain.js.map +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/node.js +5 -5
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/request.js.map +1 -1
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +3 -0
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
- package/_cjs/utils/address/getAddress.js.map +1 -1
- package/_cjs/utils/data/isHex.js.map +1 -1
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/encoding/toBytes.js.map +1 -1
- package/_cjs/utils/errors/getNodeError.js.map +1 -1
- package/_cjs/utils/formatters/block.js.map +1 -1
- package/_cjs/utils/formatters/extract.js.map +1 -1
- package/_cjs/utils/formatters/log.js +1 -1
- package/_cjs/utils/formatters/log.js.map +1 -1
- package/_cjs/utils/formatters/proof.js.map +1 -1
- package/_cjs/utils/formatters/transaction.js.map +1 -1
- package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
- package/_cjs/utils/formatters/transactionRequest.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/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/rpc/http.js +1 -1
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/transaction/assertRequest.js.map +1 -1
- package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_cjs/utils/typedData.js.map +1 -1
- package/_esm/accounts/generateMnemonic.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/public/call.js +5 -1
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createContractEventFilter.js.map +1 -1
- package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_esm/actions/public/watchBlockNumber.js +1 -1
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js +1 -1
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js +75 -60
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/actions/public/watchEvent.js +1 -1
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/public/watchPendingTransactions.js +1 -1
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/chains/celo/parsers.js.map +1 -1
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_esm/chains/definitions/lukso.js +6 -0
- package/_esm/chains/definitions/lukso.js.map +1 -1
- package/_esm/chains/definitions/luksoTestnet.js +31 -0
- package/_esm/chains/definitions/luksoTestnet.js.map +1 -0
- package/_esm/chains/definitions/zkSyncInMemoryNode.js +14 -0
- package/_esm/chains/definitions/zkSyncInMemoryNode.js.map +1 -0
- package/_esm/chains/definitions/zkSyncLocalNode.js +14 -0
- package/_esm/chains/definitions/zkSyncLocalNode.js.map +1 -0
- package/_esm/chains/index.js +8 -5
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/opStack/actions/getL1BaseFee.js.map +1 -1
- package/_esm/chains/opStack/actions/getTimeToProve.js.map +1 -1
- package/_esm/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
- package/_esm/chains/opStack/decorators/publicL2.js +2 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/chains/zksync/serializers.js.map +1 -1
- package/_esm/chains/zksync/utils/assertEip712Request.js.map +1 -1
- package/_esm/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
- package/_esm/chains/zksync/utils/isEip712Transaction.js.map +1 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/transports/createTransport.js.map +1 -1
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/clients/transports/http.js.map +1 -1
- package/_esm/errors/abi.js.map +1 -1
- package/_esm/errors/account.js.map +1 -1
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/chain.js.map +1 -1
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/node.js +5 -5
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/request.js.map +1 -1
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js +3 -0
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/formatAbiItem.js.map +1 -1
- package/_esm/utils/address/getAddress.js.map +1 -1
- package/_esm/utils/data/isHex.js.map +1 -1
- package/_esm/utils/data/slice.js.map +1 -1
- package/_esm/utils/encoding/toBytes.js.map +1 -1
- package/_esm/utils/errors/getNodeError.js.map +1 -1
- package/_esm/utils/formatters/block.js.map +1 -1
- package/_esm/utils/formatters/extract.js.map +1 -1
- package/_esm/utils/formatters/log.js +1 -1
- package/_esm/utils/formatters/log.js.map +1 -1
- package/_esm/utils/formatters/proof.js.map +1 -1
- package/_esm/utils/formatters/transaction.js.map +1 -1
- package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
- package/_esm/utils/formatters/transactionRequest.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/promise/withRetry.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/rpc/http.js +1 -1
- package/_esm/utils/rpc/http.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/transaction/assertRequest.js.map +1 -1
- package/_esm/utils/transaction/getTransactionType.js.map +1 -1
- package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/utils/typedData.js.map +1 -1
- package/_types/accounts/generateMnemonic.d.ts +1 -1
- package/_types/accounts/generateMnemonic.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +9 -9
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/accounts/utils/signTransaction.d.ts +1 -1
- package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +4 -4
- 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 +3 -3
- 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 +3 -3
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +3 -3
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +8 -8
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createContractEventFilter.d.ts +6 -6
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createEventFilter.d.ts +21 -21
- package/_types/actions/public/createEventFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateFeesPerGas.d.ts +4 -4
- package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +5 -5
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +3 -3
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +4 -4
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +10 -10
- 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 +9 -9
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getBytecode.d.ts +4 -4
- package/_types/actions/public/getBytecode.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts +4 -4
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +4 -4
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
- package/_types/actions/public/getLogs.d.ts +17 -17
- package/_types/actions/public/getLogs.d.ts.map +1 -1
- package/_types/actions/public/getProof.d.ts +4 -4
- package/_types/actions/public/getProof.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +4 -4
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +13 -13
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +2 -2
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +4 -4
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts +3 -3
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +6 -6
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +13 -13
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts +1 -1
- package/_types/actions/public/watchPendingTransactions.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/reset.d.ts +2 -2
- package/_types/actions/test/reset.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +5 -5
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts +1 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +312 -312
- package/_types/chains/celo/formatters.d.ts +312 -312
- package/_types/chains/celo/parsers.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +1 -1
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +39 -39
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/ancient8.d.ts +217 -217
- package/_types/chains/definitions/ancient8Sepolia.d.ts +217 -217
- package/_types/chains/definitions/arbitrumSepolia.d.ts +1 -1
- package/_types/chains/definitions/base.d.ts +217 -217
- package/_types/chains/definitions/baseGoerli.d.ts +217 -217
- package/_types/chains/definitions/baseSepolia.d.ts +217 -217
- package/_types/chains/definitions/celo.d.ts +312 -312
- package/_types/chains/definitions/celoAlfajores.d.ts +312 -312
- package/_types/chains/definitions/fraxtal.d.ts +217 -217
- package/_types/chains/definitions/fraxtalTestnet.d.ts +217 -217
- package/_types/chains/definitions/liskSepolia.d.ts +217 -217
- package/_types/chains/definitions/lukso.d.ts +6 -8
- package/_types/chains/definitions/lukso.d.ts.map +1 -1
- package/_types/chains/definitions/luksoTestnet.d.ts +35 -0
- package/_types/chains/definitions/luksoTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/optimism.d.ts +217 -217
- package/_types/chains/definitions/optimismGoerli.d.ts +217 -217
- package/_types/chains/definitions/optimismSepolia.d.ts +217 -217
- package/_types/chains/definitions/pgn.d.ts +217 -217
- package/_types/chains/definitions/pgnTestnet.d.ts +217 -217
- package/_types/chains/definitions/rss3.d.ts +217 -217
- package/_types/chains/definitions/rss3Sepolia.d.ts +217 -217
- package/_types/chains/definitions/zkSync.d.ts +33 -33
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +42 -0
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncLocalNode.d.ts +42 -0
- package/_types/chains/definitions/zkSyncLocalNode.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +33 -33
- package/_types/chains/definitions/zkSyncTestnet.d.ts +33 -33
- package/_types/chains/definitions/zora.d.ts +217 -217
- package/_types/chains/definitions/zoraSepolia.d.ts +217 -217
- package/_types/chains/definitions/zoraTestnet.d.ts +217 -217
- package/_types/chains/index.d.ts +8 -5
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +7 -7
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +1 -1
- package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +3 -3
- package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts.map +1 -1
- package/_types/chains/opStack/actions/depositTransaction.d.ts +1 -1
- package/_types/chains/opStack/actions/depositTransaction.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -1
- package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
- package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts.map +1 -1
- package/_types/chains/opStack/actions/getL1BaseFee.d.ts +2 -2
- package/_types/chains/opStack/actions/getL1BaseFee.d.ts.map +1 -1
- package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +2 -2
- package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts.map +1 -1
- package/_types/chains/opStack/actions/getTimeToProve.d.ts +1 -1
- package/_types/chains/opStack/actions/getTimeToProve.d.ts.map +1 -1
- package/_types/chains/opStack/actions/proveWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/proveWithdrawal.d.ts.map +1 -1
- package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +2 -2
- package/_types/chains/opStack/actions/waitForNextL2Output.d.ts.map +1 -1
- package/_types/chains/opStack/actions/waitToProve.d.ts +1 -1
- package/_types/chains/opStack/actions/waitToProve.d.ts.map +1 -1
- package/_types/chains/opStack/chainConfig.d.ts +217 -217
- package/_types/chains/opStack/decorators/publicL2.d.ts +3 -3
- package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
- package/_types/chains/opStack/formatters.d.ts +217 -217
- package/_types/chains/opStack/types/deposit.d.ts +6 -6
- package/_types/chains/opStack/types/deposit.d.ts.map +1 -1
- package/_types/chains/opStack/types/transaction.d.ts +4 -4
- package/_types/chains/opStack/types/transaction.d.ts.map +1 -1
- package/_types/chains/opStack/types/withdrawal.d.ts +2 -2
- package/_types/chains/opStack/types/withdrawal.d.ts.map +1 -1
- package/_types/chains/zksync/chainConfig.d.ts +33 -33
- package/_types/chains/zksync/formatters.d.ts +33 -33
- package/_types/chains/zksync/serializers.d.ts +1 -1
- package/_types/chains/zksync/serializers.d.ts.map +1 -1
- package/_types/chains/zksync/types/eip712.d.ts +4 -4
- package/_types/chains/zksync/types/eip712.d.ts.map +1 -1
- package/_types/chains/zksync/types/transaction.d.ts +21 -21
- package/_types/chains/zksync/types/transaction.d.ts.map +1 -1
- package/_types/chains/zksync/utils/assertEip712Request.d.ts +2 -1
- package/_types/chains/zksync/utils/assertEip712Request.d.ts.map +1 -1
- package/_types/chains/zksync/utils/assertEip712Transaction.d.ts +2 -1
- package/_types/chains/zksync/utils/assertEip712Transaction.d.ts.map +1 -1
- package/_types/chains/zksync/utils/isEip712Transaction.d.ts +2 -1
- package/_types/chains/zksync/utils/isEip712Transaction.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +2 -2
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +7 -7
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts +1 -1
- package/_types/clients/decorators/test.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 +4 -4
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts +17 -17
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/clients/transports/http.d.ts +13 -13
- package/_types/clients/transports/http.d.ts.map +1 -1
- package/_types/clients/transports/ipc.d.ts +6 -6
- package/_types/clients/transports/ipc.d.ts.map +1 -1
- package/_types/clients/transports/webSocket.d.ts +6 -6
- package/_types/clients/transports/webSocket.d.ts.map +1 -1
- package/_types/errors/abi.d.ts +6 -6
- package/_types/errors/abi.d.ts.map +1 -1
- package/_types/errors/account.d.ts +1 -1
- package/_types/errors/account.d.ts.map +1 -1
- package/_types/errors/base.d.ts +9 -9
- package/_types/errors/base.d.ts.map +1 -1
- package/_types/errors/block.d.ts +2 -2
- package/_types/errors/block.d.ts.map +1 -1
- package/_types/errors/chain.d.ts +3 -3
- package/_types/errors/chain.d.ts.map +1 -1
- package/_types/errors/contract.d.ts +20 -20
- package/_types/errors/contract.d.ts.map +1 -1
- package/_types/errors/encoding.d.ts +3 -3
- package/_types/errors/encoding.d.ts.map +1 -1
- package/_types/errors/estimateGas.d.ts +3 -3
- package/_types/errors/estimateGas.d.ts.map +1 -1
- package/_types/errors/node.d.ts +27 -27
- package/_types/errors/node.d.ts.map +1 -1
- package/_types/errors/request.d.ts +7 -7
- package/_types/errors/request.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/transaction.d.ts +7 -7
- package/_types/errors/transaction.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/types/block.d.ts +3 -3
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/chain.d.ts +1 -1
- package/_types/types/chain.d.ts.map +1 -1
- package/_types/types/contract.d.ts +5 -5
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +29 -29
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/ens.d.ts +1 -1
- package/_types/types/ens.d.ts.map +1 -1
- package/_types/types/fee.d.ts +6 -6
- package/_types/types/fee.d.ts.map +1 -1
- package/_types/types/filter.d.ts +9 -9
- package/_types/types/filter.d.ts.map +1 -1
- package/_types/types/kzg.d.ts +1 -1
- package/_types/types/kzg.d.ts.map +1 -1
- package/_types/types/misc.d.ts +2 -2
- package/_types/types/misc.d.ts.map +1 -1
- package/_types/types/rpc.d.ts +16 -16
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/stateOverride.d.ts +5 -5
- package/_types/types/stateOverride.d.ts.map +1 -1
- package/_types/types/transaction.d.ts +56 -56
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/types/typedData.d.ts +1 -1
- package/_types/types/typedData.d.ts.map +1 -1
- package/_types/types/utils.d.ts +6 -3
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/types/window.d.ts +1 -1
- package/_types/types/window.d.ts.map +1 -1
- package/_types/utils/abi/decodeEventLog.d.ts +1 -1
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionResult.d.ts +2 -2
- package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeErrorResult.d.ts +2 -2
- package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeEventTopics.d.ts +2 -2
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionData.d.ts +2 -2
- package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionResult.d.ts +2 -2
- package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/formatAbiItem.d.ts +2 -2
- package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -2
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
- package/_types/utils/address/getAddress.d.ts +1 -1
- package/_types/utils/address/getAddress.d.ts.map +1 -1
- package/_types/utils/address/getContractAddress.d.ts +1 -1
- package/_types/utils/address/getContractAddress.d.ts.map +1 -1
- package/_types/utils/address/isAddress.d.ts +1 -1
- package/_types/utils/address/isAddress.d.ts.map +1 -1
- package/_types/utils/blob/commitmentToVersionedHash.d.ts +1 -1
- package/_types/utils/blob/commitmentToVersionedHash.d.ts.map +1 -1
- package/_types/utils/blob/commitmentsToVersionedHashes.d.ts +1 -1
- package/_types/utils/blob/commitmentsToVersionedHashes.d.ts.map +1 -1
- package/_types/utils/blob/sidecarsToVersionedHashes.d.ts +1 -1
- package/_types/utils/blob/sidecarsToVersionedHashes.d.ts.map +1 -1
- package/_types/utils/chain/assertCurrentChain.d.ts +1 -1
- package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -1
- package/_types/utils/chain/getChainContractAddress.d.ts +1 -1
- package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -1
- package/_types/utils/cursor.d.ts +1 -1
- package/_types/utils/cursor.d.ts.map +1 -1
- package/_types/utils/data/isHex.d.ts +1 -1
- package/_types/utils/data/isHex.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 +6 -6
- package/_types/utils/data/slice.d.ts.map +1 -1
- package/_types/utils/data/trim.d.ts +1 -1
- package/_types/utils/data/trim.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +5 -5
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +5 -5
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/encoding/toBytes.d.ts +5 -5
- package/_types/utils/encoding/toBytes.d.ts.map +1 -1
- package/_types/utils/encoding/toHex.d.ts +7 -7
- package/_types/utils/encoding/toHex.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/errors/getCallError.d.ts +2 -2
- package/_types/utils/errors/getCallError.d.ts.map +1 -1
- package/_types/utils/errors/getContractError.d.ts +3 -3
- package/_types/utils/errors/getContractError.d.ts.map +1 -1
- package/_types/utils/errors/getEstimateGasError.d.ts +3 -3
- package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
- package/_types/utils/errors/getNodeError.d.ts +2 -1
- package/_types/utils/errors/getNodeError.d.ts.map +1 -1
- package/_types/utils/errors/getTransactionError.d.ts +2 -2
- package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +3 -3
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/extract.d.ts +1 -1
- package/_types/utils/formatters/extract.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/log.d.ts +4 -3
- package/_types/utils/formatters/log.d.ts.map +1 -1
- package/_types/utils/formatters/proof.d.ts +2 -1
- package/_types/utils/formatters/proof.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +3 -3
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +3 -2
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +3 -2
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/hash/keccak256.d.ts +1 -1
- package/_types/utils/hash/keccak256.d.ts.map +1 -1
- package/_types/utils/hash/ripemd160.d.ts +1 -1
- package/_types/utils/hash/ripemd160.d.ts.map +1 -1
- package/_types/utils/hash/sha256.d.ts +1 -1
- package/_types/utils/hash/sha256.d.ts.map +1 -1
- package/_types/utils/poll.d.ts +2 -2
- package/_types/utils/poll.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +4 -4
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +1 -1
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts +4 -4
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts +4 -4
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +6 -6
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/rpc/socket.d.ts +2 -2
- package/_types/utils/rpc/socket.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +1 -1
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/transaction/assertRequest.d.ts +2 -1
- package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
- package/_types/utils/transaction/getTransactionType.d.ts +4 -4
- package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/serializeAccessList.d.ts +1 -1
- package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts +2 -2
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/_types/utils/typedData.d.ts +1 -1
- package/_types/utils/typedData.d.ts.map +1 -1
- package/accounts/generateMnemonic.ts +1 -1
- package/accounts/types.ts +12 -10
- package/accounts/utils/signTransaction.ts +1 -1
- package/actions/ens/getEnsAddress.ts +4 -4
- package/actions/ens/getEnsAvatar.ts +1 -1
- package/actions/ens/getEnsName.ts +3 -3
- package/actions/ens/getEnsResolver.ts +1 -1
- package/actions/ens/getEnsText.ts +3 -3
- package/actions/getContract.ts +3 -3
- package/actions/public/call.ts +16 -12
- package/actions/public/createContractEventFilter.ts +9 -6
- package/actions/public/createEventFilter.ts +21 -21
- package/actions/public/estimateFeesPerGas.ts +4 -4
- package/actions/public/estimateGas.ts +5 -5
- package/actions/public/estimateMaxPriorityFeePerGas.ts +11 -7
- package/actions/public/getBalance.ts +4 -4
- package/actions/public/getBlock.ts +10 -10
- package/actions/public/getBlockNumber.ts +1 -1
- package/actions/public/getBlockTransactionCount.ts +9 -9
- package/actions/public/getBytecode.ts +4 -4
- package/actions/public/getContractEvents.ts +4 -4
- package/actions/public/getFeeHistory.ts +4 -4
- package/actions/public/getLogs.ts +17 -17
- package/actions/public/getProof.ts +4 -4
- package/actions/public/getStorageAt.ts +4 -4
- package/actions/public/getTransaction.ts +13 -13
- package/actions/public/getTransactionConfirmations.ts +2 -2
- package/actions/public/getTransactionCount.ts +4 -4
- package/actions/public/simulateContract.ts +3 -3
- package/actions/public/waitForTransactionReceipt.ts +6 -6
- package/actions/public/watchBlockNumber.ts +2 -2
- package/actions/public/watchBlocks.ts +1 -1
- package/actions/public/watchContractEvent.ts +75 -59
- package/actions/public/watchEvent.ts +14 -14
- package/actions/public/watchPendingTransactions.ts +2 -2
- package/actions/test/mine.ts +1 -1
- package/actions/test/reset.ts +2 -2
- package/actions/wallet/prepareTransactionRequest.ts +5 -4
- package/actions/wallet/writeContract.ts +1 -1
- package/chains/celo/parsers.ts +3 -2
- package/chains/celo/serializers.ts +3 -3
- package/chains/celo/types.ts +37 -37
- package/chains/definitions/arbitrumSepolia.ts +1 -1
- package/chains/definitions/lukso.ts +6 -0
- package/chains/definitions/luksoTestnet.ts +31 -0
- package/chains/definitions/zkSyncInMemoryNode.ts +14 -0
- package/chains/definitions/zkSyncLocalNode.ts +14 -0
- package/chains/index.ts +8 -5
- package/chains/opStack/actions/buildDepositTransaction.ts +7 -7
- package/chains/opStack/actions/buildInitiateWithdrawal.ts +3 -3
- package/chains/opStack/actions/depositTransaction.ts +1 -1
- package/chains/opStack/actions/estimateDepositTransactionGas.ts +1 -1
- package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
- package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +1 -1
- package/chains/opStack/actions/estimateL1Fee.ts +1 -1
- package/chains/opStack/actions/estimateL1Gas.ts +1 -1
- package/chains/opStack/actions/estimateProveWithdrawalGas.ts +1 -1
- package/chains/opStack/actions/finalizeWithdrawal.ts +1 -1
- package/chains/opStack/actions/getL1BaseFee.ts +2 -2
- package/chains/opStack/actions/getTimeToNextL2Output.ts +2 -2
- package/chains/opStack/actions/getTimeToProve.ts +3 -1
- package/chains/opStack/actions/proveWithdrawal.ts +1 -1
- package/chains/opStack/actions/waitForNextL2Output.ts +4 -2
- package/chains/opStack/actions/waitToProve.ts +1 -1
- package/chains/opStack/decorators/publicL2.ts +3 -3
- package/chains/opStack/types/deposit.ts +6 -6
- package/chains/opStack/types/transaction.ts +4 -4
- package/chains/opStack/types/withdrawal.ts +2 -2
- package/chains/zksync/formatters.ts +1 -1
- package/chains/zksync/serializers.ts +1 -1
- package/chains/zksync/types/eip712.ts +4 -4
- package/chains/zksync/types/transaction.ts +21 -21
- package/chains/zksync/utils/assertEip712Request.ts +2 -1
- package/chains/zksync/utils/assertEip712Transaction.ts +2 -1
- package/chains/zksync/utils/isEip712Transaction.ts +2 -1
- package/clients/createClient.ts +3 -3
- package/clients/decorators/public.ts +23 -21
- package/clients/decorators/test.ts +1 -1
- package/clients/transports/createTransport.ts +9 -9
- package/clients/transports/custom.ts +4 -4
- package/clients/transports/fallback.ts +28 -26
- package/clients/transports/http.ts +13 -13
- package/clients/transports/ipc.ts +6 -6
- package/clients/transports/webSocket.ts +6 -6
- package/errors/abi.ts +12 -3
- package/errors/account.ts +1 -1
- package/errors/base.ts +13 -10
- package/errors/block.ts +2 -2
- package/errors/chain.ts +3 -3
- package/errors/contract.ts +26 -15
- package/errors/encoding.ts +3 -3
- package/errors/estimateGas.ts +3 -3
- package/errors/node.ts +35 -14
- package/errors/request.ts +7 -7
- package/errors/rpc.ts +5 -5
- package/errors/transaction.ts +7 -7
- package/errors/version.ts +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types/block.ts +3 -3
- package/types/chain.ts +1 -1
- package/types/contract.ts +7 -5
- package/types/eip1193.ts +42 -38
- package/types/ens.ts +1 -1
- package/types/fee.ts +6 -6
- package/types/filter.ts +9 -9
- package/types/kzg.ts +1 -1
- package/types/misc.ts +2 -2
- package/types/rpc.ts +16 -16
- package/types/stateOverride.ts +5 -5
- package/types/transaction.ts +63 -56
- package/types/typedData.ts +1 -1
- package/types/utils.ts +9 -3
- package/types/window.ts +1 -1
- package/utils/abi/decodeEventLog.ts +1 -1
- package/utils/abi/decodeFunctionResult.ts +2 -2
- package/utils/abi/encodeAbiParameters.ts +5 -0
- package/utils/abi/encodeErrorResult.ts +2 -2
- package/utils/abi/encodeEventTopics.ts +2 -2
- package/utils/abi/encodeFunctionData.ts +2 -2
- package/utils/abi/encodeFunctionResult.ts +2 -2
- package/utils/abi/formatAbiItem.ts +2 -2
- package/utils/abi/formatAbiItemWithArgs.ts +2 -2
- package/utils/address/getAddress.ts +4 -1
- package/utils/address/getContractAddress.ts +1 -1
- package/utils/address/isAddress.ts +1 -1
- package/utils/blob/commitmentToVersionedHash.ts +1 -1
- package/utils/blob/commitmentsToVersionedHashes.ts +1 -1
- package/utils/blob/sidecarsToVersionedHashes.ts +1 -1
- package/utils/chain/assertCurrentChain.ts +1 -1
- package/utils/chain/getChainContractAddress.ts +1 -1
- package/utils/cursor.ts +1 -1
- package/utils/data/isHex.ts +1 -1
- package/utils/data/pad.ts +2 -2
- package/utils/data/slice.ts +15 -11
- package/utils/data/trim.ts +1 -1
- package/utils/encoding/fromBytes.ts +5 -5
- package/utils/encoding/fromHex.ts +5 -5
- package/utils/encoding/toBytes.ts +8 -5
- package/utils/encoding/toHex.ts +7 -7
- package/utils/ens/avatar/parseAvatarRecord.ts +2 -2
- package/utils/errors/getCallError.ts +2 -2
- package/utils/errors/getContractError.ts +3 -3
- package/utils/errors/getEstimateGasError.ts +3 -3
- package/utils/errors/getNodeError.ts +4 -1
- package/utils/errors/getTransactionError.ts +2 -2
- package/utils/formatters/block.ts +2 -2
- package/utils/formatters/extract.ts +1 -1
- package/utils/formatters/formatter.ts +1 -1
- package/utils/formatters/log.ts +6 -2
- package/utils/formatters/proof.ts +2 -1
- package/utils/formatters/transaction.ts +2 -2
- package/utils/formatters/transactionReceipt.ts +2 -1
- package/utils/formatters/transactionRequest.ts +4 -1
- package/utils/hash/keccak256.ts +1 -1
- package/utils/hash/ripemd160.ts +1 -1
- package/utils/hash/sha256.ts +1 -1
- package/utils/poll.ts +2 -2
- package/utils/promise/createBatchScheduler.ts +6 -6
- package/utils/promise/withCache.ts +1 -1
- package/utils/promise/withRetry.ts +14 -9
- package/utils/promise/withTimeout.ts +6 -4
- package/utils/rpc/http.ts +7 -7
- package/utils/rpc/socket.ts +2 -2
- package/utils/signature/hashMessage.ts +1 -1
- package/utils/transaction/assertRequest.ts +4 -1
- package/utils/transaction/getTransactionType.ts +10 -4
- package/utils/transaction/parseTransaction.ts +1 -1
- package/utils/transaction/serializeAccessList.ts +1 -1
- package/utils/transaction/serializeTransaction.ts +6 -6
- package/utils/typedData.ts +1 -1
package/accounts/types.ts
CHANGED
@@ -25,9 +25,11 @@ export type CustomSource = {
|
|
25
25
|
transaction extends Parameters<serializer>[0] = Parameters<serializer>[0],
|
26
26
|
>(
|
27
27
|
transaction: transaction,
|
28
|
-
args?:
|
29
|
-
|
30
|
-
|
28
|
+
args?:
|
29
|
+
| {
|
30
|
+
serializer?: serializer | undefined
|
31
|
+
}
|
32
|
+
| undefined,
|
31
33
|
) => Promise<
|
32
34
|
IsNarrowable<
|
33
35
|
TransactionSerialized<GetTransactionType<transaction>>,
|
@@ -66,17 +68,17 @@ export type HDAccount = LocalAccount<'hd'> & {
|
|
66
68
|
export type HDOptions =
|
67
69
|
| {
|
68
70
|
/** The account index to use in the path (`"m/44'/60'/${accountIndex}'/0/0"`). */
|
69
|
-
accountIndex?: number
|
71
|
+
accountIndex?: number | undefined
|
70
72
|
/** The address index to use in the path (`"m/44'/60'/0'/0/${addressIndex}"`). */
|
71
|
-
addressIndex?: number
|
73
|
+
addressIndex?: number | undefined
|
72
74
|
/** The change index to use in the path (`"m/44'/60'/0'/${changeIndex}/0"`). */
|
73
|
-
changeIndex?: number
|
74
|
-
path?: never
|
75
|
+
changeIndex?: number | undefined
|
76
|
+
path?: never | undefined
|
75
77
|
}
|
76
78
|
| {
|
77
|
-
accountIndex?: never
|
78
|
-
addressIndex?: never
|
79
|
-
changeIndex?: never
|
79
|
+
accountIndex?: never | undefined
|
80
|
+
addressIndex?: never | undefined
|
81
|
+
changeIndex?: never | undefined
|
80
82
|
/** The HD path. */
|
81
83
|
path: `m/44'/60'/${string}`
|
82
84
|
}
|
@@ -38,15 +38,15 @@ import {
|
|
38
38
|
export type GetEnsAddressParameters = Prettify<
|
39
39
|
Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
40
40
|
/** ENSIP-9 compliant coinType used to resolve addresses for other chains */
|
41
|
-
coinType?: number
|
41
|
+
coinType?: number | undefined
|
42
42
|
/** Universal Resolver gateway URLs to use for resolving CCIP-read requests. */
|
43
|
-
gatewayUrls?: string[]
|
43
|
+
gatewayUrls?: string[] | undefined
|
44
44
|
/** Name to get the address for. */
|
45
45
|
name: string
|
46
46
|
/** Whether or not to throw errors propagated from the ENS Universal Resolver Contract. */
|
47
|
-
strict?: boolean
|
47
|
+
strict?: boolean | undefined
|
48
48
|
/** Address of ENS Universal Resolver Contract. */
|
49
|
-
universalResolverAddress?: Address
|
49
|
+
universalResolverAddress?: Address | undefined
|
50
50
|
}
|
51
51
|
>
|
52
52
|
|
@@ -19,7 +19,7 @@ import {
|
|
19
19
|
export type GetEnsAvatarParameters = Prettify<
|
20
20
|
Omit<GetEnsTextParameters, 'key'> & {
|
21
21
|
/** Gateway urls to resolve IPFS and/or Arweave assets. */
|
22
|
-
assetGatewayUrls?: AssetGatewayUrls
|
22
|
+
assetGatewayUrls?: AssetGatewayUrls | undefined
|
23
23
|
}
|
24
24
|
>
|
25
25
|
|
@@ -28,11 +28,11 @@ export type GetEnsNameParameters = Prettify<
|
|
28
28
|
/** Address to get ENS name for. */
|
29
29
|
address: Address
|
30
30
|
/** Universal Resolver gateway URLs to use for resolving CCIP-read requests. */
|
31
|
-
gatewayUrls?: string[]
|
31
|
+
gatewayUrls?: string[] | undefined
|
32
32
|
/** Whether or not to throw errors propagated from the ENS Universal Resolver Contract. */
|
33
|
-
strict?: boolean
|
33
|
+
strict?: boolean | undefined
|
34
34
|
/** Address of ENS Universal Resolver Contract. */
|
35
|
-
universalResolverAddress?: Address
|
35
|
+
universalResolverAddress?: Address | undefined
|
36
36
|
}
|
37
37
|
>
|
38
38
|
|
@@ -39,13 +39,13 @@ export type GetEnsTextParameters = Prettify<
|
|
39
39
|
/** ENS name to get Text for. */
|
40
40
|
name: string
|
41
41
|
/** Universal Resolver gateway URLs to use for resolving CCIP-read requests. */
|
42
|
-
gatewayUrls?: string[]
|
42
|
+
gatewayUrls?: string[] | undefined
|
43
43
|
/** Text record to retrieve. */
|
44
44
|
key: string
|
45
45
|
/** Whether or not to throw errors propagated from the ENS Universal Resolver Contract. */
|
46
|
-
strict?: boolean
|
46
|
+
strict?: boolean | undefined
|
47
47
|
/** Address of ENS Universal Resolver Contract. */
|
48
|
-
universalResolverAddress?: Address
|
48
|
+
universalResolverAddress?: Address | undefined
|
49
49
|
}
|
50
50
|
>
|
51
51
|
|
package/actions/getContract.ts
CHANGED
@@ -74,12 +74,12 @@ type KeyedClient<
|
|
74
74
|
TAccount extends Account | undefined = Account | undefined,
|
75
75
|
> =
|
76
76
|
| {
|
77
|
-
public?: Client<TTransport, TChain>
|
77
|
+
public?: Client<TTransport, TChain> | undefined
|
78
78
|
wallet: Client<TTransport, TChain, TAccount>
|
79
79
|
}
|
80
80
|
| {
|
81
81
|
public: Client<TTransport, TChain>
|
82
|
-
wallet?: Client<TTransport, TChain, TAccount>
|
82
|
+
wallet?: Client<TTransport, TChain, TAccount> | undefined
|
83
83
|
}
|
84
84
|
|
85
85
|
export type GetContractParameters<
|
@@ -786,7 +786,7 @@ export function getContract<
|
|
786
786
|
* @internal exporting for testing only
|
787
787
|
*/
|
788
788
|
export function getFunctionParameters(
|
789
|
-
values: [args?: readonly unknown[], options?: object],
|
789
|
+
values: [args?: readonly unknown[] | undefined, options?: object | undefined],
|
790
790
|
) {
|
791
791
|
const hasArgs = values.length && Array.isArray(values[0])
|
792
792
|
const args = hasArgs ? values[0]! : []
|
package/actions/public/call.ts
CHANGED
@@ -44,7 +44,7 @@ import type {
|
|
44
44
|
} from '../../types/rpc.js'
|
45
45
|
import type { StateMapping, StateOverride } from '../../types/stateOverride.js'
|
46
46
|
import type { TransactionRequest } from '../../types/transaction.js'
|
47
|
-
import type { UnionOmit } from '../../types/utils.js'
|
47
|
+
import type { ExactPartial, UnionOmit } from '../../types/utils.js'
|
48
48
|
import {
|
49
49
|
type DecodeFunctionResultErrorType,
|
50
50
|
decodeFunctionResult,
|
@@ -90,24 +90,24 @@ export type FormattedCall<
|
|
90
90
|
export type CallParameters<
|
91
91
|
TChain extends Chain | undefined = Chain | undefined,
|
92
92
|
> = UnionOmit<FormattedCall<TChain>, 'from'> & {
|
93
|
-
account?: Account | Address
|
94
|
-
batch?: boolean
|
93
|
+
account?: Account | Address | undefined
|
94
|
+
batch?: boolean | undefined
|
95
95
|
} & (
|
96
96
|
| {
|
97
97
|
/** The balance of the account at a block number. */
|
98
|
-
blockNumber?: bigint
|
99
|
-
blockTag?: never
|
98
|
+
blockNumber?: bigint | undefined
|
99
|
+
blockTag?: never | undefined
|
100
100
|
}
|
101
101
|
| {
|
102
|
-
blockNumber?: never
|
102
|
+
blockNumber?: never | undefined
|
103
103
|
/**
|
104
104
|
* The balance of the account at a block tag.
|
105
105
|
* @default 'latest'
|
106
106
|
*/
|
107
|
-
blockTag?: BlockTag
|
107
|
+
blockTag?: BlockTag | undefined
|
108
108
|
}
|
109
109
|
) & {
|
110
|
-
stateOverride?: StateOverride
|
110
|
+
stateOverride?: StateOverride | undefined
|
111
111
|
}
|
112
112
|
|
113
113
|
export type CallReturnType = { data: Hex | undefined }
|
@@ -219,8 +219,12 @@ export async function call<TChain extends Chain | undefined>(
|
|
219
219
|
const response = await client.request({
|
220
220
|
method: 'eth_call',
|
221
221
|
params: rpcStateOverride
|
222
|
-
? [
|
223
|
-
|
222
|
+
? [
|
223
|
+
request as ExactPartial<RpcTransactionRequest>,
|
224
|
+
block,
|
225
|
+
rpcStateOverride,
|
226
|
+
]
|
227
|
+
: [request as ExactPartial<RpcTransactionRequest>, block],
|
224
228
|
})
|
225
229
|
if (response === '0x') return { data: undefined }
|
226
230
|
return { data: response }
|
@@ -262,7 +266,7 @@ type ScheduleMulticallParameters<TChain extends Chain | undefined> = Pick<
|
|
262
266
|
'blockNumber' | 'blockTag'
|
263
267
|
> & {
|
264
268
|
data: Hex
|
265
|
-
multicallAddress?: Address
|
269
|
+
multicallAddress?: Address | undefined
|
266
270
|
to: Address
|
267
271
|
}
|
268
272
|
|
@@ -422,7 +426,7 @@ export type ParseStateOverrideErrorType =
|
|
422
426
|
| ParseAccountStateOverrideErrorType
|
423
427
|
|
424
428
|
export function parseStateOverride(
|
425
|
-
args?: StateOverride,
|
429
|
+
args?: StateOverride | undefined,
|
426
430
|
): RpcStateOverride | undefined {
|
427
431
|
if (!args) return undefined
|
428
432
|
const rpcStateOverride: RpcStateOverride = {}
|
@@ -33,26 +33,29 @@ export type CreateContractEventFilterParameters<
|
|
33
33
|
fromBlock extends BlockNumber | BlockTag | undefined = undefined,
|
34
34
|
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
35
35
|
> = {
|
36
|
-
address?: Address | Address[]
|
36
|
+
address?: Address | Address[] | undefined
|
37
37
|
abi: abi
|
38
38
|
eventName?: eventName | ContractEventName<abi> | undefined
|
39
|
-
fromBlock?: fromBlock | BlockNumber | BlockTag
|
39
|
+
fromBlock?: fromBlock | BlockNumber | BlockTag | undefined
|
40
40
|
/**
|
41
41
|
* Whether or not the logs must match the indexed/non-indexed arguments in the event ABI item.
|
42
42
|
* @default false
|
43
43
|
*/
|
44
44
|
strict?: strict | boolean | undefined
|
45
|
-
toBlock?: toBlock | BlockNumber | BlockTag
|
45
|
+
toBlock?: toBlock | BlockNumber | BlockTag | undefined
|
46
46
|
} & (undefined extends eventName
|
47
47
|
? {
|
48
|
-
args?: never
|
48
|
+
args?: never | undefined
|
49
49
|
}
|
50
50
|
: MaybeExtractEventArgsFromAbi<abi, eventName> extends infer TEventFilterArgs
|
51
51
|
? {
|
52
|
-
args?:
|
52
|
+
args?:
|
53
|
+
| TEventFilterArgs
|
54
|
+
| (args extends TEventFilterArgs ? args : never)
|
55
|
+
| undefined
|
53
56
|
}
|
54
57
|
: {
|
55
|
-
args?: never
|
58
|
+
args?: never | undefined
|
56
59
|
})
|
57
60
|
|
58
61
|
export type CreateContractEventFilterReturnType<
|
@@ -38,9 +38,9 @@ export type CreateEventFilterParameters<
|
|
38
38
|
| MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName>
|
39
39
|
| undefined = undefined,
|
40
40
|
> = {
|
41
|
-
address?: Address | Address[]
|
42
|
-
fromBlock?: TFromBlock | BlockNumber | BlockTag
|
43
|
-
toBlock?: TToBlock | BlockNumber | BlockTag
|
41
|
+
address?: Address | Address[] | undefined
|
42
|
+
fromBlock?: TFromBlock | BlockNumber | BlockTag | undefined
|
43
|
+
toBlock?: TToBlock | BlockNumber | BlockTag | undefined
|
44
44
|
} & (MaybeExtractEventArgsFromAbi<
|
45
45
|
TAbiEvents,
|
46
46
|
_EventName
|
@@ -51,44 +51,44 @@ export type CreateEventFilterParameters<
|
|
51
51
|
| TEventFilterArgs
|
52
52
|
| (_Args extends TEventFilterArgs ? _Args : never)
|
53
53
|
event: TAbiEvent
|
54
|
-
events?: never
|
54
|
+
events?: never | undefined
|
55
55
|
/**
|
56
56
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
57
57
|
* @default false
|
58
58
|
*/
|
59
|
-
strict?: TStrict
|
59
|
+
strict?: TStrict | undefined
|
60
60
|
}
|
61
61
|
| {
|
62
|
-
args?: never
|
63
|
-
event?: TAbiEvent
|
64
|
-
events?: never
|
62
|
+
args?: never | undefined
|
63
|
+
event?: TAbiEvent | undefined
|
64
|
+
events?: never | undefined
|
65
65
|
/**
|
66
66
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
67
67
|
* @default false
|
68
68
|
*/
|
69
|
-
strict?: TStrict
|
69
|
+
strict?: TStrict | undefined
|
70
70
|
}
|
71
71
|
| {
|
72
|
-
args?: never
|
73
|
-
event?: never
|
74
|
-
events: TAbiEvents
|
72
|
+
args?: never | undefined
|
73
|
+
event?: never | undefined
|
74
|
+
events: TAbiEvents | undefined
|
75
75
|
/**
|
76
76
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
77
77
|
* @default false
|
78
78
|
*/
|
79
|
-
strict?: TStrict
|
79
|
+
strict?: TStrict | undefined
|
80
80
|
}
|
81
81
|
| {
|
82
|
-
args?: never
|
83
|
-
event?: never
|
84
|
-
events?: never
|
85
|
-
strict?: never
|
82
|
+
args?: never | undefined
|
83
|
+
event?: never | undefined
|
84
|
+
events?: never | undefined
|
85
|
+
strict?: never | undefined
|
86
86
|
}
|
87
87
|
: {
|
88
|
-
args?: never
|
89
|
-
event?: never
|
90
|
-
events?: never
|
91
|
-
strict?: never
|
88
|
+
args?: never | undefined
|
89
|
+
event?: never | undefined
|
90
|
+
events?: never | undefined
|
91
|
+
strict?: never | undefined
|
92
92
|
})
|
93
93
|
|
94
94
|
export type CreateEventFilterReturnType<
|
@@ -41,7 +41,7 @@ export type EstimateFeesPerGasParameters<
|
|
41
41
|
*
|
42
42
|
* @default 'eip1559'
|
43
43
|
*/
|
44
|
-
type?: type | FeeValuesType
|
44
|
+
type?: type | FeeValuesType | undefined
|
45
45
|
} & GetChainParameter<chain, chainOverride>
|
46
46
|
|
47
47
|
export type EstimateFeesPerGasReturnType<
|
@@ -86,7 +86,7 @@ export async function estimateFeesPerGas<
|
|
86
86
|
type extends FeeValuesType = 'eip1559',
|
87
87
|
>(
|
88
88
|
client: Client<Transport, chain>,
|
89
|
-
args?: EstimateFeesPerGasParameters<chain, chainOverride, type
|
89
|
+
args?: EstimateFeesPerGasParameters<chain, chainOverride, type> | undefined,
|
90
90
|
): Promise<EstimateFeesPerGasReturnType<type>> {
|
91
91
|
return internal_estimateFeesPerGas(client, args as any)
|
92
92
|
}
|
@@ -98,8 +98,8 @@ export async function internal_estimateFeesPerGas<
|
|
98
98
|
>(
|
99
99
|
client: Client<Transport, chain>,
|
100
100
|
args: EstimateFeesPerGasParameters<chain, chainOverride, type> & {
|
101
|
-
block?: Block
|
102
|
-
request?: PrepareTransactionRequestParameters
|
101
|
+
block?: Block | undefined
|
102
|
+
request?: PrepareTransactionRequestParameters | undefined
|
103
103
|
},
|
104
104
|
): Promise<EstimateFeesPerGasReturnType<type>> {
|
105
105
|
const {
|
@@ -42,20 +42,20 @@ export type FormattedEstimateGas<
|
|
42
42
|
export type EstimateGasParameters<
|
43
43
|
TChain extends Chain | undefined = Chain | undefined,
|
44
44
|
> = UnionOmit<FormattedEstimateGas<TChain>, 'from'> & {
|
45
|
-
account?: Account | Address
|
45
|
+
account?: Account | Address | undefined
|
46
46
|
} & (
|
47
47
|
| {
|
48
48
|
/** The balance of the account at a block number. */
|
49
|
-
blockNumber?: bigint
|
50
|
-
blockTag?: never
|
49
|
+
blockNumber?: bigint | undefined
|
50
|
+
blockTag?: never | undefined
|
51
51
|
}
|
52
52
|
| {
|
53
|
-
blockNumber?: never
|
53
|
+
blockNumber?: never | undefined
|
54
54
|
/**
|
55
55
|
* The balance of the account at a block tag.
|
56
56
|
* @default 'latest'
|
57
57
|
*/
|
58
|
-
blockTag?: BlockTag
|
58
|
+
blockTag?: BlockTag | undefined
|
59
59
|
}
|
60
60
|
)
|
61
61
|
|
@@ -62,7 +62,9 @@ export async function estimateMaxPriorityFeePerGas<
|
|
62
62
|
chainOverride extends Chain | undefined,
|
63
63
|
>(
|
64
64
|
client: Client<Transport, chain>,
|
65
|
-
args?:
|
65
|
+
args?:
|
66
|
+
| EstimateMaxPriorityFeePerGasParameters<chain, chainOverride>
|
67
|
+
| undefined,
|
66
68
|
): Promise<EstimateMaxPriorityFeePerGasReturnType> {
|
67
69
|
return internal_estimateMaxPriorityFeePerGas(client, args as any)
|
68
70
|
}
|
@@ -73,12 +75,14 @@ export async function internal_estimateMaxPriorityFeePerGas<
|
|
73
75
|
>(
|
74
76
|
client: Client<Transport, chain>,
|
75
77
|
args: EstimateMaxPriorityFeePerGasParameters<chain, chainOverride> & {
|
76
|
-
block?: Block
|
77
|
-
request?:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
78
|
+
block?: Block | undefined
|
79
|
+
request?:
|
80
|
+
| PrepareTransactionRequestParameters<
|
81
|
+
chain,
|
82
|
+
Account | undefined,
|
83
|
+
chainOverride
|
84
|
+
>
|
85
|
+
| undefined
|
82
86
|
},
|
83
87
|
): Promise<EstimateMaxPriorityFeePerGasReturnType> {
|
84
88
|
const { block: block_, chain = client.chain, request } = args || {}
|
@@ -17,13 +17,13 @@ export type GetBalanceParameters = {
|
|
17
17
|
} & (
|
18
18
|
| {
|
19
19
|
/** The balance of the account at a block number. */
|
20
|
-
blockNumber?: bigint
|
21
|
-
blockTag?: never
|
20
|
+
blockNumber?: bigint | undefined
|
21
|
+
blockTag?: never | undefined
|
22
22
|
}
|
23
23
|
| {
|
24
|
-
blockNumber?: never
|
24
|
+
blockNumber?: never | undefined
|
25
25
|
/** The balance of the account at a block tag. */
|
26
|
-
blockTag?: BlockTag
|
26
|
+
blockTag?: BlockTag | undefined
|
27
27
|
}
|
28
28
|
)
|
29
29
|
|
@@ -26,28 +26,28 @@ export type GetBlockParameters<
|
|
26
26
|
TBlockTag extends BlockTag = 'latest',
|
27
27
|
> = {
|
28
28
|
/** Whether or not to include transaction data in the response. */
|
29
|
-
includeTransactions?: TIncludeTransactions
|
29
|
+
includeTransactions?: TIncludeTransactions | undefined
|
30
30
|
} & (
|
31
31
|
| {
|
32
32
|
/** Hash of the block. */
|
33
|
-
blockHash?: Hash
|
34
|
-
blockNumber?: never
|
35
|
-
blockTag?: never
|
33
|
+
blockHash?: Hash | undefined
|
34
|
+
blockNumber?: never | undefined
|
35
|
+
blockTag?: never | undefined
|
36
36
|
}
|
37
37
|
| {
|
38
|
-
blockHash?: never
|
38
|
+
blockHash?: never | undefined
|
39
39
|
/** The block number. */
|
40
|
-
blockNumber?: bigint
|
41
|
-
blockTag?: never
|
40
|
+
blockNumber?: bigint | undefined
|
41
|
+
blockTag?: never | undefined
|
42
42
|
}
|
43
43
|
| {
|
44
|
-
blockHash?: never
|
45
|
-
blockNumber?: never
|
44
|
+
blockHash?: never | undefined
|
45
|
+
blockNumber?: never | undefined
|
46
46
|
/**
|
47
47
|
* The block tag.
|
48
48
|
* @default 'latest'
|
49
49
|
*/
|
50
|
-
blockTag?: TBlockTag | BlockTag
|
50
|
+
blockTag?: TBlockTag | BlockTag | undefined
|
51
51
|
}
|
52
52
|
)
|
53
53
|
|
@@ -7,7 +7,7 @@ import { getCache, withCache } from '../../utils/promise/withCache.js'
|
|
7
7
|
|
8
8
|
export type GetBlockNumberParameters = {
|
9
9
|
/** Time (in ms) that cached block number will remain in memory. */
|
10
|
-
cacheTime?: number
|
10
|
+
cacheTime?: number | undefined
|
11
11
|
}
|
12
12
|
|
13
13
|
export type GetBlockNumberReturnType = bigint
|
@@ -18,21 +18,21 @@ import {
|
|
18
18
|
export type GetBlockTransactionCountParameters =
|
19
19
|
| {
|
20
20
|
/** Hash of the block. */
|
21
|
-
blockHash?: Hash
|
22
|
-
blockNumber?: never
|
23
|
-
blockTag?: never
|
21
|
+
blockHash?: Hash | undefined
|
22
|
+
blockNumber?: never | undefined
|
23
|
+
blockTag?: never | undefined
|
24
24
|
}
|
25
25
|
| {
|
26
|
-
blockHash?: never
|
26
|
+
blockHash?: never | undefined
|
27
27
|
/** The block number. */
|
28
|
-
blockNumber?: bigint
|
29
|
-
blockTag?: never
|
28
|
+
blockNumber?: bigint | undefined
|
29
|
+
blockTag?: never | undefined
|
30
30
|
}
|
31
31
|
| {
|
32
|
-
blockHash?: never
|
33
|
-
blockNumber?: never
|
32
|
+
blockHash?: never | undefined
|
33
|
+
blockNumber?: never | undefined
|
34
34
|
/** The block tag. Defaults to 'latest'. */
|
35
|
-
blockTag?: BlockTag
|
35
|
+
blockTag?: BlockTag | undefined
|
36
36
|
}
|
37
37
|
|
38
38
|
export type GetBlockTransactionCountReturnType = number
|
@@ -16,12 +16,12 @@ export type GetBytecodeParameters = {
|
|
16
16
|
address: Address
|
17
17
|
} & (
|
18
18
|
| {
|
19
|
-
blockNumber?: never
|
20
|
-
blockTag?: BlockTag
|
19
|
+
blockNumber?: never | undefined
|
20
|
+
blockTag?: BlockTag | undefined
|
21
21
|
}
|
22
22
|
| {
|
23
|
-
blockNumber?: bigint
|
24
|
-
blockTag?: never
|
23
|
+
blockNumber?: bigint | undefined
|
24
|
+
blockTag?: never | undefined
|
25
25
|
}
|
26
26
|
)
|
27
27
|
|
@@ -33,7 +33,7 @@ export type GetContractEventsParameters<
|
|
33
33
|
toBlock extends BlockNumber | BlockTag | undefined = undefined,
|
34
34
|
> = {
|
35
35
|
/** The address of the contract. */
|
36
|
-
address?: Address | Address[]
|
36
|
+
address?: Address | Address[] | undefined
|
37
37
|
/** Contract ABI. */
|
38
38
|
abi: abi
|
39
39
|
args?:
|
@@ -54,16 +54,16 @@ export type GetContractEventsParameters<
|
|
54
54
|
} & (
|
55
55
|
| {
|
56
56
|
/** Block number or tag after which to include logs */
|
57
|
-
fromBlock?: fromBlock | BlockNumber | BlockTag
|
57
|
+
fromBlock?: fromBlock | BlockNumber | BlockTag | undefined
|
58
58
|
/** Block number or tag before which to include logs */
|
59
|
-
toBlock?: toBlock | BlockNumber | BlockTag
|
59
|
+
toBlock?: toBlock | BlockNumber | BlockTag | undefined
|
60
60
|
blockHash?: undefined
|
61
61
|
}
|
62
62
|
| {
|
63
63
|
fromBlock?: undefined
|
64
64
|
toBlock?: undefined
|
65
65
|
/** Hash of block to include logs from */
|
66
|
-
blockHash?: Hash
|
66
|
+
blockHash?: Hash | undefined
|
67
67
|
}
|
68
68
|
)
|
69
69
|
|
@@ -24,17 +24,17 @@ export type GetFeeHistoryParameters = {
|
|
24
24
|
rewardPercentiles: number[]
|
25
25
|
} & (
|
26
26
|
| {
|
27
|
-
blockNumber?: never
|
27
|
+
blockNumber?: never | undefined
|
28
28
|
/**
|
29
29
|
* Highest number block of the requested range.
|
30
30
|
* @default 'latest'
|
31
31
|
*/
|
32
|
-
blockTag?: BlockTag
|
32
|
+
blockTag?: BlockTag | undefined
|
33
33
|
}
|
34
34
|
| {
|
35
35
|
/** Highest number block of the requested range. */
|
36
|
-
blockNumber?: bigint
|
37
|
-
blockTag?: never
|
36
|
+
blockNumber?: bigint | undefined
|
37
|
+
blockTag?: never | undefined
|
38
38
|
}
|
39
39
|
)
|
40
40
|
export type GetFeeHistoryReturnType = FeeHistory
|