viem 0.0.0-main.20240110T155739 → 0.0.0-main.20240110T220130
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 +7 -7
- package/README.md +1 -1
- package/_cjs/errors/base.js +1 -1
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/ens/getEnsAddress.js +2 -2
- package/_esm/actions/ens/getEnsAvatar.js +3 -3
- package/_esm/actions/ens/getEnsName.js +1 -1
- package/_esm/actions/ens/getEnsResolver.js +2 -2
- package/_esm/actions/ens/getEnsText.js +2 -2
- package/_esm/actions/getContract.js +2 -2
- package/_esm/actions/public/call.js +1 -1
- package/_esm/actions/public/createBlockFilter.js +3 -3
- package/_esm/actions/public/createContractEventFilter.js +3 -3
- package/_esm/actions/public/createEventFilter.js +3 -3
- package/_esm/actions/public/createPendingTransactionFilter.js +3 -3
- package/_esm/actions/public/estimateContractGas.js +2 -2
- package/_esm/actions/public/estimateFeesPerGas.js +2 -2
- package/_esm/actions/public/estimateGas.js +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -2
- package/_esm/actions/public/getBalance.js +2 -2
- package/_esm/actions/public/getBlock.js +1 -1
- package/_esm/actions/public/getBlockNumber.js +1 -1
- package/_esm/actions/public/getBlockTransactionCount.js +1 -1
- package/_esm/actions/public/getBytecode.js +1 -1
- package/_esm/actions/public/getChainId.js +1 -1
- package/_esm/actions/public/getContractEvents.js +1 -1
- package/_esm/actions/public/getFeeHistory.js +1 -1
- package/_esm/actions/public/getFilterChanges.js +5 -5
- package/_esm/actions/public/getFilterLogs.js +1 -1
- package/_esm/actions/public/getGasPrice.js +1 -1
- package/_esm/actions/public/getLogs.js +1 -1
- package/_esm/actions/public/getProof.js +1 -1
- package/_esm/actions/public/getStorageAt.js +1 -1
- package/_esm/actions/public/getTransaction.js +2 -2
- package/_esm/actions/public/getTransactionConfirmations.js +1 -1
- package/_esm/actions/public/getTransactionCount.js +2 -2
- package/_esm/actions/public/getTransactionReceipt.js +2 -2
- package/_esm/actions/public/multicall.js +2 -2
- package/_esm/actions/public/readContract.js +2 -2
- package/_esm/actions/public/simulateContract.js +3 -3
- package/_esm/actions/public/uninstallFilter.js +5 -5
- package/_esm/actions/public/verifyMessage.js +1 -1
- package/_esm/actions/public/verifyTypedData.js +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +2 -2
- package/_esm/actions/public/watchBlockNumber.js +1 -1
- package/_esm/actions/public/watchBlocks.js +1 -1
- package/_esm/actions/public/watchContractEvent.js +3 -3
- package/_esm/actions/public/watchEvent.js +4 -4
- package/_esm/actions/public/watchPendingTransactions.js +2 -2
- package/_esm/actions/test/dropTransaction.js +1 -1
- package/_esm/actions/test/dumpState.js +1 -1
- package/_esm/actions/test/getAutomine.js +1 -1
- package/_esm/actions/test/getTxpoolContent.js +1 -1
- package/_esm/actions/test/getTxpoolStatus.js +1 -1
- package/_esm/actions/test/impersonateAccount.js +1 -1
- package/_esm/actions/test/increaseTime.js +1 -1
- package/_esm/actions/test/inspectTxpool.js +1 -1
- package/_esm/actions/test/loadState.js +1 -1
- package/_esm/actions/test/mine.js +1 -1
- package/_esm/actions/test/removeBlockTimestampInterval.js +2 -2
- package/_esm/actions/test/reset.js +1 -1
- package/_esm/actions/test/revert.js +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js +1 -1
- package/_esm/actions/test/setAutomine.js +1 -1
- package/_esm/actions/test/setBalance.js +1 -1
- package/_esm/actions/test/setBlockGasLimit.js +1 -1
- package/_esm/actions/test/setBlockTimestampInterval.js +2 -2
- package/_esm/actions/test/setCode.js +1 -1
- package/_esm/actions/test/setCoinbase.js +1 -1
- package/_esm/actions/test/setIntervalMining.js +1 -1
- package/_esm/actions/test/setLoggingEnabled.js +1 -1
- package/_esm/actions/test/setMinGasPrice.js +1 -1
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js +1 -1
- package/_esm/actions/test/setNextBlockTimestamp.js +1 -1
- package/_esm/actions/test/setNonce.js +1 -1
- package/_esm/actions/test/setRpcUrl.js +1 -1
- package/_esm/actions/test/setStorageAt.js +1 -1
- package/_esm/actions/test/snapshot.js +1 -1
- package/_esm/actions/test/stopImpersonatingAccount.js +2 -2
- package/_esm/actions/wallet/addChain.js +1 -1
- package/_esm/actions/wallet/deployContract.js +2 -2
- package/_esm/actions/wallet/getAddresses.js +1 -1
- package/_esm/actions/wallet/getPermissions.js +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +1 -1
- package/_esm/actions/wallet/requestAddresses.js +1 -1
- package/_esm/actions/wallet/requestPermissions.js +1 -1
- package/_esm/actions/wallet/sendRawTransaction.js +1 -1
- package/_esm/actions/wallet/sendTransaction.js +2 -2
- package/_esm/actions/wallet/signMessage.js +4 -4
- package/_esm/actions/wallet/signTransaction.js +1 -1
- package/_esm/actions/wallet/signTypedData.js +2 -2
- package/_esm/actions/wallet/switchChain.js +1 -1
- package/_esm/actions/wallet/watchAsset.js +1 -1
- package/_esm/actions/wallet/writeContract.js +5 -5
- package/_esm/chains/opStack/actions/buildDepositTransaction.js +1 -1
- package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js +1 -1
- package/_esm/chains/opStack/actions/buildProveWithdrawal.js +1 -1
- package/_esm/chains/opStack/actions/depositTransaction.js +1 -1
- package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js +1 -1
- package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +1 -1
- package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js +1 -1
- package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js +1 -1
- package/_esm/chains/opStack/actions/finalizeWithdrawal.js +1 -1
- package/_esm/chains/opStack/actions/getL2Output.js +1 -1
- package/_esm/chains/opStack/actions/getTimeToFinalize.js +2 -2
- package/_esm/chains/opStack/actions/getTimeToNextL2Output.js +2 -2
- package/_esm/chains/opStack/actions/getTimeToProve.js +2 -2
- package/_esm/chains/opStack/actions/getWithdrawalStatus.js +2 -2
- package/_esm/chains/opStack/actions/initiateWithdrawal.js +1 -1
- package/_esm/chains/opStack/actions/proveWithdrawal.js +1 -1
- package/_esm/chains/opStack/actions/waitForNextL2Output.js +1 -1
- package/_esm/chains/opStack/actions/waitToFinalize.js +2 -2
- package/_esm/chains/opStack/actions/waitToProve.js +2 -2
- package/_esm/chains/opStack/decorators/publicL1.js +1 -1
- package/_esm/chains/opStack/decorators/publicL2.js +1 -1
- package/_esm/chains/opStack/decorators/walletL1.js +1 -1
- package/_esm/chains/opStack/decorators/walletL2.js +1 -1
- package/_esm/errors/base.js +1 -1
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/utils/encoding/fromBytes.js +6 -6
- package/_esm/utils/encoding/fromHex.js +6 -6
- package/_esm/utils/encoding/toBytes.js +6 -6
- package/_esm/utils/encoding/toHex.js +6 -6
- package/_esm/utils/ens/labelhash.js +1 -1
- package/_esm/utils/ens/namehash.js +1 -1
- package/_esm/utils/signature/verifyMessage.js +1 -1
- package/_esm/utils/signature/verifyTypedData.js +1 -1
- package/_esm/utils/unit/formatEther.js +1 -1
- package/_esm/utils/unit/formatGwei.js +1 -1
- package/_esm/utils/unit/formatUnits.js +1 -1
- package/_esm/utils/unit/parseEther.js +1 -1
- package/_esm/utils/unit/parseGwei.js +1 -1
- package/_esm/utils/unit/parseUnits.js +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +2 -2
- package/_types/actions/ens/getEnsAvatar.d.ts +3 -3
- package/_types/actions/ens/getEnsName.d.ts +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +2 -2
- package/_types/actions/ens/getEnsText.d.ts +2 -2
- package/_types/actions/getContract.d.ts +22 -22
- package/_types/actions/public/call.d.ts +1 -1
- package/_types/actions/public/createBlockFilter.d.ts +3 -3
- package/_types/actions/public/createContractEventFilter.d.ts +3 -3
- package/_types/actions/public/createEventFilter.d.ts +3 -3
- package/_types/actions/public/createPendingTransactionFilter.d.ts +3 -3
- package/_types/actions/public/estimateContractGas.d.ts +2 -2
- package/_types/actions/public/estimateFeesPerGas.d.ts +2 -2
- package/_types/actions/public/estimateGas.d.ts +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +2 -2
- package/_types/actions/public/getBalance.d.ts +2 -2
- package/_types/actions/public/getBlock.d.ts +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
- package/_types/actions/public/getBytecode.d.ts +1 -1
- package/_types/actions/public/getChainId.d.ts +1 -1
- package/_types/actions/public/getContractEvents.d.ts +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +1 -1
- package/_types/actions/public/getFilterChanges.d.ts +5 -5
- package/_types/actions/public/getFilterLogs.d.ts +1 -1
- package/_types/actions/public/getGasPrice.d.ts +1 -1
- package/_types/actions/public/getLogs.d.ts +1 -1
- package/_types/actions/public/getProof.d.ts +1 -1
- package/_types/actions/public/getStorageAt.d.ts +1 -1
- package/_types/actions/public/getTransaction.d.ts +2 -2
- package/_types/actions/public/getTransactionConfirmations.d.ts +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +2 -2
- package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
- package/_types/actions/public/multicall.d.ts +2 -2
- package/_types/actions/public/readContract.d.ts +2 -2
- package/_types/actions/public/simulateContract.d.ts +3 -3
- package/_types/actions/public/uninstallFilter.d.ts +5 -5
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyTypedData.d.ts +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +2 -2
- package/_types/actions/public/watchBlockNumber.d.ts +1 -1
- package/_types/actions/public/watchBlocks.d.ts +1 -1
- package/_types/actions/public/watchContractEvent.d.ts +3 -3
- package/_types/actions/public/watchEvent.d.ts +4 -4
- package/_types/actions/public/watchPendingTransactions.d.ts +2 -2
- package/_types/actions/test/dropTransaction.d.ts +1 -1
- package/_types/actions/test/dumpState.d.ts +1 -1
- package/_types/actions/test/getAutomine.d.ts +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
- package/_types/actions/test/impersonateAccount.d.ts +1 -1
- package/_types/actions/test/increaseTime.d.ts +1 -1
- package/_types/actions/test/inspectTxpool.d.ts +1 -1
- package/_types/actions/test/loadState.d.ts +1 -1
- package/_types/actions/test/mine.d.ts +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +2 -2
- package/_types/actions/test/reset.d.ts +1 -1
- package/_types/actions/test/revert.d.ts +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +1 -1
- package/_types/actions/test/setAutomine.d.ts +1 -1
- package/_types/actions/test/setBalance.d.ts +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts +2 -2
- package/_types/actions/test/setCode.d.ts +1 -1
- package/_types/actions/test/setCoinbase.d.ts +1 -1
- package/_types/actions/test/setIntervalMining.d.ts +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
- package/_types/actions/test/setNonce.d.ts +1 -1
- package/_types/actions/test/setRpcUrl.d.ts +1 -1
- package/_types/actions/test/setStorageAt.d.ts +1 -1
- package/_types/actions/test/snapshot.d.ts +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts +2 -2
- package/_types/actions/wallet/addChain.d.ts +1 -1
- package/_types/actions/wallet/deployContract.d.ts +2 -2
- package/_types/actions/wallet/getAddresses.d.ts +1 -1
- package/_types/actions/wallet/getPermissions.d.ts +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +2 -2
- package/_types/actions/wallet/signMessage.d.ts +4 -4
- package/_types/actions/wallet/signTransaction.d.ts +1 -1
- package/_types/actions/wallet/signTypedData.d.ts +2 -2
- package/_types/actions/wallet/switchChain.d.ts +1 -1
- package/_types/actions/wallet/watchAsset.d.ts +1 -1
- package/_types/actions/wallet/writeContract.d.ts +5 -5
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +1 -1
- package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/depositTransaction.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +1 -1
- package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/getL2Output.d.ts +1 -1
- package/_types/chains/opStack/actions/getTimeToFinalize.d.ts +2 -2
- package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +2 -2
- package/_types/chains/opStack/actions/getTimeToProve.d.ts +2 -2
- package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts +2 -2
- package/_types/chains/opStack/actions/initiateWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/proveWithdrawal.d.ts +1 -1
- package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +1 -1
- package/_types/chains/opStack/actions/waitToFinalize.d.ts +2 -2
- package/_types/chains/opStack/actions/waitToProve.d.ts +2 -2
- package/_types/chains/opStack/decorators/publicL1.d.ts +20 -20
- package/_types/chains/opStack/decorators/publicL2.d.ts +4 -4
- package/_types/chains/opStack/decorators/walletL1.d.ts +4 -4
- package/_types/chains/opStack/decorators/walletL2.d.ts +2 -2
- package/_types/clients/createPublicClient.d.ts +2 -2
- package/_types/clients/createTestClient.d.ts +3 -3
- package/_types/clients/createWalletClient.d.ts +5 -5
- package/_types/clients/decorators/public.d.ts +79 -79
- package/_types/clients/decorators/test.d.ts +33 -33
- package/_types/clients/decorators/wallet.d.ts +26 -26
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +6 -6
- package/_types/utils/encoding/fromHex.d.ts +6 -6
- package/_types/utils/encoding/toBytes.d.ts +6 -6
- package/_types/utils/encoding/toHex.d.ts +6 -6
- package/_types/utils/ens/labelhash.d.ts +1 -1
- package/_types/utils/ens/namehash.d.ts +1 -1
- package/_types/utils/signature/verifyMessage.d.ts +1 -1
- package/_types/utils/signature/verifyTypedData.d.ts +1 -1
- package/_types/utils/unit/formatEther.d.ts +1 -1
- package/_types/utils/unit/formatGwei.d.ts +1 -1
- package/_types/utils/unit/formatUnits.d.ts +1 -1
- package/_types/utils/unit/parseEther.d.ts +1 -1
- package/_types/utils/unit/parseGwei.d.ts +1 -1
- package/_types/utils/unit/parseUnits.d.ts +1 -1
- package/actions/ens/getEnsAddress.ts +2 -2
- package/actions/ens/getEnsAvatar.ts +3 -3
- package/actions/ens/getEnsName.ts +1 -1
- package/actions/ens/getEnsResolver.ts +2 -2
- package/actions/ens/getEnsText.ts +2 -2
- package/actions/getContract.ts +22 -22
- package/actions/public/call.ts +1 -1
- package/actions/public/createBlockFilter.ts +3 -3
- package/actions/public/createContractEventFilter.ts +3 -3
- package/actions/public/createEventFilter.ts +3 -3
- package/actions/public/createPendingTransactionFilter.ts +3 -3
- package/actions/public/estimateContractGas.ts +2 -2
- package/actions/public/estimateFeesPerGas.ts +2 -2
- package/actions/public/estimateGas.ts +1 -1
- package/actions/public/estimateMaxPriorityFeePerGas.ts +2 -2
- package/actions/public/getBalance.ts +2 -2
- package/actions/public/getBlock.ts +1 -1
- package/actions/public/getBlockNumber.ts +1 -1
- package/actions/public/getBlockTransactionCount.ts +1 -1
- package/actions/public/getBytecode.ts +1 -1
- package/actions/public/getChainId.ts +1 -1
- package/actions/public/getContractEvents.ts +1 -1
- package/actions/public/getFeeHistory.ts +1 -1
- package/actions/public/getFilterChanges.ts +5 -5
- package/actions/public/getFilterLogs.ts +1 -1
- package/actions/public/getGasPrice.ts +1 -1
- package/actions/public/getLogs.ts +1 -1
- package/actions/public/getProof.ts +1 -1
- package/actions/public/getStorageAt.ts +1 -1
- package/actions/public/getTransaction.ts +2 -2
- package/actions/public/getTransactionConfirmations.ts +1 -1
- package/actions/public/getTransactionCount.ts +2 -2
- package/actions/public/getTransactionReceipt.ts +2 -2
- package/actions/public/multicall.ts +2 -2
- package/actions/public/readContract.ts +2 -2
- package/actions/public/simulateContract.ts +3 -3
- package/actions/public/uninstallFilter.ts +5 -5
- package/actions/public/verifyMessage.ts +1 -1
- package/actions/public/verifyTypedData.ts +1 -1
- package/actions/public/waitForTransactionReceipt.ts +2 -2
- package/actions/public/watchBlockNumber.ts +1 -1
- package/actions/public/watchBlocks.ts +1 -1
- package/actions/public/watchContractEvent.ts +3 -3
- package/actions/public/watchEvent.ts +4 -4
- package/actions/public/watchPendingTransactions.ts +2 -2
- package/actions/test/dropTransaction.ts +1 -1
- package/actions/test/dumpState.ts +1 -1
- package/actions/test/getAutomine.ts +1 -1
- package/actions/test/getTxpoolContent.ts +1 -1
- package/actions/test/getTxpoolStatus.ts +1 -1
- package/actions/test/impersonateAccount.ts +1 -1
- package/actions/test/increaseTime.ts +1 -1
- package/actions/test/inspectTxpool.ts +1 -1
- package/actions/test/loadState.ts +1 -1
- package/actions/test/mine.ts +1 -1
- package/actions/test/removeBlockTimestampInterval.ts +2 -2
- package/actions/test/reset.ts +1 -1
- package/actions/test/revert.ts +1 -1
- package/actions/test/sendUnsignedTransaction.ts +1 -1
- package/actions/test/setAutomine.ts +1 -1
- package/actions/test/setBalance.ts +1 -1
- package/actions/test/setBlockGasLimit.ts +1 -1
- package/actions/test/setBlockTimestampInterval.ts +2 -2
- package/actions/test/setCode.ts +1 -1
- package/actions/test/setCoinbase.ts +1 -1
- package/actions/test/setIntervalMining.ts +1 -1
- package/actions/test/setLoggingEnabled.ts +1 -1
- package/actions/test/setMinGasPrice.ts +1 -1
- package/actions/test/setNextBlockBaseFeePerGas.ts +1 -1
- package/actions/test/setNextBlockTimestamp.ts +1 -1
- package/actions/test/setNonce.ts +1 -1
- package/actions/test/setRpcUrl.ts +1 -1
- package/actions/test/setStorageAt.ts +1 -1
- package/actions/test/snapshot.ts +1 -1
- package/actions/test/stopImpersonatingAccount.ts +2 -2
- package/actions/wallet/addChain.ts +1 -1
- package/actions/wallet/deployContract.ts +2 -2
- package/actions/wallet/getAddresses.ts +1 -1
- package/actions/wallet/getPermissions.ts +1 -1
- package/actions/wallet/prepareTransactionRequest.ts +1 -1
- package/actions/wallet/requestAddresses.ts +1 -1
- package/actions/wallet/requestPermissions.ts +1 -1
- package/actions/wallet/sendRawTransaction.ts +1 -1
- package/actions/wallet/sendTransaction.ts +2 -2
- package/actions/wallet/signMessage.ts +4 -4
- package/actions/wallet/signTransaction.ts +1 -1
- package/actions/wallet/signTypedData.ts +2 -2
- package/actions/wallet/switchChain.ts +1 -1
- package/actions/wallet/watchAsset.ts +1 -1
- package/actions/wallet/writeContract.ts +5 -5
- package/chains/opStack/actions/buildDepositTransaction.ts +1 -1
- package/chains/opStack/actions/buildInitiateWithdrawal.ts +1 -1
- package/chains/opStack/actions/buildProveWithdrawal.ts +1 -1
- 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/estimateProveWithdrawalGas.ts +1 -1
- package/chains/opStack/actions/finalizeWithdrawal.ts +1 -1
- package/chains/opStack/actions/getL2Output.ts +1 -1
- package/chains/opStack/actions/getTimeToFinalize.ts +2 -2
- package/chains/opStack/actions/getTimeToNextL2Output.ts +2 -2
- package/chains/opStack/actions/getTimeToProve.ts +2 -2
- package/chains/opStack/actions/getWithdrawalStatus.ts +2 -2
- package/chains/opStack/actions/initiateWithdrawal.ts +1 -1
- package/chains/opStack/actions/proveWithdrawal.ts +1 -1
- package/chains/opStack/actions/waitForNextL2Output.ts +1 -1
- package/chains/opStack/actions/waitToFinalize.ts +2 -2
- package/chains/opStack/actions/waitToProve.ts +2 -2
- package/chains/opStack/decorators/publicL1.ts +20 -20
- package/chains/opStack/decorators/publicL2.ts +4 -4
- package/chains/opStack/decorators/walletL1.ts +4 -4
- package/chains/opStack/decorators/walletL2.ts +2 -2
- package/chains/zksync/types.ts +6 -6
- package/clients/createPublicClient.ts +2 -2
- package/clients/createTestClient.ts +3 -3
- package/clients/createWalletClient.ts +5 -5
- package/clients/decorators/public.ts +79 -79
- package/clients/decorators/test.ts +33 -33
- package/clients/decorators/wallet.ts +26 -26
- package/errors/base.ts +1 -1
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/utils/encoding/fromBytes.ts +6 -6
- package/utils/encoding/fromHex.ts +6 -6
- package/utils/encoding/toBytes.ts +6 -6
- package/utils/encoding/toHex.ts +6 -6
- package/utils/ens/labelhash.ts +1 -1
- package/utils/ens/namehash.ts +1 -1
- package/utils/signature/verifyMessage.ts +1 -1
- package/utils/signature/verifyTypedData.ts +1 -1
- package/utils/unit/formatEther.ts +1 -1
- package/utils/unit/formatGwei.ts +1 -1
- package/utils/unit/formatUnits.ts +1 -1
- package/utils/unit/parseEther.ts +1 -1
- package/utils/unit/parseGwei.ts +1 -1
- package/utils/unit/parseUnits.ts +1 -1
@@ -40,9 +40,9 @@ export type GetTransactionCountErrorType =
|
|
40
40
|
| ErrorType
|
41
41
|
|
42
42
|
/**
|
43
|
-
* Returns the number of [Transactions](https://viem.sh/docs/glossary/terms
|
43
|
+
* Returns the number of [Transactions](https://viem.sh/docs/glossary/terms#transaction) an Account has broadcast / sent.
|
44
44
|
*
|
45
|
-
* - Docs: https://viem.sh/docs/actions/public/getTransactionCount
|
45
|
+
* - Docs: https://viem.sh/docs/actions/public/getTransactionCount
|
46
46
|
* - JSON-RPC Methods: [`eth_getTransactionCount`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactioncount)
|
47
47
|
*
|
48
48
|
* @param client - Client to use
|
@@ -28,9 +28,9 @@ export type GetTransactionReceiptErrorType =
|
|
28
28
|
| ErrorType
|
29
29
|
|
30
30
|
/**
|
31
|
-
* Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms
|
31
|
+
* Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash.
|
32
32
|
*
|
33
|
-
* - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt
|
33
|
+
* - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt
|
34
34
|
* - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions
|
35
35
|
* - JSON-RPC Methods: [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt)
|
36
36
|
*
|
@@ -73,9 +73,9 @@ export type MulticallErrorType =
|
|
73
73
|
| ErrorType
|
74
74
|
|
75
75
|
/**
|
76
|
-
* Similar to [`readContract`](https://viem.sh/docs/contract/readContract
|
76
|
+
* Similar to [`readContract`](https://viem.sh/docs/contract/readContract), but batches up multiple functions on a contract in a single RPC call via the [`multicall3` contract](https://github.com/mds1/multicall).
|
77
77
|
*
|
78
|
-
* - Docs: https://viem.sh/docs/contract/multicall
|
78
|
+
* - Docs: https://viem.sh/docs/contract/multicall
|
79
79
|
*
|
80
80
|
* @param client - Client to use
|
81
81
|
* @param parameters - {@link MulticallParameters}
|
@@ -64,12 +64,12 @@ export type ReadContractErrorType = GetContractErrorReturnType<
|
|
64
64
|
/**
|
65
65
|
* Calls a read-only function on a contract, and returns the response.
|
66
66
|
*
|
67
|
-
* - Docs: https://viem.sh/docs/contract/readContract
|
67
|
+
* - Docs: https://viem.sh/docs/contract/readContract
|
68
68
|
* - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/reading-contracts
|
69
69
|
*
|
70
70
|
* A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas.
|
71
71
|
*
|
72
|
-
* Internally, uses a [Public Client](https://viem.sh/docs/clients/public
|
72
|
+
* Internally, uses a [Public Client](https://viem.sh/docs/clients/public) to call the [`call` action](https://viem.sh/docs/actions/public/call) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData).
|
73
73
|
*
|
74
74
|
* @param client - Client to use
|
75
75
|
* @param parameters - {@link ReadContractParameters}
|
@@ -151,12 +151,12 @@ export type SimulateContractErrorType =
|
|
151
151
|
/**
|
152
152
|
* Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions.
|
153
153
|
*
|
154
|
-
* - Docs: https://viem.sh/docs/contract/simulateContract
|
154
|
+
* - Docs: https://viem.sh/docs/contract/simulateContract
|
155
155
|
* - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts
|
156
156
|
*
|
157
|
-
* This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract
|
157
|
+
* This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract), but also supports contract write functions.
|
158
158
|
*
|
159
|
-
* Internally, uses a [Public Client](https://viem.sh/docs/clients/public
|
159
|
+
* Internally, uses a [Public Client](https://viem.sh/docs/clients/public) to call the [`call` action](https://viem.sh/docs/actions/public/call) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData).
|
160
160
|
*
|
161
161
|
* @param client - Client to use
|
162
162
|
* @param parameters - {@link SimulateContractParameters}
|
@@ -13,15 +13,15 @@ export type UninstallFilterReturnType = boolean
|
|
13
13
|
export type UninstallFilterErrorType = RequestErrorType | ErrorType
|
14
14
|
|
15
15
|
/**
|
16
|
-
* Destroys a [`Filter`](https://viem.sh/docs/glossary/types
|
16
|
+
* Destroys a [`Filter`](https://viem.sh/docs/glossary/types#filter).
|
17
17
|
*
|
18
|
-
* - Docs: https://viem.sh/docs/actions/public/uninstallFilter
|
18
|
+
* - Docs: https://viem.sh/docs/actions/public/uninstallFilter
|
19
19
|
* - JSON-RPC Methods: [`eth_uninstallFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_uninstallFilter)
|
20
20
|
*
|
21
21
|
* Destroys a Filter that was created from one of the following Actions:
|
22
|
-
* - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter
|
23
|
-
* - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter
|
24
|
-
* - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter
|
22
|
+
* - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter)
|
23
|
+
* - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter)
|
24
|
+
* - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter)
|
25
25
|
*
|
26
26
|
* @param client - Client to use
|
27
27
|
* @param parameters - {@link UninstallFilterParameters}
|
@@ -34,7 +34,7 @@ export type VerifyMessageErrorType =
|
|
34
34
|
*
|
35
35
|
* Compatible with Smart Contract Accounts & Externally Owned Accounts via [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492).
|
36
36
|
*
|
37
|
-
* - Docs {@link https://viem.sh/docs/actions/public/verifyMessage
|
37
|
+
* - Docs {@link https://viem.sh/docs/actions/public/verifyMessage}
|
38
38
|
*
|
39
39
|
* @param client - Client to use.
|
40
40
|
* @param parameters - {@link VerifyMessageParameters}
|
@@ -37,7 +37,7 @@ export type VerifyTypedDataErrorType =
|
|
37
37
|
/**
|
38
38
|
* Verify that typed data was signed by the provided address.
|
39
39
|
*
|
40
|
-
* - Docs {@link https://viem.sh/docs/actions/public/verifyTypedData
|
40
|
+
* - Docs {@link https://viem.sh/docs/actions/public/verifyTypedData}
|
41
41
|
*
|
42
42
|
* @param client - Client to use.
|
43
43
|
* @param parameters - {@link VerifyTypedDataParameters}
|
@@ -75,9 +75,9 @@ export type WaitForTransactionReceiptErrorType =
|
|
75
75
|
| ErrorType
|
76
76
|
|
77
77
|
/**
|
78
|
-
* Waits for the [Transaction](https://viem.sh/docs/glossary/terms
|
78
|
+
* Waits for the [Transaction](https://viem.sh/docs/glossary/terms#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt). If the Transaction reverts, then the action will throw an error.
|
79
79
|
*
|
80
|
-
* - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt
|
80
|
+
* - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt
|
81
81
|
* - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions
|
82
82
|
* - JSON-RPC Methods:
|
83
83
|
* - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed.
|
@@ -55,7 +55,7 @@ export type WatchBlockNumberErrorType = PollErrorType | ErrorType
|
|
55
55
|
/**
|
56
56
|
* Watches and returns incoming block numbers.
|
57
57
|
*
|
58
|
-
* - Docs: https://viem.sh/docs/actions/public/watchBlockNumber
|
58
|
+
* - Docs: https://viem.sh/docs/actions/public/watchBlockNumber
|
59
59
|
* - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
|
60
60
|
* - JSON-RPC Methods:
|
61
61
|
* - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval.
|
@@ -76,7 +76,7 @@ export type WatchBlocksErrorType =
|
|
76
76
|
/**
|
77
77
|
* Watches and returns information for incoming blocks.
|
78
78
|
*
|
79
|
-
* - Docs: https://viem.sh/docs/actions/public/watchBlocks
|
79
|
+
* - Docs: https://viem.sh/docs/actions/public/watchBlocks
|
80
80
|
* - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
|
81
81
|
* - JSON-RPC Methods:
|
82
82
|
* - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval.
|
@@ -100,11 +100,11 @@ export type WatchContractEventErrorType =
|
|
100
100
|
/**
|
101
101
|
* Watches and returns emitted contract event logs.
|
102
102
|
*
|
103
|
-
* - Docs: https://viem.sh/docs/contract/watchContractEvent
|
103
|
+
* - Docs: https://viem.sh/docs/contract/watchContractEvent
|
104
104
|
*
|
105
|
-
* This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent
|
105
|
+
* This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/contract/watchContractEvent#onLogs).
|
106
106
|
*
|
107
|
-
* `watchContractEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter
|
107
|
+
* `watchContractEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchContractEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs) instead.
|
108
108
|
*
|
109
109
|
* @param client - Client to use
|
110
110
|
* @param parameters - {@link WatchContractEventParameters}
|
@@ -112,9 +112,9 @@ export type WatchEventErrorType =
|
|
112
112
|
| ErrorType
|
113
113
|
|
114
114
|
/**
|
115
|
-
* Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms
|
115
|
+
* Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms#event-log).
|
116
116
|
*
|
117
|
-
* - Docs: https://viem.sh/docs/actions/public/watchEvent
|
117
|
+
* - Docs: https://viem.sh/docs/actions/public/watchEvent
|
118
118
|
* - JSON-RPC Methods:
|
119
119
|
* - **RPC Provider supports `eth_newFilter`:**
|
120
120
|
* - Calls [`eth_newFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter) to create a filter (called on initialize).
|
@@ -122,9 +122,9 @@ export type WatchEventErrorType =
|
|
122
122
|
* - **RPC Provider does not support `eth_newFilter`:**
|
123
123
|
* - Calls [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs) for each block between the polling interval.
|
124
124
|
*
|
125
|
-
* This Action will batch up all the Event Logs found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchEvent
|
125
|
+
* This Action will batch up all the Event Logs found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchEvent#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/actions/public/watchEvent#onLogs).
|
126
126
|
*
|
127
|
-
* `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/actions/public/createEventFilter
|
127
|
+
* `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/actions/public/createEventFilter) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs) instead.
|
128
128
|
*
|
129
129
|
* @param client - Client to use
|
130
130
|
* @param parameters - {@link WatchEventParameters}
|
@@ -36,14 +36,14 @@ export type WatchPendingTransactionsErrorType =
|
|
36
36
|
/**
|
37
37
|
* Watches and returns pending transaction hashes.
|
38
38
|
*
|
39
|
-
* - Docs: https://viem.sh/docs/actions/public/watchPendingTransactions
|
39
|
+
* - Docs: https://viem.sh/docs/actions/public/watchPendingTransactions
|
40
40
|
* - JSON-RPC Methods:
|
41
41
|
* - When `poll: true`
|
42
42
|
* - Calls [`eth_newPendingTransactionFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newpendingtransactionfilter) to initialize the filter.
|
43
43
|
* - Calls [`eth_getFilterChanges`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getFilterChanges) on a polling interval.
|
44
44
|
* - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newPendingTransactions"` event.
|
45
45
|
*
|
46
|
-
* This Action will batch up all the pending transactions found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchPendingTransactions
|
46
|
+
* This Action will batch up all the pending transactions found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchPendingTransactions#pollinginterval-optional), and invoke them via [`onTransactions`](https://viem.sh/docs/actions/public/watchPendingTransactions#ontransactions).
|
47
47
|
*
|
48
48
|
* @param client - Client to use
|
49
49
|
* @param parameters - {@link WatchPendingTransactionsParameters}
|
@@ -19,7 +19,7 @@ export type DropTransactionErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Removes a transaction from the mempool.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/dropTransaction
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/dropTransaction
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters - {@link DropTransactionParameters}
|
@@ -16,7 +16,7 @@ export type DumpStateErrorType = RequestErrorType | ErrorType
|
|
16
16
|
* Serializes the current state (including contracts code, contract's storage,
|
17
17
|
* accounts properties, etc.) into a savable data blob.
|
18
18
|
*
|
19
|
-
* - Docs: https://viem.sh/docs/actions/test/dumpState
|
19
|
+
* - Docs: https://viem.sh/docs/actions/test/dumpState
|
20
20
|
*
|
21
21
|
* @param client - Client to use
|
22
22
|
*
|
@@ -15,7 +15,7 @@ export type GetAutomineErrorType = RequestErrorType | ErrorType
|
|
15
15
|
/**
|
16
16
|
* Returns the automatic mining status of the node.
|
17
17
|
*
|
18
|
-
* - Docs: https://viem.sh/docs/actions/test/getAutomine
|
18
|
+
* - Docs: https://viem.sh/docs/actions/test/getAutomine
|
19
19
|
*
|
20
20
|
* @param client - Client to use
|
21
21
|
* @returns Whether or not the node is auto mining. {@link GetAutomineReturnType}
|
@@ -23,7 +23,7 @@ export type GetTxpoolContentErrorType = RequestErrorType | ErrorType
|
|
23
23
|
/**
|
24
24
|
* Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
25
25
|
*
|
26
|
-
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
|
26
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
|
27
27
|
*
|
28
28
|
* @param client - Client to use
|
29
29
|
* @returns Transaction pool content. {@link GetTxpoolContentReturnType}
|
@@ -19,7 +19,7 @@ export type GetTxpoolStatusErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @returns Transaction pool status. {@link GetTxpoolStatusReturnType}
|
@@ -20,7 +20,7 @@ export type ImpersonateAccountErrorType = RequestErrorType | ErrorType
|
|
20
20
|
/**
|
21
21
|
* Impersonate an account or contract address. This lets you send transactions from that account even if you don't have access to its private key.
|
22
22
|
*
|
23
|
-
* - Docs: https://viem.sh/docs/actions/test/impersonateAccount
|
23
|
+
* - Docs: https://viem.sh/docs/actions/test/impersonateAccount
|
24
24
|
*
|
25
25
|
* @param client - Client to use
|
26
26
|
* @param parameters - {@link ImpersonateAccountParameters}
|
@@ -19,7 +19,7 @@ export type IncreaseTimeErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Jump forward in time by the given amount of time, in seconds.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/increaseTime
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/increaseTime
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters – {@link IncreaseTimeParameters}
|
@@ -20,7 +20,7 @@ export type InspectTxpoolErrorType = RequestErrorType | ErrorType
|
|
20
20
|
/**
|
21
21
|
* Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
22
22
|
*
|
23
|
-
* - Docs: https://viem.sh/docs/actions/test/inspectTxpool
|
23
|
+
* - Docs: https://viem.sh/docs/actions/test/inspectTxpool
|
24
24
|
*
|
25
25
|
* @param client - Client to use
|
26
26
|
* @returns Transaction pool inspection data. {@link InspectTxpoolReturnType}
|
@@ -16,7 +16,7 @@ export type LoadStateErrorType = RequestErrorType | ErrorType
|
|
16
16
|
/**
|
17
17
|
* Adds state previously dumped with `dumpState` to the current chain.
|
18
18
|
*
|
19
|
-
* - Docs: https://viem.sh/docs/actions/test/loadState
|
19
|
+
* - Docs: https://viem.sh/docs/actions/test/loadState
|
20
20
|
*
|
21
21
|
* @param client - Client to use
|
22
22
|
* @param parameters - {@link LoadStateParameters}
|
package/actions/test/mine.ts
CHANGED
@@ -21,7 +21,7 @@ export type MineErrorType = RequestErrorType | ErrorType
|
|
21
21
|
/**
|
22
22
|
* Mine a specified number of blocks.
|
23
23
|
*
|
24
|
-
* - Docs: https://viem.sh/docs/actions/test/mine
|
24
|
+
* - Docs: https://viem.sh/docs/actions/test/mine
|
25
25
|
*
|
26
26
|
* @param client - Client to use
|
27
27
|
* @param parameters – {@link MineParameters}
|
@@ -11,9 +11,9 @@ import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
11
11
|
export type RemoveBlockTimestampIntervalErrorType = RequestErrorType | ErrorType
|
12
12
|
|
13
13
|
/**
|
14
|
-
* Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval
|
14
|
+
* Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval) if it exists.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval
|
16
|
+
* - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
19
19
|
*
|
package/actions/test/reset.ts
CHANGED
@@ -20,7 +20,7 @@ export type ResetErrorType = RequestErrorType | ErrorType
|
|
20
20
|
/**
|
21
21
|
* Resets fork back to its original state.
|
22
22
|
*
|
23
|
-
* - Docs: https://viem.sh/docs/actions/test/reset
|
23
|
+
* - Docs: https://viem.sh/docs/actions/test/reset
|
24
24
|
*
|
25
25
|
* @param client - Client to use
|
26
26
|
* @param parameters – {@link ResetParameters}
|
package/actions/test/revert.ts
CHANGED
@@ -19,7 +19,7 @@ export type RevertErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Revert the state of the blockchain at the current block.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/revert
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/revert
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters – {@link RevertParameters}
|
@@ -26,7 +26,7 @@ export type SendUnsignedTransactionErrorType = RequestErrorType | ErrorType
|
|
26
26
|
/**
|
27
27
|
* Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
28
28
|
*
|
29
|
-
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
|
29
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
|
30
30
|
*
|
31
31
|
* @param client - Client to use
|
32
32
|
* @param parameters – {@link SendUnsignedTransactionParameters}
|
@@ -13,7 +13,7 @@ export type SetAutomineErrorType = RequestErrorType | ErrorType
|
|
13
13
|
/**
|
14
14
|
* Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/setAutomine
|
16
|
+
* - Docs: https://viem.sh/docs/actions/test/setAutomine
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
19
19
|
*
|
@@ -23,7 +23,7 @@ export type SetBalanceErrorType = RequestErrorType | ErrorType
|
|
23
23
|
/**
|
24
24
|
* Modifies the balance of an account.
|
25
25
|
*
|
26
|
-
* - Docs: https://viem.sh/docs/actions/test/setBalance
|
26
|
+
* - Docs: https://viem.sh/docs/actions/test/setBalance
|
27
27
|
*
|
28
28
|
* @param client - Client to use
|
29
29
|
* @param parameters – {@link SetBalanceParameters}
|
@@ -19,7 +19,7 @@ export type SetBlockGasLimitErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Sets the block's gas limit.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters – {@link SetBlockGasLimitParameters}
|
@@ -16,9 +16,9 @@ export type SetBlockTimestampIntervalParameters = {
|
|
16
16
|
export type SetBlockTimestampIntervalErrorType = RequestErrorType | ErrorType
|
17
17
|
|
18
18
|
/**
|
19
|
-
* Similar to [`increaseTime`](https://viem.sh/docs/actions/test/increaseTime
|
19
|
+
* Similar to [`increaseTime`](https://viem.sh/docs/actions/test/increaseTime), but sets a block timestamp `interval`. The timestamp of future blocks will be computed as `lastBlock_timestamp` + `interval`.
|
20
20
|
*
|
21
|
-
* - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval
|
21
|
+
* - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval
|
22
22
|
*
|
23
23
|
* @param client - Client to use
|
24
24
|
* @param parameters – {@link SetBlockTimestampIntervalParameters}
|
package/actions/test/setCode.ts
CHANGED
@@ -23,7 +23,7 @@ export type SetCodeErrorType = RequestErrorType | ErrorType
|
|
23
23
|
/**
|
24
24
|
* Modifies the bytecode stored at an account's address.
|
25
25
|
*
|
26
|
-
* - Docs: https://viem.sh/docs/actions/test/setCode
|
26
|
+
* - Docs: https://viem.sh/docs/actions/test/setCode
|
27
27
|
*
|
28
28
|
* @param client - Client to use
|
29
29
|
* @param parameters – {@link SetCodeParameters}
|
@@ -20,7 +20,7 @@ export type SetCoinbaseErrorType = RequestErrorType | ErrorType
|
|
20
20
|
/**
|
21
21
|
* Sets the coinbase address to be used in new blocks.
|
22
22
|
*
|
23
|
-
* - Docs: https://viem.sh/docs/actions/test/setCoinbase
|
23
|
+
* - Docs: https://viem.sh/docs/actions/test/setCoinbase
|
24
24
|
*
|
25
25
|
* @param client - Client to use
|
26
26
|
* @param parameters – {@link SetCoinbaseParameters}
|
@@ -18,7 +18,7 @@ export type SetIntervalMiningErrorType = RequestErrorType | ErrorType
|
|
18
18
|
/**
|
19
19
|
* Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.
|
20
20
|
*
|
21
|
-
* - Docs: https://viem.sh/docs/actions/test/setIntervalMining
|
21
|
+
* - Docs: https://viem.sh/docs/actions/test/setIntervalMining
|
22
22
|
*
|
23
23
|
* @param client - Client to use
|
24
24
|
* @param parameters – {@link SetIntervalMiningParameters}
|
@@ -13,7 +13,7 @@ export type SetLoggingEnabledErrorType = RequestErrorType | ErrorType
|
|
13
13
|
/**
|
14
14
|
* Enable or disable logging on the test node network.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled
|
16
|
+
* - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
19
19
|
*
|
@@ -19,7 +19,7 @@ export type SetMinGasPriceErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Change the minimum gas price accepted by the network (in wei).
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/setMinGasPrice
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/setMinGasPrice
|
23
23
|
*
|
24
24
|
* Note: `setMinGasPrice` can only be used on clients that do not have EIP-1559 enabled.
|
25
25
|
*
|
@@ -19,7 +19,7 @@ export type SetNextBlockBaseFeePerGasErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Sets the next block's base fee per gas.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters – {@link SetNextBlockBaseFeePerGasParameters}
|
@@ -19,7 +19,7 @@ export type SetNextBlockTimestampErrorType = RequestErrorType | ErrorType
|
|
19
19
|
/**
|
20
20
|
* Sets the next block's timestamp.
|
21
21
|
*
|
22
|
-
* - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp
|
22
|
+
* - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp
|
23
23
|
*
|
24
24
|
* @param client - Client to use
|
25
25
|
* @param parameters – {@link SetNextBlockTimestampParameters}
|
package/actions/test/setNonce.ts
CHANGED
@@ -23,7 +23,7 @@ export type SetNonceErrorType = RequestErrorType | ErrorType
|
|
23
23
|
/**
|
24
24
|
* Modifies (overrides) the nonce of an account.
|
25
25
|
*
|
26
|
-
* - Docs: https://viem.sh/docs/actions/test/setNonce
|
26
|
+
* - Docs: https://viem.sh/docs/actions/test/setNonce
|
27
27
|
*
|
28
28
|
* @param client - Client to use
|
29
29
|
* @param parameters – {@link SetNonceParameters}
|
@@ -13,7 +13,7 @@ export type SetRpcUrlErrorType = RequestErrorType | ErrorType
|
|
13
13
|
/**
|
14
14
|
* Sets the backend RPC URL.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/setRpcUrl
|
16
|
+
* - Docs: https://viem.sh/docs/actions/test/setRpcUrl
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
19
19
|
* @param jsonRpcUrl – RPC URL
|
@@ -26,7 +26,7 @@ export type SetStorageAtErrorType = RequestErrorType | ErrorType
|
|
26
26
|
/**
|
27
27
|
* Writes to a slot of an account's storage.
|
28
28
|
*
|
29
|
-
* - Docs: https://viem.sh/docs/actions/test/setStorageAt
|
29
|
+
* - Docs: https://viem.sh/docs/actions/test/setStorageAt
|
30
30
|
*
|
31
31
|
* @param client - Client to use
|
32
32
|
* @param parameters – {@link SetStorageAtParameters}
|
package/actions/test/snapshot.ts
CHANGED
@@ -13,7 +13,7 @@ export type SnapshotErrorType = RequestErrorType | ErrorType
|
|
13
13
|
/**
|
14
14
|
* Snapshot the state of the blockchain at the current block.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/snapshot
|
16
|
+
* - Docs: https://viem.sh/docs/actions/test/snapshot
|
17
17
|
*
|
18
18
|
* @param client - Client to use
|
19
19
|
*
|
@@ -18,9 +18,9 @@ export type StopImpersonatingAccountParameters = {
|
|
18
18
|
export type StopImpersonatingAccountErrorType = RequestErrorType | ErrorType
|
19
19
|
|
20
20
|
/**
|
21
|
-
* Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount
|
21
|
+
* Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount).
|
22
22
|
*
|
23
|
-
* - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount
|
23
|
+
* - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount
|
24
24
|
*
|
25
25
|
* @param client - Client to use
|
26
26
|
* @param parameters – {@link StopImpersonatingAccountParameters}
|
@@ -22,7 +22,7 @@ export type AddChainErrorType =
|
|
22
22
|
/**
|
23
23
|
* Adds an EVM chain to the wallet.
|
24
24
|
*
|
25
|
-
* - Docs: https://viem.sh/docs/actions/wallet/addChain
|
25
|
+
* - Docs: https://viem.sh/docs/actions/wallet/addChain
|
26
26
|
* - JSON-RPC Methods: [`eth_addEthereumChain`](https://eips.ethereum.org/EIPS/eip-3085)
|
27
27
|
*
|
28
28
|
* @param client - Client to use
|
@@ -46,12 +46,12 @@ export type DeployContractErrorType = SendTransactionErrorType | ErrorType
|
|
46
46
|
/**
|
47
47
|
* Deploys a contract to the network, given bytecode and constructor arguments.
|
48
48
|
*
|
49
|
-
* - Docs: https://viem.sh/docs/contract/deployContract
|
49
|
+
* - Docs: https://viem.sh/docs/contract/deployContract
|
50
50
|
* - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts
|
51
51
|
*
|
52
52
|
* @param client - Client to use
|
53
53
|
* @param parameters - {@link DeployContractParameters}
|
54
|
-
* @returns The [Transaction](https://viem.sh/docs/glossary/terms
|
54
|
+
* @returns The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link DeployContractReturnType}
|
55
55
|
*
|
56
56
|
* @example
|
57
57
|
* import { createWalletClient, http } from 'viem'
|
@@ -21,7 +21,7 @@ export type GetAddressesErrorType =
|
|
21
21
|
/**
|
22
22
|
* Returns a list of account addresses owned by the wallet or client.
|
23
23
|
*
|
24
|
-
* - Docs: https://viem.sh/docs/actions/wallet/getAddresses
|
24
|
+
* - Docs: https://viem.sh/docs/actions/wallet/getAddresses
|
25
25
|
* - JSON-RPC Methods: [`eth_accounts`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_accounts)
|
26
26
|
*
|
27
27
|
* @param client - Client to use
|
@@ -13,7 +13,7 @@ export type GetPermissionsErrorType = RequestErrorType | ErrorType
|
|
13
13
|
/**
|
14
14
|
* Gets the wallets current permissions.
|
15
15
|
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/wallet/getPermissions
|
16
|
+
* - Docs: https://viem.sh/docs/actions/wallet/getPermissions
|
17
17
|
* - JSON-RPC Methods: [`wallet_getPermissions`](https://eips.ethereum.org/EIPS/eip-2255)
|
18
18
|
*
|
19
19
|
* @param client - Client to use
|
@@ -109,7 +109,7 @@ export type PrepareTransactionRequestErrorType =
|
|
109
109
|
/**
|
110
110
|
* Prepares a transaction request for signing.
|
111
111
|
*
|
112
|
-
* - Docs: https://viem.sh/docs/actions/wallet/prepareTransactionRequest
|
112
|
+
* - Docs: https://viem.sh/docs/actions/wallet/prepareTransactionRequest
|
113
113
|
*
|
114
114
|
* @param args - {@link PrepareTransactionRequestParameters}
|
115
115
|
* @returns The transaction request. {@link PrepareTransactionRequestReturnType}
|
@@ -15,7 +15,7 @@ export type RequestAddressesErrorType = RequestErrorType | ErrorType
|
|
15
15
|
/**
|
16
16
|
* Requests a list of accounts managed by a wallet.
|
17
17
|
*
|
18
|
-
* - Docs: https://viem.sh/docs/actions/wallet/requestAddresses
|
18
|
+
* - Docs: https://viem.sh/docs/actions/wallet/requestAddresses
|
19
19
|
* - JSON-RPC Methods: [`eth_requestAccounts`](https://eips.ethereum.org/EIPS/eip-1102)
|
20
20
|
*
|
21
21
|
* Sends a request to the wallet, asking for permission to access the user's accounts. After the user accepts the request, it will return a list of accounts (addresses).
|
@@ -21,7 +21,7 @@ export type RequestPermissionsErrorType = RequestErrorType | ErrorType
|
|
21
21
|
/**
|
22
22
|
* Requests permissions for a wallet.
|
23
23
|
*
|
24
|
-
* - Docs: https://viem.sh/docs/actions/wallet/requestPermissions
|
24
|
+
* - Docs: https://viem.sh/docs/actions/wallet/requestPermissions
|
25
25
|
* - JSON-RPC Methods: [`wallet_requestPermissions`](https://eips.ethereum.org/EIPS/eip-2255)
|
26
26
|
*
|
27
27
|
* @param client - Client to use
|