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
@@ -41,48 +41,48 @@ export type GetLogsParameters<
|
|
41
41
|
_EventName extends string | undefined = MaybeAbiEventName<TAbiEvent>,
|
42
42
|
> = {
|
43
43
|
/** Address or list of addresses from which logs originated */
|
44
|
-
address?: Address | Address[]
|
44
|
+
address?: Address | Address[] | undefined
|
45
45
|
} & (
|
46
46
|
| {
|
47
47
|
event: TAbiEvent
|
48
|
-
events?: never
|
49
|
-
args?: MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName>
|
48
|
+
events?: never | undefined
|
49
|
+
args?: MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined
|
50
50
|
/**
|
51
51
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
52
52
|
* @default false
|
53
53
|
*/
|
54
|
-
strict?: TStrict
|
54
|
+
strict?: TStrict | undefined
|
55
55
|
}
|
56
56
|
| {
|
57
|
-
event?: never
|
57
|
+
event?: never | undefined
|
58
58
|
events: TAbiEvents
|
59
|
-
args?: never
|
59
|
+
args?: never | undefined
|
60
60
|
/**
|
61
61
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
62
62
|
* @default false
|
63
63
|
*/
|
64
|
-
strict?: TStrict
|
64
|
+
strict?: TStrict | undefined
|
65
65
|
}
|
66
66
|
| {
|
67
|
-
event?: never
|
68
|
-
events?: never
|
69
|
-
args?: never
|
70
|
-
strict?: never
|
67
|
+
event?: never | undefined
|
68
|
+
events?: never | undefined
|
69
|
+
args?: never | undefined
|
70
|
+
strict?: never | undefined
|
71
71
|
}
|
72
72
|
) &
|
73
73
|
(
|
74
74
|
| {
|
75
75
|
/** Block number or tag after which to include logs */
|
76
|
-
fromBlock?: TFromBlock | BlockNumber | BlockTag
|
76
|
+
fromBlock?: TFromBlock | BlockNumber | BlockTag | undefined
|
77
77
|
/** Block number or tag before which to include logs */
|
78
|
-
toBlock?: TToBlock | BlockNumber | BlockTag
|
79
|
-
blockHash?: never
|
78
|
+
toBlock?: TToBlock | BlockNumber | BlockTag | undefined
|
79
|
+
blockHash?: never | undefined
|
80
80
|
}
|
81
81
|
| {
|
82
|
-
fromBlock?: never
|
83
|
-
toBlock?: never
|
82
|
+
fromBlock?: never | undefined
|
83
|
+
toBlock?: never | undefined
|
84
84
|
/** Hash of block to include logs from */
|
85
|
-
blockHash?: Hash
|
85
|
+
blockHash?: Hash | undefined
|
86
86
|
}
|
87
87
|
)
|
88
88
|
|
@@ -24,16 +24,16 @@ export type GetProofParameters = {
|
|
24
24
|
} & (
|
25
25
|
| {
|
26
26
|
/** The block number. */
|
27
|
-
blockNumber?: bigint
|
28
|
-
blockTag?: never
|
27
|
+
blockNumber?: bigint | undefined
|
28
|
+
blockTag?: never | undefined
|
29
29
|
}
|
30
30
|
| {
|
31
|
-
blockNumber?: never
|
31
|
+
blockNumber?: never | undefined
|
32
32
|
/**
|
33
33
|
* The block tag.
|
34
34
|
* @default 'latest'
|
35
35
|
*/
|
36
|
-
blockTag?: BlockTag
|
36
|
+
blockTag?: BlockTag | undefined
|
37
37
|
}
|
38
38
|
)
|
39
39
|
|
@@ -17,12 +17,12 @@ export type GetStorageAtParameters = {
|
|
17
17
|
slot: Hex
|
18
18
|
} & (
|
19
19
|
| {
|
20
|
-
blockNumber?: never
|
21
|
-
blockTag?: BlockTag
|
20
|
+
blockNumber?: never | undefined
|
21
|
+
blockTag?: BlockTag | undefined
|
22
22
|
}
|
23
23
|
| {
|
24
|
-
blockNumber?: bigint
|
25
|
-
blockTag?: never
|
24
|
+
blockNumber?: bigint | undefined
|
25
|
+
blockTag?: never | undefined
|
26
26
|
}
|
27
27
|
)
|
28
28
|
|
@@ -21,37 +21,37 @@ export type GetTransactionParameters<TBlockTag extends BlockTag = 'latest'> =
|
|
21
21
|
| {
|
22
22
|
/** The block hash */
|
23
23
|
blockHash: Hash
|
24
|
-
blockNumber?: never
|
25
|
-
blockTag?: never
|
26
|
-
hash?: never
|
24
|
+
blockNumber?: never | undefined
|
25
|
+
blockTag?: never | undefined
|
26
|
+
hash?: never | undefined
|
27
27
|
/** The index of the transaction on the block. */
|
28
28
|
index: number
|
29
29
|
}
|
30
30
|
| {
|
31
|
-
blockHash?: never
|
31
|
+
blockHash?: never | undefined
|
32
32
|
/** The block number */
|
33
33
|
blockNumber: bigint
|
34
|
-
blockTag?: never
|
35
|
-
hash?: never
|
34
|
+
blockTag?: never | undefined
|
35
|
+
hash?: never | undefined
|
36
36
|
/** The index of the transaction on the block. */
|
37
37
|
index: number
|
38
38
|
}
|
39
39
|
| {
|
40
|
-
blockHash?: never
|
41
|
-
blockNumber?: never
|
40
|
+
blockHash?: never | undefined
|
41
|
+
blockNumber?: never | undefined
|
42
42
|
/** The block tag. */
|
43
43
|
blockTag: TBlockTag | BlockTag
|
44
|
-
hash?: never
|
44
|
+
hash?: never | undefined
|
45
45
|
/** The index of the transaction on the block. */
|
46
46
|
index: number
|
47
47
|
}
|
48
48
|
| {
|
49
|
-
blockHash?: never
|
50
|
-
blockNumber?: never
|
51
|
-
blockTag?: never
|
49
|
+
blockHash?: never | undefined
|
50
|
+
blockNumber?: never | undefined
|
51
|
+
blockTag?: never | undefined
|
52
52
|
/** The hash of the transaction. */
|
53
53
|
hash: Hash
|
54
|
-
index?: number
|
54
|
+
index?: number | undefined
|
55
55
|
}
|
56
56
|
|
57
57
|
export type GetTransactionReturnType<
|
@@ -21,10 +21,10 @@ export type GetTransactionConfirmationsParameters<
|
|
21
21
|
| {
|
22
22
|
/** The transaction hash. */
|
23
23
|
hash: Hash
|
24
|
-
transactionReceipt?: never
|
24
|
+
transactionReceipt?: never | undefined
|
25
25
|
}
|
26
26
|
| {
|
27
|
-
hash?: never
|
27
|
+
hash?: never | undefined
|
28
28
|
/** The transaction receipt. */
|
29
29
|
transactionReceipt: FormattedTransactionReceipt<TChain>
|
30
30
|
}
|
@@ -22,13 +22,13 @@ export type GetTransactionCountParameters = {
|
|
22
22
|
} & (
|
23
23
|
| {
|
24
24
|
/** The block number. */
|
25
|
-
blockNumber?: bigint
|
26
|
-
blockTag?: never
|
25
|
+
blockNumber?: bigint | undefined
|
26
|
+
blockTag?: never | undefined
|
27
27
|
}
|
28
28
|
| {
|
29
|
-
blockNumber?: never
|
29
|
+
blockNumber?: never | undefined
|
30
30
|
/** The block tag. Defaults to 'latest'. */
|
31
|
-
blockTag?: BlockTag
|
31
|
+
blockTag?: BlockTag | undefined
|
32
32
|
}
|
33
33
|
)
|
34
34
|
export type GetTransactionCountReturnType = number
|
@@ -54,10 +54,10 @@ export type SimulateContractParameters<
|
|
54
54
|
///
|
55
55
|
derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>,
|
56
56
|
> = {
|
57
|
-
account?: accountOverride
|
58
|
-
chain?: chainOverride
|
57
|
+
account?: accountOverride | undefined
|
58
|
+
chain?: chainOverride | undefined
|
59
59
|
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
60
|
-
dataSuffix?: Hex
|
60
|
+
dataSuffix?: Hex | undefined
|
61
61
|
} & ContractFunctionParameters<
|
62
62
|
abi,
|
63
63
|
'nonpayable' | 'payable',
|
@@ -55,28 +55,28 @@ export type WaitForTransactionReceiptParameters<
|
|
55
55
|
* The number of confirmations (blocks that have passed) to wait before resolving.
|
56
56
|
* @default 1
|
57
57
|
*/
|
58
|
-
confirmations?: number
|
58
|
+
confirmations?: number | undefined
|
59
59
|
/** The hash of the transaction. */
|
60
60
|
hash: Hash
|
61
61
|
/** Optional callback to emit if the transaction has been replaced. */
|
62
|
-
onReplaced?: (response: ReplacementReturnType<TChain>) => void
|
62
|
+
onReplaced?: ((response: ReplacementReturnType<TChain>) => void) | undefined
|
63
63
|
/**
|
64
64
|
* Polling frequency (in ms). Defaults to the client's pollingInterval config.
|
65
65
|
* @default client.pollingInterval
|
66
66
|
*/
|
67
|
-
pollingInterval?: number
|
67
|
+
pollingInterval?: number | undefined
|
68
68
|
/**
|
69
69
|
* Number of times to retry if the transaction or block is not found.
|
70
70
|
* @default 6 (exponential backoff)
|
71
71
|
*/
|
72
|
-
retryCount?: WithRetryParameters['retryCount']
|
72
|
+
retryCount?: WithRetryParameters['retryCount'] | undefined
|
73
73
|
/**
|
74
74
|
* Time to wait (in ms) between retries.
|
75
75
|
* @default `({ count }) => ~~(1 << count) * 200` (exponential backoff)
|
76
76
|
*/
|
77
|
-
retryDelay?: WithRetryParameters['delay']
|
77
|
+
retryDelay?: WithRetryParameters['delay'] | undefined
|
78
78
|
/** Optional timeout (in milliseconds) to wait before stopping polling. */
|
79
|
-
timeout?: number
|
79
|
+
timeout?: number | undefined
|
80
80
|
}
|
81
81
|
|
82
82
|
export type WaitForTransactionReceiptErrorType =
|
@@ -26,7 +26,7 @@ export type WatchBlockNumberParameters<
|
|
26
26
|
/** The callback to call when a new block number is received. */
|
27
27
|
onBlockNumber: OnBlockNumberFn
|
28
28
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
29
|
-
onError?: (error: Error) => void
|
29
|
+
onError?: ((error: Error) => void) | undefined
|
30
30
|
} & (
|
31
31
|
| (GetTransportConfig<TTransport>['type'] extends 'webSocket'
|
32
32
|
? {
|
@@ -180,7 +180,7 @@ export function watchBlockNumber<
|
|
180
180
|
onError?.(err as Error)
|
181
181
|
}
|
182
182
|
})()
|
183
|
-
return unsubscribe
|
183
|
+
return () => unsubscribe()
|
184
184
|
})
|
185
185
|
}
|
186
186
|
|
@@ -154,6 +154,7 @@ export function watchContractEvent<
|
|
154
154
|
typeof poll_ !== 'undefined' ? poll_ : client.transport.type !== 'webSocket'
|
155
155
|
|
156
156
|
const pollContractEvent = () => {
|
157
|
+
const strict = strict_ ?? false
|
157
158
|
const observerId = stringify([
|
158
159
|
'watchContractEvent',
|
159
160
|
address,
|
@@ -162,8 +163,8 @@ export function watchContractEvent<
|
|
162
163
|
client.uid,
|
163
164
|
eventName,
|
164
165
|
pollingInterval,
|
166
|
+
strict,
|
165
167
|
])
|
166
|
-
const strict = strict_ ?? false
|
167
168
|
|
168
169
|
return observe(observerId, { onLogs, onError }, (emit) => {
|
169
170
|
let previousBlockNumber: bigint
|
@@ -262,69 +263,84 @@ export function watchContractEvent<
|
|
262
263
|
}
|
263
264
|
|
264
265
|
const subscribeContractEvent = () => {
|
266
|
+
const strict = strict_ ?? false
|
267
|
+
const observerId = stringify([
|
268
|
+
'watchContractEvent',
|
269
|
+
address,
|
270
|
+
args,
|
271
|
+
batch,
|
272
|
+
client.uid,
|
273
|
+
eventName,
|
274
|
+
pollingInterval,
|
275
|
+
strict,
|
276
|
+
])
|
277
|
+
|
265
278
|
let active = true
|
266
279
|
let unsubscribe = () => (active = false)
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
eventName: eventName,
|
273
|
-
args,
|
274
|
-
} as EncodeEventTopicsParameters)
|
275
|
-
: []
|
276
|
-
|
277
|
-
const { unsubscribe: unsubscribe_ } = await client.transport.subscribe({
|
278
|
-
params: ['logs', { address, topics }],
|
279
|
-
onData(data: any) {
|
280
|
-
if (!active) return
|
281
|
-
const log = data.result
|
282
|
-
try {
|
283
|
-
const { eventName, args } = decodeEventLog({
|
280
|
+
return observe(observerId, { onLogs, onError }, (emit) => {
|
281
|
+
;(async () => {
|
282
|
+
try {
|
283
|
+
const topics: LogTopic[] = eventName
|
284
|
+
? encodeEventTopics({
|
284
285
|
abi: abi,
|
285
|
-
|
286
|
-
topics: log.topics as any,
|
287
|
-
strict: strict_,
|
288
|
-
})
|
289
|
-
const formatted = formatLog(log, {
|
286
|
+
eventName: eventName,
|
290
287
|
args,
|
291
|
-
|
292
|
-
|
293
|
-
onLogs([formatted] as any)
|
294
|
-
} catch (err) {
|
295
|
-
let eventName: string | undefined
|
296
|
-
let isUnnamed: boolean | undefined
|
297
|
-
if (
|
298
|
-
err instanceof DecodeLogDataMismatch ||
|
299
|
-
err instanceof DecodeLogTopicsMismatch
|
300
|
-
) {
|
301
|
-
// If strict mode is on, and log data/topics do not match event definition, skip.
|
302
|
-
if (strict_) return
|
303
|
-
eventName = err.abiItem.name
|
304
|
-
isUnnamed = err.abiItem.inputs?.some(
|
305
|
-
(x) => !('name' in x && x.name),
|
306
|
-
)
|
307
|
-
}
|
288
|
+
} as EncodeEventTopicsParameters)
|
289
|
+
: []
|
308
290
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
291
|
+
const { unsubscribe: unsubscribe_ } =
|
292
|
+
await client.transport.subscribe({
|
293
|
+
params: ['logs', { address, topics }],
|
294
|
+
onData(data: any) {
|
295
|
+
if (!active) return
|
296
|
+
const log = data.result
|
297
|
+
try {
|
298
|
+
const { eventName, args } = decodeEventLog({
|
299
|
+
abi: abi,
|
300
|
+
data: log.data,
|
301
|
+
topics: log.topics as any,
|
302
|
+
strict: strict_,
|
303
|
+
})
|
304
|
+
const formatted = formatLog(log, {
|
305
|
+
args,
|
306
|
+
eventName: eventName as string,
|
307
|
+
})
|
308
|
+
emit.onLogs([formatted] as any)
|
309
|
+
} catch (err) {
|
310
|
+
let eventName: string | undefined
|
311
|
+
let isUnnamed: boolean | undefined
|
312
|
+
if (
|
313
|
+
err instanceof DecodeLogDataMismatch ||
|
314
|
+
err instanceof DecodeLogTopicsMismatch
|
315
|
+
) {
|
316
|
+
// If strict mode is on, and log data/topics do not match event definition, skip.
|
317
|
+
if (strict_) return
|
318
|
+
eventName = err.abiItem.name
|
319
|
+
isUnnamed = err.abiItem.inputs?.some(
|
320
|
+
(x) => !('name' in x && x.name),
|
321
|
+
)
|
322
|
+
}
|
323
|
+
|
324
|
+
// Set args to empty if there is an error decoding (e.g. indexed/non-indexed params mismatch).
|
325
|
+
const formatted = formatLog(log, {
|
326
|
+
args: isUnnamed ? [] : {},
|
327
|
+
eventName,
|
328
|
+
})
|
329
|
+
emit.onLogs([formatted] as any)
|
330
|
+
}
|
331
|
+
},
|
332
|
+
onError(error: Error) {
|
333
|
+
emit.onError?.(error)
|
334
|
+
},
|
335
|
+
})
|
336
|
+
unsubscribe = unsubscribe_
|
337
|
+
if (!active) unsubscribe()
|
338
|
+
} catch (err) {
|
339
|
+
onError?.(err as Error)
|
340
|
+
}
|
341
|
+
})()
|
342
|
+
return () => unsubscribe()
|
343
|
+
})
|
328
344
|
}
|
329
345
|
|
330
346
|
return enablePolling ? pollContractEvent() : subscribeContractEvent()
|
@@ -69,38 +69,38 @@ export type WatchEventParameters<
|
|
69
69
|
_EventName extends string | undefined = MaybeAbiEventName<TAbiEvent>,
|
70
70
|
> = {
|
71
71
|
/** The address of the contract. */
|
72
|
-
address?: Address | Address[]
|
72
|
+
address?: Address | Address[] | undefined
|
73
73
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
74
|
-
onError?: (error: Error) => void
|
74
|
+
onError?: ((error: Error) => void) | undefined
|
75
75
|
/** The callback to call when new event logs are received. */
|
76
76
|
onLogs: WatchEventOnLogsFn<TAbiEvent, TAbiEvents, TStrict, _EventName>
|
77
77
|
} & GetPollOptions<TTransport> &
|
78
78
|
(
|
79
79
|
| {
|
80
80
|
event: TAbiEvent
|
81
|
-
events?: never
|
82
|
-
args?: MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName>
|
81
|
+
events?: never | undefined
|
82
|
+
args?: MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined
|
83
83
|
/**
|
84
84
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
85
85
|
* @default false
|
86
86
|
*/
|
87
|
-
strict?: TStrict
|
87
|
+
strict?: TStrict | undefined
|
88
88
|
}
|
89
89
|
| {
|
90
|
-
event?: never
|
91
|
-
events?: TAbiEvents
|
92
|
-
args?: never
|
90
|
+
event?: never | undefined
|
91
|
+
events?: TAbiEvents | undefined
|
92
|
+
args?: never | undefined
|
93
93
|
/**
|
94
94
|
* Whether or not the logs must match the indexed/non-indexed arguments on `event`.
|
95
95
|
* @default false
|
96
96
|
*/
|
97
|
-
strict?: TStrict
|
97
|
+
strict?: TStrict | undefined
|
98
98
|
}
|
99
99
|
| {
|
100
|
-
event?: never
|
101
|
-
events?: never
|
102
|
-
args?: never
|
103
|
-
strict?: never
|
100
|
+
event?: never | undefined
|
101
|
+
events?: never | undefined
|
102
|
+
args?: never | undefined
|
103
|
+
strict?: never | undefined
|
104
104
|
}
|
105
105
|
)
|
106
106
|
|
@@ -349,7 +349,7 @@ export function watchEvent<
|
|
349
349
|
onError?.(err as Error)
|
350
350
|
}
|
351
351
|
})()
|
352
|
-
return unsubscribe
|
352
|
+
return () => unsubscribe()
|
353
353
|
}
|
354
354
|
|
355
355
|
return enablePolling ? pollEvent() : subscribeEvent()
|
@@ -21,7 +21,7 @@ export type WatchPendingTransactionsParameters<
|
|
21
21
|
TTransport extends Transport = Transport,
|
22
22
|
> = {
|
23
23
|
/** The callback to call when an error occurred when trying to get for a new block. */
|
24
|
-
onError?: (error: Error) => void
|
24
|
+
onError?: ((error: Error) => void) | undefined
|
25
25
|
/** The callback to call when new transactions are received. */
|
26
26
|
onTransactions: OnTransactionsFn
|
27
27
|
} & GetPollOptions<TTransport>
|
@@ -157,7 +157,7 @@ export function watchPendingTransactions<
|
|
157
157
|
onError?.(err as Error)
|
158
158
|
}
|
159
159
|
})()
|
160
|
-
return unsubscribe
|
160
|
+
return () => unsubscribe()
|
161
161
|
}
|
162
162
|
|
163
163
|
return enablePolling
|
package/actions/test/mine.ts
CHANGED
package/actions/test/reset.ts
CHANGED
@@ -10,9 +10,9 @@ import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
10
10
|
|
11
11
|
export type ResetParameters = {
|
12
12
|
/** The block number to reset from. */
|
13
|
-
blockNumber?: bigint
|
13
|
+
blockNumber?: bigint | undefined
|
14
14
|
/** The JSON RPC URL. */
|
15
|
-
jsonRpcUrl?: string
|
15
|
+
jsonRpcUrl?: string | undefined
|
16
16
|
}
|
17
17
|
|
18
18
|
export type ResetErrorType = RequestErrorType | ErrorType
|
@@ -42,6 +42,7 @@ import type {
|
|
42
42
|
TransactionSerializable,
|
43
43
|
} from '../../types/transaction.js'
|
44
44
|
import type {
|
45
|
+
ExactPartial,
|
45
46
|
IsNever,
|
46
47
|
Prettify,
|
47
48
|
UnionOmit,
|
@@ -76,7 +77,7 @@ export type PrepareTransactionRequestRequest<
|
|
76
77
|
_derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>,
|
77
78
|
> = UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'> &
|
78
79
|
GetTransactionRequestKzgParameter & {
|
79
|
-
parameters?: PrepareTransactionRequestParameterType[]
|
80
|
+
parameters?: PrepareTransactionRequestParameterType[] | undefined
|
80
81
|
}
|
81
82
|
|
82
83
|
export type PrepareTransactionRequestParameters<
|
@@ -94,7 +95,7 @@ export type PrepareTransactionRequestParameters<
|
|
94
95
|
> = request &
|
95
96
|
GetAccountParameter<account, accountOverride, false> &
|
96
97
|
GetChainParameter<chain, chainOverride> &
|
97
|
-
GetTransactionRequestKzgParameter<request> & { chainId?: number }
|
98
|
+
GetTransactionRequestKzgParameter<request> & { chainId?: number | undefined }
|
98
99
|
|
99
100
|
export type PrepareTransactionRequestReturnType_<
|
100
101
|
chain extends Chain | undefined = Chain | undefined,
|
@@ -156,8 +157,8 @@ export type PrepareTransactionRequestReturnType<
|
|
156
157
|
: { account?: undefined; from?: undefined }),
|
157
158
|
IsNever<_transactionRequest> extends true
|
158
159
|
? unknown
|
159
|
-
:
|
160
|
-
> & { chainId?: number },
|
160
|
+
: ExactPartial<_transactionRequest>
|
161
|
+
> & { chainId?: number | undefined },
|
161
162
|
ParameterTypeToParameters<
|
162
163
|
request['parameters'] extends PrepareTransactionRequestParameterType[]
|
163
164
|
? request['parameters'][number]
|
@@ -64,7 +64,7 @@ export type WriteContractParameters<
|
|
64
64
|
FormattedTransactionRequest<derivedChain>['value']
|
65
65
|
> & {
|
66
66
|
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
67
|
-
dataSuffix?: Hex
|
67
|
+
dataSuffix?: Hex | undefined
|
68
68
|
}
|
69
69
|
> &
|
70
70
|
UnionEvaluate<
|
package/chains/celo/parsers.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { InvalidSerializedTransactionError } from '../../errors/transaction.js'
|
2
2
|
import type { Hex } from '../../types/misc.js'
|
3
|
+
import type { ExactPartial } from '../../types/utils.js'
|
3
4
|
import { isHex } from '../../utils/data/isHex.js'
|
4
5
|
import { sliceHex } from '../../utils/data/slice.js'
|
5
6
|
import { hexToBigInt, hexToNumber } from '../../utils/encoding/fromHex.js'
|
@@ -102,7 +103,7 @@ function parseTransactionCIP42(
|
|
102
103
|
})
|
103
104
|
}
|
104
105
|
|
105
|
-
const transaction:
|
106
|
+
const transaction: ExactPartial<TransactionSerializableCIP42> = {
|
106
107
|
chainId: hexToNumber(chainId as Hex),
|
107
108
|
type: 'cip42',
|
108
109
|
}
|
@@ -177,7 +178,7 @@ function parseTransactionCIP64(
|
|
177
178
|
})
|
178
179
|
}
|
179
180
|
|
180
|
-
const transaction:
|
181
|
+
const transaction: ExactPartial<TransactionSerializableCIP64> = {
|
181
182
|
chainId: hexToNumber(chainId as Hex),
|
182
183
|
type: 'cip64',
|
183
184
|
}
|
@@ -24,7 +24,7 @@ import { isCIP42, isCIP64, isEmpty, isPresent } from './utils.js'
|
|
24
24
|
|
25
25
|
export function serializeTransaction(
|
26
26
|
transaction: CeloTransactionSerializable,
|
27
|
-
signature?: Signature,
|
27
|
+
signature?: Signature | undefined,
|
28
28
|
) {
|
29
29
|
if (isCIP64(transaction))
|
30
30
|
return serializeTransactionCIP64(transaction, signature)
|
@@ -48,7 +48,7 @@ export type SerializeTransactionCIP64ReturnType = TransactionSerializedCIP64
|
|
48
48
|
// This will be in addition to the type 0x02 transaction as specified in EIP-1559.
|
49
49
|
function serializeTransactionCIP42(
|
50
50
|
transaction: TransactionSerializableCIP42,
|
51
|
-
signature?: Signature,
|
51
|
+
signature?: Signature | undefined,
|
52
52
|
): SerializeTransactionCIP42ReturnType {
|
53
53
|
assertTransactionCIP42(transaction)
|
54
54
|
const {
|
@@ -90,7 +90,7 @@ function serializeTransactionCIP42(
|
|
90
90
|
|
91
91
|
function serializeTransactionCIP64(
|
92
92
|
transaction: TransactionSerializableCIP64,
|
93
|
-
signature?: Signature,
|
93
|
+
signature?: Signature | undefined,
|
94
94
|
): SerializeTransactionCIP64ReturnType {
|
95
95
|
assertTransactionCIP64(transaction)
|
96
96
|
const {
|