viem 1.6.6 → 1.6.7
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/chains/dist/cjs/celo/formatters.js +58 -0
- package/chains/dist/cjs/celo/parsers.js +72 -0
- package/chains/dist/cjs/celo/serializers.js +75 -0
- package/chains/dist/cjs/celo/types.js +3 -0
- package/chains/dist/cjs/index.js +135 -0
- package/chains/dist/cjs/optimism/fees.js +7 -0
- package/chains/dist/cjs/optimism/formatters.js +52 -0
- package/chains/dist/cjs/optimism/types.js +3 -0
- package/chains/dist/cjs/types.js +3 -0
- package/chains/dist/cjs/utils.js +49 -0
- package/chains/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/types/abi.d.ts +6 -0
- package/dist/types/abi.d.ts.map +1 -0
- package/dist/types/accounts/generateMnemonic.d.ts +9 -0
- package/dist/types/accounts/generateMnemonic.d.ts.map +1 -0
- package/dist/types/accounts/generatePrivateKey.d.ts +8 -0
- package/dist/types/accounts/generatePrivateKey.d.ts.map +1 -0
- package/dist/types/accounts/hdKeyToAccount.d.ts +9 -0
- package/dist/types/accounts/hdKeyToAccount.d.ts.map +1 -0
- package/dist/types/accounts/index.d.ts +27 -0
- package/dist/types/accounts/index.d.ts.map +1 -0
- package/dist/types/accounts/mnemonicToAccount.d.ts +8 -0
- package/dist/types/accounts/mnemonicToAccount.d.ts.map +1 -0
- package/dist/types/accounts/privateKeyToAccount.d.ts +9 -0
- package/dist/types/accounts/privateKeyToAccount.d.ts.map +1 -0
- package/dist/types/accounts/toAccount.d.ts +11 -0
- package/dist/types/accounts/toAccount.d.ts.map +1 -0
- package/dist/types/accounts/types.d.ts +52 -0
- package/dist/types/accounts/types.d.ts.map +1 -0
- package/dist/types/accounts/utils/parseAccount.d.ts +4 -0
- package/dist/types/accounts/utils/parseAccount.d.ts.map +1 -0
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts +11 -0
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts.map +1 -0
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts +11 -0
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts.map +1 -0
- package/dist/types/accounts/utils/sign.d.ts +16 -0
- package/dist/types/accounts/utils/sign.d.ts.map +1 -0
- package/dist/types/accounts/utils/signMessage.d.ts +16 -0
- package/dist/types/accounts/utils/signMessage.d.ts.map +1 -0
- package/dist/types/accounts/utils/signTransaction.d.ts +12 -0
- package/dist/types/accounts/utils/signTransaction.d.ts.map +1 -0
- package/dist/types/accounts/utils/signTypedData.d.ts +20 -0
- package/dist/types/accounts/utils/signTypedData.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/czech.d.ts +2 -0
- package/dist/types/accounts/wordlists/czech.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/english.d.ts +2 -0
- package/dist/types/accounts/wordlists/english.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/french.d.ts +2 -0
- package/dist/types/accounts/wordlists/french.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/italian.d.ts +2 -0
- package/dist/types/accounts/wordlists/italian.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/japanese.d.ts +2 -0
- package/dist/types/accounts/wordlists/japanese.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/korean.d.ts +2 -0
- package/dist/types/accounts/wordlists/korean.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts +2 -0
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/spanish.d.ts +2 -0
- package/dist/types/accounts/wordlists/spanish.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts +2 -0
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsAddress.d.ts +45 -0
- package/dist/types/actions/ens/getEnsAddress.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsAvatar.d.ts +41 -0
- package/dist/types/actions/ens/getEnsAvatar.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsName.d.ts +41 -0
- package/dist/types/actions/ens/getEnsName.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsResolver.d.ts +43 -0
- package/dist/types/actions/ens/getEnsResolver.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsText.d.ts +46 -0
- package/dist/types/actions/ens/getEnsText.d.ts.map +1 -0
- package/dist/types/actions/getContract.d.ts +314 -0
- package/dist/types/actions/getContract.d.ts.map +1 -0
- package/dist/types/actions/index.d.ts +80 -0
- package/dist/types/actions/index.d.ts.map +1 -0
- package/dist/types/actions/public/call.d.ts +56 -0
- package/dist/types/actions/public/call.d.ts.map +1 -0
- package/dist/types/actions/public/createBlockFilter.d.ts +28 -0
- package/dist/types/actions/public/createBlockFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createContractEventFilter.d.ts +50 -0
- package/dist/types/actions/public/createContractEventFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createEventFilter.d.ts +76 -0
- package/dist/types/actions/public/createEventFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts +28 -0
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +1 -0
- package/dist/types/actions/public/estimateContractGas.d.ts +39 -0
- package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -0
- package/dist/types/actions/public/estimateGas.d.ts +49 -0
- package/dist/types/actions/public/estimateGas.d.ts.map +1 -0
- package/dist/types/actions/public/getBalance.d.ts +55 -0
- package/dist/types/actions/public/getBalance.d.ts.map +1 -0
- package/dist/types/actions/public/getBlock.d.ts +56 -0
- package/dist/types/actions/public/getBlock.d.ts.map +1 -0
- package/dist/types/actions/public/getBlockNumber.d.ts +57 -0
- package/dist/types/actions/public/getBlockNumber.d.ts.map +1 -0
- package/dist/types/actions/public/getBlockTransactionCount.d.ts +47 -0
- package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/public/getBytecode.d.ts +41 -0
- package/dist/types/actions/public/getBytecode.d.ts.map +1 -0
- package/dist/types/actions/public/getChainId.d.ts +28 -0
- package/dist/types/actions/public/getChainId.d.ts.map +1 -0
- package/dist/types/actions/public/getFeeHistory.d.ts +53 -0
- package/dist/types/actions/public/getFeeHistory.d.ts.map +1 -0
- package/dist/types/actions/public/getFilterChanges.d.ts +96 -0
- package/dist/types/actions/public/getFilterChanges.d.ts.map +1 -0
- package/dist/types/actions/public/getFilterLogs.d.ts +40 -0
- package/dist/types/actions/public/getFilterLogs.d.ts.map +1 -0
- package/dist/types/actions/public/getGasPrice.d.ts +27 -0
- package/dist/types/actions/public/getGasPrice.d.ts.map +1 -0
- package/dist/types/actions/public/getLogs.d.ts +71 -0
- package/dist/types/actions/public/getLogs.d.ts.map +1 -0
- package/dist/types/actions/public/getStorageAt.d.ts +43 -0
- package/dist/types/actions/public/getStorageAt.d.ts.map +1 -0
- package/dist/types/actions/public/getTransaction.d.ts +65 -0
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionConfirmations.d.ts +41 -0
- package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionCount.d.ts +44 -0
- package/dist/types/actions/public/getTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionReceipt.d.ts +36 -0
- package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -0
- package/dist/types/actions/public/multicall.d.ts +56 -0
- package/dist/types/actions/public/multicall.d.ts.map +1 -0
- package/dist/types/actions/public/readContract.d.ts +41 -0
- package/dist/types/actions/public/readContract.d.ts.map +1 -0
- package/dist/types/actions/public/simulateContract.d.ts +54 -0
- package/dist/types/actions/public/simulateContract.d.ts.map +1 -0
- package/dist/types/actions/public/uninstallFilter.d.ts +34 -0
- package/dist/types/actions/public/uninstallFilter.d.ts.map +1 -0
- package/dist/types/actions/public/verifyHash.d.ts +24 -0
- package/dist/types/actions/public/verifyHash.d.ts.map +1 -0
- package/dist/types/actions/public/verifyMessage.d.ts +28 -0
- package/dist/types/actions/public/verifyMessage.d.ts.map +1 -0
- package/dist/types/actions/public/verifyTypedData.d.ts +27 -0
- package/dist/types/actions/public/verifyTypedData.d.ts.map +1 -0
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts +72 -0
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +1 -0
- package/dist/types/actions/public/watchBlockNumber.d.ts +59 -0
- package/dist/types/actions/public/watchBlockNumber.d.ts.map +1 -0
- package/dist/types/actions/public/watchBlocks.d.ts +67 -0
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -0
- package/dist/types/actions/public/watchContractEvent.d.ts +89 -0
- package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -0
- package/dist/types/actions/public/watchEvent.d.ts +104 -0
- package/dist/types/actions/public/watchEvent.d.ts.map +1 -0
- package/dist/types/actions/public/watchPendingTransactions.d.ts +74 -0
- package/dist/types/actions/public/watchPendingTransactions.d.ts.map +1 -0
- package/dist/types/actions/test/dropTransaction.d.ts +33 -0
- package/dist/types/actions/test/dropTransaction.d.ts.map +1 -0
- package/dist/types/actions/test/getAutomine.d.ts +27 -0
- package/dist/types/actions/test/getAutomine.d.ts.map +1 -0
- package/dist/types/actions/test/getTxpoolContent.d.ts +34 -0
- package/dist/types/actions/test/getTxpoolContent.d.ts.map +1 -0
- package/dist/types/actions/test/getTxpoolStatus.d.ts +30 -0
- package/dist/types/actions/test/getTxpoolStatus.d.ts.map +1 -0
- package/dist/types/actions/test/impersonateAccount.d.ts +33 -0
- package/dist/types/actions/test/impersonateAccount.d.ts.map +1 -0
- package/dist/types/actions/test/increaseTime.d.ts +32 -0
- package/dist/types/actions/test/increaseTime.d.ts.map +1 -0
- package/dist/types/actions/test/inspectTxpool.d.ts +31 -0
- package/dist/types/actions/test/inspectTxpool.d.ts.map +1 -0
- package/dist/types/actions/test/mine.d.ts +32 -0
- package/dist/types/actions/test/mine.d.ts.map +1 -0
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +25 -0
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -0
- package/dist/types/actions/test/reset.d.ts +32 -0
- package/dist/types/actions/test/reset.d.ts.map +1 -0
- package/dist/types/actions/test/revert.d.ts +31 -0
- package/dist/types/actions/test/revert.d.ts.map +1 -0
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts +35 -0
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -0
- package/dist/types/actions/test/setAutomine.d.ts +25 -0
- package/dist/types/actions/test/setAutomine.d.ts.map +1 -0
- package/dist/types/actions/test/setBalance.d.ts +36 -0
- package/dist/types/actions/test/setBalance.d.ts.map +1 -0
- package/dist/types/actions/test/setBlockGasLimit.d.ts +30 -0
- package/dist/types/actions/test/setBlockGasLimit.d.ts.map +1 -0
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts +30 -0
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +1 -0
- package/dist/types/actions/test/setCode.d.ts +37 -0
- package/dist/types/actions/test/setCode.d.ts.map +1 -0
- package/dist/types/actions/test/setCoinbase.d.ts +33 -0
- package/dist/types/actions/test/setCoinbase.d.ts.map +1 -0
- package/dist/types/actions/test/setIntervalMining.d.ts +30 -0
- package/dist/types/actions/test/setIntervalMining.d.ts.map +1 -0
- package/dist/types/actions/test/setLoggingEnabled.d.ts +25 -0
- package/dist/types/actions/test/setLoggingEnabled.d.ts.map +1 -0
- package/dist/types/actions/test/setMinGasPrice.d.ts +34 -0
- package/dist/types/actions/test/setMinGasPrice.d.ts.map +1 -0
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +32 -0
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -0
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts +30 -0
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +1 -0
- package/dist/types/actions/test/setNonce.d.ts +36 -0
- package/dist/types/actions/test/setNonce.d.ts.map +1 -0
- package/dist/types/actions/test/setRpcUrl.d.ts +26 -0
- package/dist/types/actions/test/setRpcUrl.d.ts.map +1 -0
- package/dist/types/actions/test/setStorageAt.d.ts +40 -0
- package/dist/types/actions/test/setStorageAt.d.ts.map +1 -0
- package/dist/types/actions/test/snapshot.d.ts +25 -0
- package/dist/types/actions/test/snapshot.d.ts.map +1 -0
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts +33 -0
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +1 -0
- package/dist/types/actions/wallet/addChain.d.ts +29 -0
- package/dist/types/actions/wallet/addChain.d.ts.map +1 -0
- package/dist/types/actions/wallet/deployContract.d.ts +43 -0
- package/dist/types/actions/wallet/deployContract.d.ts.map +1 -0
- package/dist/types/actions/wallet/getAddresses.d.ts +28 -0
- package/dist/types/actions/wallet/getAddresses.d.ts.map +1 -0
- package/dist/types/actions/wallet/getPermissions.d.ts +28 -0
- package/dist/types/actions/wallet/getPermissions.d.ts.map +1 -0
- package/dist/types/actions/wallet/requestAddresses.d.ts +32 -0
- package/dist/types/actions/wallet/requestAddresses.d.ts.map +1 -0
- package/dist/types/actions/wallet/requestPermissions.d.ts +37 -0
- package/dist/types/actions/wallet/requestPermissions.d.ts.map +1 -0
- package/dist/types/actions/wallet/sendTransaction.d.ts +57 -0
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -0
- package/dist/types/actions/wallet/signMessage.d.ts +58 -0
- package/dist/types/actions/wallet/signMessage.d.ts.map +1 -0
- package/dist/types/actions/wallet/signTypedData.d.ts +114 -0
- package/dist/types/actions/wallet/signTypedData.d.ts.map +1 -0
- package/dist/types/actions/wallet/switchChain.d.ts +30 -0
- package/dist/types/actions/wallet/switchChain.d.ts.map +1 -0
- package/dist/types/actions/wallet/watchAsset.d.ts +37 -0
- package/dist/types/actions/wallet/watchAsset.d.ts.map +1 -0
- package/dist/types/actions/wallet/writeContract.d.ts +68 -0
- package/dist/types/actions/wallet/writeContract.d.ts.map +1 -0
- package/dist/types/chains/celo/formatters.d.ts +195 -0
- package/dist/types/chains/celo/formatters.d.ts.map +1 -0
- package/dist/types/chains/celo/parsers.d.ts +6 -0
- package/dist/types/chains/celo/parsers.d.ts.map +1 -0
- package/dist/types/chains/celo/serializers.d.ts +9 -0
- package/dist/types/chains/celo/serializers.d.ts.map +1 -0
- package/dist/types/chains/celo/types.d.ts +74 -0
- package/dist/types/chains/celo/types.d.ts.map +1 -0
- package/dist/types/chains/index.d.ts +5329 -0
- package/dist/types/chains/index.d.ts.map +1 -0
- package/dist/types/chains/optimism/fees.d.ts +4 -0
- package/dist/types/chains/optimism/fees.d.ts.map +1 -0
- package/dist/types/chains/optimism/formatters.d.ts +299 -0
- package/dist/types/chains/optimism/formatters.d.ts.map +1 -0
- package/dist/types/chains/optimism/types.d.ts +53 -0
- package/dist/types/chains/optimism/types.d.ts.map +1 -0
- package/dist/types/chains/utils.d.ts +7 -0
- package/dist/types/chains/utils.d.ts.map +1 -0
- package/dist/types/clients/createClient.d.ts +79 -0
- package/dist/types/clients/createClient.d.ts.map +1 -0
- package/dist/types/clients/createPublicClient.d.ts +29 -0
- package/dist/types/clients/createPublicClient.d.ts.map +1 -0
- package/dist/types/clients/createTestClient.d.ts +43 -0
- package/dist/types/clients/createTestClient.d.ts.map +1 -0
- package/dist/types/clients/createWalletClient.d.ts +49 -0
- package/dist/types/clients/createWalletClient.d.ts.map +1 -0
- package/dist/types/clients/decorators/public.d.ts +1087 -0
- package/dist/types/clients/decorators/public.d.ts.map +1 -0
- package/dist/types/clients/decorators/test.d.ts +599 -0
- package/dist/types/clients/decorators/test.d.ts.map +1 -0
- package/dist/types/clients/decorators/wallet.d.ts +449 -0
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -0
- package/dist/types/clients/transports/createTransport.d.ts +34 -0
- package/dist/types/clients/transports/createTransport.d.ts.map +1 -0
- package/dist/types/clients/transports/custom.d.ts +21 -0
- package/dist/types/clients/transports/custom.d.ts.map +1 -0
- package/dist/types/clients/transports/fallback.d.ts +75 -0
- package/dist/types/clients/transports/fallback.d.ts.map +1 -0
- package/dist/types/clients/transports/http.d.ts +40 -0
- package/dist/types/clients/transports/http.d.ts.map +1 -0
- package/dist/types/clients/transports/webSocket.d.ts +46 -0
- package/dist/types/clients/transports/webSocket.d.ts.map +1 -0
- package/dist/types/constants/abis.d.ts +165 -0
- package/dist/types/constants/abis.d.ts.map +1 -0
- package/dist/types/constants/address.d.ts +2 -0
- package/dist/types/constants/address.d.ts.map +1 -0
- package/dist/types/constants/contract.d.ts +2 -0
- package/dist/types/constants/contract.d.ts.map +1 -0
- package/dist/types/constants/contracts.d.ts +2 -0
- package/dist/types/constants/contracts.d.ts.map +1 -0
- package/dist/types/constants/number.d.ts +97 -0
- package/dist/types/constants/number.d.ts.map +1 -0
- package/dist/types/constants/solidity.d.ts +15 -0
- package/dist/types/constants/solidity.d.ts.map +1 -0
- package/dist/types/constants/unit.d.ts +13 -0
- package/dist/types/constants/unit.d.ts.map +1 -0
- package/dist/types/contract.d.ts +30 -0
- package/dist/types/contract.d.ts.map +1 -0
- package/dist/types/ens.d.ts +9 -0
- package/dist/types/ens.d.ts.map +1 -0
- package/dist/types/errors/abi.d.ts +169 -0
- package/dist/types/errors/abi.d.ts.map +1 -0
- package/dist/types/errors/account.d.ts +8 -0
- package/dist/types/errors/account.d.ts.map +1 -0
- package/dist/types/errors/address.d.ts +8 -0
- package/dist/types/errors/address.d.ts.map +1 -0
- package/dist/types/errors/base.d.ts +24 -0
- package/dist/types/errors/base.d.ts.map +1 -0
- package/dist/types/errors/block.d.ts +10 -0
- package/dist/types/errors/block.d.ts.map +1 -0
- package/dist/types/errors/ccip.d.ts +29 -0
- package/dist/types/errors/ccip.d.ts.map +1 -0
- package/dist/types/errors/chain.d.ts +35 -0
- package/dist/types/errors/chain.d.ts.map +1 -0
- package/dist/types/errors/contract.d.ts +64 -0
- package/dist/types/errors/contract.d.ts.map +1 -0
- package/dist/types/errors/data.d.ts +18 -0
- package/dist/types/errors/data.d.ts.map +1 -0
- package/dist/types/errors/encoding.d.ts +53 -0
- package/dist/types/errors/encoding.d.ts.map +1 -0
- package/dist/types/errors/ens.d.ts +26 -0
- package/dist/types/errors/ens.d.ts.map +1 -0
- package/dist/types/errors/estimateGas.d.ts +14 -0
- package/dist/types/errors/estimateGas.d.ts.map +1 -0
- package/dist/types/errors/log.d.ts +6 -0
- package/dist/types/errors/log.d.ts.map +1 -0
- package/dist/types/errors/node.d.ts +105 -0
- package/dist/types/errors/node.d.ts.map +1 -0
- package/dist/types/errors/request.d.ts +61 -0
- package/dist/types/errors/request.d.ts.map +1 -0
- package/dist/types/errors/rpc.d.ts +221 -0
- package/dist/types/errors/rpc.d.ts.map +1 -0
- package/dist/types/errors/transaction.d.ts +79 -0
- package/dist/types/errors/transaction.d.ts.map +1 -0
- package/dist/types/errors/transport.d.ts +5 -0
- package/dist/types/errors/transport.d.ts.map +1 -0
- package/dist/types/errors/utils.d.ts +5 -0
- package/dist/types/errors/utils.d.ts.map +1 -0
- package/dist/types/errors/version.d.ts +2 -0
- package/dist/types/errors/version.d.ts.map +1 -0
- package/dist/types/index.d.ts +211 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/public.d.ts +31 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/test.d.ts +29 -0
- package/dist/types/test.d.ts.map +1 -0
- package/dist/types/types/account.d.ts +12 -0
- package/dist/types/types/account.d.ts.map +1 -0
- package/dist/types/types/block.d.ts +62 -0
- package/dist/types/types/block.d.ts.map +1 -0
- package/dist/types/types/chain.d.ts +62 -0
- package/dist/types/types/chain.d.ts.map +1 -0
- package/dist/types/types/contract.d.ts +138 -0
- package/dist/types/types/contract.d.ts.map +1 -0
- package/dist/types/types/eip1193.d.ts +1216 -0
- package/dist/types/types/eip1193.d.ts.map +1 -0
- package/dist/types/types/ens.d.ts +5 -0
- package/dist/types/types/ens.d.ts.map +1 -0
- package/dist/types/types/fee.d.ts +29 -0
- package/dist/types/types/fee.d.ts.map +1 -0
- package/dist/types/types/filter.d.ts +40 -0
- package/dist/types/types/filter.d.ts.map +1 -0
- package/dist/types/types/log.d.ts +55 -0
- package/dist/types/types/log.d.ts.map +1 -0
- package/dist/types/types/misc.d.ts +14 -0
- package/dist/types/types/misc.d.ts.map +1 -0
- package/dist/types/types/multicall.d.ts +48 -0
- package/dist/types/types/multicall.d.ts.map +1 -0
- package/dist/types/types/rpc.d.ts +20 -0
- package/dist/types/types/rpc.d.ts.map +1 -0
- package/dist/types/types/transaction.d.ts +147 -0
- package/dist/types/types/transaction.d.ts.map +1 -0
- package/dist/types/types/transport.d.ts +3 -0
- package/dist/types/types/transport.d.ts.map +1 -0
- package/dist/types/types/typedData.d.ts +47 -0
- package/dist/types/types/typedData.d.ts.map +1 -0
- package/dist/types/types/utils.d.ts +188 -0
- package/dist/types/types/utils.d.ts.map +1 -0
- package/dist/types/types/window.d.ts +7 -0
- package/dist/types/types/window.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeAbiParameters.d.ts +5 -0
- package/dist/types/utils/abi/decodeAbiParameters.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeDeployData.d.ts +13 -0
- package/dist/types/utils/abi/decodeDeployData.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeErrorResult.d.ts +16 -0
- package/dist/types/utils/abi/decodeErrorResult.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeEventLog.d.ts +20 -0
- package/dist/types/utils/abi/decodeEventLog.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeFunctionData.d.ts +15 -0
- package/dist/types/utils/abi/decodeFunctionData.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeFunctionResult.d.ts +14 -0
- package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeAbiParameters.d.ts +9 -0
- package/dist/types/utils/abi/encodeAbiParameters.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeDeployData.d.ts +9 -0
- package/dist/types/utils/abi/encodeDeployData.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeErrorResult.d.ts +11 -0
- package/dist/types/utils/abi/encodeErrorResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeEventTopics.d.ts +13 -0
- package/dist/types/utils/abi/encodeEventTopics.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeFunctionData.d.ts +11 -0
- package/dist/types/utils/abi/encodeFunctionData.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeFunctionResult.d.ts +13 -0
- package/dist/types/utils/abi/encodeFunctionResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodePacked.d.ts +11 -0
- package/dist/types/utils/abi/encodePacked.d.ts.map +1 -0
- package/dist/types/utils/abi/formatAbiItem.d.ts +9 -0
- package/dist/types/utils/abi/formatAbiItem.d.ts.map +1 -0
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts +8 -0
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -0
- package/dist/types/utils/abi/getAbiItem.d.ts +12 -0
- package/dist/types/utils/abi/getAbiItem.d.ts.map +1 -0
- package/dist/types/utils/accounts.d.ts +3 -0
- package/dist/types/utils/accounts.d.ts.map +1 -0
- package/dist/types/utils/address/getAddress.d.ts +4 -0
- package/dist/types/utils/address/getAddress.d.ts.map +1 -0
- package/dist/types/utils/address/getContractAddress.d.ts +20 -0
- package/dist/types/utils/address/getContractAddress.d.ts.map +1 -0
- package/dist/types/utils/address/isAddress.d.ts +3 -0
- package/dist/types/utils/address/isAddress.d.ts.map +1 -0
- package/dist/types/utils/address/isAddressEqual.d.ts +3 -0
- package/dist/types/utils/address/isAddressEqual.d.ts.map +1 -0
- package/dist/types/utils/buildRequest.d.ts +6 -0
- package/dist/types/utils/buildRequest.d.ts.map +1 -0
- package/dist/types/utils/ccip.d.ts +37 -0
- package/dist/types/utils/ccip.d.ts.map +1 -0
- package/dist/types/utils/chain.d.ts +14 -0
- package/dist/types/utils/chain.d.ts.map +1 -0
- package/dist/types/utils/contract/extractFunctionParts.d.ts +13 -0
- package/dist/types/utils/contract/extractFunctionParts.d.ts.map +1 -0
- package/dist/types/utils/data/concat.d.ts +6 -0
- package/dist/types/utils/data/concat.d.ts.map +1 -0
- package/dist/types/utils/data/isBytes.d.ts +3 -0
- package/dist/types/utils/data/isBytes.d.ts.map +1 -0
- package/dist/types/utils/data/isBytesEqual.d.ts +3 -0
- package/dist/types/utils/data/isBytesEqual.d.ts.map +1 -0
- package/dist/types/utils/data/isHex.d.ts +5 -0
- package/dist/types/utils/data/isHex.d.ts.map +1 -0
- package/dist/types/utils/data/pad.d.ts +11 -0
- package/dist/types/utils/data/pad.d.ts.map +1 -0
- package/dist/types/utils/data/size.d.ts +9 -0
- package/dist/types/utils/data/size.d.ts.map +1 -0
- package/dist/types/utils/data/slice.d.ts +33 -0
- package/dist/types/utils/data/slice.d.ts.map +1 -0
- package/dist/types/utils/data/trim.d.ts +8 -0
- package/dist/types/utils/data/trim.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromBytes.d.ts +109 -0
- package/dist/types/utils/encoding/fromBytes.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromHex.d.ts +138 -0
- package/dist/types/utils/encoding/fromHex.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromRlp.d.ts +6 -0
- package/dist/types/utils/encoding/fromRlp.d.ts.map +1 -0
- package/dist/types/utils/encoding/toBytes.d.ts +125 -0
- package/dist/types/utils/encoding/toBytes.d.ts.map +1 -0
- package/dist/types/utils/encoding/toHex.d.ts +139 -0
- package/dist/types/utils/encoding/toHex.d.ts.map +1 -0
- package/dist/types/utils/encoding/toRlp.d.ts +8 -0
- package/dist/types/utils/encoding/toRlp.d.ts.map +1 -0
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +9 -0
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -0
- package/dist/types/utils/ens/avatar/utils.d.ts +37 -0
- package/dist/types/utils/ens/avatar/utils.d.ts.map +1 -0
- package/dist/types/utils/ens/encodeLabelhash.d.ts +3 -0
- package/dist/types/utils/ens/encodeLabelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/errors.d.ts +2 -0
- package/dist/types/utils/ens/errors.d.ts.map +1 -0
- package/dist/types/utils/ens/labelhash.d.ts +11 -0
- package/dist/types/utils/ens/labelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/namehash.d.ts +13 -0
- package/dist/types/utils/ens/namehash.d.ts.map +1 -0
- package/dist/types/utils/ens/normalize.d.ts +12 -0
- package/dist/types/utils/ens/normalize.d.ts.map +1 -0
- package/dist/types/utils/ens/packetToBytes.d.ts +3 -0
- package/dist/types/utils/ens/packetToBytes.d.ts.map +1 -0
- package/dist/types/utils/errors/getCallError.d.ts +9 -0
- package/dist/types/utils/errors/getCallError.d.ts.map +1 -0
- package/dist/types/utils/errors/getContractError.d.ts +12 -0
- package/dist/types/utils/errors/getContractError.d.ts.map +1 -0
- package/dist/types/utils/errors/getEstimateGasError.d.ts +11 -0
- package/dist/types/utils/errors/getEstimateGasError.d.ts.map +1 -0
- package/dist/types/utils/errors/getNodeError.d.ts +7 -0
- package/dist/types/utils/errors/getNodeError.d.ts.map +1 -0
- package/dist/types/utils/errors/getTransactionError.d.ts +12 -0
- package/dist/types/utils/errors/getTransactionError.d.ts.map +1 -0
- package/dist/types/utils/filters/createFilterRequestScope.d.ts +22 -0
- package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +1 -0
- package/dist/types/utils/formatters/block.d.ts +28 -0
- package/dist/types/utils/formatters/block.d.ts.map +1 -0
- package/dist/types/utils/formatters/extract.d.ts +8 -0
- package/dist/types/utils/formatters/extract.d.ts.map +1 -0
- package/dist/types/utils/formatters/feeHistory.d.ts +4 -0
- package/dist/types/utils/formatters/feeHistory.d.ts.map +1 -0
- package/dist/types/utils/formatters/formatter.d.ts +10 -0
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -0
- package/dist/types/utils/formatters/log.d.ts +7 -0
- package/dist/types/utils/formatters/log.d.ts.map +1 -0
- package/dist/types/utils/formatters/transaction.d.ts +30 -0
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts +14 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts +14 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -0
- package/dist/types/utils/hash/getEventSelector.d.ts +4 -0
- package/dist/types/utils/hash/getEventSelector.d.ts.map +1 -0
- package/dist/types/utils/hash/getFunctionSelector.d.ts +3 -0
- package/dist/types/utils/hash/getFunctionSelector.d.ts.map +1 -0
- package/dist/types/utils/hash/hashFunction.d.ts +4 -0
- package/dist/types/utils/hash/hashFunction.d.ts.map +1 -0
- package/dist/types/utils/hash/isHash.d.ts +3 -0
- package/dist/types/utils/hash/isHash.d.ts.map +1 -0
- package/dist/types/utils/hash/keccak256.d.ts +6 -0
- package/dist/types/utils/hash/keccak256.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +82 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/observe.d.ts +17 -0
- package/dist/types/utils/observe.d.ts.map +1 -0
- package/dist/types/utils/poll.d.ts +13 -0
- package/dist/types/utils/poll.d.ts.map +1 -0
- package/dist/types/utils/promise/createBatchScheduler.d.ts +17 -0
- package/dist/types/utils/promise/createBatchScheduler.d.ts.map +1 -0
- package/dist/types/utils/promise/withCache.d.ts +36 -0
- package/dist/types/utils/promise/withCache.d.ts.map +1 -0
- package/dist/types/utils/promise/withRetry.d.ts +12 -0
- package/dist/types/utils/promise/withRetry.d.ts.map +1 -0
- package/dist/types/utils/promise/withTimeout.d.ts +8 -0
- package/dist/types/utils/promise/withTimeout.d.ts.map +1 -0
- package/dist/types/utils/regex.d.ts +4 -0
- package/dist/types/utils/regex.d.ts.map +1 -0
- package/dist/types/utils/rpc.d.ts +72 -0
- package/dist/types/utils/rpc.d.ts.map +1 -0
- package/dist/types/utils/signature/hashMessage.d.ts +6 -0
- package/dist/types/utils/signature/hashMessage.d.ts.map +1 -0
- package/dist/types/utils/signature/hashTypedData.d.ts +11 -0
- package/dist/types/utils/signature/hashTypedData.d.ts.map +1 -0
- package/dist/types/utils/signature/hexToSignature.d.ts +13 -0
- package/dist/types/utils/signature/hexToSignature.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverAddress.d.ts +9 -0
- package/dist/types/utils/signature/recoverAddress.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverMessageAddress.d.ts +9 -0
- package/dist/types/utils/signature/recoverMessageAddress.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverPublicKey.d.ts +8 -0
- package/dist/types/utils/signature/recoverPublicKey.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverTypedDataAddress.d.ts +13 -0
- package/dist/types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -0
- package/dist/types/utils/signature/signatureToHex.d.ts +17 -0
- package/dist/types/utils/signature/signatureToHex.d.ts.map +1 -0
- package/dist/types/utils/signature/verifyMessage.d.ts +25 -0
- package/dist/types/utils/signature/verifyMessage.d.ts.map +1 -0
- package/dist/types/utils/signature/verifyTypedData.d.ts +28 -0
- package/dist/types/utils/signature/verifyTypedData.d.ts.map +1 -0
- package/dist/types/utils/stringify.d.ts +2 -0
- package/dist/types/utils/stringify.d.ts.map +1 -0
- package/dist/types/utils/transaction/assertRequest.d.ts +5 -0
- package/dist/types/utils/transaction/assertRequest.d.ts.map +1 -0
- package/dist/types/utils/transaction/assertTransaction.d.ts +5 -0
- package/dist/types/utils/transaction/assertTransaction.d.ts.map +1 -0
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts +4 -0
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -0
- package/dist/types/utils/transaction/getTransactionType.d.ts +4 -0
- package/dist/types/utils/transaction/getTransactionType.d.ts.map +1 -0
- package/dist/types/utils/transaction/parseTransaction.d.ts +9 -0
- package/dist/types/utils/transaction/parseTransaction.d.ts.map +1 -0
- package/dist/types/utils/transaction/prepareRequest.d.ts +20 -0
- package/dist/types/utils/transaction/prepareRequest.d.ts.map +1 -0
- package/dist/types/utils/transaction/serializeAccessList.d.ts +5 -0
- package/dist/types/utils/transaction/serializeAccessList.d.ts.map +1 -0
- package/dist/types/utils/transaction/serializeTransaction.d.ts +7 -0
- package/dist/types/utils/transaction/serializeTransaction.d.ts.map +1 -0
- package/dist/types/utils/typedData.d.ts +6 -0
- package/dist/types/utils/typedData.d.ts.map +1 -0
- package/dist/types/utils/uid.d.ts +2 -0
- package/dist/types/utils/uid.d.ts.map +1 -0
- package/dist/types/utils/unit/formatEther.d.ts +2 -0
- package/dist/types/utils/unit/formatEther.d.ts.map +1 -0
- package/dist/types/utils/unit/formatGwei.d.ts +2 -0
- package/dist/types/utils/unit/formatGwei.d.ts.map +1 -0
- package/dist/types/utils/unit/formatUnits.d.ts +2 -0
- package/dist/types/utils/unit/formatUnits.d.ts.map +1 -0
- package/dist/types/utils/unit/parseEther.d.ts +2 -0
- package/dist/types/utils/unit/parseEther.d.ts.map +1 -0
- package/dist/types/utils/unit/parseGwei.d.ts +2 -0
- package/dist/types/utils/unit/parseGwei.d.ts.map +1 -0
- package/dist/types/utils/unit/parseUnits.d.ts +2 -0
- package/dist/types/utils/unit/parseUnits.d.ts.map +1 -0
- package/dist/types/utils/wait.d.ts +2 -0
- package/dist/types/utils/wait.d.ts.map +1 -0
- package/dist/types/wallet.d.ts +11 -0
- package/dist/types/wallet.d.ts.map +1 -0
- package/dist/types/window.d.ts +2 -0
- package/dist/types/window.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/errors/version.ts +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":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;;;;;;;;;;;;;;;;;OA8BG;IACH,UAAU,EAAE,CACV,KAAK,CAAC,SAAS,SAAS,QAAQ,GAAG,SAAS,GAAG,SAAS,EACxD,KAAK,CAAC,UAAU,SACZ,SAAS,QAAQ,EAAE,GACnB,SAAS,OAAO,EAAE,GAClB,SAAS,GAAG,SAAS,SAAS,QAAQ,GAAG,CAAC,SAAS,CAAC,GAAG,SAAS,EACpE,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAE/C,IAAI,EAAE,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,KACvD,oBAAoB,CAAA;IACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,wBAAwB,EAAE,CACxB,IAAI,EAAE,kCAAkC,CAAC,UAAU,CAAC,KACjD,kCAAkC,CAAA;CACxC,CAAA;AAED,wBAAgB,aAAa,CAC3B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAE1D,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,GAC3C,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CA+C7C"}
|
@@ -0,0 +1,599 @@
|
|
1
|
+
import { type DropTransactionParameters } from '../../actions/test/dropTransaction.js';
|
2
|
+
import { type GetAutomineReturnType } from '../../actions/test/getAutomine.js';
|
3
|
+
import { type GetTxpoolContentReturnType } from '../../actions/test/getTxpoolContent.js';
|
4
|
+
import { type GetTxpoolStatusReturnType } from '../../actions/test/getTxpoolStatus.js';
|
5
|
+
import { type ImpersonateAccountParameters } from '../../actions/test/impersonateAccount.js';
|
6
|
+
import { type IncreaseTimeParameters } from '../../actions/test/increaseTime.js';
|
7
|
+
import { type InspectTxpoolReturnType } from '../../actions/test/inspectTxpool.js';
|
8
|
+
import { type MineParameters } from '../../actions/test/mine.js';
|
9
|
+
import { type ResetParameters } from '../../actions/test/reset.js';
|
10
|
+
import { type RevertParameters } from '../../actions/test/revert.js';
|
11
|
+
import { type SendUnsignedTransactionParameters, type SendUnsignedTransactionReturnType } from '../../actions/test/sendUnsignedTransaction.js';
|
12
|
+
import { type SetBalanceParameters } from '../../actions/test/setBalance.js';
|
13
|
+
import { type SetBlockGasLimitParameters } from '../../actions/test/setBlockGasLimit.js';
|
14
|
+
import { type SetBlockTimestampIntervalParameters } from '../../actions/test/setBlockTimestampInterval.js';
|
15
|
+
import { type SetCodeParameters } from '../../actions/test/setCode.js';
|
16
|
+
import { type SetCoinbaseParameters } from '../../actions/test/setCoinbase.js';
|
17
|
+
import { type SetIntervalMiningParameters } from '../../actions/test/setIntervalMining.js';
|
18
|
+
import { type SetMinGasPriceParameters } from '../../actions/test/setMinGasPrice.js';
|
19
|
+
import { type SetNextBlockBaseFeePerGasParameters } from '../../actions/test/setNextBlockBaseFeePerGas.js';
|
20
|
+
import { type SetNextBlockTimestampParameters } from '../../actions/test/setNextBlockTimestamp.js';
|
21
|
+
import { type SetNonceParameters } from '../../actions/test/setNonce.js';
|
22
|
+
import { type SetStorageAtParameters } from '../../actions/test/setStorageAt.js';
|
23
|
+
import { type StopImpersonatingAccountParameters } from '../../actions/test/stopImpersonatingAccount.js';
|
24
|
+
import type { Account } from '../../types/account.js';
|
25
|
+
import type { Chain } from '../../types/chain.js';
|
26
|
+
import type { Quantity } from '../../types/rpc.js';
|
27
|
+
import type { Client } from '../createClient.js';
|
28
|
+
import type { TestClientMode } from '../createTestClient.js';
|
29
|
+
import type { Transport } from '../transports/createTransport.js';
|
30
|
+
export type TestActions = {
|
31
|
+
/**
|
32
|
+
* Removes a transaction from the mempool.
|
33
|
+
*
|
34
|
+
* - Docs: https://viem.sh/docs/actions/test/dropTransaction.html
|
35
|
+
*
|
36
|
+
* @param args - {@link DropTransactionParameters}
|
37
|
+
*
|
38
|
+
* @example
|
39
|
+
* import { createTestClient, http } from 'viem'
|
40
|
+
* import { foundry } from 'viem/chains'
|
41
|
+
*
|
42
|
+
* const client = createTestClient({
|
43
|
+
* mode: 'anvil',
|
44
|
+
* chain: 'foundry',
|
45
|
+
* transport: http(),
|
46
|
+
* })
|
47
|
+
* await client.dropTransaction({
|
48
|
+
* hash: '0xe58dceb6b20b03965bb678e27d141e151d7d4efc2334c2d6a49b9fac523f7364'
|
49
|
+
* })
|
50
|
+
*/
|
51
|
+
dropTransaction: (args: DropTransactionParameters) => Promise<void>;
|
52
|
+
/**
|
53
|
+
* Returns the automatic mining status of the node.
|
54
|
+
*
|
55
|
+
* - Docs: https://viem.sh/docs/actions/test/getAutomine.html
|
56
|
+
*
|
57
|
+
* @returns Whether or not the node is auto mining. {@link GetAutomineReturnType}
|
58
|
+
*
|
59
|
+
* @example
|
60
|
+
* import { createTestClient, http } from 'viem'
|
61
|
+
* import { foundry } from 'viem/chains'
|
62
|
+
*
|
63
|
+
* const client = createTestClient({
|
64
|
+
* mode: 'anvil',
|
65
|
+
* chain: 'foundry',
|
66
|
+
* transport: http(),
|
67
|
+
* })
|
68
|
+
* const isAutomining = await client.getAutomine()
|
69
|
+
*/
|
70
|
+
getAutomine: () => Promise<GetAutomineReturnType>;
|
71
|
+
/**
|
72
|
+
* Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
73
|
+
*
|
74
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
|
75
|
+
*
|
76
|
+
* @returns Transaction pool content. {@link GetTxpoolContentReturnType}
|
77
|
+
*
|
78
|
+
* @example
|
79
|
+
* import { createTestClient, http } from 'viem'
|
80
|
+
* import { foundry } from 'viem/chains'
|
81
|
+
*
|
82
|
+
* const client = createTestClient({
|
83
|
+
* mode: 'anvil',
|
84
|
+
* chain: 'foundry',
|
85
|
+
* transport: http(),
|
86
|
+
* })
|
87
|
+
* const content = await client.getTxpoolContent()
|
88
|
+
*/
|
89
|
+
getTxpoolContent: () => Promise<GetTxpoolContentReturnType>;
|
90
|
+
/**
|
91
|
+
* Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
92
|
+
*
|
93
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus.html
|
94
|
+
*
|
95
|
+
* @returns Transaction pool status. {@link GetTxpoolStatusReturnType}
|
96
|
+
*
|
97
|
+
* @example
|
98
|
+
* import { createTestClient, http } from 'viem'
|
99
|
+
* import { foundry } from 'viem/chains'
|
100
|
+
*
|
101
|
+
* const client = createTestClient({
|
102
|
+
* mode: 'anvil',
|
103
|
+
* chain: 'foundry',
|
104
|
+
* transport: http(),
|
105
|
+
* })
|
106
|
+
* const status = await client.getTxpoolStatus()
|
107
|
+
*/
|
108
|
+
getTxpoolStatus: () => Promise<GetTxpoolStatusReturnType>;
|
109
|
+
/**
|
110
|
+
* Impersonate an account or contract address. This lets you send transactions from that account even if you don't have access to its private key.
|
111
|
+
*
|
112
|
+
* - Docs: https://viem.sh/docs/actions/test/impersonateAccount.html
|
113
|
+
*
|
114
|
+
* @param args - {@link ImpersonateAccountParameters}
|
115
|
+
*
|
116
|
+
* @example
|
117
|
+
* import { createTestClient, http } from 'viem'
|
118
|
+
* import { foundry } from 'viem/chains'
|
119
|
+
*
|
120
|
+
* const client = createTestClient({
|
121
|
+
* mode: 'anvil',
|
122
|
+
* chain: 'foundry',
|
123
|
+
* transport: http(),
|
124
|
+
* })
|
125
|
+
* await client.impersonateAccount({
|
126
|
+
* address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
|
127
|
+
* })
|
128
|
+
*/
|
129
|
+
impersonateAccount: (args: ImpersonateAccountParameters) => Promise<void>;
|
130
|
+
/**
|
131
|
+
* Jump forward in time by the given amount of time, in seconds.
|
132
|
+
*
|
133
|
+
* - Docs: https://viem.sh/docs/actions/test/increaseTime.html
|
134
|
+
*
|
135
|
+
* @param args – {@link IncreaseTimeParameters}
|
136
|
+
*
|
137
|
+
* @example
|
138
|
+
* import { createTestClient, http } from 'viem'
|
139
|
+
* import { foundry } from 'viem/chains'
|
140
|
+
*
|
141
|
+
* const client = createTestClient({
|
142
|
+
* mode: 'anvil',
|
143
|
+
* chain: 'foundry',
|
144
|
+
* transport: http(),
|
145
|
+
* })
|
146
|
+
* await client.increaseTime({
|
147
|
+
* seconds: 420,
|
148
|
+
* })
|
149
|
+
*/
|
150
|
+
increaseTime: (args: IncreaseTimeParameters) => Promise<Quantity>;
|
151
|
+
/**
|
152
|
+
* Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
153
|
+
*
|
154
|
+
* - Docs: https://viem.sh/docs/actions/test/inspectTxpool.html
|
155
|
+
*
|
156
|
+
* @returns Transaction pool inspection data. {@link InspectTxpoolReturnType}
|
157
|
+
*
|
158
|
+
* @example
|
159
|
+
* import { createTestClient, http } from 'viem'
|
160
|
+
* import { foundry } from 'viem/chains'
|
161
|
+
*
|
162
|
+
* const client = createTestClient({
|
163
|
+
* mode: 'anvil',
|
164
|
+
* chain: 'foundry',
|
165
|
+
* transport: http(),
|
166
|
+
* })
|
167
|
+
* const data = await client.inspectTxpool()
|
168
|
+
*/
|
169
|
+
inspectTxpool: () => Promise<InspectTxpoolReturnType>;
|
170
|
+
/**
|
171
|
+
* Mine a specified number of blocks.
|
172
|
+
*
|
173
|
+
* - Docs: https://viem.sh/docs/actions/test/mine.html
|
174
|
+
*
|
175
|
+
* @param client - Client to use
|
176
|
+
* @param args – {@link MineParameters}
|
177
|
+
*
|
178
|
+
* @example
|
179
|
+
* import { createTestClient, http } from 'viem'
|
180
|
+
* import { foundry } from 'viem/chains'
|
181
|
+
*
|
182
|
+
* const client = createTestClient({
|
183
|
+
* mode: 'anvil',
|
184
|
+
* chain: 'foundry',
|
185
|
+
* transport: http(),
|
186
|
+
* })
|
187
|
+
* await client.mine({ blocks: 1 })
|
188
|
+
*/
|
189
|
+
mine: (args: MineParameters) => Promise<void>;
|
190
|
+
/**
|
191
|
+
* Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval.html) if it exists.
|
192
|
+
*
|
193
|
+
* - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval.html
|
194
|
+
*
|
195
|
+
* @example
|
196
|
+
* import { createTestClient, http } from 'viem'
|
197
|
+
* import { foundry } from 'viem/chains'
|
198
|
+
* import { removeBlockTimestampInterval } from 'viem/test'
|
199
|
+
*
|
200
|
+
* const client = createTestClient({
|
201
|
+
* mode: 'anvil',
|
202
|
+
* chain: 'foundry',
|
203
|
+
* transport: http(),
|
204
|
+
* })
|
205
|
+
* await client.removeBlockTimestampInterval()
|
206
|
+
*/
|
207
|
+
removeBlockTimestampInterval: () => Promise<void>;
|
208
|
+
/**
|
209
|
+
* Resets fork back to its original state.
|
210
|
+
*
|
211
|
+
* - Docs: https://viem.sh/docs/actions/test/reset.html
|
212
|
+
*
|
213
|
+
* @param args – {@link ResetParameters}
|
214
|
+
*
|
215
|
+
* @example
|
216
|
+
* import { createTestClient, http } from 'viem'
|
217
|
+
* import { foundry } from 'viem/chains'
|
218
|
+
*
|
219
|
+
* const client = createTestClient({
|
220
|
+
* mode: 'anvil',
|
221
|
+
* chain: 'foundry',
|
222
|
+
* transport: http(),
|
223
|
+
* })
|
224
|
+
* await client.reset({ blockNumber: 69420n })
|
225
|
+
*/
|
226
|
+
reset: (args?: ResetParameters) => Promise<void>;
|
227
|
+
/**
|
228
|
+
* Revert the state of the blockchain at the current block.
|
229
|
+
*
|
230
|
+
* - Docs: https://viem.sh/docs/actions/test/revert.html
|
231
|
+
*
|
232
|
+
* @param args – {@link RevertParameters}
|
233
|
+
*
|
234
|
+
* @example
|
235
|
+
* import { createTestClient, http } from 'viem'
|
236
|
+
* import { foundry } from 'viem/chains'
|
237
|
+
*
|
238
|
+
* const client = createTestClient({
|
239
|
+
* mode: 'anvil',
|
240
|
+
* chain: 'foundry',
|
241
|
+
* transport: http(),
|
242
|
+
* })
|
243
|
+
* await client.revert({ id: '0x…' })
|
244
|
+
*/
|
245
|
+
revert: (args: RevertParameters) => Promise<void>;
|
246
|
+
/**
|
247
|
+
* Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
|
248
|
+
*
|
249
|
+
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
|
250
|
+
*
|
251
|
+
* @param args – {@link SendUnsignedTransactionParameters}
|
252
|
+
* @returns The transaction hash. {@link SendUnsignedTransactionReturnType}
|
253
|
+
*
|
254
|
+
* @example
|
255
|
+
* import { createTestClient, http } from 'viem'
|
256
|
+
* import { foundry } from 'viem/chains'
|
257
|
+
*
|
258
|
+
* const client = createTestClient({
|
259
|
+
* mode: 'anvil',
|
260
|
+
* chain: 'foundry',
|
261
|
+
* transport: http(),
|
262
|
+
* })
|
263
|
+
* const hash = await client.sendUnsignedTransaction({
|
264
|
+
* from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
265
|
+
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
266
|
+
* value: 1000000000000000000n,
|
267
|
+
* })
|
268
|
+
*/
|
269
|
+
sendUnsignedTransaction: <TChain extends Chain | undefined>(args: SendUnsignedTransactionParameters<TChain>) => Promise<SendUnsignedTransactionReturnType>;
|
270
|
+
/**
|
271
|
+
* Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
|
272
|
+
*
|
273
|
+
* - Docs: https://viem.sh/docs/actions/test/setAutomine.html
|
274
|
+
*
|
275
|
+
* @example
|
276
|
+
* import { createTestClient, http } from 'viem'
|
277
|
+
* import { foundry } from 'viem/chains'
|
278
|
+
*
|
279
|
+
* const client = createTestClient({
|
280
|
+
* mode: 'anvil',
|
281
|
+
* chain: 'foundry',
|
282
|
+
* transport: http(),
|
283
|
+
* })
|
284
|
+
* await client.setAutomine()
|
285
|
+
*/
|
286
|
+
setAutomine: (args: boolean) => Promise<void>;
|
287
|
+
/**
|
288
|
+
* Modifies the balance of an account.
|
289
|
+
*
|
290
|
+
* - Docs: https://viem.sh/docs/actions/test/setBalance.html
|
291
|
+
*
|
292
|
+
* @param args – {@link SetBalanceParameters}
|
293
|
+
*
|
294
|
+
* @example
|
295
|
+
* import { createTestClient, http, parseEther } from 'viem'
|
296
|
+
* import { foundry } from 'viem/chains'
|
297
|
+
*
|
298
|
+
* const client = createTestClient({
|
299
|
+
* mode: 'anvil',
|
300
|
+
* chain: 'foundry',
|
301
|
+
* transport: http(),
|
302
|
+
* })
|
303
|
+
* await client.setBalance({
|
304
|
+
* address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
305
|
+
* value: parseEther('1'),
|
306
|
+
* })
|
307
|
+
*/
|
308
|
+
setBalance: (args: SetBalanceParameters) => Promise<void>;
|
309
|
+
/**
|
310
|
+
* Sets the block's gas limit.
|
311
|
+
*
|
312
|
+
* - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit.html
|
313
|
+
*
|
314
|
+
* @param args – {@link SetBlockGasLimitParameters}
|
315
|
+
*
|
316
|
+
* @example
|
317
|
+
* import { createTestClient, http } from 'viem'
|
318
|
+
* import { foundry } from 'viem/chains'
|
319
|
+
*
|
320
|
+
* const client = createTestClient({
|
321
|
+
* mode: 'anvil',
|
322
|
+
* chain: 'foundry',
|
323
|
+
* transport: http(),
|
324
|
+
* })
|
325
|
+
* await client.setBlockGasLimit({ gasLimit: 420_000n })
|
326
|
+
*/
|
327
|
+
setBlockGasLimit: (args: SetBlockGasLimitParameters) => Promise<void>;
|
328
|
+
/**
|
329
|
+
* Similar to [`increaseTime`](https://viem.sh/docs/actions/test/increaseTime.html), but sets a block timestamp `interval`. The timestamp of future blocks will be computed as `lastBlock_timestamp` + `interval`.
|
330
|
+
*
|
331
|
+
* - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval.html
|
332
|
+
*
|
333
|
+
* @param args – {@link SetBlockTimestampIntervalParameters}
|
334
|
+
*
|
335
|
+
* @example
|
336
|
+
* import { createTestClient, http } from 'viem'
|
337
|
+
* import { foundry } from 'viem/chains'
|
338
|
+
*
|
339
|
+
* const client = createTestClient({
|
340
|
+
* mode: 'anvil',
|
341
|
+
* chain: 'foundry',
|
342
|
+
* transport: http(),
|
343
|
+
* })
|
344
|
+
* await client.setBlockTimestampInterval({ interval: 5 })
|
345
|
+
*/
|
346
|
+
setBlockTimestampInterval: (args: SetBlockTimestampIntervalParameters) => Promise<void>;
|
347
|
+
/**
|
348
|
+
* Modifies the bytecode stored at an account's address.
|
349
|
+
*
|
350
|
+
* - Docs: https://viem.sh/docs/actions/test/setCode.html
|
351
|
+
*
|
352
|
+
* @param args – {@link SetCodeParameters}
|
353
|
+
*
|
354
|
+
* @example
|
355
|
+
* import { createTestClient, http } from 'viem'
|
356
|
+
* import { foundry } from 'viem/chains'
|
357
|
+
*
|
358
|
+
* const client = createTestClient({
|
359
|
+
* mode: 'anvil',
|
360
|
+
* chain: 'foundry',
|
361
|
+
* transport: http(),
|
362
|
+
* })
|
363
|
+
* await client.setCode({
|
364
|
+
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
365
|
+
* bytecode: '0x60806040526000600355600019600955600c80546001600160a01b031916737a250d5630b4cf539739df…',
|
366
|
+
* })
|
367
|
+
*/
|
368
|
+
setCode: (args: SetCodeParameters) => Promise<void>;
|
369
|
+
/**
|
370
|
+
* Sets the coinbase address to be used in new blocks.
|
371
|
+
*
|
372
|
+
* - Docs: https://viem.sh/docs/actions/test/setCoinbase.html
|
373
|
+
*
|
374
|
+
* @param args – {@link SetCoinbaseParameters}
|
375
|
+
*
|
376
|
+
* @example
|
377
|
+
* import { createTestClient, http } from 'viem'
|
378
|
+
* import { foundry } from 'viem/chains'
|
379
|
+
*
|
380
|
+
* const client = createTestClient({
|
381
|
+
* mode: 'anvil',
|
382
|
+
* chain: 'foundry',
|
383
|
+
* transport: http(),
|
384
|
+
* })
|
385
|
+
* await client.setCoinbase({
|
386
|
+
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
387
|
+
* })
|
388
|
+
*/
|
389
|
+
setCoinbase: (args: SetCoinbaseParameters) => Promise<void>;
|
390
|
+
/**
|
391
|
+
* Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.
|
392
|
+
*
|
393
|
+
* - Docs: https://viem.sh/docs/actions/test/setIntervalMining.html
|
394
|
+
*
|
395
|
+
* @param args – {@link SetIntervalMiningParameters}
|
396
|
+
*
|
397
|
+
* @example
|
398
|
+
* import { createTestClient, http } from 'viem'
|
399
|
+
* import { foundry } from 'viem/chains'
|
400
|
+
*
|
401
|
+
* const client = createTestClient({
|
402
|
+
* mode: 'anvil',
|
403
|
+
* chain: 'foundry',
|
404
|
+
* transport: http(),
|
405
|
+
* })
|
406
|
+
* await client.setIntervalMining({ interval: 5 })
|
407
|
+
*/
|
408
|
+
setIntervalMining: (args: SetIntervalMiningParameters) => Promise<void>;
|
409
|
+
/**
|
410
|
+
* Enable or disable logging on the test node network.
|
411
|
+
*
|
412
|
+
* - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled.html
|
413
|
+
*
|
414
|
+
* @param client - Client to use
|
415
|
+
*
|
416
|
+
* @example
|
417
|
+
* import { createTestClient, http } from 'viem'
|
418
|
+
* import { foundry } from 'viem/chains'
|
419
|
+
*
|
420
|
+
* const client = createTestClient({
|
421
|
+
* mode: 'anvil',
|
422
|
+
* chain: 'foundry',
|
423
|
+
* transport: http(),
|
424
|
+
* })
|
425
|
+
* await client.setLoggingEnabled()
|
426
|
+
*/
|
427
|
+
setLoggingEnabled: (args: boolean) => Promise<void>;
|
428
|
+
/**
|
429
|
+
* Change the minimum gas price accepted by the network (in wei).
|
430
|
+
*
|
431
|
+
* - Docs: https://viem.sh/docs/actions/test/setMinGasPrice.html
|
432
|
+
*
|
433
|
+
* Note: `setMinGasPrice` can only be used on clients that do not have EIP-1559 enabled.
|
434
|
+
*
|
435
|
+
* @param args – {@link SetBlockGasLimitParameters}
|
436
|
+
*
|
437
|
+
* @example
|
438
|
+
* import { createTestClient, http, parseGwei } from 'viem'
|
439
|
+
* import { foundry } from 'viem/chains'
|
440
|
+
*
|
441
|
+
* const client = createTestClient({
|
442
|
+
* mode: 'anvil',
|
443
|
+
* chain: 'foundry',
|
444
|
+
* transport: http(),
|
445
|
+
* })
|
446
|
+
* await client.setMinGasPrice({
|
447
|
+
* gasPrice: parseGwei('20'),
|
448
|
+
* })
|
449
|
+
*/
|
450
|
+
setMinGasPrice: (args: SetMinGasPriceParameters) => Promise<void>;
|
451
|
+
/**
|
452
|
+
* Sets the next block's base fee per gas.
|
453
|
+
*
|
454
|
+
* - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas.html
|
455
|
+
*
|
456
|
+
* @param args – {@link SetNextBlockBaseFeePerGasParameters}
|
457
|
+
*
|
458
|
+
* @example
|
459
|
+
* import { createTestClient, http, parseGwei } from 'viem'
|
460
|
+
* import { foundry } from 'viem/chains'
|
461
|
+
*
|
462
|
+
* const client = createTestClient({
|
463
|
+
* mode: 'anvil',
|
464
|
+
* chain: 'foundry',
|
465
|
+
* transport: http(),
|
466
|
+
* })
|
467
|
+
* await client.setNextBlockBaseFeePerGas({
|
468
|
+
* baseFeePerGas: parseGwei('20'),
|
469
|
+
* })
|
470
|
+
*/
|
471
|
+
setNextBlockBaseFeePerGas: (args: SetNextBlockBaseFeePerGasParameters) => Promise<void>;
|
472
|
+
/**
|
473
|
+
* Sets the next block's timestamp.
|
474
|
+
*
|
475
|
+
* - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp.html
|
476
|
+
*
|
477
|
+
* @param args – {@link SetNextBlockTimestampParameters}
|
478
|
+
*
|
479
|
+
* @example
|
480
|
+
* import { createTestClient, http } from 'viem'
|
481
|
+
* import { foundry } from 'viem/chains'
|
482
|
+
*
|
483
|
+
* const client = createTestClient({
|
484
|
+
* mode: 'anvil',
|
485
|
+
* chain: 'foundry',
|
486
|
+
* transport: http(),
|
487
|
+
* })
|
488
|
+
* await client.setNextBlockTimestamp({ timestamp: 1671744314n })
|
489
|
+
*/
|
490
|
+
setNextBlockTimestamp: (args: SetNextBlockTimestampParameters) => Promise<void>;
|
491
|
+
/**
|
492
|
+
* Modifies (overrides) the nonce of an account.
|
493
|
+
*
|
494
|
+
* - Docs: https://viem.sh/docs/actions/test/setNonce.html
|
495
|
+
*
|
496
|
+
* @param args – {@link SetNonceParameters}
|
497
|
+
*
|
498
|
+
* @example
|
499
|
+
* import { createTestClient, http } from 'viem'
|
500
|
+
* import { foundry } from 'viem/chains'
|
501
|
+
*
|
502
|
+
* const client = createTestClient({
|
503
|
+
* mode: 'anvil',
|
504
|
+
* chain: 'foundry',
|
505
|
+
* transport: http(),
|
506
|
+
* })
|
507
|
+
* await client.setNonce({
|
508
|
+
* address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
509
|
+
* nonce: 420,
|
510
|
+
* })
|
511
|
+
*/
|
512
|
+
setNonce: (args: SetNonceParameters) => Promise<void>;
|
513
|
+
/**
|
514
|
+
* Sets the backend RPC URL.
|
515
|
+
*
|
516
|
+
* - Docs: https://viem.sh/docs/actions/test/setRpcUrl.html
|
517
|
+
*
|
518
|
+
* @param jsonRpcUrl – RPC URL
|
519
|
+
*
|
520
|
+
* @example
|
521
|
+
* import { createTestClient, http } from 'viem'
|
522
|
+
* import { foundry } from 'viem/chains'
|
523
|
+
*
|
524
|
+
* const client = createTestClient({
|
525
|
+
* mode: 'anvil',
|
526
|
+
* chain: 'foundry',
|
527
|
+
* transport: http(),
|
528
|
+
* })
|
529
|
+
* await client.setRpcUrl('https://eth-mainnet.g.alchemy.com/v2')
|
530
|
+
*/
|
531
|
+
setRpcUrl: (args: string) => Promise<void>;
|
532
|
+
/**
|
533
|
+
* Writes to a slot of an account's storage.
|
534
|
+
*
|
535
|
+
* - Docs: https://viem.sh/docs/actions/test/setStorageAt.html
|
536
|
+
*
|
537
|
+
* @param args – {@link SetStorageAtParameters}
|
538
|
+
*
|
539
|
+
* @example
|
540
|
+
* import { createTestClient, http } from 'viem'
|
541
|
+
* import { foundry } from 'viem/chains'
|
542
|
+
*
|
543
|
+
* const client = createTestClient({
|
544
|
+
* mode: 'anvil',
|
545
|
+
* chain: 'foundry',
|
546
|
+
* transport: http(),
|
547
|
+
* })
|
548
|
+
* await client.setStorageAt({
|
549
|
+
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
550
|
+
* index: 2,
|
551
|
+
* value: '0x0000000000000000000000000000000000000000000000000000000000000069',
|
552
|
+
* })
|
553
|
+
*/
|
554
|
+
setStorageAt: (args: SetStorageAtParameters) => Promise<void>;
|
555
|
+
/**
|
556
|
+
* Snapshot the state of the blockchain at the current block.
|
557
|
+
*
|
558
|
+
* - Docs: https://viem.sh/docs/actions/test/snapshot.html
|
559
|
+
*
|
560
|
+
* @example
|
561
|
+
* import { createTestClient, http } from 'viem'
|
562
|
+
* import { foundry } from 'viem/chains'
|
563
|
+
* import { snapshot } from 'viem/test'
|
564
|
+
*
|
565
|
+
* const client = createTestClient({
|
566
|
+
* mode: 'anvil',
|
567
|
+
* chain: 'foundry',
|
568
|
+
* transport: http(),
|
569
|
+
* })
|
570
|
+
* await client.snapshot()
|
571
|
+
*/
|
572
|
+
snapshot: () => Promise<Quantity>;
|
573
|
+
/**
|
574
|
+
* Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount.html).
|
575
|
+
*
|
576
|
+
* - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount.html
|
577
|
+
*
|
578
|
+
* @param args – {@link StopImpersonatingAccountParameters}
|
579
|
+
*
|
580
|
+
* @example
|
581
|
+
* import { createTestClient, http } from 'viem'
|
582
|
+
* import { foundry } from 'viem/chains'
|
583
|
+
* import { stopImpersonatingAccount } from 'viem/test'
|
584
|
+
*
|
585
|
+
* const client = createTestClient({
|
586
|
+
* mode: 'anvil',
|
587
|
+
* chain: 'foundry',
|
588
|
+
* transport: http(),
|
589
|
+
* })
|
590
|
+
* await client.stopImpersonatingAccount({
|
591
|
+
* address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
592
|
+
* })
|
593
|
+
*/
|
594
|
+
stopImpersonatingAccount: (args: StopImpersonatingAccountParameters) => Promise<void>;
|
595
|
+
};
|
596
|
+
export declare function testActions<TMode extends TestClientMode>({ mode, }: {
|
597
|
+
mode: TMode;
|
598
|
+
}): <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>) => TestActions;
|
599
|
+
//# sourceMappingURL=test.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../src/clients/decorators/test.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,4BAA4B,CAAA;AAEtE,OAAO,EAAE,KAAK,eAAe,EAAS,MAAM,6BAA6B,CAAA;AACzE,OAAO,EAAE,KAAK,gBAAgB,EAAU,MAAM,8BAA8B,CAAA;AAC5E,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EAEvC,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EACL,KAAK,oBAAoB,EAE1B,M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