viem 2.8.10 → 2.8.12
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/README.md +0 -12
- 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/cronos.js +3 -3
- package/_cjs/chains/definitions/cronos.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/index.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/cronos.js +3 -3
- package/_esm/chains/definitions/cronos.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/index.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/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/cronos.d.ts +3 -3
- 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 +9 -6
- 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/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/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/cronos.ts +3 -3
- 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 +16 -6
- 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/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/chains/celo/types.ts
CHANGED
@@ -21,7 +21,7 @@ import type {
|
|
21
21
|
TransactionSerializableBase,
|
22
22
|
TransactionSerialized,
|
23
23
|
} from '../../types/transaction.js'
|
24
|
-
import type { NeverBy, OneOf } from '../../types/utils.js'
|
24
|
+
import type { ExactPartial, NeverBy, OneOf } from '../../types/utils.js'
|
25
25
|
|
26
26
|
type CeloBlockExclude =
|
27
27
|
| 'difficulty'
|
@@ -112,9 +112,9 @@ type RpcTransaction<TPending extends boolean = boolean> =
|
|
112
112
|
}
|
113
113
|
|
114
114
|
type RpcTransactionRequest = RpcTransactionRequest_ & {
|
115
|
-
feeCurrency?: Address
|
116
|
-
gatewayFee?: Hex
|
117
|
-
gatewayFeeRecipient?: Address
|
115
|
+
feeCurrency?: Address | undefined
|
116
|
+
gatewayFee?: Hex | undefined
|
117
|
+
gatewayFeeRecipient?: Address | undefined
|
118
118
|
}
|
119
119
|
|
120
120
|
export type RpcTransactionCIP42<TPending extends boolean = boolean> = Omit<
|
@@ -143,24 +143,24 @@ export type RpcTransactionRequestCIP42 = TransactionRequestBase<
|
|
143
143
|
Quantity,
|
144
144
|
Index
|
145
145
|
> &
|
146
|
-
|
147
|
-
accessList?: AccessList
|
148
|
-
feeCurrency?: Address
|
149
|
-
gatewayFee?: Hex
|
150
|
-
gatewayFeeRecipient?: Address
|
151
|
-
type?: '0x7c'
|
146
|
+
ExactPartial<FeeValuesEIP1559<Quantity>> & {
|
147
|
+
accessList?: AccessList | undefined
|
148
|
+
feeCurrency?: Address | undefined
|
149
|
+
gatewayFee?: Hex | undefined
|
150
|
+
gatewayFeeRecipient?: Address | undefined
|
151
|
+
type?: '0x7c' | undefined
|
152
152
|
}
|
153
153
|
|
154
154
|
export type RpcTransactionRequestCIP64 = TransactionRequestBase<
|
155
155
|
Quantity,
|
156
156
|
Index
|
157
157
|
> &
|
158
|
-
|
159
|
-
accessList?: AccessList
|
160
|
-
feeCurrency?: Address
|
158
|
+
ExactPartial<FeeValuesEIP1559<Quantity>> & {
|
159
|
+
accessList?: AccessList | undefined
|
160
|
+
feeCurrency?: Address | undefined
|
161
161
|
gatewayFee?: undefined
|
162
162
|
gatewayFeeRecipient?: undefined
|
163
|
-
type?: '0x7b'
|
163
|
+
type?: '0x7b' | undefined
|
164
164
|
}
|
165
165
|
|
166
166
|
type Transaction<TPending extends boolean = boolean> = Transaction_<
|
@@ -192,53 +192,53 @@ export type TransactionCIP64<TPending extends boolean = boolean> =
|
|
192
192
|
}
|
193
193
|
|
194
194
|
type TransactionRequest = TransactionRequest_ & {
|
195
|
-
feeCurrency?: Address
|
196
|
-
gatewayFee?: bigint
|
197
|
-
gatewayFeeRecipient?: Address
|
195
|
+
feeCurrency?: Address | undefined
|
196
|
+
gatewayFee?: bigint | undefined
|
197
|
+
gatewayFeeRecipient?: Address | undefined
|
198
198
|
}
|
199
199
|
|
200
200
|
export type TransactionRequestCIP42 = TransactionRequestBase &
|
201
|
-
|
202
|
-
accessList?: AccessList
|
203
|
-
feeCurrency?: Address
|
204
|
-
gatewayFee?: bigint
|
205
|
-
gatewayFeeRecipient?: Address
|
206
|
-
type?: 'cip42'
|
201
|
+
ExactPartial<FeeValuesEIP1559> & {
|
202
|
+
accessList?: AccessList | undefined
|
203
|
+
feeCurrency?: Address | undefined
|
204
|
+
gatewayFee?: bigint | undefined
|
205
|
+
gatewayFeeRecipient?: Address | undefined
|
206
|
+
type?: 'cip42' | undefined
|
207
207
|
}
|
208
208
|
|
209
209
|
export type TransactionRequestCIP64 = TransactionRequestBase &
|
210
|
-
|
211
|
-
accessList?: AccessList
|
212
|
-
feeCurrency?: Address
|
210
|
+
ExactPartial<FeeValuesEIP1559> & {
|
211
|
+
accessList?: AccessList | undefined
|
212
|
+
feeCurrency?: Address | undefined
|
213
213
|
gatewayFee?: undefined
|
214
214
|
gatewayFeeRecipient?: undefined
|
215
|
-
type?: 'cip64'
|
215
|
+
type?: 'cip64' | undefined
|
216
216
|
}
|
217
217
|
|
218
218
|
export type TransactionSerializableCIP42<
|
219
219
|
TQuantity = bigint,
|
220
220
|
TIndex = number,
|
221
221
|
> = TransactionSerializableBase<TQuantity, TIndex> &
|
222
|
-
|
223
|
-
accessList?: AccessList
|
224
|
-
feeCurrency?: Address
|
225
|
-
gatewayFeeRecipient?: Address
|
226
|
-
gatewayFee?: TQuantity
|
222
|
+
ExactPartial<FeeValuesEIP1559<TQuantity>> & {
|
223
|
+
accessList?: AccessList | undefined
|
224
|
+
feeCurrency?: Address | undefined
|
225
|
+
gatewayFeeRecipient?: Address | undefined
|
226
|
+
gatewayFee?: TQuantity | undefined
|
227
227
|
chainId: number
|
228
|
-
type?: 'cip42'
|
228
|
+
type?: 'cip42' | undefined
|
229
229
|
}
|
230
230
|
|
231
231
|
export type TransactionSerializableCIP64<
|
232
232
|
TQuantity = bigint,
|
233
233
|
TIndex = number,
|
234
234
|
> = TransactionSerializableBase<TQuantity, TIndex> &
|
235
|
-
|
236
|
-
accessList?: AccessList
|
237
|
-
feeCurrency?: Address
|
235
|
+
ExactPartial<FeeValuesEIP1559<TQuantity>> & {
|
236
|
+
accessList?: AccessList | undefined
|
237
|
+
feeCurrency?: Address | undefined
|
238
238
|
gatewayFee?: undefined
|
239
239
|
gatewayFeeRecipient?: undefined
|
240
240
|
chainId: number
|
241
|
-
type?: 'cip64'
|
241
|
+
type?: 'cip64' | undefined
|
242
242
|
}
|
243
243
|
|
244
244
|
export type TransactionSerializedCIP42 = `0x7c${string}`
|
@@ -13,9 +13,9 @@ export const cronos = /*#__PURE__*/ defineChain({
|
|
13
13
|
},
|
14
14
|
blockExplorers: {
|
15
15
|
default: {
|
16
|
-
name: '
|
17
|
-
url: 'https://
|
18
|
-
apiUrl: 'https://api.
|
16
|
+
name: 'Cronos Explorer',
|
17
|
+
url: 'https://explorer.cronos.org',
|
18
|
+
apiUrl: 'https://explorer-api.cronos.org/mainnet/api',
|
19
19
|
},
|
20
20
|
},
|
21
21
|
contracts: {
|
@@ -22,4 +22,10 @@ export const lukso = /*#__PURE__*/ defineChain({
|
|
22
22
|
apiUrl: 'https://api.explorer.execution.mainnet.lukso.network/api',
|
23
23
|
},
|
24
24
|
},
|
25
|
+
contracts: {
|
26
|
+
multicall3: {
|
27
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
28
|
+
blockCreated: 468183,
|
29
|
+
},
|
30
|
+
},
|
25
31
|
})
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const luksoTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 4201,
|
5
|
+
name: 'LUKSO Testnet',
|
6
|
+
nativeCurrency: {
|
7
|
+
decimals: 18,
|
8
|
+
name: 'LUKSO Testnet',
|
9
|
+
symbol: 'LYXt',
|
10
|
+
},
|
11
|
+
rpcUrls: {
|
12
|
+
default: {
|
13
|
+
http: ['https://rpc.testnet.lukso.network'],
|
14
|
+
webSocket: ['wss://ws-rpc.testnet.lukso.network'],
|
15
|
+
},
|
16
|
+
},
|
17
|
+
blockExplorers: {
|
18
|
+
default: {
|
19
|
+
name: 'LUKSO Testnet Explorer',
|
20
|
+
url: 'https://explorer.execution.testnet.lukso.network',
|
21
|
+
apiUrl: 'https://api.explorer.execution.testnet.lukso.network/api',
|
22
|
+
},
|
23
|
+
},
|
24
|
+
contracts: {
|
25
|
+
multicall3: {
|
26
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
27
|
+
blockCreated: 605348,
|
28
|
+
},
|
29
|
+
},
|
30
|
+
testnet: true,
|
31
|
+
})
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const zkSyncInMemoryNode = /*#__PURE__*/ defineChain({
|
4
|
+
id: 260,
|
5
|
+
name: 'zkSync InMemory Node',
|
6
|
+
network: 'zksync-in-memory-node',
|
7
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
8
|
+
rpcUrls: {
|
9
|
+
default: {
|
10
|
+
http: ['http://localhost:8011'],
|
11
|
+
},
|
12
|
+
},
|
13
|
+
testnet: true,
|
14
|
+
})
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const zkSyncLocalNode = /*#__PURE__*/ defineChain({
|
4
|
+
id: 270,
|
5
|
+
name: 'zkSync CLI Local Node',
|
6
|
+
network: 'zksync-cli-local-node',
|
7
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
8
|
+
rpcUrls: {
|
9
|
+
default: {
|
10
|
+
http: ['http://localhost:3050'],
|
11
|
+
},
|
12
|
+
},
|
13
|
+
testnet: true,
|
14
|
+
})
|
package/chains/index.ts
CHANGED
@@ -111,6 +111,7 @@ export { lineaTestnet } from './definitions/lineaTestnet.js'
|
|
111
111
|
export { liskSepolia } from './definitions/liskSepolia.js'
|
112
112
|
export { localhost } from './definitions/localhost.js'
|
113
113
|
export { lukso } from './definitions/lukso.js'
|
114
|
+
export { luksoTestnet } from './definitions/luksoTestnet.js'
|
114
115
|
export { mainnet } from './definitions/mainnet.js'
|
115
116
|
export { mandala } from './definitions/mandala.js'
|
116
117
|
export { manta } from './definitions/manta.js'
|
@@ -217,16 +218,18 @@ export { wemixTestnet } from './definitions/wemixTestnet.js'
|
|
217
218
|
export { x1Testnet } from './definitions/x1Testnet.js'
|
218
219
|
export { xdc } from './definitions/xdc.js'
|
219
220
|
export { xdcTestnet } from './definitions/xdcTestnet.js'
|
221
|
+
export { zetachain } from './definitions/zetachain.js'
|
222
|
+
export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
|
220
223
|
export { zhejiang } from './definitions/zhejiang.js'
|
224
|
+
export { zilliqa } from './definitions/zilliqa.js'
|
225
|
+
export { zilliqaTestnet } from './definitions/zilliqaTestnet.js'
|
221
226
|
export { zkFair } from './definitions/zkFair.js'
|
222
227
|
export { zkFairTestnet } from './definitions/zkFairTestnet.js'
|
223
228
|
export { zkSync } from './definitions/zkSync.js'
|
224
|
-
export {
|
229
|
+
export { zkSyncInMemoryNode } from './definitions/zkSyncInMemoryNode.js'
|
230
|
+
export { zkSyncLocalNode } from './definitions/zkSyncLocalNode.js'
|
225
231
|
export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
|
226
|
-
export {
|
227
|
-
export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
|
228
|
-
export { zilliqa } from './definitions/zilliqa.js'
|
229
|
-
export { zilliqaTestnet } from './definitions/zilliqaTestnet.js'
|
232
|
+
export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
|
230
233
|
export { zora } from './definitions/zora.js'
|
231
234
|
export { zoraSepolia } from './definitions/zoraSepolia.js'
|
232
235
|
export { zoraTestnet } from './definitions/zoraTestnet.js'
|
@@ -272,7 +275,14 @@ export type {
|
|
272
275
|
OpStackRpcBlock,
|
273
276
|
OpStackRpcBlockOverrides,
|
274
277
|
} from './opStack/types/block.js'
|
275
|
-
export type {
|
278
|
+
export type {
|
279
|
+
SerializeTransactionDepositReturnType,
|
280
|
+
SerializeTransactionErrorType,
|
281
|
+
SerializeTransactionReturnType,
|
282
|
+
serializeTransaction as serializeTransactionOpStack,
|
283
|
+
assertTransactionDeposit as assertTransactionDepositOpStack,
|
284
|
+
serializers as serializersOpStack,
|
285
|
+
} from './opStack/serializers.js'
|
276
286
|
export type {
|
277
287
|
OpStackDepositTransaction,
|
278
288
|
OpStackRpcDepositTransaction,
|
@@ -37,19 +37,19 @@ export type BuildDepositTransactionParameters<
|
|
37
37
|
> = GetAccountParameter<account, accountOverride, false> &
|
38
38
|
GetChainParameter<chain, chainOverride> & {
|
39
39
|
/** Gas limit for transaction execution on the L2. */
|
40
|
-
gas?: bigint
|
40
|
+
gas?: bigint | undefined
|
41
41
|
/** Value in wei to mint (deposit) on the L2. Debited from the caller's L1 balance. */
|
42
|
-
mint?: bigint
|
42
|
+
mint?: bigint | undefined
|
43
43
|
/** Value in wei sent with this transaction on the L2. Debited from the caller's L2 balance. */
|
44
|
-
value?: bigint
|
44
|
+
value?: bigint | undefined
|
45
45
|
} & (
|
46
46
|
| {
|
47
47
|
/** Encoded contract method & arguments. */
|
48
|
-
data?: Hex
|
48
|
+
data?: Hex | undefined
|
49
49
|
/** Whether or not this is a contract deployment transaction. */
|
50
|
-
isCreation?: false
|
50
|
+
isCreation?: false | undefined
|
51
51
|
/** L2 Transaction recipient. */
|
52
|
-
to?: Address
|
52
|
+
to?: Address | undefined
|
53
53
|
}
|
54
54
|
| {
|
55
55
|
/** Contract deployment bytecode. Required for contract deployment transactions. */
|
@@ -57,7 +57,7 @@ export type BuildDepositTransactionParameters<
|
|
57
57
|
/** Whether or not this is a contract deployment transaction. */
|
58
58
|
isCreation: true
|
59
59
|
/** L2 Transaction recipient. Cannot exist for contract deployment transactions. */
|
60
|
-
to?: never
|
60
|
+
to?: never | undefined
|
61
61
|
}
|
62
62
|
)
|
63
63
|
|
@@ -28,13 +28,13 @@ export type BuildInitiateWithdrawalParameters<
|
|
28
28
|
> = GetAccountParameter<account, accountOverride, false> &
|
29
29
|
GetChainParameter<chain, chainOverride> & {
|
30
30
|
/** Encoded contract method & arguments. */
|
31
|
-
data?: Hex
|
31
|
+
data?: Hex | undefined
|
32
32
|
/** Gas limit for transaction execution on the L1. */
|
33
|
-
gas?: bigint
|
33
|
+
gas?: bigint | undefined
|
34
34
|
/** L1 Transaction recipient. */
|
35
35
|
to: Address
|
36
36
|
/** Value in wei to withdrawal to the L1. Debited from the caller's L2 balance. */
|
37
|
-
value?: bigint
|
37
|
+
value?: bigint | undefined
|
38
38
|
}
|
39
39
|
|
40
40
|
export type BuildInitiateWithdrawalReturnType<
|
@@ -53,7 +53,7 @@ export type DepositTransactionParameters<
|
|
53
53
|
* Gas limit for transaction execution on the L1.
|
54
54
|
* `null` to skip gas estimation & defer calculation to signer.
|
55
55
|
*/
|
56
|
-
gas?: bigint | null
|
56
|
+
gas?: bigint | null | undefined
|
57
57
|
}
|
58
58
|
export type DepositTransactionReturnType = Hash
|
59
59
|
export type DepositTransactionErrorType =
|
@@ -44,7 +44,7 @@ export type EstimateDepositTransactionGasParameters<
|
|
44
44
|
/** L2 transaction request. */
|
45
45
|
request: DepositRequest
|
46
46
|
/** Gas limit for transaction execution on the L1. */
|
47
|
-
gas?: bigint | null
|
47
|
+
gas?: bigint | null | undefined
|
48
48
|
}
|
49
49
|
export type EstimateDepositTransactionGasReturnType = bigint
|
50
50
|
export type EstimateDepositTransactionGasErrorType =
|
@@ -41,7 +41,7 @@ export type EstimateFinalizeWithdrawalGasParameters<
|
|
41
41
|
GetChainParameter<chain, chainOverride> &
|
42
42
|
GetContractAddressParameter<_derivedChain, 'portal'> & {
|
43
43
|
/** Gas limit for transaction execution on the L2. */
|
44
|
-
gas?: bigint | null
|
44
|
+
gas?: bigint | null | undefined
|
45
45
|
withdrawal: Withdrawal
|
46
46
|
}
|
47
47
|
export type EstimateFinalizeWithdrawalGasReturnType = bigint
|
@@ -40,7 +40,7 @@ export type EstimateInitiateWithdrawalGasParameters<
|
|
40
40
|
GetAccountParameter<account, Account | Address> &
|
41
41
|
GetChainParameter<chain, chainOverride> & {
|
42
42
|
/** Gas limit for transaction execution on the L2. */
|
43
|
-
gas?: bigint | null
|
43
|
+
gas?: bigint | null | undefined
|
44
44
|
/**
|
45
45
|
* Withdrawal request.
|
46
46
|
* Supplied to the L2ToL1MessagePasser `initiateWithdrawal` method.
|
@@ -41,7 +41,7 @@ export type EstimateL1FeeParameters<
|
|
41
41
|
GetAccountParameter<TAccount> &
|
42
42
|
GetChainParameter<TChain, TChainOverride> & {
|
43
43
|
/** Gas price oracle address. */
|
44
|
-
gasPriceOracleAddress?: Address
|
44
|
+
gasPriceOracleAddress?: Address | undefined
|
45
45
|
}
|
46
46
|
|
47
47
|
export type EstimateL1FeeReturnType = bigint
|
@@ -41,7 +41,7 @@ export type EstimateL1GasParameters<
|
|
41
41
|
GetAccountParameter<TAccount> &
|
42
42
|
GetChainParameter<TChain, TChainOverride> & {
|
43
43
|
/** Gas price oracle address. */
|
44
|
-
gasPriceOracleAddress?: Address
|
44
|
+
gasPriceOracleAddress?: Address | undefined
|
45
45
|
}
|
46
46
|
|
47
47
|
export type EstimateL1GasReturnType = bigint
|
@@ -41,7 +41,7 @@ export type EstimateProveWithdrawalGasParameters<
|
|
41
41
|
GetChainParameter<chain, chainOverride> &
|
42
42
|
GetContractAddressParameter<_derivedChain, 'portal'> & {
|
43
43
|
/** Gas limit for transaction execution on the L2. */
|
44
|
-
gas?: bigint | null
|
44
|
+
gas?: bigint | null | undefined
|
45
45
|
l2OutputIndex: bigint
|
46
46
|
outputRootProof: {
|
47
47
|
version: Hex
|
@@ -50,7 +50,7 @@ export type FinalizeWithdrawalParameters<
|
|
50
50
|
* Gas limit for transaction execution on the L1.
|
51
51
|
* `null` to skip gas estimation & defer calculation to signer.
|
52
52
|
*/
|
53
|
-
gas?: bigint | null
|
53
|
+
gas?: bigint | null | undefined
|
54
54
|
withdrawal: Withdrawal
|
55
55
|
}
|
56
56
|
export type FinalizeWithdrawalReturnType = Hash
|
@@ -21,7 +21,7 @@ export type GetL1BaseFeeParameters<
|
|
21
21
|
TChainOverride extends Chain | undefined = undefined,
|
22
22
|
> = GetChainParameter<TChain, TChainOverride> & {
|
23
23
|
/** Gas price oracle address. */
|
24
|
-
gasPriceOracleAddress?: Address
|
24
|
+
gasPriceOracleAddress?: Address | undefined
|
25
25
|
}
|
26
26
|
|
27
27
|
export type GetL1BaseFeeReturnType = bigint
|
@@ -56,7 +56,7 @@ export async function getL1BaseFee<
|
|
56
56
|
TChainOverride extends Chain | undefined = undefined,
|
57
57
|
>(
|
58
58
|
client: Client<Transport, TChain>,
|
59
|
-
args?: GetL1BaseFeeParameters<TChain, TChainOverride
|
59
|
+
args?: GetL1BaseFeeParameters<TChain, TChainOverride> | undefined,
|
60
60
|
): Promise<GetL1BaseFeeReturnType> {
|
61
61
|
const {
|
62
62
|
chain = client.chain,
|
@@ -28,7 +28,7 @@ export type GetTimeToNextL2OutputParameters<
|
|
28
28
|
* The buffer to account for discrepencies between non-deterministic time intervals.
|
29
29
|
* @default 1.1
|
30
30
|
*/
|
31
|
-
intervalBuffer?: number
|
31
|
+
intervalBuffer?: number | undefined
|
32
32
|
l2BlockNumber: bigint
|
33
33
|
}
|
34
34
|
export type GetTimeToNextL2OutputReturnType = {
|
@@ -43,7 +43,7 @@ export type GetTimeToNextL2OutputReturnType = {
|
|
43
43
|
* Estimated timestamp of the next L2 output.
|
44
44
|
* `undefined` if the next L2 output has already been submitted.
|
45
45
|
*/
|
46
|
-
timestamp?: number
|
46
|
+
timestamp?: number | undefined
|
47
47
|
}
|
48
48
|
export type GetTimeToNextL2OutputErrorType =
|
49
49
|
| MulticallErrorType
|
@@ -26,7 +26,9 @@ export type GetTimeToProveParameters<
|
|
26
26
|
* The buffer to account for discrepencies between non-deterministic time intervals.
|
27
27
|
* @default 1.1
|
28
28
|
*/
|
29
|
-
intervalBuffer?:
|
29
|
+
intervalBuffer?:
|
30
|
+
| GetTimeToNextL2OutputParameters['intervalBuffer']
|
31
|
+
| undefined
|
30
32
|
receipt: TransactionReceipt
|
31
33
|
}
|
32
34
|
export type GetTimeToProveReturnType = GetTimeToNextL2OutputReturnType
|
@@ -49,7 +49,7 @@ export type ProveWithdrawalParameters<
|
|
49
49
|
* Gas limit for transaction execution on the L1.
|
50
50
|
* `null` to skip gas estimation & defer calculation to signer.
|
51
51
|
*/
|
52
|
-
gas?: bigint | null
|
52
|
+
gas?: bigint | null | undefined
|
53
53
|
l2OutputIndex: bigint
|
54
54
|
outputRootProof: {
|
55
55
|
version: Hex
|
@@ -31,13 +31,15 @@ export type WaitForNextL2OutputParameters<
|
|
31
31
|
* The buffer to account for discrepencies between non-deterministic time intervals.
|
32
32
|
* @default 1.1
|
33
33
|
*/
|
34
|
-
intervalBuffer?:
|
34
|
+
intervalBuffer?:
|
35
|
+
| GetTimeToNextL2OutputParameters['intervalBuffer']
|
36
|
+
| undefined
|
35
37
|
l2BlockNumber: bigint
|
36
38
|
/**
|
37
39
|
* Polling frequency (in ms). Defaults to Client's pollingInterval config.
|
38
40
|
* @default client.pollingInterval
|
39
41
|
*/
|
40
|
-
pollingInterval?: number
|
42
|
+
pollingInterval?: number | undefined
|
41
43
|
}
|
42
44
|
export type WaitForNextL2OutputReturnType = GetL2OutputReturnType
|
43
45
|
export type WaitForNextL2OutputErrorType =
|
@@ -32,7 +32,7 @@ export type WaitToProveParameters<
|
|
32
32
|
* Polling frequency (in ms). Defaults to Client's pollingInterval config.
|
33
33
|
* @default client.pollingInterval
|
34
34
|
*/
|
35
|
-
pollingInterval?: number
|
35
|
+
pollingInterval?: number | undefined
|
36
36
|
}
|
37
37
|
export type WaitToProveReturnType = {
|
38
38
|
withdrawal: Withdrawal
|
@@ -390,7 +390,7 @@ export type PublicActionsL2<
|
|
390
390
|
* const l1BaseFee = await client.getL1BaseFee()
|
391
391
|
*/
|
392
392
|
getL1BaseFee: <chainOverride extends Chain | undefined = undefined>(
|
393
|
-
parameters?: GetL1BaseFeeParameters<chain, chainOverride
|
393
|
+
parameters?: GetL1BaseFeeParameters<chain, chainOverride> | undefined,
|
394
394
|
) => Promise<GetL1BaseFeeReturnType>
|
395
395
|
/**
|
396
396
|
* Estimates the amount of L1 data gas required to execute an L2 transaction.
|
@@ -482,10 +482,10 @@ export type PublicActionsL2<
|
|
482
482
|
* import { optimism } from 'viem/chains'
|
483
483
|
* import { buildDepositTransaction } from 'viem/wallet'
|
484
484
|
*
|
485
|
-
* export const
|
485
|
+
* export const opStackPublicClientL2 = createPublicClient({
|
486
486
|
* chain: optimism,
|
487
487
|
* transport: http(),
|
488
|
-
* }).extend(
|
488
|
+
* }).extend(publicActionsL2())
|
489
489
|
*/
|
490
490
|
export function publicActionsL2() {
|
491
491
|
return <
|
@@ -5,17 +5,17 @@ export type DepositRequest = {
|
|
5
5
|
/** Gas limit for transaction execution on the L2. */
|
6
6
|
gas: bigint
|
7
7
|
/** Value in wei to mint (deposit) on the L2. Debited from the caller's L1 balance. */
|
8
|
-
mint?: bigint
|
8
|
+
mint?: bigint | undefined
|
9
9
|
/** Value in wei sent with this transaction on the L2. Debited from the caller's L2 balance. */
|
10
|
-
value?: bigint
|
10
|
+
value?: bigint | undefined
|
11
11
|
} & (
|
12
12
|
| {
|
13
13
|
/** Encoded contract method & arguments. */
|
14
|
-
data?: Hex
|
14
|
+
data?: Hex | undefined
|
15
15
|
/** Whether or not this is a contract deployment transaction. */
|
16
|
-
isCreation?: false
|
16
|
+
isCreation?: false | undefined
|
17
17
|
/** L2 Transaction recipient. */
|
18
|
-
to?: Address
|
18
|
+
to?: Address | undefined
|
19
19
|
}
|
20
20
|
| {
|
21
21
|
/** Contract deployment bytecode. Required for contract deployment transactions. */
|
@@ -23,6 +23,6 @@ export type DepositRequest = {
|
|
23
23
|
/** Whether or not this is a contract deployment transaction. */
|
24
24
|
isCreation: true
|
25
25
|
/** L2 Transaction recipient. Cannot exist for contract deployment transactions. */
|
26
|
-
to?: never
|
26
|
+
to?: never | undefined
|
27
27
|
}
|
28
28
|
)
|
@@ -27,8 +27,8 @@ type RpcTransaction<TPending extends boolean = boolean> =
|
|
27
27
|
export type OpStackRpcDepositTransaction<TPending extends boolean = boolean> =
|
28
28
|
Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> &
|
29
29
|
FeeValuesEIP1559<Quantity> & {
|
30
|
-
isSystemTx?: boolean
|
31
|
-
mint?: Hex
|
30
|
+
isSystemTx?: boolean | undefined
|
31
|
+
mint?: Hex | undefined
|
32
32
|
sourceHash: Hex
|
33
33
|
type: '0x7e'
|
34
34
|
}
|
@@ -59,7 +59,7 @@ export type OpStackDepositTransaction<TPending extends boolean = boolean> =
|
|
59
59
|
TransactionBase<bigint, number, TPending> &
|
60
60
|
FeeValuesEIP1559 & {
|
61
61
|
isSystemTx?: boolean
|
62
|
-
mint?: bigint
|
62
|
+
mint?: bigint | undefined
|
63
63
|
sourceHash: Hex
|
64
64
|
type: 'deposit'
|
65
65
|
}
|
@@ -98,7 +98,7 @@ export type TransactionSerializableDeposit<
|
|
98
98
|
> & {
|
99
99
|
from: Hex
|
100
100
|
isSystemTx?: boolean
|
101
|
-
mint?: bigint
|
101
|
+
mint?: bigint | undefined
|
102
102
|
sourceHash: Hex
|
103
103
|
type: 'deposit'
|
104
104
|
}
|
@@ -3,13 +3,13 @@ import type { Hex } from '../../../types/misc.js'
|
|
3
3
|
|
4
4
|
export type WithdrawalRequest = {
|
5
5
|
/** Encoded contract method & arguments. */
|
6
|
-
data?: Hex
|
6
|
+
data?: Hex | undefined
|
7
7
|
/** Gas limit for transaction execution on the L1. */
|
8
8
|
gas: bigint
|
9
9
|
/** L1 Transaction recipient. */
|
10
10
|
to: Address
|
11
11
|
/** Value in wei to withdrawal to the L1. Debited from the caller's L2 balance. */
|
12
|
-
value?: bigint
|
12
|
+
value?: bigint | undefined
|
13
13
|
}
|
14
14
|
|
15
15
|
export type Withdrawal = {
|
@@ -15,7 +15,7 @@ import { isEIP712Transaction } from './utils/isEip712Transaction.js'
|
|
15
15
|
|
16
16
|
export function serializeTransaction(
|
17
17
|
transaction: ZkSyncTransactionSerializable,
|
18
|
-
signature?: Signature,
|
18
|
+
signature?: Signature | undefined,
|
19
19
|
) {
|
20
20
|
if (isEIP712Transaction(transaction))
|
21
21
|
return serializeTransactionEIP712(
|
@@ -8,10 +8,10 @@ type PaymasterParams = {
|
|
8
8
|
}
|
9
9
|
|
10
10
|
export type ZkSyncEip712Meta = {
|
11
|
-
gasPerPubdata?: Hex
|
12
|
-
factoryDeps?: Hex[]
|
13
|
-
customSignature?: Hex
|
14
|
-
paymasterParams?: PaymasterParams
|
11
|
+
gasPerPubdata?: Hex | undefined
|
12
|
+
factoryDeps?: Hex[] | undefined
|
13
|
+
customSignature?: Hex | undefined
|
14
|
+
paymasterParams?: PaymasterParams | undefined
|
15
15
|
}
|
16
16
|
|
17
17
|
type EIP712FieldType = 'uint256' | 'bytes' | 'bytes32[]'
|