viem 2.17.2 → 2.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createBlockFilter.js.map +1 -1
- package/_cjs/actions/public/createEventFilter.js.map +1 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/getBalance.js.map +1 -1
- package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
- package/_cjs/actions/public/getBlock.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getChainId.js.map +1 -1
- package/_cjs/actions/public/getCode.js.map +1 -1
- package/_cjs/actions/public/getFeeHistory.js.map +1 -1
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getGasPrice.js.map +1 -1
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/getProof.js.map +1 -1
- package/_cjs/actions/public/getStorageAt.js.map +1 -1
- package/_cjs/actions/public/getTransaction.js.map +1 -1
- package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_cjs/actions/public/getTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/uninstallFilter.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +9 -0
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/test/dropTransaction.js.map +1 -1
- package/_cjs/actions/test/dumpState.js.map +1 -1
- package/_cjs/actions/test/getAutomine.js.map +1 -1
- package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
- package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
- package/_cjs/actions/test/impersonateAccount.js.map +1 -1
- package/_cjs/actions/test/increaseTime.js.map +1 -1
- package/_cjs/actions/test/inspectTxpool.js.map +1 -1
- package/_cjs/actions/test/loadState.js.map +1 -1
- package/_cjs/actions/test/mine.js.map +1 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/reset.js.map +1 -1
- package/_cjs/actions/test/revert.js.map +1 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_cjs/actions/test/setAutomine.js.map +1 -1
- package/_cjs/actions/test/setBalance.js.map +1 -1
- package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/setCode.js.map +1 -1
- package/_cjs/actions/test/setCoinbase.js.map +1 -1
- package/_cjs/actions/test/setIntervalMining.js.map +1 -1
- package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
- package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_cjs/actions/test/setNonce.js.map +1 -1
- package/_cjs/actions/test/setRpcUrl.js.map +1 -1
- package/_cjs/actions/test/setStorageAt.js.map +1 -1
- package/_cjs/actions/test/snapshot.js.map +1 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_cjs/actions/wallet/addChain.js.map +1 -1
- package/_cjs/actions/wallet/getAddresses.js.map +1 -1
- package/_cjs/actions/wallet/getPermissions.js.map +1 -1
- package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
- package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
- package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signMessage.js.map +1 -1
- package/_cjs/actions/wallet/switchChain.js.map +1 -1
- package/_cjs/actions/wallet/watchAsset.js.map +1 -1
- package/_cjs/celo/parsers.js.map +1 -1
- package/_cjs/chains/definitions/dreyerxTestnet.js +26 -0
- package/_cjs/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_cjs/chains/index.js +8 -6
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
- package/_cjs/op-stack/parsers.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/data/trim.js.map +1 -1
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/hash/keccak256.js.map +1 -1
- package/_cjs/utils/hash/ripemd160.js.map +1 -1
- package/_cjs/utils/hash/sha256.js.map +1 -1
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/poll.js.map +1 -1
- package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
- package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
- package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
- package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
- package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_cjs/zksync/actions/getLogProof.js.map +1 -1
- package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/signTransaction.js.map +1 -1
- package/_cjs/zksync/decorators/publicL1.js.map +1 -1
- package/_cjs/zksync/decorators/publicL2.js.map +1 -1
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/ens/getEnsResolver.js.map +1 -1
- package/_esm/actions/ens/getEnsText.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createBlockFilter.js.map +1 -1
- package/_esm/actions/public/createEventFilter.js.map +1 -1
- package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/getBalance.js.map +1 -1
- package/_esm/actions/public/getBlobBaseFee.js.map +1 -1
- package/_esm/actions/public/getBlock.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_esm/actions/public/getChainId.js.map +1 -1
- package/_esm/actions/public/getCode.js.map +1 -1
- package/_esm/actions/public/getFeeHistory.js.map +1 -1
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getGasPrice.js.map +1 -1
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/getProof.js.map +1 -1
- package/_esm/actions/public/getStorageAt.js.map +1 -1
- package/_esm/actions/public/getTransaction.js.map +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js.map +1 -1
- package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/uninstallFilter.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +10 -0
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
- package/_esm/actions/test/dropTransaction.js.map +1 -1
- package/_esm/actions/test/dumpState.js.map +1 -1
- package/_esm/actions/test/getAutomine.js.map +1 -1
- package/_esm/actions/test/getTxpoolContent.js.map +1 -1
- package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
- package/_esm/actions/test/impersonateAccount.js.map +1 -1
- package/_esm/actions/test/increaseTime.js.map +1 -1
- package/_esm/actions/test/inspectTxpool.js.map +1 -1
- package/_esm/actions/test/loadState.js.map +1 -1
- package/_esm/actions/test/mine.js.map +1 -1
- package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/reset.js.map +1 -1
- package/_esm/actions/test/revert.js.map +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_esm/actions/test/setAutomine.js.map +1 -1
- package/_esm/actions/test/setBalance.js.map +1 -1
- package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
- package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_esm/actions/test/setCode.js.map +1 -1
- package/_esm/actions/test/setCoinbase.js.map +1 -1
- package/_esm/actions/test/setIntervalMining.js.map +1 -1
- package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
- package/_esm/actions/test/setMinGasPrice.js.map +1 -1
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_esm/actions/test/setNonce.js.map +1 -1
- package/_esm/actions/test/setRpcUrl.js.map +1 -1
- package/_esm/actions/test/setStorageAt.js.map +1 -1
- package/_esm/actions/test/snapshot.js.map +1 -1
- package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_esm/actions/wallet/addChain.js.map +1 -1
- package/_esm/actions/wallet/getAddresses.js.map +1 -1
- package/_esm/actions/wallet/getPermissions.js.map +1 -1
- package/_esm/actions/wallet/requestAddresses.js.map +1 -1
- package/_esm/actions/wallet/requestPermissions.js.map +1 -1
- package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_esm/actions/wallet/signMessage.js.map +1 -1
- package/_esm/actions/wallet/switchChain.js.map +1 -1
- package/_esm/actions/wallet/watchAsset.js.map +1 -1
- package/_esm/celo/parsers.js.map +1 -1
- package/_esm/chains/definitions/dreyerxTestnet.js +23 -0
- package/_esm/chains/definitions/dreyerxTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/test.js.map +1 -1
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/clients/transports/createTransport.js.map +1 -1
- package/_esm/clients/transports/custom.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_esm/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_esm/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_esm/op-stack/decorators/publicL1.js.map +1 -1
- package/_esm/op-stack/decorators/publicL2.js.map +1 -1
- package/_esm/op-stack/decorators/walletL1.js.map +1 -1
- package/_esm/op-stack/decorators/walletL2.js.map +1 -1
- package/_esm/op-stack/parsers.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodePacked.js.map +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/data/concat.js.map +1 -1
- package/_esm/utils/data/pad.js.map +1 -1
- package/_esm/utils/data/slice.js.map +1 -1
- package/_esm/utils/data/trim.js.map +1 -1
- package/_esm/utils/encoding/fromBytes.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_esm/utils/formatters/formatter.js.map +1 -1
- package/_esm/utils/hash/keccak256.js.map +1 -1
- package/_esm/utils/hash/ripemd160.js.map +1 -1
- package/_esm/utils/hash/sha256.js.map +1 -1
- package/_esm/utils/observe.js.map +1 -1
- package/_esm/utils/poll.js.map +1 -1
- package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
- package/_esm/utils/promise/withCache.js.map +1 -1
- package/_esm/utils/promise/withRetry.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/zksync/actions/getAllBalances.js.map +1 -1
- package/_esm/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_esm/zksync/actions/getBlockDetails.js.map +1 -1
- package/_esm/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
- package/_esm/zksync/actions/getL1Balance.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_esm/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_esm/zksync/actions/getL1ChainId.js.map +1 -1
- package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_esm/zksync/actions/getLogProof.js.map +1 -1
- package/_esm/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_esm/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_esm/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_esm/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_esm/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_esm/zksync/actions/signTransaction.js.map +1 -1
- package/_esm/zksync/decorators/publicL1.js.map +1 -1
- package/_esm/zksync/decorators/publicL2.js.map +1 -1
- package/_types/accounts/toAccount.d.ts +2 -2
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +6 -6
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts +1 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
- package/_types/actions/ens/getEnsText.d.ts +1 -1
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +60 -60
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +3 -3
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createBlockFilter.d.ts +1 -1
- package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
- package/_types/actions/public/createContractEventFilter.d.ts +2 -2
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createEventFilter.d.ts +13 -13
- package/_types/actions/public/createEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +3 -3
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +1 -1
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts +1 -1
- package/_types/actions/public/getBlobBaseFee.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +5 -5
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -1
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getChainId.d.ts +1 -1
- package/_types/actions/public/getChainId.d.ts.map +1 -1
- package/_types/actions/public/getCode.d.ts +1 -1
- package/_types/actions/public/getCode.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts +1 -1
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +1 -1
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
- package/_types/actions/public/getFilterChanges.d.ts +4 -4
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/getFilterLogs.d.ts +4 -4
- package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/_types/actions/public/getGasPrice.d.ts +1 -1
- package/_types/actions/public/getGasPrice.d.ts.map +1 -1
- package/_types/actions/public/getLogs.d.ts +10 -10
- package/_types/actions/public/getLogs.d.ts.map +1 -1
- package/_types/actions/public/getProof.d.ts +1 -1
- package/_types/actions/public/getProof.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +1 -1
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +4 -4
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +3 -3
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +1 -1
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/uninstallFilter.d.ts +1 -1
- package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -7
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +3 -3
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts +8 -8
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +11 -11
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts +3 -3
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
- package/_types/actions/test/dropTransaction.d.ts +1 -1
- package/_types/actions/test/dropTransaction.d.ts.map +1 -1
- package/_types/actions/test/dumpState.d.ts +1 -1
- package/_types/actions/test/dumpState.d.ts.map +1 -1
- package/_types/actions/test/getAutomine.d.ts +1 -1
- package/_types/actions/test/getAutomine.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
- package/_types/actions/test/impersonateAccount.d.ts +1 -1
- package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
- package/_types/actions/test/increaseTime.d.ts +1 -1
- package/_types/actions/test/increaseTime.d.ts.map +1 -1
- package/_types/actions/test/inspectTxpool.d.ts +1 -1
- package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
- package/_types/actions/test/loadState.d.ts +1 -1
- package/_types/actions/test/loadState.d.ts.map +1 -1
- package/_types/actions/test/mine.d.ts +1 -1
- package/_types/actions/test/mine.d.ts.map +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/reset.d.ts +1 -1
- package/_types/actions/test/reset.d.ts.map +1 -1
- package/_types/actions/test/revert.d.ts +1 -1
- package/_types/actions/test/revert.d.ts.map +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
- package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/_types/actions/test/setAutomine.d.ts +1 -1
- package/_types/actions/test/setAutomine.d.ts.map +1 -1
- package/_types/actions/test/setBalance.d.ts +1 -1
- package/_types/actions/test/setBalance.d.ts.map +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/setCode.d.ts +1 -1
- package/_types/actions/test/setCode.d.ts.map +1 -1
- package/_types/actions/test/setCoinbase.d.ts +1 -1
- package/_types/actions/test/setCoinbase.d.ts.map +1 -1
- package/_types/actions/test/setIntervalMining.d.ts +1 -1
- package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
- package/_types/actions/test/setNonce.d.ts +1 -1
- package/_types/actions/test/setNonce.d.ts.map +1 -1
- package/_types/actions/test/setRpcUrl.d.ts +1 -1
- package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
- package/_types/actions/test/setStorageAt.d.ts +1 -1
- package/_types/actions/test/setStorageAt.d.ts.map +1 -1
- package/_types/actions/test/snapshot.d.ts +1 -1
- package/_types/actions/test/snapshot.d.ts.map +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
- package/_types/actions/wallet/addChain.d.ts +1 -1
- package/_types/actions/wallet/addChain.d.ts.map +1 -1
- package/_types/actions/wallet/getAddresses.d.ts +1 -1
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/getPermissions.d.ts +1 -1
- package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signMessage.d.ts +2 -2
- package/_types/actions/wallet/signMessage.d.ts.map +1 -1
- package/_types/actions/wallet/switchChain.d.ts +1 -1
- package/_types/actions/wallet/switchChain.d.ts.map +1 -1
- package/_types/actions/wallet/watchAsset.d.ts +1 -1
- package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
- package/_types/celo/parsers.d.ts +2 -2
- package/_types/celo/parsers.d.ts.map +1 -1
- package/_types/celo/types.d.ts +1 -1
- package/_types/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/dreyerxTestnet.d.ts +35 -0
- package/_types/chains/definitions/dreyerxTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +23 -23
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts +4 -4
- package/_types/clients/decorators/test.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +10 -10
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/clients/transports/createTransport.d.ts +9 -9
- package/_types/clients/transports/createTransport.d.ts.map +1 -1
- package/_types/clients/transports/custom.d.ts +1 -1
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/errors/rpc.d.ts +5 -5
- package/_types/errors/rpc.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/op-stack/actions/estimateL1Gas.d.ts +2 -2
- package/_types/op-stack/actions/estimateL1Gas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalFee.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalFee.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateTotalGas.d.ts +2 -2
- package/_types/op-stack/actions/estimateTotalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/getL1BaseFee.d.ts +2 -2
- package/_types/op-stack/actions/getL1BaseFee.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts +1 -1
- package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
- package/_types/op-stack/parsers.d.ts +2 -2
- package/_types/op-stack/parsers.d.ts.map +1 -1
- package/_types/op-stack/types/block.d.ts +2 -2
- package/_types/op-stack/types/block.d.ts.map +1 -1
- package/_types/op-stack/types/transaction.d.ts +8 -8
- package/_types/op-stack/types/transaction.d.ts.map +1 -1
- package/_types/types/account.d.ts +5 -5
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/block.d.ts +7 -7
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/contract.d.ts +20 -20
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +35 -35
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/filter.d.ts +16 -16
- package/_types/types/filter.d.ts.map +1 -1
- package/_types/types/log.d.ts +20 -20
- package/_types/types/log.d.ts.map +1 -1
- package/_types/types/proof.d.ts +6 -6
- package/_types/types/proof.d.ts.map +1 -1
- package/_types/types/rpc.d.ts +2 -2
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/transport.d.ts +1 -1
- package/_types/types/transport.d.ts.map +1 -1
- package/_types/types/utils.d.ts +2 -2
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +2 -2
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodePacked.d.ts +4 -4
- package/_types/utils/abi/encodePacked.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +1 -1
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/data/concat.d.ts +2 -2
- package/_types/utils/data/concat.d.ts.map +1 -1
- package/_types/utils/data/pad.d.ts +2 -2
- package/_types/utils/data/pad.d.ts.map +1 -1
- package/_types/utils/data/slice.d.ts +3 -3
- package/_types/utils/data/slice.d.ts.map +1 -1
- package/_types/utils/data/trim.d.ts +2 -2
- package/_types/utils/data/trim.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +4 -4
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +4 -4
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts +1 -1
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +7 -7
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +6 -6
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +7 -7
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +6 -6
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +6 -6
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/hash/keccak256.d.ts +2 -2
- package/_types/utils/hash/keccak256.d.ts.map +1 -1
- package/_types/utils/hash/ripemd160.d.ts +2 -2
- package/_types/utils/hash/ripemd160.d.ts.map +1 -1
- package/_types/utils/hash/sha256.d.ts +2 -2
- package/_types/utils/hash/sha256.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +2 -2
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/poll.d.ts +4 -4
- package/_types/utils/poll.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +11 -11
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +7 -7
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts +1 -1
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts +3 -3
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc/http.d.ts +4 -4
- package/_types/utils/rpc/http.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +2 -2
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +2 -2
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/_types/zksync/actions/getAllBalances.d.ts +2 -2
- package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts +1 -1
- package/_types/zksync/actions/getBaseTokenL1Address.d.ts.map +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts +1 -1
- package/_types/zksync/actions/getBlockDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getBridgehubContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts +1 -1
- package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Allowance.d.ts +2 -2
- package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Balance.d.ts +2 -2
- package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchBlockRange.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchDetails.d.ts.map +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts +1 -1
- package/_types/zksync/actions/getL1BatchNumber.d.ts.map +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts +1 -1
- package/_types/zksync/actions/getL1ChainId.d.ts.map +1 -1
- package/_types/zksync/actions/getL1TokenBalance.d.ts +2 -2
- package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
- package/_types/zksync/actions/getLogProof.d.ts +1 -1
- package/_types/zksync/actions/getLogProof.d.ts.map +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts +1 -1
- package/_types/zksync/actions/getMainContractAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts +1 -1
- package/_types/zksync/actions/getRawBlockTransactions.d.ts.map +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts +1 -1
- package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts.map +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts +1 -1
- package/_types/zksync/actions/getTransactionDetails.d.ts.map +1 -1
- package/_types/zksync/actions/signEip712Transaction.d.ts +3 -3
- package/_types/zksync/actions/signEip712Transaction.d.ts.map +1 -1
- package/_types/zksync/actions/signTransaction.d.ts +3 -3
- package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL1.d.ts +5 -5
- package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL2.d.ts +4 -4
- package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
- package/_types/zksync/types/block.d.ts +2 -2
- package/_types/zksync/types/block.d.ts.map +1 -1
- package/_types/zksync/types/eip712.d.ts +3 -3
- package/_types/zksync/types/eip712.d.ts.map +1 -1
- package/_types/zksync/types/fee.d.ts +9 -9
- package/_types/zksync/types/fee.d.ts.map +1 -1
- package/_types/zksync/types/log.d.ts +3 -3
- package/_types/zksync/types/log.d.ts.map +1 -1
- package/_types/zksync/types/transaction.d.ts +18 -18
- package/_types/zksync/types/transaction.d.ts.map +1 -1
- package/accounts/toAccount.ts +8 -8
- package/accounts/types.ts +8 -8
- package/actions/ens/getEnsAddress.ts +2 -2
- package/actions/ens/getEnsAvatar.ts +2 -2
- package/actions/ens/getEnsName.ts +2 -2
- package/actions/ens/getEnsResolver.ts +2 -2
- package/actions/ens/getEnsText.ts +2 -2
- package/actions/getContract.ts +302 -300
- package/actions/public/call.ts +12 -12
- package/actions/public/createBlockFilter.ts +2 -2
- package/actions/public/createContractEventFilter.ts +3 -3
- package/actions/public/createEventFilter.ts +65 -64
- package/actions/public/createPendingTransactionFilter.ts +3 -3
- package/actions/public/estimateGas.ts +8 -9
- package/actions/public/getBalance.ts +2 -2
- package/actions/public/getBlobBaseFee.ts +3 -3
- package/actions/public/getBlock.ts +15 -15
- package/actions/public/getBlockNumber.ts +2 -2
- package/actions/public/getBlockTransactionCount.ts +2 -4
- package/actions/public/getChainId.ts +3 -3
- package/actions/public/getCode.ts +2 -2
- package/actions/public/getContractEvents.ts +10 -10
- package/actions/public/getFeeHistory.ts +2 -2
- package/actions/public/getFilterChanges.ts +59 -67
- package/actions/public/getFilterLogs.ts +36 -36
- package/actions/public/getGasPrice.ts +3 -3
- package/actions/public/getLogs.ts +47 -53
- package/actions/public/getProof.ts +2 -2
- package/actions/public/getStorageAt.ts +2 -2
- package/actions/public/getTransaction.ts +10 -10
- package/actions/public/getTransactionConfirmations.ts +5 -5
- package/actions/public/getTransactionCount.ts +3 -3
- package/actions/public/getTransactionReceipt.ts +5 -5
- package/actions/public/uninstallFilter.ts +3 -3
- package/actions/public/verifyHash.ts +14 -2
- package/actions/public/verifyMessage.ts +2 -2
- package/actions/public/waitForTransactionReceipt.ts +14 -14
- package/actions/public/watchBlockNumber.ts +6 -6
- package/actions/public/watchBlocks.ts +25 -27
- package/actions/public/watchEvent.ts +39 -37
- package/actions/public/watchPendingTransactions.ts +6 -6
- package/actions/test/dropTransaction.ts +3 -3
- package/actions/test/dumpState.ts +3 -3
- package/actions/test/getAutomine.ts +3 -3
- package/actions/test/getTxpoolContent.ts +3 -3
- package/actions/test/getTxpoolStatus.ts +3 -3
- package/actions/test/impersonateAccount.ts +3 -3
- package/actions/test/increaseTime.ts +3 -3
- package/actions/test/inspectTxpool.ts +3 -3
- package/actions/test/loadState.ts +3 -3
- package/actions/test/mine.ts +3 -3
- package/actions/test/removeBlockTimestampInterval.ts +3 -3
- package/actions/test/reset.ts +3 -3
- package/actions/test/revert.ts +3 -3
- package/actions/test/sendUnsignedTransaction.ts +6 -6
- package/actions/test/setAutomine.ts +3 -3
- package/actions/test/setBalance.ts +3 -3
- package/actions/test/setBlockGasLimit.ts +3 -3
- package/actions/test/setBlockTimestampInterval.ts +3 -3
- package/actions/test/setCode.ts +3 -3
- package/actions/test/setCoinbase.ts +3 -3
- package/actions/test/setIntervalMining.ts +3 -3
- package/actions/test/setLoggingEnabled.ts +3 -3
- package/actions/test/setMinGasPrice.ts +3 -3
- package/actions/test/setNextBlockBaseFeePerGas.ts +3 -3
- package/actions/test/setNextBlockTimestamp.ts +3 -3
- package/actions/test/setNonce.ts +3 -3
- package/actions/test/setRpcUrl.ts +3 -3
- package/actions/test/setStorageAt.ts +3 -3
- package/actions/test/snapshot.ts +3 -3
- package/actions/test/stopImpersonatingAccount.ts +3 -3
- package/actions/wallet/addChain.ts +3 -3
- package/actions/wallet/getAddresses.ts +3 -5
- package/actions/wallet/getPermissions.ts +3 -3
- package/actions/wallet/requestAddresses.ts +3 -3
- package/actions/wallet/requestPermissions.ts +3 -3
- package/actions/wallet/sendRawTransaction.ts +2 -2
- package/actions/wallet/signMessage.ts +6 -6
- package/actions/wallet/switchChain.ts +3 -3
- package/actions/wallet/watchAsset.ts +3 -3
- package/celo/parsers.ts +10 -10
- package/celo/types.ts +2 -2
- package/chains/definitions/dreyerxTestnet.ts +23 -0
- package/chains/index.ts +1 -0
- package/clients/decorators/public.ts +130 -138
- package/clients/decorators/test.ts +12 -12
- package/clients/decorators/wallet.ts +34 -36
- package/clients/transports/createTransport.ts +17 -17
- package/clients/transports/custom.ts +2 -2
- package/errors/rpc.ts +6 -6
- package/errors/version.ts +1 -1
- package/op-stack/actions/estimateL1Gas.ts +10 -10
- package/op-stack/actions/estimateTotalFee.ts +9 -9
- package/op-stack/actions/estimateTotalGas.ts +9 -9
- package/op-stack/actions/getL1BaseFee.ts +7 -7
- package/op-stack/decorators/publicL1.ts +5 -5
- package/op-stack/decorators/publicL2.ts +5 -5
- package/op-stack/decorators/walletL1.ts +5 -5
- package/op-stack/decorators/walletL2.ts +5 -5
- package/op-stack/parsers.ts +9 -9
- package/op-stack/types/block.ts +10 -10
- package/op-stack/types/transaction.ts +19 -19
- package/package.json +1 -1
- package/types/account.ts +12 -12
- package/types/block.ts +14 -14
- package/types/contract.ts +60 -56
- package/types/eip1193.ts +52 -55
- package/types/filter.ts +25 -25
- package/types/log.ts +50 -50
- package/types/proof.ts +6 -6
- package/types/rpc.ts +9 -9
- package/types/transport.ts +2 -2
- package/types/utils.ts +2 -2
- package/utils/abi/decodeAbiParameters.ts +6 -6
- package/utils/abi/decodeErrorResult.ts +4 -4
- package/utils/abi/encodeAbiParameters.ts +18 -18
- package/utils/abi/encodePacked.ts +8 -8
- package/utils/ccip.ts +2 -2
- package/utils/data/concat.ts +8 -7
- package/utils/data/pad.ts +6 -6
- package/utils/data/slice.ts +6 -6
- package/utils/data/trim.ts +6 -6
- package/utils/encoding/fromBytes.ts +16 -16
- package/utils/encoding/fromHex.ts +15 -15
- package/utils/ens/avatar/parseAvatarRecord.ts +4 -4
- package/utils/ens/avatar/utils.ts +2 -2
- package/utils/filters/createFilterRequestScope.ts +2 -2
- package/utils/formatters/block.ts +9 -9
- package/utils/formatters/formatter.ts +11 -11
- package/utils/formatters/transaction.ts +5 -5
- package/utils/formatters/transactionReceipt.ts +2 -2
- package/utils/formatters/transactionRequest.ts +2 -2
- package/utils/hash/keccak256.ts +8 -8
- package/utils/hash/ripemd160.ts +8 -8
- package/utils/hash/sha256.ts +8 -8
- package/utils/observe.ts +8 -8
- package/utils/poll.ts +6 -6
- package/utils/promise/createBatchScheduler.ts +27 -30
- package/utils/promise/withCache.ts +8 -8
- package/utils/promise/withRetry.ts +3 -3
- package/utils/promise/withTimeout.ts +3 -3
- package/utils/rpc/http.ts +7 -7
- package/utils/signature/hashMessage.ts +6 -6
- package/utils/transaction/parseTransaction.ts +13 -13
- package/zksync/actions/getAllBalances.ts +6 -6
- package/zksync/actions/getBaseTokenL1Address.ts +3 -3
- package/zksync/actions/getBlockDetails.ts +3 -3
- package/zksync/actions/getBridgehubContractAddress.ts +3 -3
- package/zksync/actions/getDefaultBridgeAddresses.ts +3 -3
- package/zksync/actions/getL1Allowance.ts +6 -6
- package/zksync/actions/getL1Balance.ts +9 -9
- package/zksync/actions/getL1BatchBlockRange.ts +3 -3
- package/zksync/actions/getL1BatchDetails.ts +3 -3
- package/zksync/actions/getL1BatchNumber.ts +3 -3
- package/zksync/actions/getL1ChainId.ts +3 -3
- package/zksync/actions/getL1TokenBalance.ts +6 -6
- package/zksync/actions/getLogProof.ts +3 -3
- package/zksync/actions/getMainContractAddress.ts +3 -3
- package/zksync/actions/getRawBlockTransactions.ts +3 -3
- package/zksync/actions/getTestnetPaymasterAddress.ts +3 -3
- package/zksync/actions/getTransactionDetails.ts +3 -3
- package/zksync/actions/signEip712Transaction.ts +13 -13
- package/zksync/actions/signTransaction.ts +13 -13
- package/zksync/decorators/publicL1.ts +10 -10
- package/zksync/decorators/publicL2.ts +9 -9
- package/zksync/types/block.ts +10 -10
- package/zksync/types/eip712.ts +5 -5
- package/zksync/types/fee.ts +9 -9
- package/zksync/types/log.ts +12 -12
- package/zksync/types/transaction.ts +52 -53
|
@@ -5,15 +5,15 @@ import { toPrefixedMessage } from './toPrefixedMessage.js'
|
|
|
5
5
|
|
|
6
6
|
type To = 'hex' | 'bytes'
|
|
7
7
|
|
|
8
|
-
export type HashMessage<
|
|
9
|
-
| (
|
|
10
|
-
| (
|
|
8
|
+
export type HashMessage<to extends To> =
|
|
9
|
+
| (to extends 'bytes' ? ByteArray : never)
|
|
10
|
+
| (to extends 'hex' ? Hex : never)
|
|
11
11
|
|
|
12
12
|
export type HashMessageErrorType = Keccak256ErrorType | ErrorType
|
|
13
13
|
|
|
14
|
-
export function hashMessage<
|
|
14
|
+
export function hashMessage<to extends To = 'hex'>(
|
|
15
15
|
message: SignableMessage,
|
|
16
|
-
to_?:
|
|
17
|
-
): HashMessage<
|
|
16
|
+
to_?: to | undefined,
|
|
17
|
+
): HashMessage<to> {
|
|
18
18
|
return keccak256(toPrefixedMessage(message), to_)
|
|
19
19
|
}
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
} from './getSerializedTransactionType.js'
|
|
60
60
|
|
|
61
61
|
export type ParseTransactionReturnType<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
> = IsNarrowable<
|
|
62
|
+
serialized extends TransactionSerializedGeneric = TransactionSerialized,
|
|
63
|
+
type extends TransactionType = GetSerializedTransactionType<serialized>,
|
|
64
|
+
> = IsNarrowable<serialized, Hex> extends true
|
|
65
65
|
?
|
|
66
|
-
| (
|
|
67
|
-
| (
|
|
68
|
-
| (
|
|
69
|
-
| (
|
|
66
|
+
| (type extends 'eip1559' ? TransactionSerializableEIP1559 : never)
|
|
67
|
+
| (type extends 'eip2930' ? TransactionSerializableEIP2930 : never)
|
|
68
|
+
| (type extends 'eip4844' ? TransactionSerializableEIP4844 : never)
|
|
69
|
+
| (type extends 'legacy' ? TransactionSerializableLegacy : never)
|
|
70
70
|
: TransactionSerializable
|
|
71
71
|
|
|
72
72
|
export type ParseTransactionErrorType =
|
|
@@ -77,28 +77,28 @@ export type ParseTransactionErrorType =
|
|
|
77
77
|
| ParseTransactionLegacyErrorType
|
|
78
78
|
|
|
79
79
|
export function parseTransaction<
|
|
80
|
-
const
|
|
81
|
-
>(serializedTransaction:
|
|
80
|
+
const serialized extends TransactionSerializedGeneric,
|
|
81
|
+
>(serializedTransaction: serialized): ParseTransactionReturnType<serialized> {
|
|
82
82
|
const type = getSerializedTransactionType(serializedTransaction)
|
|
83
83
|
|
|
84
84
|
if (type === 'eip1559')
|
|
85
85
|
return parseTransactionEIP1559(
|
|
86
86
|
serializedTransaction as TransactionSerializedEIP1559,
|
|
87
|
-
) as ParseTransactionReturnType<
|
|
87
|
+
) as ParseTransactionReturnType<serialized>
|
|
88
88
|
|
|
89
89
|
if (type === 'eip2930')
|
|
90
90
|
return parseTransactionEIP2930(
|
|
91
91
|
serializedTransaction as TransactionSerializedEIP2930,
|
|
92
|
-
) as ParseTransactionReturnType<
|
|
92
|
+
) as ParseTransactionReturnType<serialized>
|
|
93
93
|
|
|
94
94
|
if (type === 'eip4844')
|
|
95
95
|
return parseTransactionEIP4844(
|
|
96
96
|
serializedTransaction as TransactionSerializedEIP4844,
|
|
97
|
-
) as ParseTransactionReturnType<
|
|
97
|
+
) as ParseTransactionReturnType<serialized>
|
|
98
98
|
|
|
99
99
|
return parseTransactionLegacy(
|
|
100
100
|
serializedTransaction,
|
|
101
|
-
) as ParseTransactionReturnType<
|
|
101
|
+
) as ParseTransactionReturnType<serialized>
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
type ParseTransactionEIP4844ErrorType =
|
|
@@ -8,17 +8,17 @@ import { hexToBigInt } from '../../utils/encoding/fromHex.js'
|
|
|
8
8
|
import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
9
9
|
|
|
10
10
|
export type GetAllBalancesParameters<
|
|
11
|
-
|
|
12
|
-
> = GetAccountParameter<
|
|
11
|
+
account extends Account | undefined = Account | undefined,
|
|
12
|
+
> = GetAccountParameter<account>
|
|
13
13
|
|
|
14
14
|
export type GetAllBalancesReturnType = { [key: Address]: bigint }
|
|
15
15
|
|
|
16
16
|
export async function getAllBalances<
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
chain extends Chain | undefined,
|
|
18
|
+
account extends Account | undefined,
|
|
19
19
|
>(
|
|
20
|
-
client: Client<Transport,
|
|
21
|
-
parameters: GetAllBalancesParameters<
|
|
20
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
21
|
+
parameters: GetAllBalancesParameters<account>,
|
|
22
22
|
): Promise<GetAllBalancesReturnType> {
|
|
23
23
|
const { account: account_ } = parameters
|
|
24
24
|
const account = account_ ? parseAccount(account_) : client.account
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetBaseTokenL1AddressReturnType = Address
|
|
9
9
|
|
|
10
10
|
export async function getBaseTokenL1Address<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetBaseTokenL1AddressReturnType> {
|
|
16
16
|
const result = await client.request({ method: 'zks_getBaseTokenL1Address' })
|
|
17
17
|
return result
|
|
@@ -13,10 +13,10 @@ export type GetBlockDetailsParameters = ZkSyncNumberParameter
|
|
|
13
13
|
export type GetBlockDetailsReturnType = ZkSyncBlockDetails
|
|
14
14
|
|
|
15
15
|
export async function getBlockDetails<
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
chain extends Chain | undefined,
|
|
17
|
+
account extends Account | undefined,
|
|
18
18
|
>(
|
|
19
|
-
client: Client<Transport,
|
|
19
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
20
20
|
parameters: GetBlockDetailsParameters,
|
|
21
21
|
): Promise<GetBlockDetailsReturnType> {
|
|
22
22
|
const result = await client.request({
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetBridgehubContractAddressReturnType = Address
|
|
9
9
|
|
|
10
10
|
export async function getBridgehubContractAddress<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetBridgehubContractAddressReturnType> {
|
|
16
16
|
const result = await client.request({ method: 'zks_getBridgehubContract' })
|
|
17
17
|
return result
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetDefaultBridgeAddressesReturnType = BridgeContractAddresses
|
|
9
9
|
|
|
10
10
|
export async function getDefaultBridgeAddresses<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetDefaultBridgeAddressesReturnType> {
|
|
16
16
|
const addresses = await client.request({ method: 'zks_getBridgeContracts' })
|
|
17
17
|
return {
|
|
@@ -11,8 +11,8 @@ import type { BlockTag } from '../../types/block.js'
|
|
|
11
11
|
import type { Chain } from '../../types/chain.js'
|
|
12
12
|
|
|
13
13
|
export type GetL1AllowanceParameters<
|
|
14
|
-
|
|
15
|
-
> = GetAccountParameter<
|
|
14
|
+
account extends Account | undefined = Account | undefined,
|
|
15
|
+
> = GetAccountParameter<account> & {
|
|
16
16
|
bridgeAddress: Address
|
|
17
17
|
blockTag?: BlockTag
|
|
18
18
|
token: Address
|
|
@@ -23,11 +23,11 @@ export type GetL1AllowanceReturnType = bigint
|
|
|
23
23
|
export type GetL1AllowanceErrorType = AccountNotFoundError | BaseError
|
|
24
24
|
|
|
25
25
|
export async function getL1Allowance<
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
chain extends Chain | undefined,
|
|
27
|
+
account extends Account | undefined,
|
|
28
28
|
>(
|
|
29
|
-
client: Client<Transport,
|
|
30
|
-
parameters: GetL1AllowanceParameters<
|
|
29
|
+
client: Client<Transport, chain, account>,
|
|
30
|
+
parameters: GetL1AllowanceParameters<account>,
|
|
31
31
|
): Promise<GetL1AllowanceReturnType> {
|
|
32
32
|
const { token, bridgeAddress, blockTag, account: account_ } = parameters
|
|
33
33
|
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
} from './getL1TokenBalance.js'
|
|
20
20
|
|
|
21
21
|
export type GetL1BalanceParameters<
|
|
22
|
-
|
|
23
|
-
> = GetAccountParameter<
|
|
22
|
+
account extends Account | undefined = Account | undefined,
|
|
23
|
+
> = GetAccountParameter<account> & { token?: Address | undefined } & (
|
|
24
24
|
| {
|
|
25
25
|
/** The balance of the account at a block number. */
|
|
26
26
|
blockNumber?: bigint | undefined
|
|
@@ -38,13 +38,13 @@ export type GetL1BalanceReturnType = bigint
|
|
|
38
38
|
export type GetL1BalanceErrorType = AccountNotFoundError | BaseError
|
|
39
39
|
|
|
40
40
|
export async function getL1Balance<
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
chain extends Chain | undefined,
|
|
42
|
+
account extends Account | undefined,
|
|
43
43
|
>(
|
|
44
|
-
client: Client<Transport,
|
|
45
|
-
...[parameters = {}]:
|
|
46
|
-
? [GetL1BalanceParameters<
|
|
47
|
-
: [GetL1BalanceParameters<
|
|
44
|
+
client: Client<Transport, chain, account>,
|
|
45
|
+
...[parameters = {}]: account extends undefined
|
|
46
|
+
? [GetL1BalanceParameters<account>]
|
|
47
|
+
: [GetL1BalanceParameters<account>] | []
|
|
48
48
|
): Promise<GetL1BalanceReturnType> {
|
|
49
49
|
const {
|
|
50
50
|
account: account_ = client.account,
|
|
@@ -63,6 +63,6 @@ export async function getL1Balance<
|
|
|
63
63
|
} as GetBalanceParameters)
|
|
64
64
|
|
|
65
65
|
return await getL1TokenBalance(client, {
|
|
66
|
-
...(parameters as GetL1TokenBalanceParameters<
|
|
66
|
+
...(parameters as GetL1TokenBalanceParameters<account>),
|
|
67
67
|
})
|
|
68
68
|
}
|
|
@@ -12,10 +12,10 @@ export type GetL1BatchBlockRangeParameters = {
|
|
|
12
12
|
export type GetL1BatchBlockRangeReturnParameters = [number, number]
|
|
13
13
|
|
|
14
14
|
export async function getL1BatchBlockRange<
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
chain extends Chain | undefined,
|
|
16
|
+
account extends Account | undefined,
|
|
17
17
|
>(
|
|
18
|
-
client: Client<Transport,
|
|
18
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
19
19
|
parameters: GetL1BatchBlockRangeParameters,
|
|
20
20
|
): Promise<GetL1BatchBlockRangeReturnParameters> {
|
|
21
21
|
const [number_1, number_2] = await client.request({
|
|
@@ -13,10 +13,10 @@ export type GetL1BatchDetailsParameters = ZkSyncNumberParameter
|
|
|
13
13
|
export type GetL1BatchDetailsReturnType = ZkSyncBatchDetails
|
|
14
14
|
|
|
15
15
|
export async function getL1BatchDetails<
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
chain extends Chain | undefined,
|
|
17
|
+
account extends Account | undefined,
|
|
18
18
|
>(
|
|
19
|
-
client: Client<Transport,
|
|
19
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
20
20
|
parameters: GetL1BatchDetailsParameters,
|
|
21
21
|
): Promise<GetL1BatchDetailsReturnType> {
|
|
22
22
|
const result = await client.request({
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetL1BatchNumberReturnType = Hex
|
|
9
9
|
|
|
10
10
|
export async function getL1BatchNumber<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetL1BatchNumberReturnType> {
|
|
16
16
|
const result = await client.request({ method: 'zks_L1BatchNumber' })
|
|
17
17
|
return result
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetL1ChainIdReturnType = Hex
|
|
9
9
|
|
|
10
10
|
export async function getL1ChainId<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetL1ChainIdReturnType> {
|
|
16
16
|
const result = await client.request({ method: 'zks_L1ChainId' })
|
|
17
17
|
return result
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import { isEth } from '../utils/isEth.js'
|
|
17
17
|
|
|
18
18
|
export type GetL1TokenBalanceParameters<
|
|
19
|
-
|
|
20
|
-
> = GetAccountParameter<
|
|
19
|
+
account extends Account | undefined = Account | undefined,
|
|
20
|
+
> = GetAccountParameter<account> & { token: Address } & (
|
|
21
21
|
| {
|
|
22
22
|
/** The balance of the account at a block number. */
|
|
23
23
|
blockNumber?: bigint | undefined
|
|
@@ -38,11 +38,11 @@ export type GetL1TokenBalanceErrorType =
|
|
|
38
38
|
| BaseErrorType
|
|
39
39
|
|
|
40
40
|
export async function getL1TokenBalance<
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
chain extends Chain | undefined,
|
|
42
|
+
account extends Account | undefined,
|
|
43
43
|
>(
|
|
44
|
-
client: Client<Transport,
|
|
45
|
-
parameters: GetL1TokenBalanceParameters<
|
|
44
|
+
client: Client<Transport, chain, account>,
|
|
45
|
+
parameters: GetL1TokenBalanceParameters<account>,
|
|
46
46
|
): Promise<GetL1TokenBalanceReturnType> {
|
|
47
47
|
const {
|
|
48
48
|
account: account_ = client.account,
|
|
@@ -14,10 +14,10 @@ export type GetLogProofParameters = {
|
|
|
14
14
|
export type GetLogProofReturnType = MessageProof | null
|
|
15
15
|
|
|
16
16
|
export async function getLogProof<
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
chain extends Chain | undefined,
|
|
18
|
+
account extends Account | undefined,
|
|
19
19
|
>(
|
|
20
|
-
client: Client<Transport,
|
|
20
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
21
21
|
parameters: GetLogProofParameters,
|
|
22
22
|
): Promise<MessageProof | null> {
|
|
23
23
|
const result = await client.request({
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetMainContractAddressReturnType = Address
|
|
9
9
|
|
|
10
10
|
export async function getMainContractAddress<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetMainContractAddressReturnType> {
|
|
16
16
|
const address = await client.request({ method: 'zks_getMainContract' })
|
|
17
17
|
return address
|
|
@@ -12,10 +12,10 @@ export type GetRawBlockTransactionsParameters = ZkSyncNumberParameter
|
|
|
12
12
|
export type GetRawBlockTransactionsReturnType = ZkSyncRawBlockTransactions
|
|
13
13
|
|
|
14
14
|
export async function getRawBlockTransactions<
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
chain extends Chain | undefined,
|
|
16
|
+
account extends Account | undefined,
|
|
17
17
|
>(
|
|
18
|
-
client: Client<Transport,
|
|
18
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
19
19
|
parameters: GetRawBlockTransactionsParameters,
|
|
20
20
|
): Promise<GetRawBlockTransactionsReturnType> {
|
|
21
21
|
const result = await client.request({
|
|
@@ -8,10 +8,10 @@ import type { PublicZkSyncRpcSchema } from '../types/eip1193.js'
|
|
|
8
8
|
export type GetTestnetPaymasterAddressReturnType = Address | null
|
|
9
9
|
|
|
10
10
|
export async function getTestnetPaymasterAddress<
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
chain extends Chain | undefined,
|
|
12
|
+
account extends Account | undefined,
|
|
13
13
|
>(
|
|
14
|
-
client: Client<Transport,
|
|
14
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
15
15
|
): Promise<GetTestnetPaymasterAddressReturnType> {
|
|
16
16
|
const result = await client.request({ method: 'zks_getTestnetPaymaster' })
|
|
17
17
|
return result
|
|
@@ -13,10 +13,10 @@ export type GetTransactionDetailsParameters = {
|
|
|
13
13
|
export type GetTransactionDetailsReturnType = ZkSyncTransactionDetails
|
|
14
14
|
|
|
15
15
|
export async function getTransactionDetails<
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
chain extends Chain | undefined,
|
|
17
|
+
account extends Account | undefined,
|
|
18
18
|
>(
|
|
19
|
-
client: Client<Transport,
|
|
19
|
+
client: Client<Transport, chain, account, PublicZkSyncRpcSchema>,
|
|
20
20
|
parameters: GetTransactionDetailsParameters,
|
|
21
21
|
): Promise<GetTransactionDetailsReturnType> {
|
|
22
22
|
const result = await client.request({
|
|
@@ -26,25 +26,25 @@ import {
|
|
|
26
26
|
} from '../utils/assertEip712Request.js'
|
|
27
27
|
|
|
28
28
|
type FormattedTransactionRequest<
|
|
29
|
-
|
|
29
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
30
30
|
> = ExtractChainFormatterParameters<
|
|
31
|
-
|
|
31
|
+
chain,
|
|
32
32
|
'transactionRequest',
|
|
33
33
|
TransactionRequestEIP712
|
|
34
34
|
>
|
|
35
35
|
|
|
36
36
|
export type SignEip712TransactionParameters<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
38
|
+
account extends Account | undefined = Account | undefined,
|
|
39
|
+
chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
40
40
|
> = UnionOmit<
|
|
41
41
|
FormattedTransactionRequest<
|
|
42
|
-
|
|
42
|
+
chainOverride extends ChainEIP712 ? chainOverride : chain
|
|
43
43
|
>,
|
|
44
44
|
'from'
|
|
45
45
|
> &
|
|
46
|
-
GetAccountParameter<
|
|
47
|
-
GetChainParameter<
|
|
46
|
+
GetAccountParameter<account> &
|
|
47
|
+
GetChainParameter<chain, chainOverride>
|
|
48
48
|
|
|
49
49
|
export type SignEip712TransactionReturnType = SignTransactionReturnType
|
|
50
50
|
|
|
@@ -89,12 +89,12 @@ export type SignEip712TransactionErrorType = SignTransactionErrorType
|
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
91
|
export async function signEip712Transaction<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
chain extends ChainEIP712 | undefined,
|
|
93
|
+
account extends Account | undefined,
|
|
94
|
+
chainOverride extends ChainEIP712 | undefined,
|
|
95
95
|
>(
|
|
96
|
-
client: Client<Transport,
|
|
97
|
-
args: SignEip712TransactionParameters<
|
|
96
|
+
client: Client<Transport, chain, account>,
|
|
97
|
+
args: SignEip712TransactionParameters<chain, account, chainOverride>,
|
|
98
98
|
): Promise<SignEip712TransactionReturnType> {
|
|
99
99
|
const {
|
|
100
100
|
account: account_ = client.account,
|
|
@@ -18,25 +18,25 @@ import { isEIP712Transaction } from '../utils/isEip712Transaction.js'
|
|
|
18
18
|
import { signEip712Transaction } from './signEip712Transaction.js'
|
|
19
19
|
|
|
20
20
|
type FormattedTransactionRequest<
|
|
21
|
-
|
|
21
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
22
22
|
> = ExtractChainFormatterParameters<
|
|
23
|
-
|
|
23
|
+
chain,
|
|
24
24
|
'transactionRequest',
|
|
25
25
|
TransactionRequestEIP712
|
|
26
26
|
>
|
|
27
27
|
|
|
28
28
|
export type SignTransactionParameters<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
30
|
+
account extends Account | undefined = Account | undefined,
|
|
31
|
+
chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
32
32
|
> = UnionOmit<
|
|
33
33
|
FormattedTransactionRequest<
|
|
34
|
-
|
|
34
|
+
chainOverride extends ChainEIP712 ? chainOverride : chain
|
|
35
35
|
>,
|
|
36
36
|
'from'
|
|
37
37
|
> &
|
|
38
|
-
GetAccountParameter<
|
|
39
|
-
GetChainParameter<
|
|
38
|
+
GetAccountParameter<account> &
|
|
39
|
+
GetChainParameter<chain, chainOverride>
|
|
40
40
|
|
|
41
41
|
export type SignTransactionReturnType = SignTransactionReturnType_
|
|
42
42
|
|
|
@@ -83,12 +83,12 @@ export type SignTransactionErrorType = SignTransactionErrorType_
|
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
85
|
export async function signTransaction<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
chain extends ChainEIP712 | undefined,
|
|
87
|
+
account extends Account | undefined,
|
|
88
|
+
chainOverride extends ChainEIP712 | undefined,
|
|
89
89
|
>(
|
|
90
|
-
client: Client<Transport,
|
|
91
|
-
args: SignTransactionParameters<
|
|
90
|
+
client: Client<Transport, chain, account>,
|
|
91
|
+
args: SignTransactionParameters<chain, account, chainOverride>,
|
|
92
92
|
): Promise<SignTransactionReturnType> {
|
|
93
93
|
if (isEIP712Transaction(args)) return signEip712Transaction(client, args)
|
|
94
94
|
return await signTransaction_(client, args as any)
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '../actions/getL1TokenBalance.js'
|
|
20
20
|
|
|
21
21
|
export type PublicActionsL1<
|
|
22
|
-
|
|
22
|
+
account extends Account | undefined = Account | undefined,
|
|
23
23
|
> = {
|
|
24
24
|
/**
|
|
25
25
|
* Returns the amount of approved tokens for a specific L1 bridge.
|
|
@@ -65,7 +65,7 @@ export type PublicActionsL1<
|
|
|
65
65
|
* })
|
|
66
66
|
*/
|
|
67
67
|
getL1Allowance: (
|
|
68
|
-
parameters: GetL1AllowanceParameters<
|
|
68
|
+
parameters: GetL1AllowanceParameters<account>,
|
|
69
69
|
) => Promise<GetL1AllowanceReturnType>
|
|
70
70
|
/**
|
|
71
71
|
* Returns the amount of the ERC20 token the client has on specific address.
|
|
@@ -109,7 +109,7 @@ export type PublicActionsL1<
|
|
|
109
109
|
* })
|
|
110
110
|
*/
|
|
111
111
|
getL1TokenBalance: (
|
|
112
|
-
parameters: GetL1TokenBalanceParameters<
|
|
112
|
+
parameters: GetL1TokenBalanceParameters<account>,
|
|
113
113
|
) => Promise<GetL1TokenBalanceReturnType>
|
|
114
114
|
/**
|
|
115
115
|
* Returns the amount of the token held by the account on the L1 network.
|
|
@@ -159,19 +159,19 @@ export type PublicActionsL1<
|
|
|
159
159
|
* })
|
|
160
160
|
*/
|
|
161
161
|
getL1Balance: (
|
|
162
|
-
...parameters:
|
|
163
|
-
? [GetL1BalanceParameters<
|
|
164
|
-
: [GetL1BalanceParameters<
|
|
162
|
+
...parameters: account extends undefined
|
|
163
|
+
? [GetL1BalanceParameters<account>]
|
|
164
|
+
: [GetL1BalanceParameters<account>] | []
|
|
165
165
|
) => Promise<GetL1BalanceReturnType>
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export function publicActionsL1() {
|
|
169
169
|
return <
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
chain extends Chain | undefined = Chain | undefined,
|
|
171
|
+
account extends Account | undefined = Account | undefined,
|
|
172
172
|
>(
|
|
173
|
-
client: Client<Transport,
|
|
174
|
-
): PublicActionsL1<
|
|
173
|
+
client: Client<Transport, chain, account>,
|
|
174
|
+
): PublicActionsL1<account> => ({
|
|
175
175
|
getL1Allowance: (args) => getL1Allowance(client, args),
|
|
176
176
|
getL1TokenBalance: (args) => getL1TokenBalance(client, args),
|
|
177
177
|
// @ts-expect-error
|
|
@@ -78,8 +78,8 @@ import {
|
|
|
78
78
|
import type { ChainEIP712 } from '../types/chain.js'
|
|
79
79
|
|
|
80
80
|
export type PublicActionsL2<
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
82
|
+
account extends Account | undefined = Account | undefined,
|
|
83
83
|
> = {
|
|
84
84
|
/**
|
|
85
85
|
* Returns the addresses of the default zkSync Era bridge contracts on both L1 and L2.
|
|
@@ -347,7 +347,7 @@ export type PublicActionsL2<
|
|
|
347
347
|
* const details = await client.estimateFee({transactionRequest: {...}}});
|
|
348
348
|
*/
|
|
349
349
|
estimateFee: (
|
|
350
|
-
args: EstimateFeeParameters<
|
|
350
|
+
args: EstimateFeeParameters<chain, account>,
|
|
351
351
|
) => Promise<EstimateFeeReturnType>
|
|
352
352
|
|
|
353
353
|
/**
|
|
@@ -369,7 +369,7 @@ export type PublicActionsL2<
|
|
|
369
369
|
* const details = await client.estimateGasL1ToL2({transactionRequest: {...}}});
|
|
370
370
|
*/
|
|
371
371
|
estimateGasL1ToL2: (
|
|
372
|
-
args: EstimateGasL1ToL2Parameters<
|
|
372
|
+
args: EstimateGasL1ToL2Parameters<chain, account>,
|
|
373
373
|
) => Promise<EstimateGasL1ToL2ReturnType>
|
|
374
374
|
|
|
375
375
|
/**
|
|
@@ -415,12 +415,12 @@ export type PublicActionsL2<
|
|
|
415
415
|
|
|
416
416
|
export function publicActionsL2() {
|
|
417
417
|
return <
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
418
|
+
transport extends Transport = Transport,
|
|
419
|
+
chain extends ChainEIP712 | undefined = ChainEIP712 | undefined,
|
|
420
|
+
account extends Account | undefined = Account | undefined,
|
|
421
421
|
>(
|
|
422
|
-
client: Client<
|
|
423
|
-
): PublicActionsL2<
|
|
422
|
+
client: Client<transport, chain, account>,
|
|
423
|
+
): PublicActionsL2<chain, account> => {
|
|
424
424
|
return {
|
|
425
425
|
estimateGasL1ToL2: (args) => estimateGasL1ToL2(client, args),
|
|
426
426
|
getDefaultBridgeAddresses: () => getDefaultBridgeAddresses(client),
|
package/zksync/types/block.ts
CHANGED
|
@@ -14,14 +14,14 @@ export type ZkSyncBatchDetails = Omit<
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export type ZkSyncBlock<
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
includeTransactions extends boolean = boolean,
|
|
18
|
+
blockTag extends BlockTag = BlockTag,
|
|
19
19
|
> = Assign<
|
|
20
20
|
Block<
|
|
21
21
|
bigint,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ZkSyncTransaction<
|
|
22
|
+
includeTransactions,
|
|
23
|
+
blockTag,
|
|
24
|
+
ZkSyncTransaction<blockTag extends 'pending' ? true : false>
|
|
25
25
|
>,
|
|
26
26
|
{
|
|
27
27
|
l1BatchNumber: bigint | null
|
|
@@ -52,13 +52,13 @@ export type ZkSyncBlockDetails = {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export type ZkSyncRpcBlock<
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
blockTag extends BlockTag = BlockTag,
|
|
56
|
+
includeTransactions extends boolean = boolean,
|
|
57
57
|
> = Assign<
|
|
58
58
|
RpcBlock<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ZkSyncRpcTransaction<
|
|
59
|
+
blockTag,
|
|
60
|
+
includeTransactions,
|
|
61
|
+
ZkSyncRpcTransaction<blockTag extends 'pending' ? true : false>
|
|
62
62
|
>,
|
|
63
63
|
{
|
|
64
64
|
l1BatchNumber: Hex | null
|