viem 1.6.4 → 1.6.6
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.map +1 -0
- package/chains/dist/cjs/celo/parsers.js.map +1 -0
- package/chains/dist/cjs/celo/serializers.js.map +1 -0
- package/chains/dist/cjs/celo/types.js.map +1 -0
- package/chains/dist/cjs/index.js.map +1 -0
- package/chains/dist/cjs/optimism/fees.js.map +1 -0
- package/chains/dist/cjs/optimism/formatters.js.map +1 -0
- package/chains/dist/cjs/optimism/types.js.map +1 -0
- package/chains/dist/cjs/types.js.map +1 -0
- package/chains/dist/cjs/utils.js.map +1 -0
- package/chains/dist/tsconfig.build.tsbuildinfo +1 -0
- package/chains/node_modules/.bin/tsc +17 -0
- package/chains/node_modules/.bin/tsserver +17 -0
- package/chains/tsconfig.tsbuildinfo +1 -0
- package/dist/cjs/chains/celo/parsers.js +76 -0
- package/dist/cjs/chains/celo/parsers.js.map +1 -0
- package/dist/cjs/chains/celo/serializers.js +2 -1
- package/dist/cjs/chains/celo/serializers.js.map +1 -1
- package/dist/cjs/chains/utils.js +3 -1
- package/dist/cjs/chains/utils.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/utils/rpc.js +5 -7
- package/dist/cjs/utils/rpc.js.map +1 -1
- package/dist/cjs/utils/transaction/parseTransaction.js +8 -3
- package/dist/cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/dist/esm/chains/celo/parsers.js +72 -0
- package/dist/esm/chains/celo/parsers.js.map +1 -0
- package/dist/esm/chains/celo/serializers.js +1 -3
- package/dist/esm/chains/celo/serializers.js.map +1 -1
- package/dist/esm/chains/utils.js +1 -0
- package/dist/esm/chains/utils.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/utils/rpc.js +5 -7
- package/dist/esm/utils/rpc.js.map +1 -1
- package/dist/esm/utils/transaction/parseTransaction.js +6 -3
- package/dist/esm/utils/transaction/parseTransaction.js.map +1 -1
- package/package.json +1 -1
- package/src/chains/celo/parsers.ts +123 -0
- package/src/chains/celo/serializers.ts +13 -34
- package/src/chains/celo/types.ts +32 -0
- package/src/chains/utils.ts +6 -2
- package/src/errors/version.ts +1 -1
- package/src/utils/rpc.ts +5 -8
- package/src/utils/transaction/parseTransaction.ts +7 -9
- package/dist/types/abi.d.ts +0 -6
- package/dist/types/abi.d.ts.map +0 -1
- package/dist/types/accounts/generateMnemonic.d.ts +0 -9
- package/dist/types/accounts/generateMnemonic.d.ts.map +0 -1
- package/dist/types/accounts/generatePrivateKey.d.ts +0 -8
- package/dist/types/accounts/generatePrivateKey.d.ts.map +0 -1
- package/dist/types/accounts/hdKeyToAccount.d.ts +0 -9
- package/dist/types/accounts/hdKeyToAccount.d.ts.map +0 -1
- package/dist/types/accounts/index.d.ts +0 -27
- package/dist/types/accounts/index.d.ts.map +0 -1
- package/dist/types/accounts/mnemonicToAccount.d.ts +0 -8
- package/dist/types/accounts/mnemonicToAccount.d.ts.map +0 -1
- package/dist/types/accounts/privateKeyToAccount.d.ts +0 -9
- package/dist/types/accounts/privateKeyToAccount.d.ts.map +0 -1
- package/dist/types/accounts/toAccount.d.ts +0 -11
- package/dist/types/accounts/toAccount.d.ts.map +0 -1
- package/dist/types/accounts/types.d.ts +0 -52
- package/dist/types/accounts/types.d.ts.map +0 -1
- package/dist/types/accounts/utils/parseAccount.d.ts +0 -4
- package/dist/types/accounts/utils/parseAccount.d.ts.map +0 -1
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts +0 -11
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts.map +0 -1
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts +0 -11
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts.map +0 -1
- package/dist/types/accounts/utils/sign.d.ts +0 -16
- package/dist/types/accounts/utils/sign.d.ts.map +0 -1
- package/dist/types/accounts/utils/signMessage.d.ts +0 -16
- package/dist/types/accounts/utils/signMessage.d.ts.map +0 -1
- package/dist/types/accounts/utils/signTransaction.d.ts +0 -12
- package/dist/types/accounts/utils/signTransaction.d.ts.map +0 -1
- package/dist/types/accounts/utils/signTypedData.d.ts +0 -20
- package/dist/types/accounts/utils/signTypedData.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/czech.d.ts +0 -2
- package/dist/types/accounts/wordlists/czech.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/english.d.ts +0 -2
- package/dist/types/accounts/wordlists/english.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/french.d.ts +0 -2
- package/dist/types/accounts/wordlists/french.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/italian.d.ts +0 -2
- package/dist/types/accounts/wordlists/italian.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/japanese.d.ts +0 -2
- package/dist/types/accounts/wordlists/japanese.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/korean.d.ts +0 -2
- package/dist/types/accounts/wordlists/korean.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts +0 -2
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/spanish.d.ts +0 -2
- package/dist/types/accounts/wordlists/spanish.d.ts.map +0 -1
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts +0 -2
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts.map +0 -1
- package/dist/types/actions/ens/getEnsAddress.d.ts +0 -45
- package/dist/types/actions/ens/getEnsAddress.d.ts.map +0 -1
- package/dist/types/actions/ens/getEnsAvatar.d.ts +0 -41
- package/dist/types/actions/ens/getEnsAvatar.d.ts.map +0 -1
- package/dist/types/actions/ens/getEnsName.d.ts +0 -41
- package/dist/types/actions/ens/getEnsName.d.ts.map +0 -1
- package/dist/types/actions/ens/getEnsResolver.d.ts +0 -43
- package/dist/types/actions/ens/getEnsResolver.d.ts.map +0 -1
- package/dist/types/actions/ens/getEnsText.d.ts +0 -46
- package/dist/types/actions/ens/getEnsText.d.ts.map +0 -1
- package/dist/types/actions/getContract.d.ts +0 -314
- package/dist/types/actions/getContract.d.ts.map +0 -1
- package/dist/types/actions/index.d.ts +0 -80
- package/dist/types/actions/index.d.ts.map +0 -1
- package/dist/types/actions/public/call.d.ts +0 -56
- package/dist/types/actions/public/call.d.ts.map +0 -1
- package/dist/types/actions/public/createBlockFilter.d.ts +0 -28
- package/dist/types/actions/public/createBlockFilter.d.ts.map +0 -1
- package/dist/types/actions/public/createContractEventFilter.d.ts +0 -50
- package/dist/types/actions/public/createContractEventFilter.d.ts.map +0 -1
- package/dist/types/actions/public/createEventFilter.d.ts +0 -76
- package/dist/types/actions/public/createEventFilter.d.ts.map +0 -1
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts +0 -28
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +0 -1
- package/dist/types/actions/public/estimateContractGas.d.ts +0 -39
- package/dist/types/actions/public/estimateContractGas.d.ts.map +0 -1
- package/dist/types/actions/public/estimateGas.d.ts +0 -49
- package/dist/types/actions/public/estimateGas.d.ts.map +0 -1
- package/dist/types/actions/public/getBalance.d.ts +0 -55
- package/dist/types/actions/public/getBalance.d.ts.map +0 -1
- package/dist/types/actions/public/getBlock.d.ts +0 -56
- package/dist/types/actions/public/getBlock.d.ts.map +0 -1
- package/dist/types/actions/public/getBlockNumber.d.ts +0 -57
- package/dist/types/actions/public/getBlockNumber.d.ts.map +0 -1
- package/dist/types/actions/public/getBlockTransactionCount.d.ts +0 -47
- package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +0 -1
- package/dist/types/actions/public/getBytecode.d.ts +0 -41
- package/dist/types/actions/public/getBytecode.d.ts.map +0 -1
- package/dist/types/actions/public/getChainId.d.ts +0 -28
- package/dist/types/actions/public/getChainId.d.ts.map +0 -1
- package/dist/types/actions/public/getFeeHistory.d.ts +0 -53
- package/dist/types/actions/public/getFeeHistory.d.ts.map +0 -1
- package/dist/types/actions/public/getFilterChanges.d.ts +0 -96
- package/dist/types/actions/public/getFilterChanges.d.ts.map +0 -1
- package/dist/types/actions/public/getFilterLogs.d.ts +0 -40
- package/dist/types/actions/public/getFilterLogs.d.ts.map +0 -1
- package/dist/types/actions/public/getGasPrice.d.ts +0 -27
- package/dist/types/actions/public/getGasPrice.d.ts.map +0 -1
- package/dist/types/actions/public/getLogs.d.ts +0 -71
- package/dist/types/actions/public/getLogs.d.ts.map +0 -1
- package/dist/types/actions/public/getStorageAt.d.ts +0 -43
- package/dist/types/actions/public/getStorageAt.d.ts.map +0 -1
- package/dist/types/actions/public/getTransaction.d.ts +0 -65
- package/dist/types/actions/public/getTransaction.d.ts.map +0 -1
- package/dist/types/actions/public/getTransactionConfirmations.d.ts +0 -41
- package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +0 -1
- package/dist/types/actions/public/getTransactionCount.d.ts +0 -44
- package/dist/types/actions/public/getTransactionCount.d.ts.map +0 -1
- package/dist/types/actions/public/getTransactionReceipt.d.ts +0 -36
- package/dist/types/actions/public/getTransactionReceipt.d.ts.map +0 -1
- package/dist/types/actions/public/multicall.d.ts +0 -56
- package/dist/types/actions/public/multicall.d.ts.map +0 -1
- package/dist/types/actions/public/readContract.d.ts +0 -41
- package/dist/types/actions/public/readContract.d.ts.map +0 -1
- package/dist/types/actions/public/simulateContract.d.ts +0 -54
- package/dist/types/actions/public/simulateContract.d.ts.map +0 -1
- package/dist/types/actions/public/uninstallFilter.d.ts +0 -34
- package/dist/types/actions/public/uninstallFilter.d.ts.map +0 -1
- package/dist/types/actions/public/verifyHash.d.ts +0 -24
- package/dist/types/actions/public/verifyHash.d.ts.map +0 -1
- package/dist/types/actions/public/verifyMessage.d.ts +0 -28
- package/dist/types/actions/public/verifyMessage.d.ts.map +0 -1
- package/dist/types/actions/public/verifyTypedData.d.ts +0 -27
- package/dist/types/actions/public/verifyTypedData.d.ts.map +0 -1
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts +0 -72
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +0 -1
- package/dist/types/actions/public/watchBlockNumber.d.ts +0 -59
- package/dist/types/actions/public/watchBlockNumber.d.ts.map +0 -1
- package/dist/types/actions/public/watchBlocks.d.ts +0 -67
- package/dist/types/actions/public/watchBlocks.d.ts.map +0 -1
- package/dist/types/actions/public/watchContractEvent.d.ts +0 -89
- package/dist/types/actions/public/watchContractEvent.d.ts.map +0 -1
- package/dist/types/actions/public/watchEvent.d.ts +0 -104
- package/dist/types/actions/public/watchEvent.d.ts.map +0 -1
- package/dist/types/actions/public/watchPendingTransactions.d.ts +0 -74
- package/dist/types/actions/public/watchPendingTransactions.d.ts.map +0 -1
- package/dist/types/actions/test/dropTransaction.d.ts +0 -33
- package/dist/types/actions/test/dropTransaction.d.ts.map +0 -1
- package/dist/types/actions/test/getAutomine.d.ts +0 -27
- package/dist/types/actions/test/getAutomine.d.ts.map +0 -1
- package/dist/types/actions/test/getTxpoolContent.d.ts +0 -34
- package/dist/types/actions/test/getTxpoolContent.d.ts.map +0 -1
- package/dist/types/actions/test/getTxpoolStatus.d.ts +0 -30
- package/dist/types/actions/test/getTxpoolStatus.d.ts.map +0 -1
- package/dist/types/actions/test/impersonateAccount.d.ts +0 -33
- package/dist/types/actions/test/impersonateAccount.d.ts.map +0 -1
- package/dist/types/actions/test/increaseTime.d.ts +0 -32
- package/dist/types/actions/test/increaseTime.d.ts.map +0 -1
- package/dist/types/actions/test/inspectTxpool.d.ts +0 -31
- package/dist/types/actions/test/inspectTxpool.d.ts.map +0 -1
- package/dist/types/actions/test/mine.d.ts +0 -32
- package/dist/types/actions/test/mine.d.ts.map +0 -1
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +0 -25
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +0 -1
- package/dist/types/actions/test/reset.d.ts +0 -32
- package/dist/types/actions/test/reset.d.ts.map +0 -1
- package/dist/types/actions/test/revert.d.ts +0 -31
- package/dist/types/actions/test/revert.d.ts.map +0 -1
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts +0 -35
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +0 -1
- package/dist/types/actions/test/setAutomine.d.ts +0 -25
- package/dist/types/actions/test/setAutomine.d.ts.map +0 -1
- package/dist/types/actions/test/setBalance.d.ts +0 -36
- package/dist/types/actions/test/setBalance.d.ts.map +0 -1
- package/dist/types/actions/test/setBlockGasLimit.d.ts +0 -30
- package/dist/types/actions/test/setBlockGasLimit.d.ts.map +0 -1
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts +0 -30
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +0 -1
- package/dist/types/actions/test/setCode.d.ts +0 -37
- package/dist/types/actions/test/setCode.d.ts.map +0 -1
- package/dist/types/actions/test/setCoinbase.d.ts +0 -33
- package/dist/types/actions/test/setCoinbase.d.ts.map +0 -1
- package/dist/types/actions/test/setIntervalMining.d.ts +0 -30
- package/dist/types/actions/test/setIntervalMining.d.ts.map +0 -1
- package/dist/types/actions/test/setLoggingEnabled.d.ts +0 -25
- package/dist/types/actions/test/setLoggingEnabled.d.ts.map +0 -1
- package/dist/types/actions/test/setMinGasPrice.d.ts +0 -34
- package/dist/types/actions/test/setMinGasPrice.d.ts.map +0 -1
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +0 -32
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +0 -1
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts +0 -30
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +0 -1
- package/dist/types/actions/test/setNonce.d.ts +0 -36
- package/dist/types/actions/test/setNonce.d.ts.map +0 -1
- package/dist/types/actions/test/setRpcUrl.d.ts +0 -26
- package/dist/types/actions/test/setRpcUrl.d.ts.map +0 -1
- package/dist/types/actions/test/setStorageAt.d.ts +0 -40
- package/dist/types/actions/test/setStorageAt.d.ts.map +0 -1
- package/dist/types/actions/test/snapshot.d.ts +0 -25
- package/dist/types/actions/test/snapshot.d.ts.map +0 -1
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts +0 -33
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +0 -1
- package/dist/types/actions/wallet/addChain.d.ts +0 -29
- package/dist/types/actions/wallet/addChain.d.ts.map +0 -1
- package/dist/types/actions/wallet/deployContract.d.ts +0 -43
- package/dist/types/actions/wallet/deployContract.d.ts.map +0 -1
- package/dist/types/actions/wallet/getAddresses.d.ts +0 -28
- package/dist/types/actions/wallet/getAddresses.d.ts.map +0 -1
- package/dist/types/actions/wallet/getPermissions.d.ts +0 -28
- package/dist/types/actions/wallet/getPermissions.d.ts.map +0 -1
- package/dist/types/actions/wallet/requestAddresses.d.ts +0 -32
- package/dist/types/actions/wallet/requestAddresses.d.ts.map +0 -1
- package/dist/types/actions/wallet/requestPermissions.d.ts +0 -37
- package/dist/types/actions/wallet/requestPermissions.d.ts.map +0 -1
- package/dist/types/actions/wallet/sendTransaction.d.ts +0 -57
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +0 -1
- package/dist/types/actions/wallet/signMessage.d.ts +0 -58
- package/dist/types/actions/wallet/signMessage.d.ts.map +0 -1
- package/dist/types/actions/wallet/signTypedData.d.ts +0 -114
- package/dist/types/actions/wallet/signTypedData.d.ts.map +0 -1
- package/dist/types/actions/wallet/switchChain.d.ts +0 -30
- package/dist/types/actions/wallet/switchChain.d.ts.map +0 -1
- package/dist/types/actions/wallet/watchAsset.d.ts +0 -37
- package/dist/types/actions/wallet/watchAsset.d.ts.map +0 -1
- package/dist/types/actions/wallet/writeContract.d.ts +0 -68
- package/dist/types/actions/wallet/writeContract.d.ts.map +0 -1
- package/dist/types/chains/celo/formatters.d.ts +0 -195
- package/dist/types/chains/celo/formatters.d.ts.map +0 -1
- package/dist/types/chains/celo/serializers.d.ts +0 -20
- package/dist/types/chains/celo/serializers.d.ts.map +0 -1
- package/dist/types/chains/celo/types.d.ts +0 -60
- package/dist/types/chains/celo/types.d.ts.map +0 -1
- package/dist/types/chains/index.d.ts +0 -5329
- package/dist/types/chains/index.d.ts.map +0 -1
- package/dist/types/chains/optimism/fees.d.ts +0 -4
- package/dist/types/chains/optimism/fees.d.ts.map +0 -1
- package/dist/types/chains/optimism/formatters.d.ts +0 -299
- package/dist/types/chains/optimism/formatters.d.ts.map +0 -1
- package/dist/types/chains/optimism/types.d.ts +0 -53
- package/dist/types/chains/optimism/types.d.ts.map +0 -1
- package/dist/types/chains/utils.d.ts +0 -6
- package/dist/types/chains/utils.d.ts.map +0 -1
- package/dist/types/clients/createClient.d.ts +0 -79
- package/dist/types/clients/createClient.d.ts.map +0 -1
- package/dist/types/clients/createPublicClient.d.ts +0 -29
- package/dist/types/clients/createPublicClient.d.ts.map +0 -1
- package/dist/types/clients/createTestClient.d.ts +0 -43
- package/dist/types/clients/createTestClient.d.ts.map +0 -1
- package/dist/types/clients/createWalletClient.d.ts +0 -49
- package/dist/types/clients/createWalletClient.d.ts.map +0 -1
- package/dist/types/clients/decorators/public.d.ts +0 -1087
- package/dist/types/clients/decorators/public.d.ts.map +0 -1
- package/dist/types/clients/decorators/test.d.ts +0 -599
- package/dist/types/clients/decorators/test.d.ts.map +0 -1
- package/dist/types/clients/decorators/wallet.d.ts +0 -449
- package/dist/types/clients/decorators/wallet.d.ts.map +0 -1
- package/dist/types/clients/transports/createTransport.d.ts +0 -34
- package/dist/types/clients/transports/createTransport.d.ts.map +0 -1
- package/dist/types/clients/transports/custom.d.ts +0 -21
- package/dist/types/clients/transports/custom.d.ts.map +0 -1
- package/dist/types/clients/transports/fallback.d.ts +0 -75
- package/dist/types/clients/transports/fallback.d.ts.map +0 -1
- package/dist/types/clients/transports/http.d.ts +0 -40
- package/dist/types/clients/transports/http.d.ts.map +0 -1
- package/dist/types/clients/transports/webSocket.d.ts +0 -46
- package/dist/types/clients/transports/webSocket.d.ts.map +0 -1
- package/dist/types/constants/abis.d.ts +0 -165
- package/dist/types/constants/abis.d.ts.map +0 -1
- package/dist/types/constants/address.d.ts +0 -2
- package/dist/types/constants/address.d.ts.map +0 -1
- package/dist/types/constants/contract.d.ts +0 -2
- package/dist/types/constants/contract.d.ts.map +0 -1
- package/dist/types/constants/contracts.d.ts +0 -2
- package/dist/types/constants/contracts.d.ts.map +0 -1
- package/dist/types/constants/number.d.ts +0 -97
- package/dist/types/constants/number.d.ts.map +0 -1
- package/dist/types/constants/solidity.d.ts +0 -15
- package/dist/types/constants/solidity.d.ts.map +0 -1
- package/dist/types/constants/unit.d.ts +0 -13
- package/dist/types/constants/unit.d.ts.map +0 -1
- package/dist/types/contract.d.ts +0 -30
- package/dist/types/contract.d.ts.map +0 -1
- package/dist/types/ens.d.ts +0 -9
- package/dist/types/ens.d.ts.map +0 -1
- package/dist/types/errors/abi.d.ts +0 -169
- package/dist/types/errors/abi.d.ts.map +0 -1
- package/dist/types/errors/account.d.ts +0 -8
- package/dist/types/errors/account.d.ts.map +0 -1
- package/dist/types/errors/address.d.ts +0 -8
- package/dist/types/errors/address.d.ts.map +0 -1
- package/dist/types/errors/base.d.ts +0 -24
- package/dist/types/errors/base.d.ts.map +0 -1
- package/dist/types/errors/block.d.ts +0 -10
- package/dist/types/errors/block.d.ts.map +0 -1
- package/dist/types/errors/ccip.d.ts +0 -29
- package/dist/types/errors/ccip.d.ts.map +0 -1
- package/dist/types/errors/chain.d.ts +0 -35
- package/dist/types/errors/chain.d.ts.map +0 -1
- package/dist/types/errors/contract.d.ts +0 -64
- package/dist/types/errors/contract.d.ts.map +0 -1
- package/dist/types/errors/data.d.ts +0 -18
- package/dist/types/errors/data.d.ts.map +0 -1
- package/dist/types/errors/encoding.d.ts +0 -53
- package/dist/types/errors/encoding.d.ts.map +0 -1
- package/dist/types/errors/ens.d.ts +0 -26
- package/dist/types/errors/ens.d.ts.map +0 -1
- package/dist/types/errors/estimateGas.d.ts +0 -14
- package/dist/types/errors/estimateGas.d.ts.map +0 -1
- package/dist/types/errors/log.d.ts +0 -6
- package/dist/types/errors/log.d.ts.map +0 -1
- package/dist/types/errors/node.d.ts +0 -105
- package/dist/types/errors/node.d.ts.map +0 -1
- package/dist/types/errors/request.d.ts +0 -61
- package/dist/types/errors/request.d.ts.map +0 -1
- package/dist/types/errors/rpc.d.ts +0 -221
- package/dist/types/errors/rpc.d.ts.map +0 -1
- package/dist/types/errors/transaction.d.ts +0 -79
- package/dist/types/errors/transaction.d.ts.map +0 -1
- package/dist/types/errors/transport.d.ts +0 -5
- package/dist/types/errors/transport.d.ts.map +0 -1
- package/dist/types/errors/utils.d.ts +0 -5
- package/dist/types/errors/utils.d.ts.map +0 -1
- package/dist/types/errors/version.d.ts +0 -2
- package/dist/types/errors/version.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -211
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/public.d.ts +0 -31
- package/dist/types/public.d.ts.map +0 -1
- package/dist/types/test.d.ts +0 -29
- package/dist/types/test.d.ts.map +0 -1
- package/dist/types/types/account.d.ts +0 -12
- package/dist/types/types/account.d.ts.map +0 -1
- package/dist/types/types/block.d.ts +0 -62
- package/dist/types/types/block.d.ts.map +0 -1
- package/dist/types/types/chain.d.ts +0 -62
- package/dist/types/types/chain.d.ts.map +0 -1
- package/dist/types/types/contract.d.ts +0 -138
- package/dist/types/types/contract.d.ts.map +0 -1
- package/dist/types/types/eip1193.d.ts +0 -1216
- package/dist/types/types/eip1193.d.ts.map +0 -1
- package/dist/types/types/ens.d.ts +0 -5
- package/dist/types/types/ens.d.ts.map +0 -1
- package/dist/types/types/fee.d.ts +0 -29
- package/dist/types/types/fee.d.ts.map +0 -1
- package/dist/types/types/filter.d.ts +0 -40
- package/dist/types/types/filter.d.ts.map +0 -1
- package/dist/types/types/log.d.ts +0 -55
- package/dist/types/types/log.d.ts.map +0 -1
- package/dist/types/types/misc.d.ts +0 -14
- package/dist/types/types/misc.d.ts.map +0 -1
- package/dist/types/types/multicall.d.ts +0 -48
- package/dist/types/types/multicall.d.ts.map +0 -1
- package/dist/types/types/rpc.d.ts +0 -20
- package/dist/types/types/rpc.d.ts.map +0 -1
- package/dist/types/types/transaction.d.ts +0 -147
- package/dist/types/types/transaction.d.ts.map +0 -1
- package/dist/types/types/transport.d.ts +0 -3
- package/dist/types/types/transport.d.ts.map +0 -1
- package/dist/types/types/typedData.d.ts +0 -47
- package/dist/types/types/typedData.d.ts.map +0 -1
- package/dist/types/types/utils.d.ts +0 -188
- package/dist/types/types/utils.d.ts.map +0 -1
- package/dist/types/types/window.d.ts +0 -7
- package/dist/types/types/window.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeAbiParameters.d.ts +0 -5
- package/dist/types/utils/abi/decodeAbiParameters.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeDeployData.d.ts +0 -13
- package/dist/types/utils/abi/decodeDeployData.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeErrorResult.d.ts +0 -16
- package/dist/types/utils/abi/decodeErrorResult.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeEventLog.d.ts +0 -20
- package/dist/types/utils/abi/decodeEventLog.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeFunctionData.d.ts +0 -15
- package/dist/types/utils/abi/decodeFunctionData.d.ts.map +0 -1
- package/dist/types/utils/abi/decodeFunctionResult.d.ts +0 -14
- package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeAbiParameters.d.ts +0 -9
- package/dist/types/utils/abi/encodeAbiParameters.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeDeployData.d.ts +0 -9
- package/dist/types/utils/abi/encodeDeployData.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeErrorResult.d.ts +0 -11
- package/dist/types/utils/abi/encodeErrorResult.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeEventTopics.d.ts +0 -13
- package/dist/types/utils/abi/encodeEventTopics.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeFunctionData.d.ts +0 -11
- package/dist/types/utils/abi/encodeFunctionData.d.ts.map +0 -1
- package/dist/types/utils/abi/encodeFunctionResult.d.ts +0 -13
- package/dist/types/utils/abi/encodeFunctionResult.d.ts.map +0 -1
- package/dist/types/utils/abi/encodePacked.d.ts +0 -11
- package/dist/types/utils/abi/encodePacked.d.ts.map +0 -1
- package/dist/types/utils/abi/formatAbiItem.d.ts +0 -9
- package/dist/types/utils/abi/formatAbiItem.d.ts.map +0 -1
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts +0 -8
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts.map +0 -1
- package/dist/types/utils/abi/getAbiItem.d.ts +0 -12
- package/dist/types/utils/abi/getAbiItem.d.ts.map +0 -1
- package/dist/types/utils/accounts.d.ts +0 -3
- package/dist/types/utils/accounts.d.ts.map +0 -1
- package/dist/types/utils/address/getAddress.d.ts +0 -4
- package/dist/types/utils/address/getAddress.d.ts.map +0 -1
- package/dist/types/utils/address/getContractAddress.d.ts +0 -20
- package/dist/types/utils/address/getContractAddress.d.ts.map +0 -1
- package/dist/types/utils/address/isAddress.d.ts +0 -3
- package/dist/types/utils/address/isAddress.d.ts.map +0 -1
- package/dist/types/utils/address/isAddressEqual.d.ts +0 -3
- package/dist/types/utils/address/isAddressEqual.d.ts.map +0 -1
- package/dist/types/utils/buildRequest.d.ts +0 -6
- package/dist/types/utils/buildRequest.d.ts.map +0 -1
- package/dist/types/utils/ccip.d.ts +0 -37
- package/dist/types/utils/ccip.d.ts.map +0 -1
- package/dist/types/utils/chain.d.ts +0 -14
- package/dist/types/utils/chain.d.ts.map +0 -1
- package/dist/types/utils/contract/extractFunctionParts.d.ts +0 -13
- package/dist/types/utils/contract/extractFunctionParts.d.ts.map +0 -1
- package/dist/types/utils/data/concat.d.ts +0 -6
- package/dist/types/utils/data/concat.d.ts.map +0 -1
- package/dist/types/utils/data/isBytes.d.ts +0 -3
- package/dist/types/utils/data/isBytes.d.ts.map +0 -1
- package/dist/types/utils/data/isBytesEqual.d.ts +0 -3
- package/dist/types/utils/data/isBytesEqual.d.ts.map +0 -1
- package/dist/types/utils/data/isHex.d.ts +0 -5
- package/dist/types/utils/data/isHex.d.ts.map +0 -1
- package/dist/types/utils/data/pad.d.ts +0 -11
- package/dist/types/utils/data/pad.d.ts.map +0 -1
- package/dist/types/utils/data/size.d.ts +0 -9
- package/dist/types/utils/data/size.d.ts.map +0 -1
- package/dist/types/utils/data/slice.d.ts +0 -33
- package/dist/types/utils/data/slice.d.ts.map +0 -1
- package/dist/types/utils/data/trim.d.ts +0 -8
- package/dist/types/utils/data/trim.d.ts.map +0 -1
- package/dist/types/utils/encoding/fromBytes.d.ts +0 -109
- package/dist/types/utils/encoding/fromBytes.d.ts.map +0 -1
- package/dist/types/utils/encoding/fromHex.d.ts +0 -138
- package/dist/types/utils/encoding/fromHex.d.ts.map +0 -1
- package/dist/types/utils/encoding/fromRlp.d.ts +0 -6
- package/dist/types/utils/encoding/fromRlp.d.ts.map +0 -1
- package/dist/types/utils/encoding/toBytes.d.ts +0 -125
- package/dist/types/utils/encoding/toBytes.d.ts.map +0 -1
- package/dist/types/utils/encoding/toHex.d.ts +0 -139
- package/dist/types/utils/encoding/toHex.d.ts.map +0 -1
- package/dist/types/utils/encoding/toRlp.d.ts +0 -8
- package/dist/types/utils/encoding/toRlp.d.ts.map +0 -1
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +0 -9
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +0 -1
- package/dist/types/utils/ens/avatar/utils.d.ts +0 -37
- package/dist/types/utils/ens/avatar/utils.d.ts.map +0 -1
- package/dist/types/utils/ens/encodeLabelhash.d.ts +0 -3
- package/dist/types/utils/ens/encodeLabelhash.d.ts.map +0 -1
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts +0 -3
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts.map +0 -1
- package/dist/types/utils/ens/errors.d.ts +0 -2
- package/dist/types/utils/ens/errors.d.ts.map +0 -1
- package/dist/types/utils/ens/labelhash.d.ts +0 -11
- package/dist/types/utils/ens/labelhash.d.ts.map +0 -1
- package/dist/types/utils/ens/namehash.d.ts +0 -13
- package/dist/types/utils/ens/namehash.d.ts.map +0 -1
- package/dist/types/utils/ens/normalize.d.ts +0 -12
- package/dist/types/utils/ens/normalize.d.ts.map +0 -1
- package/dist/types/utils/ens/packetToBytes.d.ts +0 -3
- package/dist/types/utils/ens/packetToBytes.d.ts.map +0 -1
- package/dist/types/utils/errors/getCallError.d.ts +0 -9
- package/dist/types/utils/errors/getCallError.d.ts.map +0 -1
- package/dist/types/utils/errors/getContractError.d.ts +0 -12
- package/dist/types/utils/errors/getContractError.d.ts.map +0 -1
- package/dist/types/utils/errors/getEstimateGasError.d.ts +0 -11
- package/dist/types/utils/errors/getEstimateGasError.d.ts.map +0 -1
- package/dist/types/utils/errors/getNodeError.d.ts +0 -7
- package/dist/types/utils/errors/getNodeError.d.ts.map +0 -1
- package/dist/types/utils/errors/getTransactionError.d.ts +0 -12
- package/dist/types/utils/errors/getTransactionError.d.ts.map +0 -1
- package/dist/types/utils/filters/createFilterRequestScope.d.ts +0 -22
- package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +0 -1
- package/dist/types/utils/formatters/block.d.ts +0 -28
- package/dist/types/utils/formatters/block.d.ts.map +0 -1
- package/dist/types/utils/formatters/extract.d.ts +0 -8
- package/dist/types/utils/formatters/extract.d.ts.map +0 -1
- package/dist/types/utils/formatters/feeHistory.d.ts +0 -4
- package/dist/types/utils/formatters/feeHistory.d.ts.map +0 -1
- package/dist/types/utils/formatters/formatter.d.ts +0 -10
- package/dist/types/utils/formatters/formatter.d.ts.map +0 -1
- package/dist/types/utils/formatters/log.d.ts +0 -7
- package/dist/types/utils/formatters/log.d.ts.map +0 -1
- package/dist/types/utils/formatters/transaction.d.ts +0 -30
- package/dist/types/utils/formatters/transaction.d.ts.map +0 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts +0 -14
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +0 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +0 -14
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +0 -1
- package/dist/types/utils/hash/getEventSelector.d.ts +0 -4
- package/dist/types/utils/hash/getEventSelector.d.ts.map +0 -1
- package/dist/types/utils/hash/getFunctionSelector.d.ts +0 -3
- package/dist/types/utils/hash/getFunctionSelector.d.ts.map +0 -1
- package/dist/types/utils/hash/hashFunction.d.ts +0 -4
- package/dist/types/utils/hash/hashFunction.d.ts.map +0 -1
- package/dist/types/utils/hash/isHash.d.ts +0 -3
- package/dist/types/utils/hash/isHash.d.ts.map +0 -1
- package/dist/types/utils/hash/keccak256.d.ts +0 -6
- package/dist/types/utils/hash/keccak256.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -82
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/observe.d.ts +0 -17
- package/dist/types/utils/observe.d.ts.map +0 -1
- package/dist/types/utils/poll.d.ts +0 -13
- package/dist/types/utils/poll.d.ts.map +0 -1
- package/dist/types/utils/promise/createBatchScheduler.d.ts +0 -17
- package/dist/types/utils/promise/createBatchScheduler.d.ts.map +0 -1
- package/dist/types/utils/promise/withCache.d.ts +0 -36
- package/dist/types/utils/promise/withCache.d.ts.map +0 -1
- package/dist/types/utils/promise/withRetry.d.ts +0 -12
- package/dist/types/utils/promise/withRetry.d.ts.map +0 -1
- package/dist/types/utils/promise/withTimeout.d.ts +0 -8
- package/dist/types/utils/promise/withTimeout.d.ts.map +0 -1
- package/dist/types/utils/regex.d.ts +0 -4
- package/dist/types/utils/regex.d.ts.map +0 -1
- package/dist/types/utils/rpc.d.ts +0 -72
- package/dist/types/utils/rpc.d.ts.map +0 -1
- package/dist/types/utils/signature/hashMessage.d.ts +0 -6
- package/dist/types/utils/signature/hashMessage.d.ts.map +0 -1
- package/dist/types/utils/signature/hashTypedData.d.ts +0 -11
- package/dist/types/utils/signature/hashTypedData.d.ts.map +0 -1
- package/dist/types/utils/signature/hexToSignature.d.ts +0 -13
- package/dist/types/utils/signature/hexToSignature.d.ts.map +0 -1
- package/dist/types/utils/signature/recoverAddress.d.ts +0 -9
- package/dist/types/utils/signature/recoverAddress.d.ts.map +0 -1
- package/dist/types/utils/signature/recoverMessageAddress.d.ts +0 -9
- package/dist/types/utils/signature/recoverMessageAddress.d.ts.map +0 -1
- package/dist/types/utils/signature/recoverPublicKey.d.ts +0 -8
- package/dist/types/utils/signature/recoverPublicKey.d.ts.map +0 -1
- package/dist/types/utils/signature/recoverTypedDataAddress.d.ts +0 -13
- package/dist/types/utils/signature/recoverTypedDataAddress.d.ts.map +0 -1
- package/dist/types/utils/signature/signatureToHex.d.ts +0 -17
- package/dist/types/utils/signature/signatureToHex.d.ts.map +0 -1
- package/dist/types/utils/signature/verifyMessage.d.ts +0 -25
- package/dist/types/utils/signature/verifyMessage.d.ts.map +0 -1
- package/dist/types/utils/signature/verifyTypedData.d.ts +0 -28
- package/dist/types/utils/signature/verifyTypedData.d.ts.map +0 -1
- package/dist/types/utils/stringify.d.ts +0 -2
- package/dist/types/utils/stringify.d.ts.map +0 -1
- package/dist/types/utils/transaction/assertRequest.d.ts +0 -5
- package/dist/types/utils/transaction/assertRequest.d.ts.map +0 -1
- package/dist/types/utils/transaction/assertTransaction.d.ts +0 -5
- package/dist/types/utils/transaction/assertTransaction.d.ts.map +0 -1
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts +0 -4
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts.map +0 -1
- package/dist/types/utils/transaction/getTransactionType.d.ts +0 -4
- package/dist/types/utils/transaction/getTransactionType.d.ts.map +0 -1
- package/dist/types/utils/transaction/parseTransaction.d.ts +0 -5
- package/dist/types/utils/transaction/parseTransaction.d.ts.map +0 -1
- package/dist/types/utils/transaction/prepareRequest.d.ts +0 -20
- package/dist/types/utils/transaction/prepareRequest.d.ts.map +0 -1
- package/dist/types/utils/transaction/serializeAccessList.d.ts +0 -5
- package/dist/types/utils/transaction/serializeAccessList.d.ts.map +0 -1
- package/dist/types/utils/transaction/serializeTransaction.d.ts +0 -7
- package/dist/types/utils/transaction/serializeTransaction.d.ts.map +0 -1
- package/dist/types/utils/typedData.d.ts +0 -6
- package/dist/types/utils/typedData.d.ts.map +0 -1
- package/dist/types/utils/uid.d.ts +0 -2
- package/dist/types/utils/uid.d.ts.map +0 -1
- package/dist/types/utils/unit/formatEther.d.ts +0 -2
- package/dist/types/utils/unit/formatEther.d.ts.map +0 -1
- package/dist/types/utils/unit/formatGwei.d.ts +0 -2
- package/dist/types/utils/unit/formatGwei.d.ts.map +0 -1
- package/dist/types/utils/unit/formatUnits.d.ts +0 -2
- package/dist/types/utils/unit/formatUnits.d.ts.map +0 -1
- package/dist/types/utils/unit/parseEther.d.ts +0 -2
- package/dist/types/utils/unit/parseEther.d.ts.map +0 -1
- package/dist/types/utils/unit/parseGwei.d.ts +0 -2
- package/dist/types/utils/unit/parseGwei.d.ts.map +0 -1
- package/dist/types/utils/unit/parseUnits.d.ts +0 -2
- package/dist/types/utils/unit/parseUnits.d.ts.map +0 -1
- package/dist/types/utils/wait.d.ts +0 -2
- package/dist/types/utils/wait.d.ts.map +0 -1
- package/dist/types/wallet.d.ts +0 -11
- package/dist/types/wallet.d.ts.map +0 -1
- package/dist/types/window.d.ts +0 -2
- package/dist/types/window.d.ts.map +0 -1
@@ -1,32 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type ResetParameters = {
|
6
|
-
/** The block number to reset from. */
|
7
|
-
blockNumber?: bigint;
|
8
|
-
/** The JSON RPC URL. */
|
9
|
-
jsonRpcUrl?: string;
|
10
|
-
};
|
11
|
-
/**
|
12
|
-
* Resets fork back to its original state.
|
13
|
-
*
|
14
|
-
* - Docs: https://viem.sh/docs/actions/test/reset.html
|
15
|
-
*
|
16
|
-
* @param client - Client to use
|
17
|
-
* @param parameters – {@link ResetParameters}
|
18
|
-
*
|
19
|
-
* @example
|
20
|
-
* import { createTestClient, http } from 'viem'
|
21
|
-
* import { foundry } from 'viem/chains'
|
22
|
-
* import { reset } from 'viem/test'
|
23
|
-
*
|
24
|
-
* const client = createTestClient({
|
25
|
-
* mode: 'anvil',
|
26
|
-
* chain: 'foundry',
|
27
|
-
* transport: http(),
|
28
|
-
* })
|
29
|
-
* await reset(client, { blockNumber: 69420n })
|
30
|
-
*/
|
31
|
-
export declare function reset<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { blockNumber, jsonRpcUrl }?: ResetParameters): Promise<void>;
|
32
|
-
//# sourceMappingURL=reset.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/reset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,eAAe,GAAG;IAC5B,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,KAAK,CACzB,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,WAAW,EAAE,UAAU,EAAE,GAAE,eAAoB,iBAMlD"}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
import type { Quantity } from '../../types/rpc.js';
|
6
|
-
export type RevertParameters = {
|
7
|
-
/** The snapshot ID to revert to. */
|
8
|
-
id: Quantity;
|
9
|
-
};
|
10
|
-
/**
|
11
|
-
* Revert the state of the blockchain at the current block.
|
12
|
-
*
|
13
|
-
* - Docs: https://viem.sh/docs/actions/test/revert.html
|
14
|
-
*
|
15
|
-
* @param client - Client to use
|
16
|
-
* @param parameters – {@link RevertParameters}
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* import { createTestClient, http } from 'viem'
|
20
|
-
* import { foundry } from 'viem/chains'
|
21
|
-
* import { revert } from 'viem/test'
|
22
|
-
*
|
23
|
-
* const client = createTestClient({
|
24
|
-
* mode: 'anvil',
|
25
|
-
* chain: 'foundry',
|
26
|
-
* transport: http(),
|
27
|
-
* })
|
28
|
-
* await revert(client, { id: '0x…' })
|
29
|
-
*/
|
30
|
-
export declare function revert<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { id }: RevertParameters): Promise<void>;
|
31
|
-
//# sourceMappingURL=revert.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"revert.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/revert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oCAAoC;IACpC,EAAE,EAAE,QAAQ,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,MAAM,CAC1B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,EAAE,EAAE,EAAE,gBAAgB,iBAMzB"}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
import type { Hash } from '../../types/misc.js';
|
6
|
-
import { type FormattedTransactionRequest } from '../../utils/formatters/transactionRequest.js';
|
7
|
-
export type SendUnsignedTransactionParameters<TChain extends Chain | undefined = Chain | undefined> = FormattedTransactionRequest<TChain>;
|
8
|
-
export type SendUnsignedTransactionReturnType = Hash;
|
9
|
-
/**
|
10
|
-
* 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.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SendUnsignedTransactionParameters}
|
16
|
-
* @returns The transaction hash. {@link SendUnsignedTransactionReturnType}
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* import { createTestClient, http } from 'viem'
|
20
|
-
* import { foundry } from 'viem/chains'
|
21
|
-
* import { sendUnsignedTransaction } from 'viem/test'
|
22
|
-
*
|
23
|
-
* const client = createTestClient({
|
24
|
-
* mode: 'anvil',
|
25
|
-
* chain: 'foundry',
|
26
|
-
* transport: http(),
|
27
|
-
* })
|
28
|
-
* const hash = await sendUnsignedTransaction(client, {
|
29
|
-
* from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
|
30
|
-
* to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
31
|
-
* value: 1000000000000000000n,
|
32
|
-
* })
|
33
|
-
*/
|
34
|
-
export declare function sendUnsignedTransaction<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, args: SendUnsignedTransactionParameters<TChain>): Promise<SendUnsignedTransactionReturnType>;
|
35
|
-
//# sourceMappingURL=sendUnsignedTransaction.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sendUnsignedTransaction.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/sendUnsignedTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAG/C,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,8CAA8C,CAAA;AAErD,MAAM,MAAM,iCAAiC,CAC3C,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEvC,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,IAAI,EAAE,iCAAiC,CAAC,MAAM,CAAC,GAC9C,OAAO,CAAC,iCAAiC,CAAC,CAqC5C"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
/**
|
6
|
-
* Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
|
7
|
-
*
|
8
|
-
* - Docs: https://viem.sh/docs/actions/test/setAutomine.html
|
9
|
-
*
|
10
|
-
* @param client - Client to use
|
11
|
-
*
|
12
|
-
* @example
|
13
|
-
* import { createTestClient, http } from 'viem'
|
14
|
-
* import { foundry } from 'viem/chains'
|
15
|
-
* import { setAutomine } from 'viem/test'
|
16
|
-
*
|
17
|
-
* const client = createTestClient({
|
18
|
-
* mode: 'anvil',
|
19
|
-
* chain: 'foundry',
|
20
|
-
* transport: http(),
|
21
|
-
* })
|
22
|
-
* await setAutomine(client)
|
23
|
-
*/
|
24
|
-
export declare function setAutomine<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, enabled: boolean): Promise<void>;
|
25
|
-
//# sourceMappingURL=setAutomine.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setAutomine.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setAutomine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,WAAW,CAC/B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,OAAO,EAAE,OAAO,iBAUjB"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
3
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type { Account } from '../../types/account.js';
|
5
|
-
import type { Chain } from '../../types/chain.js';
|
6
|
-
export type SetBalanceParameters = {
|
7
|
-
/** The account address. */
|
8
|
-
address: Address;
|
9
|
-
/** Amount (in wei) to set */
|
10
|
-
value: bigint;
|
11
|
-
};
|
12
|
-
/**
|
13
|
-
* Modifies the balance of an account.
|
14
|
-
*
|
15
|
-
* - Docs: https://viem.sh/docs/actions/test/setBalance.html
|
16
|
-
*
|
17
|
-
* @param client - Client to use
|
18
|
-
* @param parameters – {@link SetBalanceParameters}
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* import { createTestClient, http, parseEther } from 'viem'
|
22
|
-
* import { foundry } from 'viem/chains'
|
23
|
-
* import { setBalance } from 'viem/test'
|
24
|
-
*
|
25
|
-
* const client = createTestClient({
|
26
|
-
* mode: 'anvil',
|
27
|
-
* chain: 'foundry',
|
28
|
-
* transport: http(),
|
29
|
-
* })
|
30
|
-
* await setBalance(client, {
|
31
|
-
* address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
32
|
-
* value: parseEther('1'),
|
33
|
-
* })
|
34
|
-
*/
|
35
|
-
export declare function setBalance<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { address, value }: SetBalanceParameters): Promise<void>;
|
36
|
-
//# sourceMappingURL=setBalance.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setBalance.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,oBAAoB,iBAYzC"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetBlockGasLimitParameters = {
|
6
|
-
/** Gas limit (in wei). */
|
7
|
-
gasLimit: bigint;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* Sets the block's gas limit.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SetBlockGasLimitParameters}
|
16
|
-
*
|
17
|
-
* @example
|
18
|
-
* import { createTestClient, http } from 'viem'
|
19
|
-
* import { foundry } from 'viem/chains'
|
20
|
-
* import { setBlockGasLimit } from 'viem/test'
|
21
|
-
*
|
22
|
-
* const client = createTestClient({
|
23
|
-
* mode: 'anvil',
|
24
|
-
* chain: 'foundry',
|
25
|
-
* transport: http(),
|
26
|
-
* })
|
27
|
-
* await setBlockGasLimit(client, { gasLimit: 420_000n })
|
28
|
-
*/
|
29
|
-
export declare function setBlockGasLimit<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { gasLimit }: SetBlockGasLimitParameters): Promise<void>;
|
30
|
-
//# sourceMappingURL=setBlockGasLimit.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setBlockGasLimit.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setBlockGasLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,QAAQ,EAAE,EAAE,0BAA0B,iBAMzC"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetBlockTimestampIntervalParameters = {
|
6
|
-
/** The interval (in seconds). */
|
7
|
-
interval: number;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* 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`.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SetBlockTimestampIntervalParameters}
|
16
|
-
*
|
17
|
-
* @example
|
18
|
-
* import { createTestClient, http } from 'viem'
|
19
|
-
* import { foundry } from 'viem/chains'
|
20
|
-
* import { setBlockTimestampInterval } from 'viem/test'
|
21
|
-
*
|
22
|
-
* const client = createTestClient({
|
23
|
-
* mode: 'anvil',
|
24
|
-
* chain: 'foundry',
|
25
|
-
* transport: http(),
|
26
|
-
* })
|
27
|
-
* await setBlockTimestampInterval(client, { interval: 5 })
|
28
|
-
*/
|
29
|
-
export declare function setBlockTimestampInterval<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { interval }: SetBlockTimestampIntervalParameters): Promise<void>;
|
30
|
-
//# sourceMappingURL=setBlockTimestampInterval.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setBlockTimestampInterval.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setBlockTimestampInterval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,mCAAmC,GAAG;IAChD,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,QAAQ,EAAE,EAAE,mCAAmC,iBAMlD"}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
3
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type { Account } from '../../types/account.js';
|
5
|
-
import type { Chain } from '../../types/chain.js';
|
6
|
-
import type { Hex } from '../../types/misc.js';
|
7
|
-
export type SetCodeParameters = {
|
8
|
-
/** The account address. */
|
9
|
-
address: Address;
|
10
|
-
/** The bytecode to set */
|
11
|
-
bytecode: Hex;
|
12
|
-
};
|
13
|
-
/**
|
14
|
-
* Modifies the bytecode stored at an account's address.
|
15
|
-
*
|
16
|
-
* - Docs: https://viem.sh/docs/actions/test/setCode.html
|
17
|
-
*
|
18
|
-
* @param client - Client to use
|
19
|
-
* @param parameters – {@link SetCodeParameters}
|
20
|
-
*
|
21
|
-
* @example
|
22
|
-
* import { createTestClient, http } from 'viem'
|
23
|
-
* import { foundry } from 'viem/chains'
|
24
|
-
* import { setCode } from 'viem/test'
|
25
|
-
*
|
26
|
-
* const client = createTestClient({
|
27
|
-
* mode: 'anvil',
|
28
|
-
* chain: 'foundry',
|
29
|
-
* transport: http(),
|
30
|
-
* })
|
31
|
-
* await setCode(client, {
|
32
|
-
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
33
|
-
* bytecode: '0x60806040526000600355600019600955600c80546001600160a01b031916737a250d5630b4cf539739df…',
|
34
|
-
* })
|
35
|
-
*/
|
36
|
-
export declare function setCode<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { address, bytecode }: SetCodeParameters): Promise<void>;
|
37
|
-
//# sourceMappingURL=setCode.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setCode.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,0BAA0B;IAC1B,QAAQ,EAAE,GAAG,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,OAAO,CAC3B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,iBAAiB,iBAMzC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
3
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type { Account } from '../../types/account.js';
|
5
|
-
import type { Chain } from '../../types/chain.js';
|
6
|
-
export type SetCoinbaseParameters = {
|
7
|
-
/** The coinbase address. */
|
8
|
-
address: Address;
|
9
|
-
};
|
10
|
-
/**
|
11
|
-
* Sets the coinbase address to be used in new blocks.
|
12
|
-
*
|
13
|
-
* - Docs: https://viem.sh/docs/actions/test/setCoinbase.html
|
14
|
-
*
|
15
|
-
* @param client - Client to use
|
16
|
-
* @param parameters – {@link SetCoinbaseParameters}
|
17
|
-
*
|
18
|
-
* @example
|
19
|
-
* import { createTestClient, http } from 'viem'
|
20
|
-
* import { foundry } from 'viem/chains'
|
21
|
-
* import { setCoinbase } from 'viem/test'
|
22
|
-
*
|
23
|
-
* const client = createTestClient({
|
24
|
-
* mode: 'anvil',
|
25
|
-
* chain: 'foundry',
|
26
|
-
* transport: http(),
|
27
|
-
* })
|
28
|
-
* await setCoinbase(client, {
|
29
|
-
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
30
|
-
* })
|
31
|
-
*/
|
32
|
-
export declare function setCoinbase<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { address }: SetCoinbaseParameters): Promise<void>;
|
33
|
-
//# sourceMappingURL=setCoinbase.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setCoinbase.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setCoinbase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,qBAAqB,GAAG;IAClC,4BAA4B;IAC5B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,WAAW,CAC/B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,OAAO,EAAE,EAAE,qBAAqB,iBAMnC"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetIntervalMiningParameters = {
|
6
|
-
/** The mining interval. */
|
7
|
-
interval: number;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setIntervalMining.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SetIntervalMiningParameters}
|
16
|
-
*
|
17
|
-
* @example
|
18
|
-
* import { createTestClient, http } from 'viem'
|
19
|
-
* import { foundry } from 'viem/chains'
|
20
|
-
* import { setIntervalMining } from 'viem/test'
|
21
|
-
*
|
22
|
-
* const client = createTestClient({
|
23
|
-
* mode: 'anvil',
|
24
|
-
* chain: 'foundry',
|
25
|
-
* transport: http(),
|
26
|
-
* })
|
27
|
-
* await setIntervalMining(client, { interval: 5 })
|
28
|
-
*/
|
29
|
-
export declare function setIntervalMining<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { interval }: SetIntervalMiningParameters): Promise<void>;
|
30
|
-
//# sourceMappingURL=setIntervalMining.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setIntervalMining.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setIntervalMining.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,2BAA2B,GAAG;IACxC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,QAAQ,EAAE,EAAE,2BAA2B,iBAM1C"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
/**
|
6
|
-
* Enable or disable logging on the test node network.
|
7
|
-
*
|
8
|
-
* - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled.html
|
9
|
-
*
|
10
|
-
* @param client - Client to use
|
11
|
-
*
|
12
|
-
* @example
|
13
|
-
* import { createTestClient, http } from 'viem'
|
14
|
-
* import { foundry } from 'viem/chains'
|
15
|
-
* import { setLoggingEnabled } from 'viem/test'
|
16
|
-
*
|
17
|
-
* const client = createTestClient({
|
18
|
-
* mode: 'anvil',
|
19
|
-
* chain: 'foundry',
|
20
|
-
* transport: http(),
|
21
|
-
* })
|
22
|
-
* await setLoggingEnabled(client)
|
23
|
-
*/
|
24
|
-
export declare function setLoggingEnabled<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, enabled: boolean): Promise<void>;
|
25
|
-
//# sourceMappingURL=setLoggingEnabled.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setLoggingEnabled.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setLoggingEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,OAAO,EAAE,OAAO,iBAMjB"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetMinGasPriceParameters = {
|
6
|
-
/** The gas price. */
|
7
|
-
gasPrice: bigint;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* Change the minimum gas price accepted by the network (in wei).
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setMinGasPrice.html
|
13
|
-
*
|
14
|
-
* Note: `setMinGasPrice` can only be used on clients that do not have EIP-1559 enabled.
|
15
|
-
*
|
16
|
-
* @param client - Client to use
|
17
|
-
* @param parameters – {@link SetBlockGasLimitParameters}
|
18
|
-
*
|
19
|
-
* @example
|
20
|
-
* import { createTestClient, http, parseGwei } from 'viem'
|
21
|
-
* import { foundry } from 'viem/chains'
|
22
|
-
* import { setMinGasPrice } from 'viem/test'
|
23
|
-
*
|
24
|
-
* const client = createTestClient({
|
25
|
-
* mode: 'anvil',
|
26
|
-
* chain: 'foundry',
|
27
|
-
* transport: http(),
|
28
|
-
* })
|
29
|
-
* await setMinGasPrice(client, {
|
30
|
-
* gasPrice: parseGwei('20'),
|
31
|
-
* })
|
32
|
-
*/
|
33
|
-
export declare function setMinGasPrice<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { gasPrice }: SetMinGasPriceParameters): Promise<void>;
|
34
|
-
//# sourceMappingURL=setMinGasPrice.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setMinGasPrice.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setMinGasPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,cAAc,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,QAAQ,EAAE,EAAE,wBAAwB,iBAMvC"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetNextBlockBaseFeePerGasParameters = {
|
6
|
-
/** Base fee per gas (in wei). */
|
7
|
-
baseFeePerGas: bigint;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* Sets the next block's base fee per gas.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SetNextBlockBaseFeePerGasParameters}
|
16
|
-
*
|
17
|
-
* @example
|
18
|
-
* import { createTestClient, http, parseGwei } from 'viem'
|
19
|
-
* import { foundry } from 'viem/chains'
|
20
|
-
* import { setNextBlockBaseFeePerGas } from 'viem/test'
|
21
|
-
*
|
22
|
-
* const client = createTestClient({
|
23
|
-
* mode: 'anvil',
|
24
|
-
* chain: 'foundry',
|
25
|
-
* transport: http(),
|
26
|
-
* })
|
27
|
-
* await setNextBlockBaseFeePerGas(client, {
|
28
|
-
* baseFeePerGas: parseGwei('20'),
|
29
|
-
* })
|
30
|
-
*/
|
31
|
-
export declare function setNextBlockBaseFeePerGas<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { baseFeePerGas }: SetNextBlockBaseFeePerGasParameters): Promise<void>;
|
32
|
-
//# sourceMappingURL=setNextBlockBaseFeePerGas.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setNextBlockBaseFeePerGas.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setNextBlockBaseFeePerGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,mCAAmC,GAAG;IAChD,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,aAAa,EAAE,EAAE,mCAAmC,iBAMvD"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
export type SetNextBlockTimestampParameters = {
|
6
|
-
/** The timestamp (in seconds). */
|
7
|
-
timestamp: bigint;
|
8
|
-
};
|
9
|
-
/**
|
10
|
-
* Sets the next block's timestamp.
|
11
|
-
*
|
12
|
-
* - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp.html
|
13
|
-
*
|
14
|
-
* @param client - Client to use
|
15
|
-
* @param parameters – {@link SetNextBlockTimestampParameters}
|
16
|
-
*
|
17
|
-
* @example
|
18
|
-
* import { createTestClient, http } from 'viem'
|
19
|
-
* import { foundry } from 'viem/chains'
|
20
|
-
* import { setNextBlockTimestamp } from 'viem/test'
|
21
|
-
*
|
22
|
-
* const client = createTestClient({
|
23
|
-
* mode: 'anvil',
|
24
|
-
* chain: 'foundry',
|
25
|
-
* transport: http(),
|
26
|
-
* })
|
27
|
-
* await setNextBlockTimestamp(client, { timestamp: 1671744314n })
|
28
|
-
*/
|
29
|
-
export declare function setNextBlockTimestamp<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { timestamp }: SetNextBlockTimestampParameters): Promise<void>;
|
30
|
-
//# sourceMappingURL=setNextBlockTimestamp.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setNextBlockTimestamp.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setNextBlockTimestamp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,SAAS,EAAE,EAAE,+BAA+B,iBAM/C"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
3
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type { Account } from '../../types/account.js';
|
5
|
-
import type { Chain } from '../../types/chain.js';
|
6
|
-
export type SetNonceParameters = {
|
7
|
-
/** The account address. */
|
8
|
-
address: Address;
|
9
|
-
/** The nonce to set. */
|
10
|
-
nonce: number;
|
11
|
-
};
|
12
|
-
/**
|
13
|
-
* Modifies (overrides) the nonce of an account.
|
14
|
-
*
|
15
|
-
* - Docs: https://viem.sh/docs/actions/test/setNonce.html
|
16
|
-
*
|
17
|
-
* @param client - Client to use
|
18
|
-
* @param parameters – {@link SetNonceParameters}
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* import { createTestClient, http } from 'viem'
|
22
|
-
* import { foundry } from 'viem/chains'
|
23
|
-
* import { setNonce } from 'viem/test'
|
24
|
-
*
|
25
|
-
* const client = createTestClient({
|
26
|
-
* mode: 'anvil',
|
27
|
-
* chain: 'foundry',
|
28
|
-
* transport: http(),
|
29
|
-
* })
|
30
|
-
* await setNonce(client, {
|
31
|
-
* address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
32
|
-
* nonce: 420,
|
33
|
-
* })
|
34
|
-
*/
|
35
|
-
export declare function setNonce<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { address, nonce }: SetNonceParameters): Promise<void>;
|
36
|
-
//# sourceMappingURL=setNonce.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setNonce.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,kBAAkB,iBAMvC"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
2
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
3
|
-
import type { Account } from '../../types/account.js';
|
4
|
-
import type { Chain } from '../../types/chain.js';
|
5
|
-
/**
|
6
|
-
* Sets the backend RPC URL.
|
7
|
-
*
|
8
|
-
* - Docs: https://viem.sh/docs/actions/test/setRpcUrl.html
|
9
|
-
*
|
10
|
-
* @param client - Client to use
|
11
|
-
* @param jsonRpcUrl – RPC URL
|
12
|
-
*
|
13
|
-
* @example
|
14
|
-
* import { createTestClient, http } from 'viem'
|
15
|
-
* import { foundry } from 'viem/chains'
|
16
|
-
* import { setRpcUrl } from 'viem/test'
|
17
|
-
*
|
18
|
-
* const client = createTestClient({
|
19
|
-
* mode: 'anvil',
|
20
|
-
* chain: 'foundry',
|
21
|
-
* transport: http(),
|
22
|
-
* })
|
23
|
-
* await setRpcUrl(client, 'https://eth-mainnet.g.alchemy.com/v2')
|
24
|
-
*/
|
25
|
-
export declare function setRpcUrl<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, jsonRpcUrl: string): Promise<void>;
|
26
|
-
//# sourceMappingURL=setRpcUrl.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"setRpcUrl.d.ts","sourceRoot":"","sources":["../../../../src/actions/test/setRpcUrl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACf,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,SAAS,CAC7B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,EACtE,UAAU,EAAE,MAAM,iBAMnB"}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { TestClient, TestClientMode } from '../../clients/createTestClient.js';
|
3
|
-
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type { Account } from '../../types/account.js';
|
5
|
-
import type { Chain } from '../../types/chain.js';
|
6
|
-
import type { Hash, Hex } from '../../types/misc.js';
|
7
|
-
export type SetStorageAtParameters = {
|
8
|
-
/** The account address. */
|
9
|
-
address: Address;
|
10
|
-
/** The storage slot (index). Can either be a number or hash value. */
|
11
|
-
index: number | Hash;
|
12
|
-
/** The value to store as a 32 byte hex string. */
|
13
|
-
value: Hex;
|
14
|
-
};
|
15
|
-
/**
|
16
|
-
* Writes to a slot of an account's storage.
|
17
|
-
*
|
18
|
-
* - Docs: https://viem.sh/docs/actions/test/setStorageAt.html
|
19
|
-
*
|
20
|
-
* @param client - Client to use
|
21
|
-
* @param parameters – {@link SetStorageAtParameters}
|
22
|
-
*
|
23
|
-
* @example
|
24
|
-
* import { createTestClient, http } from 'viem'
|
25
|
-
* import { foundry } from 'viem/chains'
|
26
|
-
* import { setStorageAt } from 'viem/test'
|
27
|
-
*
|
28
|
-
* const client = createTestClient({
|
29
|
-
* mode: 'anvil',
|
30
|
-
* chain: 'foundry',
|
31
|
-
* transport: http(),
|
32
|
-
* })
|
33
|
-
* await setStorageAt(client, {
|
34
|
-
* address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
|
35
|
-
* index: 2,
|
36
|
-
* value: '0x0000000000000000000000000000000000000000000000000000000000000069',
|
37
|
-
* })
|
38
|
-
*/
|
39
|
-
export declare function setStorageAt<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: TestClient<TestClientMode, Transport, TChain, TAccount, false>, { address, index, value }: SetStorageAtParameters): Promise<void>;
|
40
|
-
//# sourceMappingURL=setStorageAt.d.ts.map
|