viem 0.0.0-main.20240316T233602 → 0.0.0-main.20240317T053608
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/_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/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/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/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/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/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/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/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/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/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/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/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/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 +1 -1
- 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/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/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 +1 -1
- package/actions/public/watchEvent.ts +13 -13
- package/actions/public/watchPendingTransactions.ts +1 -1
- 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/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 +1 -1
- 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/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/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/errors/transaction.ts
CHANGED
@@ -165,8 +165,8 @@ export class TransactionExecutionError extends BaseError {
|
|
165
165
|
value,
|
166
166
|
}: Omit<SendTransactionParameters, 'account' | 'chain'> & {
|
167
167
|
account: Account
|
168
|
-
chain?: Chain
|
169
|
-
docsPath?: string
|
168
|
+
chain?: Chain | undefined
|
169
|
+
docsPath?: string | undefined
|
170
170
|
},
|
171
171
|
) {
|
172
172
|
const prettyArgs = prettyPrint({
|
@@ -214,11 +214,11 @@ export class TransactionNotFoundError extends BaseError {
|
|
214
214
|
hash,
|
215
215
|
index,
|
216
216
|
}: {
|
217
|
-
blockHash?: Hash
|
218
|
-
blockNumber?: bigint
|
219
|
-
blockTag?: BlockTag
|
220
|
-
hash?: Hash
|
221
|
-
index?: number
|
217
|
+
blockHash?: Hash | undefined
|
218
|
+
blockNumber?: bigint | undefined
|
219
|
+
blockTag?: BlockTag | undefined
|
220
|
+
hash?: Hash | undefined
|
221
|
+
index?: number | undefined
|
222
222
|
}) {
|
223
223
|
let identifier = 'Transaction'
|
224
224
|
if (blockTag && index !== undefined)
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '0.0.0-main.
|
1
|
+
export const version = '0.0.0-main.20240317T053608'
|
package/package.json
CHANGED
package/types/block.ts
CHANGED
@@ -62,14 +62,14 @@ export type Block<
|
|
62
62
|
/** List of uncle hashes */
|
63
63
|
uncles: Hash[]
|
64
64
|
/** List of withdrawal objects */
|
65
|
-
withdrawals?: Withdrawal[]
|
65
|
+
withdrawals?: Withdrawal[] | undefined
|
66
66
|
/** Root of the this block’s withdrawals trie */
|
67
|
-
withdrawalsRoot?: Hex
|
67
|
+
withdrawalsRoot?: Hex | undefined
|
68
68
|
}
|
69
69
|
|
70
70
|
export type BlockIdentifier<TQuantity = bigint> = {
|
71
71
|
/** Whether or not to throw an error if the block is not in the canonical chain as described below. Only allowed in conjunction with the blockHash tag. Defaults to false. */
|
72
|
-
requireCanonical?: boolean
|
72
|
+
requireCanonical?: boolean | undefined
|
73
73
|
} & (
|
74
74
|
| {
|
75
75
|
/** The block in the canonical chain with this number */
|
package/types/chain.ts
CHANGED
package/types/contract.ts
CHANGED
@@ -308,11 +308,11 @@ export type GetValue<
|
|
308
308
|
_Narrowable extends boolean = IsNarrowable<TAbi, Abi>,
|
309
309
|
> = _Narrowable extends true
|
310
310
|
? TAbiFunction['stateMutability'] extends 'payable'
|
311
|
-
? { value?: NoUndefined<TValueType> }
|
311
|
+
? { value?: NoUndefined<TValueType> | undefined }
|
312
312
|
: TAbiFunction['payable'] extends true
|
313
|
-
? { value?: NoUndefined<TValueType> }
|
314
|
-
: { value?: never }
|
315
|
-
: { value?: TValueType }
|
313
|
+
? { value?: NoUndefined<TValueType> | undefined }
|
314
|
+
: { value?: never | undefined }
|
315
|
+
: { value?: TValueType | undefined }
|
316
316
|
|
317
317
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
318
318
|
|
@@ -399,7 +399,9 @@ export type AbiEventParametersToPrimitiveTypes<
|
|
399
399
|
name: infer Name extends string
|
400
400
|
}
|
401
401
|
? Name
|
402
|
-
: never]?:
|
402
|
+
: never]?:
|
403
|
+
| AbiEventParameterToPrimitiveType<Parameter, Options>
|
404
|
+
| undefined
|
403
405
|
} extends infer Mapped
|
404
406
|
? Prettify<
|
405
407
|
MaybeRequired<
|
package/types/eip1193.ts
CHANGED
@@ -16,7 +16,7 @@ import type {
|
|
16
16
|
RpcTransactionRequest as TransactionRequest,
|
17
17
|
RpcUncle as Uncle,
|
18
18
|
} from './rpc.js'
|
19
|
-
import type { Prettify } from './utils.js'
|
19
|
+
import type { ExactPartial, Prettify } from './utils.js'
|
20
20
|
|
21
21
|
//////////////////////////////////////////////////
|
22
22
|
// Provider
|
@@ -86,14 +86,16 @@ export type AddEthereumChainParameter = {
|
|
86
86
|
/** The chain name. */
|
87
87
|
chainName: string
|
88
88
|
/** Native currency for the chain. */
|
89
|
-
nativeCurrency?:
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
89
|
+
nativeCurrency?:
|
90
|
+
| {
|
91
|
+
name: string
|
92
|
+
symbol: string
|
93
|
+
decimals: number
|
94
|
+
}
|
95
|
+
| undefined
|
94
96
|
rpcUrls: readonly string[]
|
95
|
-
blockExplorerUrls?: string[]
|
96
|
-
iconUrls?: string[]
|
97
|
+
blockExplorerUrls?: string[] | undefined
|
98
|
+
iconUrls?: string[] | undefined
|
97
99
|
}
|
98
100
|
|
99
101
|
export type NetworkSync = {
|
@@ -129,7 +131,7 @@ export type WatchAssetParams = {
|
|
129
131
|
/** The number of token decimals */
|
130
132
|
decimals: number
|
131
133
|
/** A string url of the token logo */
|
132
|
-
image?: string
|
134
|
+
image?: string | undefined
|
133
135
|
}
|
134
136
|
}
|
135
137
|
|
@@ -228,13 +230,13 @@ export type PublicRpcSchema = [
|
|
228
230
|
{
|
229
231
|
Method: 'eth_call'
|
230
232
|
Parameters:
|
231
|
-
| [transaction:
|
233
|
+
| [transaction: ExactPartial<TransactionRequest>]
|
232
234
|
| [
|
233
|
-
transaction:
|
235
|
+
transaction: ExactPartial<TransactionRequest>,
|
234
236
|
block: BlockNumber | BlockTag | BlockIdentifier,
|
235
237
|
]
|
236
238
|
| [
|
237
|
-
transaction:
|
239
|
+
transaction: ExactPartial<TransactionRequest>,
|
238
240
|
block: BlockNumber | BlockTag | BlockIdentifier,
|
239
241
|
stateOverrideSet: RpcStateOverride,
|
240
242
|
]
|
@@ -451,18 +453,18 @@ export type PublicRpcSchema = [
|
|
451
453
|
Method: 'eth_getLogs'
|
452
454
|
Parameters: [
|
453
455
|
{
|
454
|
-
address?: Address | Address[]
|
455
|
-
topics?: LogTopic[]
|
456
|
+
address?: Address | Address[] | undefined
|
457
|
+
topics?: LogTopic[] | undefined
|
456
458
|
} & (
|
457
459
|
| {
|
458
|
-
fromBlock?: BlockNumber | BlockTag
|
459
|
-
toBlock?: BlockNumber | BlockTag
|
460
|
-
blockHash?: never
|
460
|
+
fromBlock?: BlockNumber | BlockTag | undefined
|
461
|
+
toBlock?: BlockNumber | BlockTag | undefined
|
462
|
+
blockHash?: never | undefined
|
461
463
|
}
|
462
464
|
| {
|
463
|
-
fromBlock?: never
|
464
|
-
toBlock?: never
|
465
|
-
blockHash?: Hash
|
465
|
+
fromBlock?: never | undefined
|
466
|
+
toBlock?: never | undefined
|
467
|
+
blockHash?: Hash | undefined
|
466
468
|
}
|
467
469
|
),
|
468
470
|
]
|
@@ -650,10 +652,10 @@ export type PublicRpcSchema = [
|
|
650
652
|
Method: 'eth_newFilter'
|
651
653
|
Parameters: [
|
652
654
|
filter: {
|
653
|
-
fromBlock?: BlockNumber | BlockTag
|
654
|
-
toBlock?: BlockNumber | BlockTag
|
655
|
-
address?: Address | Address[]
|
656
|
-
topics?: LogTopic[]
|
655
|
+
fromBlock?: BlockNumber | BlockTag | undefined
|
656
|
+
toBlock?: BlockNumber | BlockTag | undefined
|
657
|
+
address?: Address | Address[] | undefined
|
658
|
+
topics?: LogTopic[] | undefined
|
657
659
|
},
|
658
660
|
]
|
659
661
|
ReturnType: Quantity
|
@@ -766,7 +768,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
766
768
|
*/
|
767
769
|
{
|
768
770
|
Method: `${TMode}_loadState`
|
769
|
-
Parameters?: [Hex]
|
771
|
+
Parameters?: [Hex] | undefined
|
770
772
|
ReturnType: void
|
771
773
|
},
|
772
774
|
/**
|
@@ -1008,7 +1010,7 @@ export type TestRpcSchema<TMode extends string> = [
|
|
1008
1010
|
*/
|
1009
1011
|
{
|
1010
1012
|
Method: 'evm_revert'
|
1011
|
-
Parameters?: [id: Quantity]
|
1013
|
+
Parameters?: [id: Quantity] | undefined
|
1012
1014
|
ReturnType: void
|
1013
1015
|
},
|
1014
1016
|
/**
|
@@ -1080,12 +1082,14 @@ export type TestRpcSchema<TMode extends string> = [
|
|
1080
1082
|
*/
|
1081
1083
|
{
|
1082
1084
|
Method: 'evm_mine'
|
1083
|
-
Parameters?:
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1085
|
+
Parameters?:
|
1086
|
+
| [
|
1087
|
+
{
|
1088
|
+
/** Number of blocks to mine. */
|
1089
|
+
blocks: Hex
|
1090
|
+
},
|
1091
|
+
]
|
1092
|
+
| undefined
|
1089
1093
|
ReturnType: void
|
1090
1094
|
},
|
1091
1095
|
/**
|
@@ -1321,7 +1325,7 @@ export type WalletRpcSchema = [
|
|
1321
1325
|
|
1322
1326
|
export type RpcSchema = readonly {
|
1323
1327
|
Method: string
|
1324
|
-
Parameters?: unknown
|
1328
|
+
Parameters?: unknown | undefined
|
1325
1329
|
ReturnType: unknown
|
1326
1330
|
}[]
|
1327
1331
|
|
@@ -1338,21 +1342,21 @@ export type EIP1193Parameters<
|
|
1338
1342
|
: never
|
1339
1343
|
} & (TRpcSchema[K] extends TRpcSchema[number]
|
1340
1344
|
? TRpcSchema[K]['Parameters'] extends undefined
|
1341
|
-
? { params?: never }
|
1345
|
+
? { params?: never | undefined }
|
1342
1346
|
: { params: TRpcSchema[K]['Parameters'] }
|
1343
1347
|
: never)
|
1344
1348
|
>
|
1345
1349
|
}[number]
|
1346
1350
|
: {
|
1347
1351
|
method: string
|
1348
|
-
params?: unknown
|
1352
|
+
params?: unknown | undefined
|
1349
1353
|
}
|
1350
1354
|
|
1351
1355
|
export type EIP1193RequestOptions = {
|
1352
1356
|
// The base delay (in ms) between retries.
|
1353
|
-
retryDelay?: number
|
1357
|
+
retryDelay?: number | undefined
|
1354
1358
|
// The max number of times to retry.
|
1355
|
-
retryCount?: number
|
1359
|
+
retryCount?: number | undefined
|
1356
1360
|
}
|
1357
1361
|
|
1358
1362
|
type DerivedRpcSchema<
|
@@ -1380,5 +1384,5 @@ export type EIP1193RequestFn<
|
|
1380
1384
|
: unknown,
|
1381
1385
|
>(
|
1382
1386
|
args: TParameters,
|
1383
|
-
options?: EIP1193RequestOptions,
|
1387
|
+
options?: EIP1193RequestOptions | undefined,
|
1384
1388
|
) => Promise<_ReturnType>
|
package/types/ens.ts
CHANGED
package/types/fee.ts
CHANGED
@@ -11,20 +11,20 @@ export type FeeHistory<TQuantity = bigint> = {
|
|
11
11
|
/** Lowest number block of the returned range. */
|
12
12
|
oldestBlock: TQuantity
|
13
13
|
/** An array of effective priority fees (in wei) per gas data points from a single block. All zeroes are returned if the block is empty. */
|
14
|
-
reward?: TQuantity[][]
|
14
|
+
reward?: TQuantity[][] | undefined
|
15
15
|
}
|
16
16
|
|
17
17
|
export type FeeValuesLegacy<TQuantity = bigint> = {
|
18
18
|
/** Base fee per gas. */
|
19
19
|
gasPrice: TQuantity
|
20
|
-
maxFeePerBlobGas?: never
|
21
|
-
maxFeePerGas?: never
|
22
|
-
maxPriorityFeePerGas?: never
|
20
|
+
maxFeePerBlobGas?: never | undefined
|
21
|
+
maxFeePerGas?: never | undefined
|
22
|
+
maxPriorityFeePerGas?: never | undefined
|
23
23
|
}
|
24
24
|
|
25
25
|
export type FeeValuesEIP1559<TQuantity = bigint> = {
|
26
|
-
gasPrice?: never
|
27
|
-
maxFeePerBlobGas?: never
|
26
|
+
gasPrice?: never | undefined
|
27
|
+
maxFeePerBlobGas?: never | undefined
|
28
28
|
/** Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas). */
|
29
29
|
maxFeePerGas: TQuantity
|
30
30
|
/** Max priority fee per gas (in wei). */
|
package/types/filter.ts
CHANGED
@@ -31,14 +31,14 @@ export type Filter<
|
|
31
31
|
type: TFilterType
|
32
32
|
} & (TFilterType extends 'event'
|
33
33
|
? {
|
34
|
-
fromBlock?: TFromBlock
|
35
|
-
toBlock?: TToBlock
|
34
|
+
fromBlock?: TFromBlock | undefined
|
35
|
+
toBlock?: TToBlock | undefined
|
36
36
|
} & (TAbi extends Abi
|
37
37
|
? undefined extends TEventName
|
38
38
|
? {
|
39
39
|
abi: TAbi
|
40
|
-
args?: never
|
41
|
-
eventName?: never
|
40
|
+
args?: never | undefined
|
41
|
+
eventName?: never | undefined
|
42
42
|
strict: TStrict
|
43
43
|
}
|
44
44
|
: TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName>
|
@@ -50,14 +50,14 @@ export type Filter<
|
|
50
50
|
}
|
51
51
|
: {
|
52
52
|
abi: TAbi
|
53
|
-
args?: never
|
53
|
+
args?: never | undefined
|
54
54
|
eventName: TEventName
|
55
55
|
strict: TStrict
|
56
56
|
}
|
57
57
|
: {
|
58
|
-
abi?: never
|
59
|
-
args?: never
|
60
|
-
eventName?: never
|
61
|
-
strict?: never
|
58
|
+
abi?: never | undefined
|
59
|
+
args?: never | undefined
|
60
|
+
eventName?: never | undefined
|
61
|
+
strict?: never | undefined
|
62
62
|
})
|
63
63
|
: {})
|
package/types/kzg.ts
CHANGED
package/types/misc.ts
CHANGED
@@ -22,13 +22,13 @@ export type Signature = OneOf<
|
|
22
22
|
s: Hex
|
23
23
|
/** @deprecated use `yParity`. */
|
24
24
|
v: bigint
|
25
|
-
yParity?: number
|
25
|
+
yParity?: number | undefined
|
26
26
|
}
|
27
27
|
| {
|
28
28
|
r: Hex
|
29
29
|
s: Hex
|
30
30
|
/** @deprecated use `yParity`. */
|
31
|
-
v?: bigint
|
31
|
+
v?: bigint | undefined
|
32
32
|
yParity: number
|
33
33
|
}
|
34
34
|
>
|
package/types/rpc.ts
CHANGED
@@ -68,38 +68,38 @@ export type RpcTransaction<TPending extends boolean = boolean> = UnionOmit<
|
|
68
68
|
>
|
69
69
|
|
70
70
|
type SuccessResult<T> = {
|
71
|
-
method?: never
|
71
|
+
method?: never | undefined
|
72
72
|
result: T
|
73
|
-
error?: never
|
73
|
+
error?: never | undefined
|
74
74
|
}
|
75
75
|
type ErrorResult<T> = {
|
76
|
-
method?: never
|
77
|
-
result?: never
|
76
|
+
method?: never | undefined
|
77
|
+
result?: never | undefined
|
78
78
|
error: T
|
79
79
|
}
|
80
80
|
type Subscription<TResult, TError> = {
|
81
81
|
method: 'eth_subscription'
|
82
|
-
error?: never
|
83
|
-
result?: never
|
82
|
+
error?: never | undefined
|
83
|
+
result?: never | undefined
|
84
84
|
params: {
|
85
85
|
subscription: string
|
86
86
|
} & (
|
87
87
|
| {
|
88
88
|
result: TResult
|
89
|
-
error?: never
|
89
|
+
error?: never | undefined
|
90
90
|
}
|
91
91
|
| {
|
92
|
-
result?: never
|
92
|
+
result?: never | undefined
|
93
93
|
error: TError
|
94
94
|
}
|
95
95
|
)
|
96
96
|
}
|
97
97
|
|
98
98
|
export type RpcRequest = {
|
99
|
-
jsonrpc?: '2.0'
|
99
|
+
jsonrpc?: '2.0' | undefined
|
100
100
|
method: string
|
101
|
-
params?: any
|
102
|
-
id?: number
|
101
|
+
params?: any | undefined
|
102
|
+
id?: number | undefined
|
103
103
|
}
|
104
104
|
|
105
105
|
export type RpcResponse<TResult = any, TError = any> = {
|
@@ -118,15 +118,15 @@ export type RpcStateMapping = {
|
|
118
118
|
|
119
119
|
export type RpcAccountStateOverride = {
|
120
120
|
/** Fake balance to set for the account before executing the call. <32 bytes */
|
121
|
-
balance?: Hex
|
121
|
+
balance?: Hex | undefined
|
122
122
|
/** Fake nonce to set for the account before executing the call. <8 bytes */
|
123
|
-
nonce?: Hex
|
123
|
+
nonce?: Hex | undefined
|
124
124
|
/** Fake EVM bytecode to inject into the account before executing the call. */
|
125
|
-
code?: Hex
|
125
|
+
code?: Hex | undefined
|
126
126
|
/** Fake key-value mapping to override all slots in the account storage before executing the call. */
|
127
|
-
state?: RpcStateMapping
|
127
|
+
state?: RpcStateMapping | undefined
|
128
128
|
/** Fake key-value mapping to override individual slots in the account storage before executing the call. */
|
129
|
-
stateDiff?: RpcStateMapping
|
129
|
+
stateDiff?: RpcStateMapping | undefined
|
130
130
|
}
|
131
131
|
|
132
132
|
export type RpcStateOverride = {
|
package/types/stateOverride.ts
CHANGED
@@ -10,17 +10,17 @@ export type StateMapping = Array<{
|
|
10
10
|
export type StateOverride = Array<
|
11
11
|
{
|
12
12
|
address: Address
|
13
|
-
balance?: bigint
|
14
|
-
nonce?: number
|
15
|
-
code?: Hex
|
13
|
+
balance?: bigint | undefined
|
14
|
+
nonce?: number | undefined
|
15
|
+
code?: Hex | undefined
|
16
16
|
} & OneOf<
|
17
17
|
| {
|
18
18
|
/** Fake key-value mapping to override all slots in the account storage before executing the call. */
|
19
|
-
state?: StateMapping
|
19
|
+
state?: StateMapping | undefined
|
20
20
|
}
|
21
21
|
| {
|
22
22
|
/** Fake key-value mapping to override individual slots in the account storage before executing the call. */
|
23
|
-
stateDiff?: StateMapping
|
23
|
+
stateDiff?: StateMapping | undefined
|
24
24
|
}
|
25
25
|
>
|
26
26
|
>
|