viem 2.0.0-alpha.12 → 2.0.0-alpha.13
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 +22 -0
- package/_cjs/_test/generated.js +313 -0
- package/_cjs/_test/generated.js.map +1 -0
- package/_cjs/abi/index.js.map +1 -1
- package/_cjs/accounts/generateMnemonic.js.map +1 -1
- package/_cjs/accounts/generatePrivateKey.js.map +1 -1
- package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
- package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/accounts/utils/parseAccount.js.map +1 -1
- package/_cjs/accounts/utils/privateKeyToAddress.js.map +1 -1
- package/_cjs/accounts/utils/publicKeyToAddress.js.map +1 -1
- package/_cjs/accounts/utils/sign.js.map +1 -1
- package/_cjs/accounts/utils/signMessage.js.map +1 -1
- package/_cjs/accounts/utils/signTransaction.js.map +1 -1
- package/_cjs/accounts/utils/signTypedData.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/index.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/createContractEventFilter.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/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/getBalance.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/getBytecode.js.map +1 -1
- package/_cjs/actions/public/getChainId.js.map +1 -1
- package/_cjs/actions/public/getContractEvents.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/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/multicall.js.map +1 -1
- package/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/public/uninstallFilter.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.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/watchContractEvent.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/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/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 +6 -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 +6 -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/deployContract.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/prepareTransactionRequest.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/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signMessage.js.map +1 -1
- package/_cjs/actions/wallet/signTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signTypedData.js.map +1 -1
- package/_cjs/actions/wallet/switchChain.js.map +1 -1
- package/_cjs/actions/wallet/watchAsset.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/chains/definitions/holesky.js +6 -1
- package/_cjs/chains/definitions/holesky.js.map +1 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createPublicClient.js.map +1 -1
- package/_cjs/clients/createTestClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/clients/transports/http.js.map +1 -1
- package/_cjs/clients/transports/webSocket.js.map +1 -1
- package/_cjs/contract/index.js.map +1 -1
- package/_cjs/ens/index.js.map +1 -1
- package/_cjs/errors/abi.js.map +1 -1
- package/_cjs/errors/account.js.map +1 -1
- package/_cjs/errors/address.js.map +1 -1
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/block.js.map +1 -1
- package/_cjs/errors/ccip.js.map +1 -1
- package/_cjs/errors/chain.js.map +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/cursor.js.map +1 -1
- package/_cjs/errors/data.js.map +1 -1
- package/_cjs/errors/encoding.js.map +1 -1
- package/_cjs/errors/ens.js.map +1 -1
- package/_cjs/errors/estimateGas.js.map +1 -1
- package/_cjs/errors/fee.js.map +1 -1
- package/_cjs/errors/log.js.map +1 -1
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/request.js.map +1 -1
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/transport.js.map +1 -1
- package/_cjs/errors/utils.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +33 -7
- package/_cjs/index.js.map +1 -1
- package/_cjs/public/index.js.map +1 -1
- package/_cjs/test/index.js.map +1 -1
- package/_cjs/types/eip1193.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js +3 -3
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/address/getAddress.js.map +1 -1
- package/_cjs/utils/address/getContractAddress.js.map +1 -1
- package/_cjs/utils/address/isAddress.js.map +1 -1
- package/_cjs/utils/address/isAddressEqual.js.map +1 -1
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/chain.js.map +1 -1
- package/_cjs/utils/contract/extractFunctionParts.js.map +1 -1
- package/_cjs/utils/cursor.js.map +1 -1
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/isBytes.js.map +1 -1
- package/_cjs/utils/data/isBytesEqual.js.map +1 -1
- package/_cjs/utils/data/isHex.js.map +1 -1
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/size.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 +4 -4
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/encoding/fromRlp.js.map +1 -1
- package/_cjs/utils/encoding/toBytes.js.map +1 -1
- package/_cjs/utils/encoding/toHex.js.map +1 -1
- package/_cjs/utils/encoding/toRlp.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/ens/encodeLabelhash.js.map +1 -1
- package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
- package/_cjs/utils/ens/errors.js.map +1 -1
- package/_cjs/utils/ens/labelhash.js.map +1 -1
- package/_cjs/utils/ens/namehash.js.map +1 -1
- package/_cjs/utils/ens/normalize.js.map +1 -1
- package/_cjs/utils/ens/packetToBytes.js.map +1 -1
- package/_cjs/utils/errors/getCallError.js +6 -3
- package/_cjs/utils/errors/getCallError.js.map +1 -1
- package/_cjs/utils/errors/getContractError.js +14 -13
- package/_cjs/utils/errors/getContractError.js.map +1 -1
- package/_cjs/utils/errors/getEstimateGasError.js +6 -3
- package/_cjs/utils/errors/getEstimateGasError.js.map +1 -1
- package/_cjs/utils/errors/getNodeError.js.map +1 -1
- package/_cjs/utils/errors/getTransactionError.js +6 -3
- package/_cjs/utils/errors/getTransactionError.js.map +1 -1
- package/_cjs/utils/formatters/block.js.map +1 -1
- package/_cjs/utils/formatters/extract.js.map +1 -1
- package/_cjs/utils/formatters/feeHistory.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/formatters/log.js.map +1 -1
- package/_cjs/utils/formatters/transaction.js.map +1 -1
- package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
- package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/_cjs/utils/hash/getEventSelector.js.map +1 -1
- package/_cjs/utils/hash/getEventSignature.js.map +1 -1
- package/_cjs/utils/hash/getFunctionSelector.js.map +1 -1
- package/_cjs/utils/hash/getFunctionSignature.js.map +1 -1
- package/_cjs/utils/hash/hashFunction.js.map +1 -1
- package/_cjs/utils/hash/isHash.js.map +1 -1
- package/_cjs/utils/hash/keccak256.js.map +1 -1
- package/_cjs/utils/index.js +6 -4
- package/_cjs/utils/index.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/rpc.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/signature/hashTypedData.js.map +1 -1
- package/_cjs/utils/signature/hexToSignature.js.map +1 -1
- package/_cjs/utils/signature/recoverAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverPublicKey.js.map +1 -1
- package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
- package/_cjs/utils/signature/signatureToHex.js.map +1 -1
- package/_cjs/utils/signature/verifyMessage.js.map +1 -1
- package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
- package/_cjs/utils/stringify.js.map +1 -1
- package/_cjs/utils/transaction/assertRequest.js.map +1 -1
- package/_cjs/utils/transaction/assertTransaction.js.map +1 -1
- package/_cjs/utils/transaction/getSerializedTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_cjs/utils/typedData.js.map +1 -1
- package/_cjs/utils/unit/formatEther.js.map +1 -1
- package/_cjs/utils/unit/formatGwei.js.map +1 -1
- package/_cjs/utils/unit/formatUnits.js.map +1 -1
- package/_cjs/utils/unit/parseEther.js.map +1 -1
- package/_cjs/utils/unit/parseGwei.js.map +1 -1
- package/_cjs/utils/unit/parseUnits.js.map +1 -1
- package/_esm/_test/generated.js +335 -0
- package/_esm/_test/generated.js.map +1 -0
- package/_esm/abi/index.js +1 -1
- package/_esm/abi/index.js.map +1 -1
- package/_esm/accounts/generateMnemonic.js.map +1 -1
- package/_esm/accounts/generatePrivateKey.js.map +1 -1
- package/_esm/accounts/hdKeyToAccount.js +1 -1
- package/_esm/accounts/hdKeyToAccount.js.map +1 -1
- package/_esm/accounts/index.js +10 -10
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/mnemonicToAccount.js +1 -1
- package/_esm/accounts/mnemonicToAccount.js.map +1 -1
- package/_esm/accounts/privateKeyToAccount.js +3 -3
- package/_esm/accounts/privateKeyToAccount.js.map +1 -1
- package/_esm/accounts/toAccount.js +2 -2
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/accounts/utils/parseAccount.js.map +1 -1
- package/_esm/accounts/utils/privateKeyToAddress.js +2 -2
- package/_esm/accounts/utils/privateKeyToAddress.js.map +1 -1
- package/_esm/accounts/utils/publicKeyToAddress.js +2 -2
- package/_esm/accounts/utils/publicKeyToAddress.js.map +1 -1
- package/_esm/accounts/utils/sign.js.map +1 -1
- package/_esm/accounts/utils/signMessage.js +2 -2
- package/_esm/accounts/utils/signMessage.js.map +1 -1
- package/_esm/accounts/utils/signTransaction.js +1 -1
- package/_esm/accounts/utils/signTransaction.js.map +1 -1
- package/_esm/accounts/utils/signTypedData.js +2 -2
- package/_esm/accounts/utils/signTypedData.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js +4 -4
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/ens/getEnsAvatar.js +2 -2
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js +2 -2
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/ens/getEnsResolver.js +2 -2
- package/_esm/actions/ens/getEnsResolver.js.map +1 -1
- package/_esm/actions/ens/getEnsText.js +4 -4
- package/_esm/actions/ens/getEnsText.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/index.js +8 -8
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/call.js +8 -8
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createBlockFilter.js.map +1 -1
- package/_esm/actions/public/createContractEventFilter.js +1 -1
- package/_esm/actions/public/createContractEventFilter.js.map +1 -1
- package/_esm/actions/public/createEventFilter.js +1 -1
- package/_esm/actions/public/createEventFilter.js.map +1 -1
- package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +4 -4
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/estimateFeesPerGas.js +1 -1
- package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_esm/actions/public/estimateGas.js +3 -3
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -2
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_esm/actions/public/getBalance.js +1 -1
- package/_esm/actions/public/getBalance.js.map +1 -1
- package/_esm/actions/public/getBlock.js +2 -2
- package/_esm/actions/public/getBlock.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/getBlockTransactionCount.js +2 -2
- package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_esm/actions/public/getBytecode.js +1 -1
- package/_esm/actions/public/getBytecode.js.map +1 -1
- package/_esm/actions/public/getChainId.js +1 -1
- package/_esm/actions/public/getChainId.js.map +1 -1
- package/_esm/actions/public/getContractEvents.js +1 -1
- package/_esm/actions/public/getContractEvents.js.map +1 -1
- package/_esm/actions/public/getFeeHistory.js +2 -2
- package/_esm/actions/public/getFeeHistory.js.map +1 -1
- package/_esm/actions/public/getFilterChanges.js +2 -2
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js +2 -2
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getGasPrice.js.map +1 -1
- package/_esm/actions/public/getLogs.js +3 -3
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/getStorageAt.js +1 -1
- package/_esm/actions/public/getStorageAt.js.map +1 -1
- package/_esm/actions/public/getTransaction.js +1 -1
- package/_esm/actions/public/getTransaction.js.map +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js +2 -2
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js +2 -2
- package/_esm/actions/public/getTransactionCount.js.map +1 -1
- package/_esm/actions/public/getTransactionReceipt.js +1 -1
- package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/multicall.js +4 -4
- package/_esm/actions/public/multicall.js.map +1 -1
- package/_esm/actions/public/readContract.js +3 -3
- package/_esm/actions/public/readContract.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +4 -4
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/public/uninstallFilter.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +1 -1
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js +1 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +2 -2
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +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/watchContractEvent.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/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/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 +6 -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 +6 -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 +1 -1
- package/_esm/actions/wallet/addChain.js.map +1 -1
- package/_esm/actions/wallet/deployContract.js.map +1 -1
- package/_esm/actions/wallet/getAddresses.js +1 -1
- package/_esm/actions/wallet/getAddresses.js.map +1 -1
- package/_esm/actions/wallet/getPermissions.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +5 -5
- package/_esm/actions/wallet/prepareTransactionRequest.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/sendTransaction.js +5 -5
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/signMessage.js +2 -2
- package/_esm/actions/wallet/signMessage.js.map +1 -1
- package/_esm/actions/wallet/signTransaction.js +3 -3
- package/_esm/actions/wallet/signTransaction.js.map +1 -1
- package/_esm/actions/wallet/signTypedData.js +2 -2
- package/_esm/actions/wallet/signTypedData.js.map +1 -1
- package/_esm/actions/wallet/switchChain.js +1 -1
- package/_esm/actions/wallet/switchChain.js.map +1 -1
- package/_esm/actions/wallet/watchAsset.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js +1 -1
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/chains/definitions/holesky.js +6 -1
- package/_esm/chains/definitions/holesky.js.map +1 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/createPublicClient.js +1 -1
- package/_esm/clients/createPublicClient.js.map +1 -1
- package/_esm/clients/createTestClient.js +1 -1
- package/_esm/clients/createTestClient.js.map +1 -1
- package/_esm/clients/createWalletClient.js +1 -1
- package/_esm/clients/createWalletClient.js.map +1 -1
- package/_esm/clients/transports/createTransport.js.map +1 -1
- package/_esm/clients/transports/custom.js.map +1 -1
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/clients/transports/http.js +1 -1
- package/_esm/clients/transports/http.js.map +1 -1
- package/_esm/clients/transports/webSocket.js +1 -1
- package/_esm/clients/transports/webSocket.js.map +1 -1
- package/_esm/contract/index.js +2 -2
- package/_esm/contract/index.js.map +1 -1
- package/_esm/ens/index.js.map +1 -1
- package/_esm/errors/abi.js.map +1 -1
- package/_esm/errors/account.js.map +1 -1
- package/_esm/errors/address.js.map +1 -1
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/block.js.map +1 -1
- package/_esm/errors/ccip.js.map +1 -1
- package/_esm/errors/chain.js.map +1 -1
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/cursor.js.map +1 -1
- package/_esm/errors/data.js.map +1 -1
- package/_esm/errors/encoding.js.map +1 -1
- package/_esm/errors/ens.js.map +1 -1
- package/_esm/errors/estimateGas.js.map +1 -1
- package/_esm/errors/fee.js.map +1 -1
- package/_esm/errors/log.js.map +1 -1
- package/_esm/errors/node.js +0 -9
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/request.js.map +1 -1
- package/_esm/errors/rpc.js +0 -103
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/transaction.js.map +1 -1
- package/_esm/errors/transport.js.map +1 -1
- package/_esm/errors/utils.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +45 -43
- package/_esm/index.js.map +1 -1
- package/_esm/public/index.js +1 -1
- package/_esm/public/index.js.map +1 -1
- package/_esm/test/index.js +9 -9
- package/_esm/test/index.js.map +1 -1
- package/_esm/types/eip1193.js +0 -2
- package/_esm/types/eip1193.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js +2 -3
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/decodeDeployData.js +1 -1
- package/_esm/utils/abi/decodeDeployData.js.map +1 -1
- package/_esm/utils/abi/decodeErrorResult.js +2 -2
- package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/decodeEventLog.js +2 -2
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/utils/abi/decodeFunctionData.js +2 -2
- package/_esm/utils/abi/decodeFunctionData.js.map +1 -1
- package/_esm/utils/abi/decodeFunctionResult.js +1 -1
- package/_esm/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js +2 -4
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodeDeployData.js +1 -1
- package/_esm/utils/abi/encodeDeployData.js.map +1 -1
- package/_esm/utils/abi/encodeErrorResult.js +2 -2
- package/_esm/utils/abi/encodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/encodeEventTopics.js +4 -4
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
- package/_esm/utils/abi/encodeFunctionData.js +3 -3
- package/_esm/utils/abi/encodeFunctionData.js.map +1 -1
- package/_esm/utils/abi/encodeFunctionResult.js +1 -1
- package/_esm/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_esm/utils/abi/encodePacked.js +2 -2
- package/_esm/utils/abi/encodePacked.js.map +1 -1
- package/_esm/utils/abi/formatAbiItem.js +1 -1
- package/_esm/utils/abi/formatAbiItem.js.map +1 -1
- package/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -1
- package/_esm/utils/abi/getAbiItem.js +3 -3
- package/_esm/utils/abi/getAbiItem.js.map +1 -1
- package/_esm/utils/address/getAddress.js +1 -1
- package/_esm/utils/address/getAddress.js.map +1 -1
- package/_esm/utils/address/getContractAddress.js.map +1 -1
- package/_esm/utils/address/isAddress.js.map +1 -1
- package/_esm/utils/address/isAddressEqual.js +1 -1
- package/_esm/utils/address/isAddressEqual.js.map +1 -1
- package/_esm/utils/buildRequest.js +1 -1
- package/_esm/utils/buildRequest.js.map +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/chain.js.map +1 -1
- package/_esm/utils/contract/extractFunctionParts.js.map +1 -1
- package/_esm/utils/cursor.js.map +1 -1
- package/_esm/utils/data/concat.js.map +1 -1
- package/_esm/utils/data/isBytes.js.map +1 -1
- package/_esm/utils/data/isBytesEqual.js.map +1 -1
- package/_esm/utils/data/isHex.js.map +1 -1
- package/_esm/utils/data/pad.js +1 -1
- package/_esm/utils/data/pad.js.map +1 -1
- package/_esm/utils/data/size.js.map +1 -1
- package/_esm/utils/data/slice.js +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 +5 -5
- package/_esm/utils/encoding/fromBytes.js.map +1 -1
- package/_esm/utils/encoding/fromHex.js.map +1 -1
- package/_esm/utils/encoding/fromRlp.js +2 -2
- package/_esm/utils/encoding/fromRlp.js.map +1 -1
- package/_esm/utils/encoding/toBytes.js +1 -1
- package/_esm/utils/encoding/toBytes.js.map +1 -1
- package/_esm/utils/encoding/toHex.js +1 -1
- package/_esm/utils/encoding/toHex.js.map +1 -1
- package/_esm/utils/encoding/toRlp.js +1 -1
- package/_esm/utils/encoding/toRlp.js.map +1 -1
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js +1 -1
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/ens/encodeLabelhash.js.map +1 -1
- package/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -1
- package/_esm/utils/ens/errors.js.map +1 -1
- package/_esm/utils/ens/labelhash.js +2 -2
- package/_esm/utils/ens/labelhash.js.map +1 -1
- package/_esm/utils/ens/namehash.js +2 -2
- package/_esm/utils/ens/namehash.js.map +1 -1
- package/_esm/utils/ens/normalize.js.map +1 -1
- package/_esm/utils/ens/packetToBytes.js +2 -2
- package/_esm/utils/ens/packetToBytes.js.map +1 -1
- package/_esm/utils/errors/getCallError.js +8 -5
- package/_esm/utils/errors/getCallError.js.map +1 -1
- package/_esm/utils/errors/getContractError.js +14 -13
- package/_esm/utils/errors/getContractError.js.map +1 -1
- package/_esm/utils/errors/getEstimateGasError.js +8 -5
- package/_esm/utils/errors/getEstimateGasError.js.map +1 -1
- package/_esm/utils/errors/getNodeError.js.map +1 -1
- package/_esm/utils/errors/getTransactionError.js +8 -5
- package/_esm/utils/errors/getTransactionError.js.map +1 -1
- package/_esm/utils/formatters/block.js.map +1 -1
- package/_esm/utils/formatters/extract.js.map +1 -1
- package/_esm/utils/formatters/feeHistory.js.map +1 -1
- package/_esm/utils/formatters/formatter.js.map +1 -1
- package/_esm/utils/formatters/log.js.map +1 -1
- package/_esm/utils/formatters/transaction.js.map +1 -1
- package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
- package/_esm/utils/formatters/transactionRequest.js.map +1 -1
- package/_esm/utils/hash/getEventSelector.js.map +1 -1
- package/_esm/utils/hash/getEventSignature.js +1 -1
- package/_esm/utils/hash/getEventSignature.js.map +1 -1
- package/_esm/utils/hash/getFunctionSelector.js +1 -1
- package/_esm/utils/hash/getFunctionSelector.js.map +1 -1
- package/_esm/utils/hash/getFunctionSignature.js +1 -1
- package/_esm/utils/hash/getFunctionSignature.js.map +1 -1
- package/_esm/utils/hash/hashFunction.js +2 -2
- package/_esm/utils/hash/hashFunction.js.map +1 -1
- package/_esm/utils/hash/isHash.js.map +1 -1
- package/_esm/utils/hash/keccak256.js.map +1 -1
- package/_esm/utils/index.js +29 -27
- package/_esm/utils/index.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/rpc.js +2 -2
- package/_esm/utils/rpc.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js +1 -1
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/signature/hashTypedData.js +2 -2
- package/_esm/utils/signature/hashTypedData.js.map +1 -1
- package/_esm/utils/signature/hexToSignature.js +1 -1
- package/_esm/utils/signature/hexToSignature.js.map +1 -1
- package/_esm/utils/signature/recoverAddress.js.map +1 -1
- package/_esm/utils/signature/recoverMessageAddress.js +1 -1
- package/_esm/utils/signature/recoverMessageAddress.js.map +1 -1
- package/_esm/utils/signature/recoverPublicKey.js.map +1 -1
- package/_esm/utils/signature/recoverTypedDataAddress.js +1 -1
- package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -1
- package/_esm/utils/signature/signatureToHex.js +1 -1
- package/_esm/utils/signature/signatureToHex.js.map +1 -1
- package/_esm/utils/signature/verifyMessage.js +2 -2
- package/_esm/utils/signature/verifyMessage.js.map +1 -1
- package/_esm/utils/signature/verifyTypedData.js +1 -1
- package/_esm/utils/signature/verifyTypedData.js.map +1 -1
- package/_esm/utils/stringify.js.map +1 -1
- package/_esm/utils/transaction/assertRequest.js +4 -4
- package/_esm/utils/transaction/assertRequest.js.map +1 -1
- package/_esm/utils/transaction/assertTransaction.js +3 -3
- package/_esm/utils/transaction/assertTransaction.js.map +1 -1
- package/_esm/utils/transaction/getSerializedTransactionType.js +1 -1
- package/_esm/utils/transaction/getSerializedTransactionType.js.map +1 -1
- package/_esm/utils/transaction/getTransactionType.js +1 -1
- package/_esm/utils/transaction/getTransactionType.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js +2 -2
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/utils/transaction/serializeAccessList.js +2 -2
- package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +2 -2
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/utils/typedData.js +1 -1
- package/_esm/utils/typedData.js.map +1 -1
- package/_esm/utils/unit/formatEther.js.map +1 -1
- package/_esm/utils/unit/formatGwei.js.map +1 -1
- package/_esm/utils/unit/formatUnits.js.map +1 -1
- package/_esm/utils/unit/parseEther.js.map +1 -1
- package/_esm/utils/unit/parseGwei.js.map +1 -1
- package/_esm/utils/unit/parseUnits.js.map +1 -1
- package/_test/generated.ts +350 -0
- package/_types/_test/generated.d.ts +428 -0
- package/_types/_test/generated.d.ts.map +1 -0
- package/_types/abi/index.d.ts +4 -4
- package/_types/abi/index.d.ts.map +1 -1
- package/_types/accounts/generateMnemonic.d.ts +2 -0
- package/_types/accounts/generateMnemonic.d.ts.map +1 -1
- package/_types/accounts/generatePrivateKey.d.ts +3 -0
- package/_types/accounts/generatePrivateKey.d.ts.map +1 -1
- package/_types/accounts/hdKeyToAccount.d.ts +4 -0
- package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/index.d.ts +14 -14
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/mnemonicToAccount.d.ts +3 -0
- package/_types/accounts/mnemonicToAccount.d.ts.map +1 -1
- package/_types/accounts/privateKeyToAccount.d.ts +8 -0
- package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/toAccount.d.ts +4 -0
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/utils/parseAccount.d.ts +2 -0
- package/_types/accounts/utils/parseAccount.d.ts.map +1 -1
- package/_types/accounts/utils/privateKeyToAddress.d.ts +4 -0
- package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -1
- package/_types/accounts/utils/publicKeyToAddress.d.ts +4 -0
- package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -1
- package/_types/accounts/utils/sign.d.ts +3 -0
- package/_types/accounts/utils/sign.d.ts.map +1 -1
- package/_types/accounts/utils/signMessage.d.ts +5 -0
- package/_types/accounts/utils/signMessage.d.ts.map +1 -1
- package/_types/accounts/utils/signTransaction.d.ts +4 -0
- package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
- package/_types/accounts/utils/signTypedData.d.ts +5 -0
- package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +9 -0
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts +4 -1
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts +6 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +5 -0
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
- package/_types/actions/ens/getEnsText.d.ts +8 -1
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +2 -0
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/index.d.ts +79 -79
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +15 -1
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createBlockFilter.d.ts +3 -0
- package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
- package/_types/actions/public/createContractEventFilter.d.ts +5 -0
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createEventFilter.d.ts +5 -0
- package/_types/actions/public/createEventFilter.d.ts.map +1 -1
- package/_types/actions/public/createPendingTransactionFilter.d.ts +3 -0
- package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts +5 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/estimateFeesPerGas.d.ts +5 -0
- package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +6 -0
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +7 -0
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +4 -0
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getBlock.d.ts +5 -0
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +3 -0
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/getBlockTransactionCount.d.ts +5 -0
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getBytecode.d.ts +4 -0
- package/_types/actions/public/getBytecode.d.ts.map +1 -1
- package/_types/actions/public/getChainId.d.ts +4 -0
- package/_types/actions/public/getChainId.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts +4 -0
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getFeeHistory.d.ts +4 -0
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
- package/_types/actions/public/getFilterChanges.d.ts +5 -0
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/getFilterLogs.d.ts +5 -0
- package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/_types/actions/public/getGasPrice.d.ts +3 -0
- package/_types/actions/public/getGasPrice.d.ts.map +1 -1
- package/_types/actions/public/getLogs.d.ts +7 -0
- package/_types/actions/public/getLogs.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +4 -0
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +4 -0
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts +4 -0
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +5 -0
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +4 -0
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/multicall.d.ts +7 -0
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/public/readContract.d.ts +5 -1
- package/_types/actions/public/readContract.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts +7 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/public/uninstallFilter.d.ts +3 -0
- package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts +7 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +4 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts +4 -1
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts +3 -0
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts +4 -0
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts +5 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +4 -0
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts +4 -0
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
- package/_types/actions/test/dropTransaction.d.ts +3 -0
- package/_types/actions/test/dropTransaction.d.ts.map +1 -1
- package/_types/actions/test/getAutomine.d.ts +3 -0
- package/_types/actions/test/getAutomine.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolContent.d.ts +3 -0
- package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
- package/_types/actions/test/getTxpoolStatus.d.ts +3 -0
- package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
- package/_types/actions/test/impersonateAccount.d.ts +3 -0
- package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
- package/_types/actions/test/increaseTime.d.ts +3 -0
- package/_types/actions/test/increaseTime.d.ts.map +1 -1
- package/_types/actions/test/inspectTxpool.d.ts +3 -0
- package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
- package/_types/actions/test/mine.d.ts +3 -0
- package/_types/actions/test/mine.d.ts.map +1 -1
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +3 -0
- package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/reset.d.ts +3 -0
- package/_types/actions/test/reset.d.ts.map +1 -1
- package/_types/actions/test/revert.d.ts +3 -0
- package/_types/actions/test/revert.d.ts.map +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +3 -0
- package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/_types/actions/test/setAutomine.d.ts +3 -0
- package/_types/actions/test/setAutomine.d.ts.map +1 -1
- package/_types/actions/test/setBalance.d.ts +3 -0
- package/_types/actions/test/setBalance.d.ts.map +1 -1
- package/_types/actions/test/setBlockGasLimit.d.ts +3 -0
- package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
- package/_types/actions/test/setBlockTimestampInterval.d.ts +3 -0
- package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
- package/_types/actions/test/setCode.d.ts +3 -0
- package/_types/actions/test/setCode.d.ts.map +1 -1
- package/_types/actions/test/setCoinbase.d.ts +3 -0
- package/_types/actions/test/setCoinbase.d.ts.map +1 -1
- package/_types/actions/test/setIntervalMining.d.ts +3 -0
- package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
- package/_types/actions/test/setLoggingEnabled.d.ts +3 -0
- package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
- package/_types/actions/test/setMinGasPrice.d.ts +3 -0
- package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +3 -0
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
- package/_types/actions/test/setNextBlockTimestamp.d.ts +3 -0
- package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
- package/_types/actions/test/setNonce.d.ts +3 -0
- package/_types/actions/test/setNonce.d.ts.map +1 -1
- package/_types/actions/test/setRpcUrl.d.ts +3 -0
- package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
- package/_types/actions/test/setStorageAt.d.ts +3 -0
- package/_types/actions/test/setStorageAt.d.ts.map +1 -1
- package/_types/actions/test/snapshot.d.ts +3 -0
- package/_types/actions/test/snapshot.d.ts.map +1 -1
- package/_types/actions/test/stopImpersonatingAccount.d.ts +3 -0
- package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
- package/_types/actions/wallet/addChain.d.ts +4 -0
- package/_types/actions/wallet/addChain.d.ts.map +1 -1
- package/_types/actions/wallet/deployContract.d.ts +3 -1
- package/_types/actions/wallet/deployContract.d.ts.map +1 -1
- package/_types/actions/wallet/getAddresses.d.ts +4 -0
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/getPermissions.d.ts +3 -0
- package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +8 -0
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/requestAddresses.d.ts +3 -0
- package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/requestPermissions.d.ts +3 -0
- package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
- package/_types/actions/wallet/sendRawTransaction.d.ts +3 -0
- package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +11 -0
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signMessage.d.ts +6 -0
- package/_types/actions/wallet/signMessage.d.ts.map +1 -1
- package/_types/actions/wallet/signTransaction.d.ts +9 -0
- package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signTypedData.d.ts +9 -0
- package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
- package/_types/actions/wallet/switchChain.d.ts +4 -0
- package/_types/actions/wallet/switchChain.d.ts.map +1 -1
- package/_types/actions/wallet/watchAsset.d.ts +3 -0
- package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts +4 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/definitions/holesky.d.ts +6 -1
- package/_types/chains/definitions/holesky.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +3 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/createPublicClient.d.ts +3 -1
- package/_types/clients/createPublicClient.d.ts.map +1 -1
- package/_types/clients/createTestClient.d.ts +3 -1
- package/_types/clients/createTestClient.d.ts.map +1 -1
- package/_types/clients/createWalletClient.d.ts +3 -1
- package/_types/clients/createWalletClient.d.ts.map +1 -1
- package/_types/clients/transports/createTransport.d.ts +2 -0
- package/_types/clients/transports/createTransport.d.ts.map +1 -1
- package/_types/clients/transports/custom.d.ts +3 -1
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts +3 -1
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/clients/transports/http.d.ts +4 -1
- package/_types/clients/transports/http.d.ts.map +1 -1
- package/_types/clients/transports/webSocket.d.ts +4 -1
- package/_types/clients/transports/webSocket.d.ts.map +1 -1
- package/_types/contract/index.d.ts +25 -25
- package/_types/contract/index.d.ts.map +1 -1
- package/_types/ens/index.d.ts +8 -8
- package/_types/ens/index.d.ts.map +1 -1
- package/_types/errors/abi.d.ts +75 -0
- package/_types/errors/abi.d.ts.map +1 -1
- package/_types/errors/account.d.ts +3 -0
- package/_types/errors/account.d.ts.map +1 -1
- package/_types/errors/address.d.ts +3 -0
- package/_types/errors/address.d.ts.map +1 -1
- package/_types/errors/base.d.ts +3 -0
- package/_types/errors/base.d.ts.map +1 -1
- package/_types/errors/block.d.ts +3 -0
- package/_types/errors/block.d.ts.map +1 -1
- package/_types/errors/ccip.d.ts +9 -0
- package/_types/errors/ccip.d.ts.map +1 -1
- package/_types/errors/chain.d.ts +15 -0
- package/_types/errors/chain.d.ts.map +1 -1
- package/_types/errors/contract.d.ts +15 -0
- package/_types/errors/contract.d.ts.map +1 -1
- package/_types/errors/cursor.d.ts +6 -0
- package/_types/errors/cursor.d.ts.map +1 -1
- package/_types/errors/data.d.ts +6 -0
- package/_types/errors/data.d.ts.map +1 -1
- package/_types/errors/encoding.d.ts +26 -2
- package/_types/errors/encoding.d.ts.map +1 -1
- package/_types/errors/ens.d.ts +12 -0
- package/_types/errors/ens.d.ts.map +1 -1
- package/_types/errors/estimateGas.d.ts +3 -0
- package/_types/errors/estimateGas.d.ts.map +1 -1
- package/_types/errors/fee.d.ts +9 -0
- package/_types/errors/fee.d.ts.map +1 -1
- package/_types/errors/log.d.ts +3 -0
- package/_types/errors/log.d.ts.map +1 -1
- package/_types/errors/node.d.ts +37 -0
- package/_types/errors/node.d.ts.map +1 -1
- package/_types/errors/request.d.ts +12 -0
- package/_types/errors/request.d.ts.map +1 -1
- package/_types/errors/rpc.d.ts +81 -0
- package/_types/errors/rpc.d.ts.map +1 -1
- package/_types/errors/transaction.d.ts +30 -0
- package/_types/errors/transaction.d.ts.map +1 -1
- package/_types/errors/transport.d.ts +3 -0
- package/_types/errors/transport.d.ts.map +1 -1
- package/_types/errors/utils.d.ts +3 -0
- package/_types/errors/utils.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +176 -174
- package/_types/index.d.ts.map +1 -1
- package/_types/public/index.d.ts +27 -27
- package/_types/public/index.d.ts.map +1 -1
- package/_types/test/index.d.ts +28 -28
- package/_types/test/index.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +3 -0
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +20 -0
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/decodeDeployData.d.ts +4 -0
- package/_types/utils/abi/decodeDeployData.d.ts.map +1 -1
- package/_types/utils/abi/decodeErrorResult.d.ts +6 -0
- package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/decodeEventLog.d.ts +6 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionData.d.ts +7 -0
- package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionResult.d.ts +5 -0
- package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +21 -0
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeDeployData.d.ts +5 -0
- package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
- package/_types/utils/abi/encodeErrorResult.d.ts +7 -0
- package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeEventTopics.d.ts +11 -0
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionData.d.ts +8 -0
- package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionResult.d.ts +5 -0
- package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodePacked.d.ts +9 -0
- package/_types/utils/abi/encodePacked.d.ts.map +1 -1
- package/_types/utils/abi/formatAbiItem.d.ts +5 -0
- package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -0
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
- package/_types/utils/abi/getAbiItem.d.ts +6 -0
- package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
- package/_types/utils/address/getAddress.d.ts +6 -0
- package/_types/utils/address/getAddress.d.ts.map +1 -1
- package/_types/utils/address/getContractAddress.d.ts +11 -0
- package/_types/utils/address/getContractAddress.d.ts.map +1 -1
- package/_types/utils/address/isAddress.d.ts +2 -0
- package/_types/utils/address/isAddress.d.ts.map +1 -1
- package/_types/utils/address/isAddressEqual.d.ts +4 -0
- package/_types/utils/address/isAddressEqual.d.ts.map +1 -1
- package/_types/utils/buildRequest.d.ts +8 -0
- package/_types/utils/buildRequest.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +3 -0
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/chain.d.ts +4 -0
- package/_types/utils/chain.d.ts.map +1 -1
- package/_types/utils/contract/extractFunctionParts.d.ts +5 -0
- package/_types/utils/contract/extractFunctionParts.d.ts.map +1 -1
- package/_types/utils/cursor.d.ts +7 -0
- package/_types/utils/cursor.d.ts.map +1 -1
- package/_types/utils/data/concat.d.ts +4 -0
- package/_types/utils/data/concat.d.ts.map +1 -1
- package/_types/utils/data/isBytes.d.ts +2 -0
- package/_types/utils/data/isBytes.d.ts.map +1 -1
- package/_types/utils/data/isBytesEqual.d.ts +4 -0
- package/_types/utils/data/isBytesEqual.d.ts.map +1 -1
- package/_types/utils/data/isHex.d.ts +2 -0
- package/_types/utils/data/isHex.d.ts.map +1 -1
- package/_types/utils/data/pad.d.ts +5 -0
- package/_types/utils/data/pad.d.ts.map +1 -1
- package/_types/utils/data/size.d.ts +3 -0
- package/_types/utils/data/size.d.ts.map +1 -1
- package/_types/utils/data/slice.d.ts +9 -0
- package/_types/utils/data/slice.d.ts.map +1 -1
- package/_types/utils/data/trim.d.ts +2 -0
- package/_types/utils/data/trim.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts +13 -5
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/encoding/fromHex.d.ts +11 -0
- package/_types/utils/encoding/fromHex.d.ts.map +1 -1
- package/_types/utils/encoding/fromRlp.d.ts +12 -0
- package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
- package/_types/utils/encoding/toBytes.d.ts +12 -3
- package/_types/utils/encoding/toBytes.d.ts.map +1 -1
- package/_types/utils/encoding/toHex.d.ts +9 -0
- package/_types/utils/encoding/toHex.d.ts.map +1 -1
- package/_types/utils/encoding/toRlp.d.ts +7 -0
- package/_types/utils/encoding/toRlp.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +4 -0
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts +11 -0
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/ens/encodeLabelhash.d.ts +2 -0
- package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -1
- package/_types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
- package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -1
- package/_types/utils/ens/errors.d.ts +2 -0
- package/_types/utils/ens/errors.d.ts.map +1 -1
- package/_types/utils/ens/labelhash.d.ts +6 -0
- package/_types/utils/ens/labelhash.d.ts.map +1 -1
- package/_types/utils/ens/namehash.d.ts +7 -0
- package/_types/utils/ens/namehash.d.ts.map +1 -1
- package/_types/utils/ens/normalize.d.ts +2 -0
- package/_types/utils/ens/normalize.d.ts.map +1 -1
- package/_types/utils/ens/packetToBytes.d.ts +5 -0
- package/_types/utils/ens/packetToBytes.d.ts.map +1 -1
- package/_types/utils/errors/getCallError.d.ts +8 -4
- package/_types/utils/errors/getCallError.d.ts.map +1 -1
- package/_types/utils/errors/getContractError.d.ts +7 -4
- package/_types/utils/errors/getContractError.d.ts.map +1 -1
- package/_types/utils/errors/getEstimateGasError.d.ts +8 -4
- package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
- package/_types/utils/errors/getNodeError.d.ts +3 -2
- package/_types/utils/errors/getNodeError.d.ts.map +1 -1
- package/_types/utils/errors/getTransactionError.d.ts +7 -3
- package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +4 -0
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/extract.d.ts +2 -0
- package/_types/utils/formatters/extract.d.ts.map +1 -1
- package/_types/utils/formatters/feeHistory.d.ts +2 -0
- package/_types/utils/formatters/feeHistory.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +2 -0
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/log.d.ts +2 -0
- package/_types/utils/formatters/log.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +4 -0
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +4 -0
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +4 -0
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/hash/getEventSelector.d.ts +4 -0
- package/_types/utils/hash/getEventSelector.d.ts.map +1 -1
- package/_types/utils/hash/getEventSignature.d.ts +3 -0
- package/_types/utils/hash/getEventSignature.d.ts.map +1 -1
- package/_types/utils/hash/getFunctionSelector.d.ts +6 -0
- package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -1
- package/_types/utils/hash/getFunctionSignature.d.ts +4 -0
- package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -1
- package/_types/utils/hash/hashFunction.d.ts +7 -0
- package/_types/utils/hash/hashFunction.d.ts.map +1 -1
- package/_types/utils/hash/isHash.d.ts +4 -0
- package/_types/utils/hash/isHash.d.ts.map +1 -1
- package/_types/utils/hash/keccak256.d.ts +5 -0
- package/_types/utils/hash/keccak256.d.ts.map +1 -1
- package/_types/utils/index.d.ts +80 -78
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +2 -0
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/poll.d.ts +2 -0
- package/_types/utils/poll.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +2 -0
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +2 -0
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/promise/withRetry.d.ts +2 -0
- package/_types/utils/promise/withRetry.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts +2 -0
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc.d.ts +8 -0
- package/_types/utils/rpc.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +5 -0
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/signature/hashTypedData.d.ts +13 -0
- package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
- package/_types/utils/signature/hexToSignature.d.ts +3 -0
- package/_types/utils/signature/hexToSignature.d.ts.map +1 -1
- package/_types/utils/signature/recoverAddress.d.ts +2 -0
- package/_types/utils/signature/recoverAddress.d.ts.map +1 -1
- package/_types/utils/signature/recoverMessageAddress.d.ts +4 -0
- package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -1
- package/_types/utils/signature/recoverPublicKey.d.ts +4 -0
- package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -1
- package/_types/utils/signature/recoverTypedDataAddress.d.ts +4 -0
- package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -1
- package/_types/utils/signature/signatureToHex.d.ts +4 -0
- package/_types/utils/signature/signatureToHex.d.ts.map +1 -1
- package/_types/utils/signature/verifyMessage.d.ts +5 -0
- package/_types/utils/signature/verifyMessage.d.ts.map +1 -1
- package/_types/utils/signature/verifyTypedData.d.ts +5 -0
- package/_types/utils/signature/verifyTypedData.d.ts.map +1 -1
- package/_types/utils/stringify.d.ts +2 -0
- package/_types/utils/stringify.d.ts.map +1 -1
- package/_types/utils/transaction/assertRequest.d.ts +6 -0
- package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
- package/_types/utils/transaction/assertTransaction.d.ts +9 -0
- package/_types/utils/transaction/assertTransaction.d.ts.map +1 -1
- package/_types/utils/transaction/getSerializedTransactionType.d.ts +5 -0
- package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/getTransactionType.d.ts +3 -0
- package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +18 -1
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/_types/utils/transaction/serializeAccessList.d.ts +5 -0
- package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts +13 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/_types/utils/typedData.d.ts +8 -0
- package/_types/utils/typedData.d.ts.map +1 -1
- package/_types/utils/unit/formatEther.d.ts +2 -0
- package/_types/utils/unit/formatEther.d.ts.map +1 -1
- package/_types/utils/unit/formatGwei.d.ts +2 -0
- package/_types/utils/unit/formatGwei.d.ts.map +1 -1
- package/_types/utils/unit/formatUnits.d.ts +2 -0
- package/_types/utils/unit/formatUnits.d.ts.map +1 -1
- package/_types/utils/unit/parseEther.d.ts +3 -0
- package/_types/utils/unit/parseEther.d.ts.map +1 -1
- package/_types/utils/unit/parseGwei.d.ts +3 -0
- package/_types/utils/unit/parseGwei.d.ts.map +1 -1
- package/_types/utils/unit/parseUnits.d.ts +2 -0
- package/_types/utils/unit/parseUnits.d.ts.map +1 -1
- package/abi/index.ts +7 -1
- package/accounts/generateMnemonic.ts +3 -0
- package/accounts/generatePrivateKey.ts +4 -1
- package/accounts/hdKeyToAccount.ts +11 -2
- package/accounts/index.ts +46 -11
- package/accounts/mnemonicToAccount.ts +7 -1
- package/accounts/privateKeyToAccount.ts +25 -6
- package/accounts/toAccount.ts +14 -2
- package/accounts/utils/parseAccount.ts +3 -0
- package/accounts/utils/privateKeyToAddress.ts +14 -2
- package/accounts/utils/publicKeyToAddress.ts +14 -2
- package/accounts/utils/sign.ts +5 -1
- package/accounts/utils/signMessage.ts +17 -3
- package/accounts/utils/signTransaction.ts +12 -2
- package/accounts/utils/signTypedData.ts +16 -3
- package/actions/ens/getEnsAddress.ts +30 -7
- package/actions/ens/getEnsAvatar.ts +15 -2
- package/actions/ens/getEnsName.ts +18 -3
- package/actions/ens/getEnsResolver.ts +16 -3
- package/actions/ens/getEnsText.ts +28 -6
- package/actions/getContract.ts +3 -0
- package/actions/index.ts +111 -10
- package/actions/public/call.ts +60 -10
- package/actions/public/createBlockFilter.ts +4 -0
- package/actions/public/createContractEventFilter.ts +13 -1
- package/actions/public/createEventFilter.ts +13 -1
- package/actions/public/createPendingTransactionFilter.ts +6 -0
- package/actions/public/estimateContractGas.ts +21 -4
- package/actions/public/estimateFeesPerGas.ts +15 -2
- package/actions/public/estimateGas.ts +21 -3
- package/actions/public/estimateMaxPriorityFeePerGas.ts +22 -4
- package/actions/public/getBalance.ts +11 -1
- package/actions/public/getBlock.ts +16 -2
- package/actions/public/getBlockNumber.ts +4 -0
- package/actions/public/getBlockTransactionCount.ts +16 -2
- package/actions/public/getBytecode.ts +11 -1
- package/actions/public/getChainId.ts +11 -1
- package/actions/public/getContractEvents.ts +12 -2
- package/actions/public/getFeeHistory.ts +14 -2
- package/actions/public/getFilterChanges.ts +16 -2
- package/actions/public/getFilterLogs.ts +16 -2
- package/actions/public/getGasPrice.ts +4 -0
- package/actions/public/getLogs.ts +23 -3
- package/actions/public/getStorageAt.ts +11 -1
- package/actions/public/getTransaction.ts +11 -1
- package/actions/public/getTransactionConfirmations.ts +14 -2
- package/actions/public/getTransactionCount.ts +16 -2
- package/actions/public/getTransactionReceipt.ts +11 -1
- package/actions/public/multicall.ts +27 -5
- package/actions/public/readContract.ts +18 -4
- package/actions/public/simulateContract.ts +24 -5
- package/actions/public/uninstallFilter.ts +4 -0
- package/actions/public/verifyHash.ts +17 -2
- package/actions/public/verifyMessage.ts +12 -1
- package/actions/public/verifyTypedData.ts +15 -2
- package/actions/public/waitForTransactionReceipt.ts +17 -3
- package/actions/public/watchBlockNumber.ts +4 -1
- package/actions/public/watchBlocks.ts +8 -2
- package/actions/public/watchContractEvent.ts +12 -5
- package/actions/public/watchEvent.ts +8 -2
- package/actions/public/watchPendingTransactions.ts +8 -2
- package/actions/test/dropTransaction.ts +4 -0
- package/actions/test/getAutomine.ts +4 -0
- package/actions/test/getTxpoolContent.ts +4 -0
- package/actions/test/getTxpoolStatus.ts +4 -0
- package/actions/test/impersonateAccount.ts +4 -0
- package/actions/test/increaseTime.ts +4 -0
- package/actions/test/inspectTxpool.ts +4 -0
- package/actions/test/mine.ts +4 -0
- package/actions/test/removeBlockTimestampInterval.ts +4 -0
- package/actions/test/reset.ts +4 -0
- package/actions/test/revert.ts +4 -0
- package/actions/test/sendUnsignedTransaction.ts +4 -0
- package/actions/test/setAutomine.ts +4 -0
- package/actions/test/setBalance.ts +4 -0
- package/actions/test/setBlockGasLimit.ts +4 -0
- package/actions/test/setBlockTimestampInterval.ts +10 -1
- package/actions/test/setCode.ts +4 -0
- package/actions/test/setCoinbase.ts +4 -0
- package/actions/test/setIntervalMining.ts +10 -1
- package/actions/test/setLoggingEnabled.ts +4 -0
- package/actions/test/setMinGasPrice.ts +4 -0
- package/actions/test/setNextBlockBaseFeePerGas.ts +4 -0
- package/actions/test/setNextBlockTimestamp.ts +4 -0
- package/actions/test/setNonce.ts +4 -0
- package/actions/test/setRpcUrl.ts +4 -0
- package/actions/test/setStorageAt.ts +4 -0
- package/actions/test/snapshot.ts +4 -0
- package/actions/test/stopImpersonatingAccount.ts +4 -0
- package/actions/wallet/addChain.ts +11 -1
- package/actions/wallet/deployContract.ts +4 -0
- package/actions/wallet/getAddresses.ts +11 -1
- package/actions/wallet/getPermissions.ts +4 -0
- package/actions/wallet/prepareTransactionRequest.ts +34 -6
- package/actions/wallet/requestAddresses.ts +4 -0
- package/actions/wallet/requestPermissions.ts +4 -0
- package/actions/wallet/sendRawTransaction.ts +4 -0
- package/actions/wallet/sendTransaction.ts +38 -6
- package/actions/wallet/signMessage.ts +19 -2
- package/actions/wallet/signTransaction.ts +27 -4
- package/actions/wallet/signTypedData.ts +26 -4
- package/actions/wallet/switchChain.ts +11 -1
- package/actions/wallet/watchAsset.ts +3 -0
- package/actions/wallet/writeContract.ts +11 -1
- package/chains/definitions/holesky.ts +6 -1
- package/clients/createClient.ts +4 -0
- package/clients/createPublicClient.ts +9 -1
- package/clients/createTestClient.ts +9 -1
- package/clients/createWalletClient.ts +9 -1
- package/clients/transports/createTransport.ts +3 -0
- package/clients/transports/custom.ts +4 -0
- package/clients/transports/fallback.ts +4 -0
- package/clients/transports/http.ts +11 -1
- package/clients/transports/webSocket.ts +11 -1
- package/contract/index.ts +31 -2
- package/ens/index.ts +8 -3
- package/errors/abi.ts +87 -0
- package/errors/account.ts +3 -0
- package/errors/address.ts +3 -0
- package/errors/base.ts +1 -0
- package/errors/block.ts +3 -0
- package/errors/ccip.ts +11 -0
- package/errors/chain.ts +17 -0
- package/errors/contract.ts +18 -0
- package/errors/cursor.ts +6 -0
- package/errors/data.ts +6 -0
- package/errors/encoding.ts +26 -2
- package/errors/ens.ts +14 -0
- package/errors/estimateGas.ts +3 -0
- package/errors/fee.ts +9 -0
- package/errors/log.ts +3 -0
- package/errors/node.ts +38 -1
- package/errors/request.ts +12 -0
- package/errors/rpc.ts +81 -0
- package/errors/transaction.ts +35 -0
- package/errors/transport.ts +3 -0
- package/errors/utils.ts +2 -0
- package/errors/version.ts +1 -1
- package/index.ts +549 -80
- package/package.json +1 -1
- package/public/index.ts +34 -1
- package/test/index.ts +60 -10
- package/types/eip1193.ts +3 -0
- package/utils/abi/decodeAbiParameters.ts +70 -5
- package/utils/abi/decodeDeployData.ts +13 -1
- package/utils/abi/decodeErrorResult.ts +21 -5
- package/utils/abi/decodeEventLog.ts +26 -3
- package/utils/abi/decodeFunctionData.ts +19 -5
- package/utils/abi/decodeFunctionResult.ts +15 -2
- package/utils/abi/encodeAbiParameters.ts +87 -7
- package/utils/abi/encodeDeployData.ts +13 -3
- package/utils/abi/encodeErrorResult.ts +20 -5
- package/utils/abi/encodeEventTopics.ts +36 -9
- package/utils/abi/encodeFunctionData.ts +25 -6
- package/utils/abi/encodeFunctionResult.ts +13 -2
- package/utils/abi/encodePacked.ts +35 -5
- package/utils/abi/formatAbiItem.ts +14 -1
- package/utils/abi/formatAbiItemWithArgs.ts +3 -0
- package/utils/abi/getAbiItem.ts +16 -4
- package/utils/address/getAddress.ts +16 -3
- package/utils/address/getContractAddress.ts +27 -8
- package/utils/address/isAddress.ts +3 -0
- package/utils/address/isAddressEqual.ts +8 -2
- package/utils/buildRequest.ts +62 -2
- package/utils/ccip.ts +5 -0
- package/utils/chain.ts +12 -0
- package/utils/contract/extractFunctionParts.ts +10 -0
- package/utils/cursor.ts +15 -0
- package/utils/data/concat.ts +10 -0
- package/utils/data/isBytes.ts +3 -0
- package/utils/data/isBytesEqual.ts +8 -2
- package/utils/data/isHex.ts +3 -0
- package/utils/data/pad.ts +11 -1
- package/utils/data/size.ts +4 -1
- package/utils/data/slice.ts +33 -3
- package/utils/data/trim.ts +3 -0
- package/utils/encoding/fromBytes.ts +44 -8
- package/utils/encoding/fromHex.ts +35 -3
- package/utils/encoding/fromRlp.ts +34 -5
- package/utils/encoding/toBytes.ts +36 -6
- package/utils/encoding/toHex.ts +25 -3
- package/utils/encoding/toRlp.ts +18 -3
- package/utils/ens/avatar/parseAvatarRecord.ts +21 -0
- package/utils/ens/avatar/utils.ts +41 -1
- package/utils/ens/encodeLabelhash.ts +3 -0
- package/utils/ens/encodedLabelToLabelhash.ts +4 -1
- package/utils/ens/errors.ts +3 -0
- package/utils/ens/labelhash.ts +18 -4
- package/utils/ens/namehash.ts +23 -5
- package/utils/ens/normalize.ts +3 -0
- package/utils/ens/packetToBytes.ts +16 -3
- package/utils/errors/getCallError.ts +29 -8
- package/utils/errors/getContractError.ts +35 -19
- package/utils/errors/getEstimateGasError.ts +27 -8
- package/utils/errors/getNodeError.ts +43 -14
- package/utils/errors/getTransactionError.ts +27 -8
- package/utils/formatters/block.ts +6 -1
- package/utils/formatters/extract.ts +3 -0
- package/utils/formatters/feeHistory.ts +3 -0
- package/utils/formatters/formatter.ts +3 -0
- package/utils/formatters/log.ts +3 -0
- package/utils/formatters/transaction.ts +6 -1
- package/utils/formatters/transactionReceipt.ts +8 -1
- package/utils/formatters/transactionRequest.ts +8 -1
- package/utils/hash/getEventSelector.ts +8 -2
- package/utils/hash/getEventSignature.ts +9 -1
- package/utils/hash/getFunctionSelector.ts +15 -4
- package/utils/hash/getFunctionSignature.ts +13 -1
- package/utils/hash/hashFunction.ts +23 -4
- package/utils/hash/isHash.ts +5 -2
- package/utils/hash/keccak256.ts +10 -3
- package/utils/index.ts +241 -45
- package/utils/observe.ts +3 -0
- package/utils/poll.ts +3 -0
- package/utils/promise/createBatchScheduler.ts +5 -0
- package/utils/promise/withCache.ts +4 -0
- package/utils/promise/withRetry.ts +3 -0
- package/utils/promise/withTimeout.ts +4 -0
- package/utils/rpc.ts +27 -3
- package/utils/signature/hashMessage.ts +16 -3
- package/utils/signature/hashTypedData.ts +46 -4
- package/utils/signature/hexToSignature.ts +7 -1
- package/utils/signature/recoverAddress.ts +4 -0
- package/utils/signature/recoverMessageAddress.ts +12 -2
- package/utils/signature/recoverPublicKey.ts +9 -2
- package/utils/signature/recoverTypedDataAddress.ts +12 -2
- package/utils/signature/signatureToHex.ts +11 -2
- package/utils/signature/verifyMessage.ts +16 -3
- package/utils/signature/verifyTypedData.ts +12 -2
- package/utils/stringify.ts +4 -0
- package/utils/transaction/assertRequest.ts +27 -4
- package/utils/transaction/assertTransaction.ts +42 -5
- package/utils/transaction/getSerializedTransactionType.ts +13 -3
- package/utils/transaction/getTransactionType.ts +9 -1
- package/utils/transaction/parseTransaction.ts +71 -6
- package/utils/transaction/serializeAccessList.ts +16 -3
- package/utils/transaction/serializeTransaction.ts +48 -5
- package/utils/typedData.ts +22 -4
- package/utils/unit/formatEther.ts +3 -1
- package/utils/unit/formatGwei.ts +3 -1
- package/utils/unit/formatUnits.ts +4 -0
- package/utils/unit/parseEther.ts +4 -1
- package/utils/unit/parseGwei.ts +4 -1
- package/utils/unit/parseUnits.ts +4 -0
@@ -2,10 +2,15 @@ import type { Address } from 'abitype'
|
|
2
2
|
|
3
3
|
import type { Client } from '../../clients/createClient.js'
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
5
|
+
import type { ErrorType } from '../../errors/utils.js'
|
5
6
|
import type { BlockTag } from '../../types/block.js'
|
6
7
|
import type { Chain } from '../../types/chain.js'
|
7
8
|
import type { Hex } from '../../types/misc.js'
|
8
|
-
import {
|
9
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
10
|
+
import {
|
11
|
+
type NumberToHexErrorType,
|
12
|
+
numberToHex,
|
13
|
+
} from '../../utils/encoding/toHex.js'
|
9
14
|
|
10
15
|
export type GetStorageAtParameters = {
|
11
16
|
address: Address
|
@@ -23,6 +28,11 @@ export type GetStorageAtParameters = {
|
|
23
28
|
|
24
29
|
export type GetStorageAtReturnType = Hex | undefined
|
25
30
|
|
31
|
+
export type GetStorageAtErrorType =
|
32
|
+
| NumberToHexErrorType
|
33
|
+
| RequestErrorType
|
34
|
+
| ErrorType
|
35
|
+
|
26
36
|
/**
|
27
37
|
* Returns the value from a storage slot at a given address.
|
28
38
|
*
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
3
|
import { TransactionNotFoundError } from '../../errors/transaction.js'
|
4
|
+
import type { ErrorType } from '../../errors/utils.js'
|
4
5
|
import type { BlockTag } from '../../types/block.js'
|
5
6
|
import type { Chain } from '../../types/chain.js'
|
6
7
|
import type { Hash } from '../../types/misc.js'
|
7
8
|
import type { RpcTransaction } from '../../types/rpc.js'
|
8
|
-
import {
|
9
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
10
|
+
import {
|
11
|
+
type NumberToHexErrorType,
|
12
|
+
numberToHex,
|
13
|
+
} from '../../utils/encoding/toHex.js'
|
9
14
|
import {
|
10
15
|
type FormattedTransaction,
|
11
16
|
formatTransaction,
|
@@ -53,6 +58,11 @@ export type GetTransactionReturnType<
|
|
53
58
|
TBlockTag extends BlockTag = 'latest',
|
54
59
|
> = FormattedTransaction<TChain, TBlockTag>
|
55
60
|
|
61
|
+
export type GetTransactionErrorType =
|
62
|
+
| NumberToHexErrorType
|
63
|
+
| RequestErrorType
|
64
|
+
| ErrorType
|
65
|
+
|
56
66
|
/**
|
57
67
|
* Returns information about a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) given a hash or block identifier.
|
58
68
|
*
|
@@ -1,11 +1,18 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
4
|
import type { Chain } from '../../types/chain.js'
|
4
5
|
import type { Hash } from '../../types/misc.js'
|
5
6
|
import type { FormattedTransactionReceipt } from '../../utils/formatters/transactionReceipt.js'
|
6
7
|
|
7
|
-
import {
|
8
|
-
|
8
|
+
import {
|
9
|
+
type GetBlockNumberErrorType,
|
10
|
+
getBlockNumber,
|
11
|
+
} from './getBlockNumber.js'
|
12
|
+
import {
|
13
|
+
type GetTransactionErrorType,
|
14
|
+
getTransaction,
|
15
|
+
} from './getTransaction.js'
|
9
16
|
|
10
17
|
export type GetTransactionConfirmationsParameters<
|
11
18
|
TChain extends Chain | undefined = Chain,
|
@@ -23,6 +30,11 @@ export type GetTransactionConfirmationsParameters<
|
|
23
30
|
|
24
31
|
export type GetTransactionConfirmationsReturnType = bigint
|
25
32
|
|
33
|
+
export type GetTransactionConfirmationsErrorType =
|
34
|
+
| GetBlockNumberErrorType
|
35
|
+
| GetTransactionErrorType
|
36
|
+
| ErrorType
|
37
|
+
|
26
38
|
/**
|
27
39
|
* Returns the number of blocks passed (confirmations) since the transaction was processed on a block.
|
28
40
|
*
|
@@ -3,10 +3,18 @@ import type { Address } from 'abitype'
|
|
3
3
|
import type { Account } from '../../accounts/types.js'
|
4
4
|
import type { Client } from '../../clients/createClient.js'
|
5
5
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
6
|
+
import type { ErrorType } from '../../errors/utils.js'
|
6
7
|
import type { BlockTag } from '../../types/block.js'
|
7
8
|
import type { Chain } from '../../types/chain.js'
|
8
|
-
import {
|
9
|
-
import {
|
9
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
10
|
+
import {
|
11
|
+
type HexToNumberErrorType,
|
12
|
+
hexToNumber,
|
13
|
+
} from '../../utils/encoding/fromHex.js'
|
14
|
+
import {
|
15
|
+
type NumberToHexErrorType,
|
16
|
+
numberToHex,
|
17
|
+
} from '../../utils/encoding/toHex.js'
|
10
18
|
|
11
19
|
export type GetTransactionCountParameters = {
|
12
20
|
/** The account address. */
|
@@ -25,6 +33,12 @@ export type GetTransactionCountParameters = {
|
|
25
33
|
)
|
26
34
|
export type GetTransactionCountReturnType = number
|
27
35
|
|
36
|
+
export type GetTransactionCountErrorType =
|
37
|
+
| RequestErrorType
|
38
|
+
| NumberToHexErrorType
|
39
|
+
| HexToNumberErrorType
|
40
|
+
| ErrorType
|
41
|
+
|
28
42
|
/**
|
29
43
|
* Returns the number of [Transactions](https://viem.sh/docs/glossary/terms.html#transaction) an Account has broadcast / sent.
|
30
44
|
*
|
@@ -1,8 +1,13 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
-
import {
|
3
|
+
import {
|
4
|
+
TransactionReceiptNotFoundError,
|
5
|
+
type TransactionReceiptNotFoundErrorType,
|
6
|
+
} from '../../errors/transaction.js'
|
7
|
+
import type { ErrorType } from '../../errors/utils.js'
|
4
8
|
import type { Chain } from '../../types/chain.js'
|
5
9
|
import type { Hash } from '../../types/misc.js'
|
10
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
6
11
|
import {
|
7
12
|
type FormattedTransactionReceipt,
|
8
13
|
formatTransactionReceipt,
|
@@ -17,6 +22,11 @@ export type GetTransactionReceiptReturnType<
|
|
17
22
|
TChain extends Chain | undefined = Chain | undefined,
|
18
23
|
> = FormattedTransactionReceipt<TChain>
|
19
24
|
|
25
|
+
export type GetTransactionReceiptErrorType =
|
26
|
+
| RequestErrorType
|
27
|
+
| TransactionReceiptNotFoundErrorType
|
28
|
+
| ErrorType
|
29
|
+
|
20
30
|
/**
|
21
31
|
* Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
|
22
32
|
*
|
@@ -13,12 +13,26 @@ import type {
|
|
13
13
|
MulticallContracts,
|
14
14
|
MulticallResults,
|
15
15
|
} from '../../types/multicall.js'
|
16
|
-
import {
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
import {
|
17
|
+
type DecodeFunctionResultErrorType,
|
18
|
+
decodeFunctionResult,
|
19
|
+
} from '../../utils/abi/decodeFunctionResult.js'
|
20
|
+
import {
|
21
|
+
type EncodeFunctionDataErrorType,
|
22
|
+
encodeFunctionData,
|
23
|
+
} from '../../utils/abi/encodeFunctionData.js'
|
24
|
+
import {
|
25
|
+
type GetChainContractAddressErrorType,
|
26
|
+
getChainContractAddress,
|
27
|
+
} from '../../utils/chain.js'
|
28
|
+
import {
|
29
|
+
type GetContractErrorReturnType,
|
30
|
+
getContractError,
|
31
|
+
} from '../../utils/errors/getContractError.js'
|
32
|
+
|
33
|
+
import type { ErrorType } from '../../errors/utils.js'
|
20
34
|
import type { CallParameters } from './call.js'
|
21
|
-
import { readContract } from './readContract.js'
|
35
|
+
import { type ReadContractErrorType, readContract } from './readContract.js'
|
22
36
|
|
23
37
|
export type MulticallParameters<
|
24
38
|
contracts extends readonly unknown[] = readonly ContractFunctionParameters[],
|
@@ -49,6 +63,14 @@ export type MulticallReturnType<
|
|
49
63
|
{ mutability: 'pure' | 'view' } & options
|
50
64
|
>
|
51
65
|
|
66
|
+
export type MulticallErrorType =
|
67
|
+
| GetChainContractAddressErrorType
|
68
|
+
| ReadContractErrorType
|
69
|
+
| GetContractErrorReturnType<
|
70
|
+
EncodeFunctionDataErrorType | DecodeFunctionResultErrorType
|
71
|
+
>
|
72
|
+
| ErrorType
|
73
|
+
|
52
74
|
/**
|
53
75
|
* Similar to [`readContract`](https://viem.sh/docs/contract/readContract.html), but batches up multiple functions on a contract in a single RPC call via the [`multicall3` contract](https://github.com/mds1/multicall).
|
54
76
|
*
|
@@ -11,10 +11,20 @@ import type {
|
|
11
11
|
ContractFunctionReturnType,
|
12
12
|
} from '../../types/contract.js'
|
13
13
|
import type { UnionEvaluate } from '../../types/utils.js'
|
14
|
-
import {
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
import {
|
15
|
+
type DecodeFunctionResultErrorType,
|
16
|
+
decodeFunctionResult,
|
17
|
+
} from '../../utils/abi/decodeFunctionResult.js'
|
18
|
+
import {
|
19
|
+
type EncodeFunctionDataErrorType,
|
20
|
+
encodeFunctionData,
|
21
|
+
} from '../../utils/abi/encodeFunctionData.js'
|
22
|
+
import {
|
23
|
+
type GetContractErrorReturnType,
|
24
|
+
getContractError,
|
25
|
+
} from '../../utils/errors/getContractError.js'
|
26
|
+
|
27
|
+
import { type CallErrorType, type CallParameters, call } from './call.js'
|
18
28
|
|
19
29
|
export type ReadContractParameters<
|
20
30
|
abi extends Abi | readonly unknown[] = Abi,
|
@@ -45,6 +55,10 @@ export type ReadContractReturnType<
|
|
45
55
|
> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
|
46
56
|
> = ContractFunctionReturnType<abi, 'pure' | 'view', functionName, args>
|
47
57
|
|
58
|
+
export type ReadContractErrorType = GetContractErrorReturnType<
|
59
|
+
CallErrorType | EncodeFunctionDataErrorType | DecodeFunctionResultErrorType
|
60
|
+
>
|
61
|
+
|
48
62
|
/**
|
49
63
|
* Calls a read-only function on a contract, and returns the response.
|
50
64
|
*
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import type { Abi } from 'abitype'
|
2
2
|
|
3
|
-
import {
|
3
|
+
import {
|
4
|
+
type ParseAccountErrorType,
|
5
|
+
parseAccount,
|
6
|
+
} from '../../accounts/utils/parseAccount.js'
|
4
7
|
import type { Client } from '../../clients/createClient.js'
|
5
8
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
6
9
|
import type { BaseError } from '../../errors/base.js'
|
10
|
+
import type { ErrorType } from '../../errors/utils.js'
|
7
11
|
import type { Chain } from '../../types/chain.js'
|
8
12
|
import type {
|
9
13
|
ContractFunctionArgs,
|
@@ -15,12 +19,21 @@ import type {
|
|
15
19
|
} from '../../types/contract.js'
|
16
20
|
import type { Hex } from '../../types/misc.js'
|
17
21
|
import type { Prettify, UnionEvaluate, UnionOmit } from '../../types/utils.js'
|
18
|
-
import {
|
19
|
-
|
20
|
-
|
22
|
+
import {
|
23
|
+
type DecodeFunctionResultErrorType,
|
24
|
+
decodeFunctionResult,
|
25
|
+
} from '../../utils/abi/decodeFunctionResult.js'
|
26
|
+
import {
|
27
|
+
type EncodeFunctionDataErrorType,
|
28
|
+
encodeFunctionData,
|
29
|
+
} from '../../utils/abi/encodeFunctionData.js'
|
30
|
+
import {
|
31
|
+
type GetContractErrorReturnType,
|
32
|
+
getContractError,
|
33
|
+
} from '../../utils/errors/getContractError.js'
|
21
34
|
import type { WriteContractParameters } from '../wallet/writeContract.js'
|
22
35
|
|
23
|
-
import { type CallParameters, call } from './call.js'
|
36
|
+
import { type CallErrorType, type CallParameters, call } from './call.js'
|
24
37
|
|
25
38
|
export type SimulateContractParameters<
|
26
39
|
abi extends Abi | readonly unknown[] = Abi,
|
@@ -111,6 +124,12 @@ export type SimulateContractReturnType<
|
|
111
124
|
>
|
112
125
|
}
|
113
126
|
|
127
|
+
export type SimulateContractErrorType =
|
128
|
+
| ParseAccountErrorType
|
129
|
+
| EncodeFunctionDataErrorType
|
130
|
+
| GetContractErrorReturnType<CallErrorType | DecodeFunctionResultErrorType>
|
131
|
+
| ErrorType
|
132
|
+
|
114
133
|
/**
|
115
134
|
* Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions.
|
116
135
|
*
|
@@ -1,13 +1,17 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
4
|
import type { Chain } from '../../types/chain.js'
|
4
5
|
import type { Filter } from '../../types/filter.js'
|
6
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
5
7
|
|
6
8
|
export type UninstallFilterParameters = {
|
7
9
|
filter: Filter<any>
|
8
10
|
}
|
9
11
|
export type UninstallFilterReturnType = boolean
|
10
12
|
|
13
|
+
export type UninstallFilterErrorType = RequestErrorType | ErrorType
|
14
|
+
|
11
15
|
/**
|
12
16
|
* Destroys a [`Filter`](https://viem.sh/docs/glossary/types.html#filter).
|
13
17
|
*
|
@@ -5,11 +5,18 @@ import type { Transport } from '../../clients/transports/createTransport.js'
|
|
5
5
|
import { universalSignatureValidatorAbi } from '../../constants/abis.js'
|
6
6
|
import { universalSignatureValidatorByteCode } from '../../constants/contracts.js'
|
7
7
|
import { CallExecutionError } from '../../errors/contract.js'
|
8
|
+
import type { ErrorType } from '../../errors/utils.js'
|
8
9
|
import type { Chain } from '../../types/chain.js'
|
9
10
|
import type { ByteArray, Hex } from '../../types/misc.js'
|
10
|
-
import {
|
11
|
+
import type { EncodeDeployDataErrorType } from '../../utils/abi/encodeDeployData.js'
|
12
|
+
import {
|
13
|
+
type IsBytesEqualErrorType,
|
14
|
+
isBytesEqual,
|
15
|
+
} from '../../utils/data/isBytesEqual.js'
|
16
|
+
import type { IsHexErrorType } from '../../utils/data/isHex.js'
|
17
|
+
import type { ToHexErrorType } from '../../utils/encoding/toHex.js'
|
11
18
|
import { encodeDeployData, isHex, toHex } from '../../utils/index.js'
|
12
|
-
import { type CallParameters, call } from './call.js'
|
19
|
+
import { type CallErrorType, type CallParameters, call } from './call.js'
|
13
20
|
|
14
21
|
export type VerifyHashParameters = Pick<
|
15
22
|
CallParameters,
|
@@ -25,6 +32,14 @@ export type VerifyHashParameters = Pick<
|
|
25
32
|
|
26
33
|
export type VerifyHashReturnType = boolean
|
27
34
|
|
35
|
+
export type VerifyHashErrorType =
|
36
|
+
| CallErrorType
|
37
|
+
| IsHexErrorType
|
38
|
+
| ToHexErrorType
|
39
|
+
| IsBytesEqualErrorType
|
40
|
+
| EncodeDeployDataErrorType
|
41
|
+
| ErrorType
|
42
|
+
|
28
43
|
/**
|
29
44
|
* Verifies a message hash on chain using ERC-6492.
|
30
45
|
*
|
@@ -2,10 +2,16 @@ import type { Address } from 'abitype'
|
|
2
2
|
|
3
3
|
import type { Client } from '../../clients/createClient.js'
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
5
|
+
import type { ErrorType } from '../../errors/utils.js'
|
5
6
|
import type { Chain } from '../../types/chain.js'
|
6
7
|
import type { ByteArray, Hex, SignableMessage } from '../../types/misc.js'
|
7
8
|
import { hashMessage } from '../../utils/index.js'
|
8
|
-
import
|
9
|
+
import type { HashMessageErrorType } from '../../utils/signature/hashMessage.js'
|
10
|
+
import {
|
11
|
+
type VerifyHashErrorType,
|
12
|
+
type VerifyHashParameters,
|
13
|
+
verifyHash,
|
14
|
+
} from './verifyHash.js'
|
9
15
|
|
10
16
|
export type VerifyMessageParameters = Omit<VerifyHashParameters, 'hash'> & {
|
11
17
|
/** The address that signed the original message. */
|
@@ -18,6 +24,11 @@ export type VerifyMessageParameters = Omit<VerifyHashParameters, 'hash'> & {
|
|
18
24
|
|
19
25
|
export type VerifyMessageReturnType = boolean
|
20
26
|
|
27
|
+
export type VerifyMessageErrorType =
|
28
|
+
| HashMessageErrorType
|
29
|
+
| VerifyHashErrorType
|
30
|
+
| ErrorType
|
31
|
+
|
21
32
|
/**
|
22
33
|
* Verify that a message was signed by the provided address.
|
23
34
|
*
|
@@ -2,11 +2,19 @@ import type { Address, TypedData } from 'abitype'
|
|
2
2
|
|
3
3
|
import type { Client } from '../../clients/createClient.js'
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
5
|
+
import type { ErrorType } from '../../errors/utils.js'
|
5
6
|
import type { Chain } from '../../types/chain.js'
|
6
7
|
import type { ByteArray, Hex } from '../../types/misc.js'
|
7
8
|
import type { TypedDataDefinition } from '../../types/typedData.js'
|
8
|
-
import {
|
9
|
-
|
9
|
+
import {
|
10
|
+
type HashTypedDataErrorType,
|
11
|
+
hashTypedData,
|
12
|
+
} from '../../utils/signature/hashTypedData.js'
|
13
|
+
import {
|
14
|
+
type VerifyHashErrorType,
|
15
|
+
type VerifyHashParameters,
|
16
|
+
verifyHash,
|
17
|
+
} from './verifyHash.js'
|
10
18
|
|
11
19
|
export type VerifyTypedDataParameters<
|
12
20
|
TTypedData extends TypedData | { [key: string]: unknown } = TypedData,
|
@@ -21,6 +29,11 @@ export type VerifyTypedDataParameters<
|
|
21
29
|
|
22
30
|
export type VerifyTypedDataReturnType = boolean
|
23
31
|
|
32
|
+
export type VerifyTypedDataErrorType =
|
33
|
+
| HashTypedDataErrorType
|
34
|
+
| VerifyHashErrorType
|
35
|
+
| ErrorType
|
36
|
+
|
24
37
|
/**
|
25
38
|
* Verify that typed data was signed by the provided address.
|
26
39
|
*
|
@@ -5,23 +5,29 @@ import {
|
|
5
5
|
TransactionReceiptNotFoundError,
|
6
6
|
WaitForTransactionReceiptTimeoutError,
|
7
7
|
} from '../../errors/transaction.js'
|
8
|
+
import type { ErrorType } from '../../errors/utils.js'
|
8
9
|
import type { Chain } from '../../types/chain.js'
|
9
10
|
import type { Hash } from '../../types/misc.js'
|
10
11
|
import type { Transaction } from '../../types/transaction.js'
|
11
|
-
import { observe } from '../../utils/observe.js'
|
12
|
+
import { type ObserveErrorType, observe } from '../../utils/observe.js'
|
12
13
|
import { withRetry } from '../../utils/promise/withRetry.js'
|
13
14
|
import { stringify } from '../../utils/stringify.js'
|
14
15
|
|
15
|
-
import { getBlock } from './getBlock.js'
|
16
|
+
import { type GetBlockErrorType, getBlock } from './getBlock.js'
|
16
17
|
import {
|
18
|
+
type GetTransactionErrorType,
|
17
19
|
type GetTransactionReturnType,
|
18
20
|
getTransaction,
|
19
21
|
} from './getTransaction.js'
|
20
22
|
import {
|
23
|
+
type GetTransactionReceiptErrorType,
|
21
24
|
type GetTransactionReceiptReturnType,
|
22
25
|
getTransactionReceipt,
|
23
26
|
} from './getTransactionReceipt.js'
|
24
|
-
import {
|
27
|
+
import {
|
28
|
+
type WatchBlockNumberErrorType,
|
29
|
+
watchBlockNumber,
|
30
|
+
} from './watchBlockNumber.js'
|
25
31
|
|
26
32
|
export type ReplacementReason = 'cancelled' | 'replaced' | 'repriced'
|
27
33
|
export type ReplacementReturnType<
|
@@ -58,6 +64,14 @@ export type WaitForTransactionReceiptParameters<
|
|
58
64
|
timeout?: number
|
59
65
|
}
|
60
66
|
|
67
|
+
export type WaitForTransactionReceiptErrorType =
|
68
|
+
| ObserveErrorType
|
69
|
+
| GetBlockErrorType
|
70
|
+
| GetTransactionErrorType
|
71
|
+
| GetTransactionReceiptErrorType
|
72
|
+
| WatchBlockNumberErrorType
|
73
|
+
| ErrorType
|
74
|
+
|
61
75
|
/**
|
62
76
|
* Waits for the [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms.html#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt). If the Transaction reverts, then the action will throw an error.
|
63
77
|
*
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
4
|
import type { Chain } from '../../types/chain.js'
|
4
5
|
import type { GetTransportConfig } from '../../types/transport.js'
|
5
6
|
import { hexToBigInt } from '../../utils/encoding/fromHex.js'
|
6
7
|
import { observe } from '../../utils/observe.js'
|
7
|
-
import { poll } from '../../utils/poll.js'
|
8
|
+
import { type PollErrorType, poll } from '../../utils/poll.js'
|
8
9
|
import { stringify } from '../../utils/stringify.js'
|
9
10
|
|
10
11
|
import {
|
@@ -48,6 +49,8 @@ export type WatchBlockNumberParameters<
|
|
48
49
|
|
49
50
|
export type WatchBlockNumberReturnType = () => void
|
50
51
|
|
52
|
+
export type WatchBlockNumberErrorType = PollErrorType | ErrorType
|
53
|
+
|
51
54
|
/**
|
52
55
|
* Watches and returns incoming block numbers.
|
53
56
|
*
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
4
|
import type { BlockTag } from '../../types/block.js'
|
4
5
|
import type { Chain } from '../../types/chain.js'
|
5
6
|
import type { GetTransportConfig } from '../../types/transport.js'
|
6
7
|
import { formatBlock } from '../../utils/formatters/block.js'
|
7
8
|
import { observe } from '../../utils/observe.js'
|
8
|
-
import { poll } from '../../utils/poll.js'
|
9
|
-
import { stringify } from '../../utils/stringify.js'
|
9
|
+
import { type PollErrorType, poll } from '../../utils/poll.js'
|
10
|
+
import { type StringifyErrorType, stringify } from '../../utils/stringify.js'
|
10
11
|
|
11
12
|
import { type GetBlockReturnType, getBlock } from './getBlock.js'
|
12
13
|
|
@@ -66,6 +67,11 @@ export type WatchBlocksParameters<
|
|
66
67
|
|
67
68
|
export type WatchBlocksReturnType = () => void
|
68
69
|
|
70
|
+
export type WatchBlocksErrorType =
|
71
|
+
| StringifyErrorType
|
72
|
+
| PollErrorType
|
73
|
+
| ErrorType
|
74
|
+
|
69
75
|
/**
|
70
76
|
* Watches and returns information for incoming blocks.
|
71
77
|
*
|
@@ -2,18 +2,20 @@ import type { Abi, Address, ExtractAbiEvent } from 'abitype'
|
|
2
2
|
|
3
3
|
import type { Client } from '../../clients/createClient.js'
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
5
|
+
import type { Chain } from '../../types/chain.js'
|
6
|
+
import type { Filter } from '../../types/filter.js'
|
7
|
+
import type { Log } from '../../types/log.js'
|
8
|
+
|
5
9
|
import {
|
6
10
|
DecodeLogDataMismatch,
|
7
11
|
DecodeLogTopicsMismatch,
|
8
12
|
} from '../../errors/abi.js'
|
9
13
|
import { InvalidInputRpcError } from '../../errors/rpc.js'
|
10
|
-
import type {
|
14
|
+
import type { ErrorType } from '../../errors/utils.js'
|
11
15
|
import type {
|
12
16
|
ContractEventArgs,
|
13
17
|
ContractEventName,
|
14
18
|
} from '../../types/contract.js'
|
15
|
-
import type { Filter } from '../../types/filter.js'
|
16
|
-
import type { Log } from '../../types/log.js'
|
17
19
|
import type { LogTopic } from '../../types/misc.js'
|
18
20
|
import type { GetPollOptions } from '../../types/transport.js'
|
19
21
|
import { decodeEventLog } from '../../utils/abi/decodeEventLog.js'
|
@@ -22,9 +24,9 @@ import {
|
|
22
24
|
encodeEventTopics,
|
23
25
|
} from '../../utils/abi/encodeEventTopics.js'
|
24
26
|
import { formatLog } from '../../utils/formatters/log.js'
|
25
|
-
import { observe } from '../../utils/observe.js'
|
27
|
+
import { type ObserveErrorType, observe } from '../../utils/observe.js'
|
26
28
|
import { poll } from '../../utils/poll.js'
|
27
|
-
import { stringify } from '../../utils/stringify.js'
|
29
|
+
import { type StringifyErrorType, stringify } from '../../utils/stringify.js'
|
28
30
|
import { createContractEventFilter } from './createContractEventFilter.js'
|
29
31
|
import { getBlockNumber } from './getBlockNumber.js'
|
30
32
|
import {
|
@@ -89,6 +91,11 @@ export type WatchContractEventParameters<
|
|
89
91
|
|
90
92
|
export type WatchContractEventReturnType = () => void
|
91
93
|
|
94
|
+
export type WatchContractEventErrorType =
|
95
|
+
| StringifyErrorType
|
96
|
+
| ObserveErrorType
|
97
|
+
| ErrorType
|
98
|
+
|
92
99
|
/**
|
93
100
|
* Watches and returns emitted contract event logs.
|
94
101
|
*
|
@@ -12,15 +12,16 @@ import type { Log } from '../../types/log.js'
|
|
12
12
|
import type { LogTopic } from '../../types/misc.js'
|
13
13
|
import type { GetPollOptions } from '../../types/transport.js'
|
14
14
|
import type { EncodeEventTopicsParameters } from '../../utils/index.js'
|
15
|
-
import { observe } from '../../utils/observe.js'
|
15
|
+
import { type ObserveErrorType, observe } from '../../utils/observe.js'
|
16
16
|
import { poll } from '../../utils/poll.js'
|
17
|
-
import { stringify } from '../../utils/stringify.js'
|
17
|
+
import { type StringifyErrorType, stringify } from '../../utils/stringify.js'
|
18
18
|
|
19
19
|
import {
|
20
20
|
DecodeLogDataMismatch,
|
21
21
|
DecodeLogTopicsMismatch,
|
22
22
|
} from '../../errors/abi.js'
|
23
23
|
import { InvalidInputRpcError } from '../../errors/rpc.js'
|
24
|
+
import type { ErrorType } from '../../errors/utils.js'
|
24
25
|
import {
|
25
26
|
decodeEventLog,
|
26
27
|
encodeEventTopics,
|
@@ -104,6 +105,11 @@ export type WatchEventParameters<
|
|
104
105
|
|
105
106
|
export type WatchEventReturnType = () => void
|
106
107
|
|
108
|
+
export type WatchEventErrorType =
|
109
|
+
| StringifyErrorType
|
110
|
+
| ObserveErrorType
|
111
|
+
| ErrorType
|
112
|
+
|
107
113
|
/**
|
108
114
|
* Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms.html#event-log).
|
109
115
|
*
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import type { Client } from '../../clients/createClient.js'
|
2
2
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
3
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
4
|
import type { Chain } from '../../types/chain.js'
|
4
5
|
import type { Filter } from '../../types/filter.js'
|
5
6
|
import type { Hash } from '../../types/misc.js'
|
6
7
|
import type { GetPollOptions } from '../../types/transport.js'
|
7
|
-
import { observe } from '../../utils/observe.js'
|
8
|
+
import { type ObserveErrorType, observe } from '../../utils/observe.js'
|
8
9
|
import { poll } from '../../utils/poll.js'
|
9
|
-
import { stringify } from '../../utils/stringify.js'
|
10
|
+
import { type StringifyErrorType, stringify } from '../../utils/stringify.js'
|
10
11
|
|
11
12
|
import { createPendingTransactionFilter } from './createPendingTransactionFilter.js'
|
12
13
|
import { getFilterChanges } from './getFilterChanges.js'
|
@@ -26,6 +27,11 @@ export type WatchPendingTransactionsParameters<
|
|
26
27
|
|
27
28
|
export type WatchPendingTransactionsReturnType = () => void
|
28
29
|
|
30
|
+
export type WatchPendingTransactionsErrorType =
|
31
|
+
| StringifyErrorType
|
32
|
+
| ObserveErrorType
|
33
|
+
| ErrorType
|
34
|
+
|
29
35
|
/**
|
30
36
|
* Watches and returns pending transaction hashes.
|
31
37
|
*
|
@@ -3,15 +3,19 @@ import type {
|
|
3
3
|
TestClientMode,
|
4
4
|
} from '../../clients/createTestClient.js'
|
5
5
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
6
|
+
import type { ErrorType } from '../../errors/utils.js'
|
6
7
|
import type { Account } from '../../types/account.js'
|
7
8
|
import type { Chain } from '../../types/chain.js'
|
8
9
|
import type { Hash } from '../../types/misc.js'
|
10
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
9
11
|
|
10
12
|
export type DropTransactionParameters = {
|
11
13
|
/** The hash of the transaction to drop. */
|
12
14
|
hash: Hash
|
13
15
|
}
|
14
16
|
|
17
|
+
export type DropTransactionErrorType = RequestErrorType | ErrorType
|
18
|
+
|
15
19
|
/**
|
16
20
|
* Removes a transaction from the mempool.
|
17
21
|
*
|
@@ -3,11 +3,15 @@ import type {
|
|
3
3
|
TestClientMode,
|
4
4
|
} from '../../clients/createTestClient.js'
|
5
5
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
6
|
+
import type { ErrorType } from '../../errors/utils.js'
|
6
7
|
import type { Account } from '../../types/account.js'
|
7
8
|
import type { Chain } from '../../types/chain.js'
|
9
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
8
10
|
|
9
11
|
export type GetAutomineReturnType = boolean
|
10
12
|
|
13
|
+
export type GetAutomineErrorType = RequestErrorType | ErrorType
|
14
|
+
|
11
15
|
/**
|
12
16
|
* Returns the automatic mining status of the node.
|
13
17
|
*
|