Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

viem

Package Overview
Dependencies
Maintainers
1
Versions
2212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viem - npm Package Compare versions

Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.3

dist/chunk-SRDTRROA.js

11

dist/actions/index.d.ts

@@ -1,8 +0,7 @@

export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, d as EstimateGasResponse, bf as FormattedTransactionRequest, G as GetBalanceArgs, e as GetBalanceResponse, f as GetBlockArgs, g as GetBlockNumberArgs, h as GetBlockNumberResponse, i as GetBlockResponse, j as GetBlockTransactionCountArgs, k as GetBlockTransactionCountResponse, l as GetFeeHistoryArgs, m as GetFeeHistoryResponse, n as GetFilterChangesArgs, o as GetFilterChangesResponse, p as GetFilterLogsArgs, q as GetFilterLogsResponse, r as GetGasPriceResponse, s as GetPermissionsResponse, t as GetTransactionArgs, u as GetTransactionConfirmationsArgs, v as GetTransactionConfirmationsResponse, w as GetTransactionCountArgs, x as GetTransactionCountResponse, z as GetTransactionReceiptArgs, A as GetTransactionReceiptResponse, y as GetTransactionResponse, I as ImpersonateAccountArgs, B as IncreaseTimeArgs, bg as InvalidGasArgumentsError, M as MineArgs, O as OnBlock, F as OnBlockNumber, H as OnBlockNumberResponse, J as OnBlockResponse, K as OnTransactions, L as OnTransactionsResponse, bc as ReplacementReason, bd as ReplacementResponse, N as RequestPermissionsResponse, R as ResetArgs, P as RevertArgs, S as SendTransactionArgs, Q as SendTransactionResponse, T as SendUnsignedTransactionArgs, U as SendUnsignedTransactionResponse, V as SetBalanceArgs, W as SetBlockGasLimitArgs, $ as SetBlockTimestampIntervalArgs, X as SetCodeArgs, Y as SetCoinbaseArgs, Z as SetIntervalMiningArgs, _ as SetMinGasPriceArgs, a1 as SetNextBlockBaseFeePerGasArgs, a0 as SetNextBlockTimestampArgs, a2 as SetNonceArgs, a3 as SetStorageAtArgs, a4 as SignMessageArgs, a5 as SignMessageResponse, a6 as StopImpersonatingAccountArgs, a7 as SwitchChainArgs, a8 as UninstallFilterArgs, a9 as UninstallFilterResponse, aa as WaitForTransactionReceiptArgs, ab as WaitForTransactionReceiptResponse, be as WaitForTransactionReceiptTimeoutError, ac as WatchAssetArgs, ad as WatchAssetResponse, ae as WatchBlockNumberArgs, af as WatchBlocksArgs, ag as WatchPendingTransactionsArgs, ah as addChain, ai as call, aj as createBlockFilter, ak as createPendingTransactionFilter, am as dropTransaction, al as estimateGas, an as getAccounts, ao as getAutomine, ap as getBalance, aq as getBlock, ar as getBlockNumber, bb as getBlockNumberCache, as as getBlockTransactionCount, at as getChainId, au as getFeeHistory, av as getFilterChanges, aw as getFilterLogs, ax as getGasPrice, ay as getPermissions, az as getTransaction, aA as getTransactionConfirmations, aB as getTransactionCount, aC as getTransactionReceipt, aD as getTxpoolContent, aE as getTxpoolStatus, aF as impersonateAccount, aG as increaseTime, aH as inspectTxpool, aI as mine, aJ as removeBlockTimestampInterval, aL as requestAccounts, aM as requestPermissions, aK as reset, aN as revert, aO as sendTransaction, aP as sendUnsignedTransaction, aQ as setAutomine, aR as setBalance, aS as setBlockGasLimit, aT as setBlockTimestampInterval, aU as setCode, aV as setCoinbase, aW as setIntervalMining, aX as setLoggingEnabled, aY as setMinGasPrice, aZ as setNextBlockBaseFeePerGas, a_ as setNextBlockTimestamp, a$ as setNonce, b0 as setStorageAt, b1 as signMessage, b2 as snapshot, b3 as stopImpersonatingAccount, b4 as switchChain, b5 as uninstallFilter, b6 as waitForTransactionReceipt, b7 as watchAsset, b8 as watchBlockNumber, b9 as watchBlocks, ba as watchPendingTransactions } from '../watchAsset-04ab8db5.js';
export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, d as EstimateGasResponse, be as FormattedTransactionRequest, G as GetBalanceArgs, e as GetBalanceResponse, f as GetBlockArgs, g as GetBlockNumberArgs, h as GetBlockNumberResponse, i as GetBlockResponse, j as GetBlockTransactionCountArgs, k as GetBlockTransactionCountResponse, l as GetFeeHistoryArgs, m as GetFeeHistoryResponse, n as GetFilterChangesArgs, o as GetFilterChangesResponse, p as GetFilterLogsArgs, q as GetFilterLogsResponse, r as GetGasPriceResponse, s as GetPermissionsResponse, t as GetTransactionArgs, u as GetTransactionConfirmationsArgs, v as GetTransactionConfirmationsResponse, w as GetTransactionCountArgs, x as GetTransactionCountResponse, z as GetTransactionReceiptArgs, A as GetTransactionReceiptResponse, y as GetTransactionResponse, I as ImpersonateAccountArgs, B as IncreaseTimeArgs, M as MineArgs, O as OnBlock, F as OnBlockNumber, H as OnBlockNumberResponse, J as OnBlockResponse, K as OnTransactions, L as OnTransactionsResponse, bc as ReplacementReason, bd as ReplacementResponse, N as RequestPermissionsResponse, R as ResetArgs, P as RevertArgs, S as SendTransactionArgs, Q as SendTransactionResponse, T as SendUnsignedTransactionArgs, U as SendUnsignedTransactionResponse, V as SetBalanceArgs, W as SetBlockGasLimitArgs, $ as SetBlockTimestampIntervalArgs, X as SetCodeArgs, Y as SetCoinbaseArgs, Z as SetIntervalMiningArgs, _ as SetMinGasPriceArgs, a1 as SetNextBlockBaseFeePerGasArgs, a0 as SetNextBlockTimestampArgs, a2 as SetNonceArgs, a3 as SetStorageAtArgs, a4 as SignMessageArgs, a5 as SignMessageResponse, a6 as StopImpersonatingAccountArgs, a7 as SwitchChainArgs, a8 as UninstallFilterArgs, a9 as UninstallFilterResponse, aa as WaitForTransactionReceiptArgs, ab as WaitForTransactionReceiptResponse, ac as WatchAssetArgs, ad as WatchAssetResponse, ae as WatchBlockNumberArgs, af as WatchBlocksArgs, ag as WatchPendingTransactionsArgs, ah as addChain, ai as call, aj as createBlockFilter, ak as createPendingTransactionFilter, am as dropTransaction, al as estimateGas, an as getAccounts, ao as getAutomine, ap as getBalance, aq as getBlock, ar as getBlockNumber, bb as getBlockNumberCache, as as getBlockTransactionCount, at as getChainId, au as getFeeHistory, av as getFilterChanges, aw as getFilterLogs, ax as getGasPrice, ay as getPermissions, az as getTransaction, aA as getTransactionConfirmations, aB as getTransactionCount, aC as getTransactionReceipt, aD as getTxpoolContent, aE as getTxpoolStatus, aF as impersonateAccount, aG as increaseTime, aH as inspectTxpool, aI as mine, aJ as removeBlockTimestampInterval, aL as requestAccounts, aM as requestPermissions, aK as reset, aN as revert, aO as sendTransaction, aP as sendUnsignedTransaction, aQ as setAutomine, aR as setBalance, aS as setBlockGasLimit, aT as setBlockTimestampInterval, aU as setCode, aV as setCoinbase, aW as setIntervalMining, aX as setLoggingEnabled, aY as setMinGasPrice, aZ as setNextBlockBaseFeePerGas, a_ as setNextBlockTimestamp, a$ as setNonce, b0 as setStorageAt, b1 as signMessage, b2 as snapshot, b3 as stopImpersonatingAccount, b4 as switchChain, b5 as uninstallFilter, b6 as waitForTransactionReceipt, b7 as watchAsset, b8 as watchBlockNumber, b9 as watchBlocks, ba as watchPendingTransactions } from '../watchAsset-0c9d01e2.js';
import '../chains.js';
import '../rpc-655c0ba4.js';
import '../rpc-15b85963.js';
import '@wagmi/chains';
import '../transactionRequest-ade896ac.js';
import '../createWalletClient-915223f3.js';
import '../eip1193-8f7c22ce.js';
import '../BaseError-7688f84e.js';
import '../createWalletClient-15ad1601.js';
import '../eip1193-8b4d90ce.js';
import '../transactionRequest-f538ea86.js';

@@ -61,4 +61,5 @@ import {

watchPendingTransactions
} from "../chunk-4HNVS7AM.js";
import "../chunk-3EOU525X.js";
} from "../chunk-YZEQFYZ3.js";
import "../chunk-SRDTRROA.js";
import "../chunk-WZITKXV3.js";
export {

@@ -65,0 +66,0 @@ addChain,

@@ -1,2 +0,2 @@

import { R as RpcBlock, B as Block, q as RpcTransaction, D as Transaction, r as RpcTransactionReceipt, T as TransactionReceipt, v as TransactionRequest, s as RpcTransactionRequest, N as TransactionType, H as Hex } from './rpc-655c0ba4.js';
import { R as RpcBlock, d as Block, q as RpcTransaction, D as Transaction, r as RpcTransactionReceipt, T as TransactionReceipt, v as TransactionRequest, s as RpcTransactionRequest, N as TransactionType, a as Hex } from './rpc-15b85963.js';
import { Chain as Chain$1 } from '@wagmi/chains';

@@ -27,3 +27,3 @@

[key: string]: unknown;
}>, TExclude extends ("gas" | "type" | "value" | "blockHash" | "blockNumber" | "from" | "hash" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
}>, TExclude extends ("gas" | "type" | "blockHash" | "blockNumber" | "hash" | "value" | "from" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList")[] = []>({ exclude, format: formatOverride, }: {
exclude?: TExclude | undefined;

@@ -30,0 +30,0 @@ format?: TFormat | undefined;

@@ -6,3 +6,4 @@ import {

formatTransactionRequest
} from "./chunk-3EOU525X.js";
} from "./chunk-SRDTRROA.js";
import "./chunk-WZITKXV3.js";

@@ -9,0 +10,0 @@ // src/chains.ts

@@ -1,8 +0,7 @@

export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from '../createWalletClient-915223f3.js';
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, U as UrlRequiredError, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from '../webSocket-c6e0d26f.js';
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from '../createWalletClient-15ad1601.js';
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from '../webSocket-b55b0951.js';
import '../chains.js';
import '../rpc-655c0ba4.js';
import '../rpc-15b85963.js';
import '@wagmi/chains';
import '../eip1193-8f7c22ce.js';
import '../BaseError-7688f84e.js';
import '../rpc-3c0e3985.js';
import '../eip1193-8b4d90ce.js';
import '../rpc-26932bae.js';
import {
UrlRequiredError,
createClient,

@@ -12,6 +11,5 @@ createPublicClient,

webSocket
} from "../chunk-YQRTXQ2G.js";
import "../chunk-3EOU525X.js";
} from "../chunk-TLEMV4T3.js";
import "../chunk-WZITKXV3.js";
export {
UrlRequiredError,
createClient,

@@ -18,0 +16,0 @@ createPublicClient,

@@ -1,12 +0,284 @@

export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, d as EstimateGasResponse, G as GetBalanceArgs, e as GetBalanceResponse, f as GetBlockArgs, g as GetBlockNumberArgs, h as GetBlockNumberResponse, i as GetBlockResponse, j as GetBlockTransactionCountArgs, k as GetBlockTransactionCountResponse, l as GetFeeHistoryArgs, m as GetFeeHistoryResponse, n as GetFilterChangesArgs, o as GetFilterChangesResponse, p as GetFilterLogsArgs, q as GetFilterLogsResponse, r as GetGasPriceResponse, s as GetPermissionsResponse, t as GetTransactionArgs, u as GetTransactionConfirmationsArgs, v as GetTransactionConfirmationsResponse, w as GetTransactionCountArgs, x as GetTransactionCountResponse, z as GetTransactionReceiptArgs, A as GetTransactionReceiptResponse, y as GetTransactionResponse, I as ImpersonateAccountArgs, B as IncreaseTimeArgs, M as MineArgs, O as OnBlock, F as OnBlockNumber, H as OnBlockNumberResponse, J as OnBlockResponse, K as OnTransactions, L as OnTransactionsResponse, N as RequestPermissionsResponse, R as ResetArgs, P as RevertArgs, S as SendTransactionArgs, Q as SendTransactionResponse, T as SendUnsignedTransactionArgs, U as SendUnsignedTransactionResponse, V as SetBalanceArgs, W as SetBlockGasLimitArgs, $ as SetBlockTimestampIntervalArgs, X as SetCodeArgs, Y as SetCoinbaseArgs, Z as SetIntervalMiningArgs, _ as SetMinGasPriceArgs, a1 as SetNextBlockBaseFeePerGasArgs, a0 as SetNextBlockTimestampArgs, a2 as SetNonceArgs, a3 as SetStorageAtArgs, a4 as SignMessageArgs, a5 as SignMessageResponse, a6 as StopImpersonatingAccountArgs, a7 as SwitchChainArgs, a8 as UninstallFilterArgs, a9 as UninstallFilterResponse, aa as WaitForTransactionReceiptArgs, ab as WaitForTransactionReceiptResponse, ac as WatchAssetArgs, ad as WatchAssetResponse, ae as WatchBlockNumberArgs, af as WatchBlocksArgs, ag as WatchPendingTransactionsArgs, ah as addChain, ai as call, aj as createBlockFilter, ak as createPendingTransactionFilter, am as dropTransaction, al as estimateGas, an as getAccounts, ao as getAutomine, ap as getBalance, aq as getBlock, ar as getBlockNumber, as as getBlockTransactionCount, at as getChainId, au as getFeeHistory, av as getFilterChanges, aw as getFilterLogs, ax as getGasPrice, ay as getPermissions, az as getTransaction, aA as getTransactionConfirmations, aB as getTransactionCount, aC as getTransactionReceipt, aD as getTxpoolContent, aE as getTxpoolStatus, aF as impersonateAccount, aG as increaseTime, aH as inspectTxpool, aI as mine, aJ as removeBlockTimestampInterval, aL as requestAccounts, aM as requestPermissions, aK as reset, aN as revert, aO as sendTransaction, aP as sendUnsignedTransaction, aQ as setAutomine, aR as setBalance, aS as setBlockGasLimit, aT as setBlockTimestampInterval, aU as setCode, aV as setCoinbase, aW as setIntervalMining, aX as setLoggingEnabled, aY as setMinGasPrice, aZ as setNextBlockBaseFeePerGas, a_ as setNextBlockTimestamp, a$ as setNonce, b0 as setStorageAt, b1 as signMessage, b2 as snapshot, b3 as stopImpersonatingAccount, b4 as switchChain, b5 as uninstallFilter, b6 as waitForTransactionReceipt, b7 as watchAsset, b8 as watchBlockNumber, b9 as watchBlocks, ba as watchPendingTransactions } from './watchAsset-04ab8db5.js';
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-915223f3.js';
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, U as UrlRequiredError, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-c6e0d26f.js';
export { a as AccessList, A as Address, B as Block, b as BlockIdentifier, c as BlockNumber, d as BlockTag, f as ByteArray, F as FeeHistory, h as FeeValues, i as FeeValuesEIP1559, j as FeeValuesLegacy, k as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, u as RpcUncle, D as Transaction, E as TransactionBase, G as TransactionEIP1559, I as TransactionEIP2930, J as TransactionLegacy, T as TransactionReceipt, v as TransactionRequest, x as TransactionRequestBase, y as TransactionRequestEIP1559, z as TransactionRequestEIP2930, C as TransactionRequestLegacy, U as Uncle, e as etherUnits, g as gweiUnits, t as transactionType, w as weiUnits } from './rpc-655c0ba4.js';
export { A as AbiDecodingDataSizeInvalidError, a as AbiEncodingArrayLengthMismatchError, b as AbiEncodingLengthMismatchError, E as EncodeRlpResponse, G as GetContractAddressOptions, d as GetCreate2AddressOptions, c as GetCreateAddressOptions, g as InternalRpcError, I as InvalidAbiDecodingTypeError, e as InvalidAbiEncodingTypeError, f as InvalidArrayError, h as InvalidInputRpcError, i as InvalidParamsRpcError, j as InvalidRequestRpcError, J as JsonRpcVersionUnsupportedError, L as LimitExceededRpcError, M as MethodNotFoundRpcError, k as MethodNotSupportedRpcError, P as ParseRpcError, R as ResourceNotFoundRpcError, l as ResourceUnavailableRpcError, m as RpcRequestError, T as TransactionRejectedRpcError, p as boolToBytes, q as boolToHex, r as bytesToBigint, s as bytesToBool, n as bytesToHex, t as bytesToNumber, o as bytesToString, u as decodeAbi, v as decodeBytes, w as decodeHex, x as decodeRlp, y as encodeAbi, z as encodeBytes, B as encodeFunctionParams, C as encodeHex, D as encodeRlp, S as formatEther, a8 as formatGwei, a9 as formatUnit, F as getAddress, H as getContractAddress, N as getCreate2Address, K as getCreateAddress, O as getEventSignature, Q as getFunctionSignature, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, aa as hexToNumber, $ as hexToString, U as isAddress, V as isAddressEqual, W as isBytes, X as isHex, a0 as keccak256, a1 as numberToBytes, ab as numberToHex, a2 as pad, a3 as padBytes, a4 as padHex, a5 as parseEther, a6 as parseGwei, a7 as parseUnit, ac as size, ad as slice, ae as sliceBytes, af as sliceHex, ag as stringToBytes, ah as stringToHex, ai as trim } from './parseGwei-fd7a0f7d.js';
export { B as BaseError } from './BaseError-7688f84e.js';
export { F as FormattedBlock, a as FormattedTransaction, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-ade896ac.js';
export { H as HttpRequestError, R as RpcError, T as TimeoutError } from './rpc-3c0e3985.js';
export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, d as EstimateGasResponse, G as GetBalanceArgs, e as GetBalanceResponse, f as GetBlockArgs, g as GetBlockNumberArgs, h as GetBlockNumberResponse, i as GetBlockResponse, j as GetBlockTransactionCountArgs, k as GetBlockTransactionCountResponse, l as GetFeeHistoryArgs, m as GetFeeHistoryResponse, n as GetFilterChangesArgs, o as GetFilterChangesResponse, p as GetFilterLogsArgs, q as GetFilterLogsResponse, r as GetGasPriceResponse, s as GetPermissionsResponse, t as GetTransactionArgs, u as GetTransactionConfirmationsArgs, v as GetTransactionConfirmationsResponse, w as GetTransactionCountArgs, x as GetTransactionCountResponse, z as GetTransactionReceiptArgs, A as GetTransactionReceiptResponse, y as GetTransactionResponse, I as ImpersonateAccountArgs, B as IncreaseTimeArgs, M as MineArgs, O as OnBlock, F as OnBlockNumber, H as OnBlockNumberResponse, J as OnBlockResponse, K as OnTransactions, L as OnTransactionsResponse, N as RequestPermissionsResponse, R as ResetArgs, P as RevertArgs, S as SendTransactionArgs, Q as SendTransactionResponse, T as SendUnsignedTransactionArgs, U as SendUnsignedTransactionResponse, V as SetBalanceArgs, W as SetBlockGasLimitArgs, $ as SetBlockTimestampIntervalArgs, X as SetCodeArgs, Y as SetCoinbaseArgs, Z as SetIntervalMiningArgs, _ as SetMinGasPriceArgs, a1 as SetNextBlockBaseFeePerGasArgs, a0 as SetNextBlockTimestampArgs, a2 as SetNonceArgs, a3 as SetStorageAtArgs, a4 as SignMessageArgs, a5 as SignMessageResponse, a6 as StopImpersonatingAccountArgs, a7 as SwitchChainArgs, a8 as UninstallFilterArgs, a9 as UninstallFilterResponse, aa as WaitForTransactionReceiptArgs, ab as WaitForTransactionReceiptResponse, ac as WatchAssetArgs, ad as WatchAssetResponse, ae as WatchBlockNumberArgs, af as WatchBlocksArgs, ag as WatchPendingTransactionsArgs, ah as addChain, ai as call, aj as createBlockFilter, ak as createPendingTransactionFilter, am as dropTransaction, al as estimateGas, an as getAccounts, ao as getAutomine, ap as getBalance, aq as getBlock, ar as getBlockNumber, as as getBlockTransactionCount, at as getChainId, au as getFeeHistory, av as getFilterChanges, aw as getFilterLogs, ax as getGasPrice, ay as getPermissions, az as getTransaction, aA as getTransactionConfirmations, aB as getTransactionCount, aC as getTransactionReceipt, aD as getTxpoolContent, aE as getTxpoolStatus, aF as impersonateAccount, aG as increaseTime, aH as inspectTxpool, aI as mine, aJ as removeBlockTimestampInterval, aL as requestAccounts, aM as requestPermissions, aK as reset, aN as revert, aO as sendTransaction, aP as sendUnsignedTransaction, aQ as setAutomine, aR as setBalance, aS as setBlockGasLimit, aT as setBlockTimestampInterval, aU as setCode, aV as setCoinbase, aW as setIntervalMining, aX as setLoggingEnabled, aY as setMinGasPrice, aZ as setNextBlockBaseFeePerGas, a_ as setNextBlockTimestamp, a$ as setNonce, b0 as setStorageAt, b1 as signMessage, b2 as snapshot, b3 as stopImpersonatingAccount, b4 as switchChain, b5 as uninstallFilter, b6 as waitForTransactionReceipt, b7 as watchAsset, b8 as watchBlockNumber, b9 as watchBlocks, ba as watchPendingTransactions } from './watchAsset-0c9d01e2.js';
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-15ad1601.js';
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-b55b0951.js';
import { A as Address, H as Hash, B as ByteArray, a as Hex, b as BlockTag } from './rpc-15b85963.js';
export { c as AccessList, A as Address, d as Block, f as BlockIdentifier, h as BlockNumber, b as BlockTag, B as ByteArray, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, H as Hash, a as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, u as RpcUncle, D as Transaction, E as TransactionBase, G as TransactionEIP1559, I as TransactionEIP2930, J as TransactionLegacy, T as TransactionReceipt, v as TransactionRequest, x as TransactionRequestBase, y as TransactionRequestEIP1559, z as TransactionRequestEIP2930, C as TransactionRequestLegacy, U as Uncle, e as etherUnits, g as gweiUnits, t as transactionType, w as weiUnits } from './rpc-15b85963.js';
export { E as EncodeRlpResponse, G as GetContractAddressOptions, b as GetCreate2AddressOptions, a as GetCreateAddressOptions, e as boolToBytes, f as boolToHex, g as bytesToBigint, h as bytesToBool, c as bytesToHex, i as bytesToNumber, d as bytesToString, j as decodeAbi, k as decodeBytes, l as decodeFunctionData, m as decodeHex, n as decodeRlp, o as encodeAbi, p as encodeBytes, q as encodeFunctionData, r as encodeHex, s as encodeRlp, z as formatEther, S as formatGwei, T as formatUnit, t as getAddress, u as getContractAddress, w as getCreate2Address, v as getCreateAddress, x as getEventSignature, y as getFunctionSignature, F as hexToBigInt, H as hexToBool, I as hexToBytes, U as hexToNumber, J as hexToString, A as isAddress, B as isAddressEqual, C as isBytes, D as isHex, K as keccak256, L as numberToBytes, V as numberToHex, M as pad, N as padBytes, O as padHex, P as parseEther, Q as parseGwei, R as parseUnit, W as size, X as slice, Y as sliceBytes, Z as sliceHex, _ as stringToBytes, $ as stringToHex, a0 as trim } from './parseGwei-0f85e8ca.js';
export { F as FormattedBlock, a as FormattedTransaction, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-f538ea86.js';
import './chains.js';
import '@wagmi/chains';
import './eip1193-8f7c22ce.js';
import './eip1193-8b4d90ce.js';
import './rpc-26932bae.js';
import 'abitype';
type BaseErrorArgs = {
docsPath?: string;
} & ({
cause?: never;
details?: string;
} | {
cause: BaseError | Error;
details?: never;
});
declare class BaseError extends Error {
humanMessage: string;
details: string;
docsPath?: string;
name: string;
constructor(humanMessage: string, args?: BaseErrorArgs);
}
declare class AbiDecodingDataSizeInvalidError extends BaseError {
name: string;
constructor(size: number);
}
declare class AbiEncodingArrayLengthMismatchError extends BaseError {
name: string;
constructor({ expectedLength, givenLength, type, }: {
expectedLength: number;
givenLength: number;
type: string;
});
}
declare class AbiEncodingLengthMismatchError extends BaseError {
name: string;
constructor({ expectedLength, givenLength, }: {
expectedLength: number;
givenLength: number;
});
}
declare class AbiFunctionNotFoundError extends BaseError {
name: string;
constructor(functionName: string);
}
declare class InvalidAbiEncodingTypeError extends BaseError {
name: string;
constructor(type: string);
}
declare class InvalidAbiDecodingTypeError extends BaseError {
name: string;
constructor(type: string);
}
declare class InvalidArrayError extends BaseError {
name: string;
constructor(value: unknown);
}
declare class InvalidDefinitionTypeError extends BaseError {
name: string;
constructor(type: string);
}
declare class InvalidAddressError extends BaseError {
name: string;
constructor({ address }: {
address: Address;
});
}
declare class BlockNotFoundError extends BaseError {
name: string;
constructor({ blockHash, blockNumber, }: {
blockHash?: Hash;
blockNumber?: bigint;
});
}
declare class SizeExceedsPaddingSizeError extends BaseError {
name: string;
constructor({ size, targetSize, type, }: {
size: number;
targetSize: number;
type: 'hex' | 'bytes';
});
}
declare class DataLengthTooLongError extends BaseError {
name: string;
constructor({ consumed, length }: {
consumed: number;
length: number;
});
}
declare class DataLengthTooShortError extends BaseError {
name: string;
constructor({ length, dataLength }: {
length: number;
dataLength: number;
});
}
declare class InvalidBytesBooleanError extends BaseError {
name: string;
constructor(bytes: ByteArray);
}
declare class InvalidHexBooleanError extends BaseError {
name: string;
constructor(hex: Hex);
}
declare class InvalidHexValueError extends BaseError {
name: string;
constructor(value: Hex);
}
declare class OffsetOutOfBoundsError extends BaseError {
name: string;
constructor({ nextOffset, offset }: {
nextOffset: number;
offset: number;
});
}
declare class HttpRequestError extends BaseError {
name: string;
status: number;
constructor({ body, details, status, url, }: {
body: {
[key: string]: unknown;
};
details: string;
status: number;
url: string;
});
}
declare class WebSocketRequestError extends BaseError {
name: string;
constructor({ body, details, url, }: {
body: {
[key: string]: unknown;
};
details: string;
url: string;
});
}
declare class RpcError extends BaseError {
code: number;
name: string;
constructor({ body, error, url, }: {
body: {
[key: string]: unknown;
};
error: {
code: number;
message: string;
};
url: string;
});
}
declare class TimeoutError extends BaseError {
name: string;
constructor({ body, url, }: {
body: {
[key: string]: unknown;
};
url: string;
});
}
declare class RequestError extends BaseError {
constructor(err: Error, { docsPath, humanMessage }: {
docsPath?: string;
humanMessage: string;
});
}
declare class RpcRequestError extends RequestError {
code: number;
constructor(err: RpcError, { docsPath, humanMessage }: {
docsPath?: string;
humanMessage: string;
});
}
declare class ParseRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class InvalidRequestRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class MethodNotFoundRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class InvalidParamsRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class InternalRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class InvalidInputRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class ResourceNotFoundRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class ResourceUnavailableRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class TransactionRejectedRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class MethodNotSupportedRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class LimitExceededRpcError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class JsonRpcVersionUnsupportedError extends RpcRequestError {
name: string;
code: number;
constructor(err: RpcError);
}
declare class UnknownRpcError extends RequestError {
name: string;
constructor(err: Error);
}
declare class InvalidGasArgumentsError extends BaseError {
name: string;
constructor();
}
declare class TransactionNotFoundError extends BaseError {
name: string;
constructor({ blockHash, blockNumber, blockTag, hash, index, }: {
blockHash?: Hash;
blockNumber?: bigint;
blockTag?: BlockTag;
hash?: Hash;
index?: number;
});
}
declare class TransactionReceiptNotFoundError extends BaseError {
name: string;
constructor({ hash }: {
hash: Hash;
});
}
declare class WaitForTransactionReceiptTimeoutError extends BaseError {
name: string;
constructor({ hash }: {
hash: Hash;
});
}
declare class UrlRequiredError extends BaseError {
constructor();
}
export { AbiDecodingDataSizeInvalidError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiFunctionNotFoundError, BaseError, BlockNotFoundError, DataLengthTooLongError, DataLengthTooShortError, HttpRequestError, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidDefinitionTypeError, InvalidGasArgumentsError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, TimeoutError, TransactionNotFoundError, TransactionReceiptNotFoundError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, WaitForTransactionReceiptTimeoutError, WebSocketRequestError };

@@ -60,5 +60,4 @@ import {

watchPendingTransactions
} from "./chunk-4HNVS7AM.js";
} from "./chunk-YZEQFYZ3.js";
import {
UrlRequiredError,
createClient,

@@ -73,21 +72,4 @@ createPublicClient,

webSocket
} from "./chunk-YQRTXQ2G.js";
} from "./chunk-TLEMV4T3.js";
import {
BaseError,
HttpRequestError,
InternalRpcError,
InvalidInputRpcError,
InvalidParamsRpcError,
InvalidRequestRpcError,
JsonRpcVersionUnsupportedError,
LimitExceededRpcError,
MethodNotFoundRpcError,
MethodNotSupportedRpcError,
ParseRpcError,
ResourceNotFoundRpcError,
ResourceUnavailableRpcError,
RpcError,
RpcRequestError,
TimeoutError,
TransactionRejectedRpcError,
boolToBytes,

@@ -102,2 +84,3 @@ boolToHex,

decodeBytes,
decodeFunctionData,
decodeHex,

@@ -107,3 +90,3 @@ decodeRlp,

encodeBytes,
encodeFunctionParams,
encodeFunctionData,
encodeHex,

@@ -152,7 +135,67 @@ encodeRlp,

weiUnits
} from "./chunk-3EOU525X.js";
} from "./chunk-SRDTRROA.js";
import {
AbiDecodingDataSizeInvalidError,
AbiEncodingArrayLengthMismatchError,
AbiEncodingLengthMismatchError,
AbiFunctionNotFoundError,
BaseError,
BlockNotFoundError,
DataLengthTooLongError,
DataLengthTooShortError,
HttpRequestError,
InternalRpcError,
InvalidAbiDecodingTypeError,
InvalidAbiEncodingTypeError,
InvalidAddressError,
InvalidArrayError,
InvalidBytesBooleanError,
InvalidDefinitionTypeError,
InvalidGasArgumentsError,
InvalidHexBooleanError,
InvalidHexValueError,
InvalidInputRpcError,
InvalidParamsRpcError,
InvalidRequestRpcError,
JsonRpcVersionUnsupportedError,
LimitExceededRpcError,
MethodNotFoundRpcError,
MethodNotSupportedRpcError,
OffsetOutOfBoundsError,
ParseRpcError,
RequestError,
ResourceNotFoundRpcError,
ResourceUnavailableRpcError,
RpcError,
RpcRequestError,
SizeExceedsPaddingSizeError,
TimeoutError,
TransactionNotFoundError,
TransactionReceiptNotFoundError,
TransactionRejectedRpcError,
UnknownRpcError,
UrlRequiredError,
WaitForTransactionReceiptTimeoutError,
WebSocketRequestError
} from "./chunk-WZITKXV3.js";
export {
AbiDecodingDataSizeInvalidError,
AbiEncodingArrayLengthMismatchError,
AbiEncodingLengthMismatchError,
AbiFunctionNotFoundError,
BaseError,
BlockNotFoundError,
DataLengthTooLongError,
DataLengthTooShortError,
HttpRequestError,
InternalRpcError,
InvalidAbiDecodingTypeError,
InvalidAbiEncodingTypeError,
InvalidAddressError,
InvalidArrayError,
InvalidBytesBooleanError,
InvalidDefinitionTypeError,
InvalidGasArgumentsError,
InvalidHexBooleanError,
InvalidHexValueError,
InvalidInputRpcError,

@@ -165,3 +208,5 @@ InvalidParamsRpcError,

MethodNotSupportedRpcError,
OffsetOutOfBoundsError,
ParseRpcError,
RequestError,
ResourceNotFoundRpcError,

@@ -171,5 +216,11 @@ ResourceUnavailableRpcError,

RpcRequestError,
SizeExceedsPaddingSizeError,
TimeoutError,
TransactionNotFoundError,
TransactionReceiptNotFoundError,
TransactionRejectedRpcError,
UnknownRpcError,
UrlRequiredError,
WaitForTransactionReceiptTimeoutError,
WebSocketRequestError,
addChain,

@@ -194,2 +245,3 @@ boolToBytes,

decodeBytes,
decodeFunctionData,
decodeHex,

@@ -200,3 +252,3 @@ decodeRlp,

encodeBytes,
encodeFunctionParams,
encodeFunctionData,
encodeHex,

@@ -203,0 +255,0 @@ encodeRlp,

@@ -1,10 +0,11 @@

export { A as AbiDecodingDataSizeInvalidError, a as AbiEncodingArrayLengthMismatchError, b as AbiEncodingLengthMismatchError, E as EncodeRlpResponse, G as GetContractAddressOptions, d as GetCreate2AddressOptions, c as GetCreateAddressOptions, g as InternalRpcError, I as InvalidAbiDecodingTypeError, e as InvalidAbiEncodingTypeError, f as InvalidArrayError, h as InvalidInputRpcError, i as InvalidParamsRpcError, j as InvalidRequestRpcError, J as JsonRpcVersionUnsupportedError, L as LimitExceededRpcError, M as MethodNotFoundRpcError, k as MethodNotSupportedRpcError, P as ParseRpcError, R as ResourceNotFoundRpcError, l as ResourceUnavailableRpcError, m as RpcRequestError, T as TransactionRejectedRpcError, p as boolToBytes, q as boolToHex, aj as buildRequest, r as bytesToBigint, s as bytesToBool, n as bytesToHex, t as bytesToNumber, o as bytesToString, u as decodeAbi, v as decodeBytes, w as decodeHex, x as decodeRlp, y as encodeAbi, z as encodeBytes, B as encodeFunctionParams, C as encodeHex, D as encodeRlp, S as formatEther, a8 as formatGwei, a9 as formatUnit, F as getAddress, H as getContractAddress, N as getCreate2Address, K as getCreateAddress, O as getEventSignature, Q as getFunctionSignature, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, aa as hexToNumber, $ as hexToString, U as isAddress, V as isAddressEqual, W as isBytes, X as isHex, a0 as keccak256, a1 as numberToBytes, ab as numberToHex, a2 as pad, a3 as padBytes, a4 as padHex, a5 as parseEther, a6 as parseGwei, a7 as parseUnit, ac as size, ad as slice, ae as sliceBytes, af as sliceHex, ag as stringToBytes, ah as stringToHex, ai as trim } from '../parseGwei-fd7a0f7d.js';
export { B as BaseError } from '../BaseError-7688f84e.js';
export { B as BlockFormatter, E as ExtractFormatter, e as Formatted, F as FormattedBlock, a as FormattedTransaction, h as FormattedTransactionReceipt, b as FormattedTransactionRequest, g as TransactionFormatter, i as TransactionReceiptFormatter, T as TransactionRequestFormatter, j as format, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from '../transactionRequest-ade896ac.js';
export { H as HttpRequestError, R as RpcError, T as TimeoutError, r as rpc } from '../rpc-3c0e3985.js';
export { E as EncodeRlpResponse, G as GetContractAddressOptions, b as GetCreate2AddressOptions, a as GetCreateAddressOptions, e as boolToBytes, f as boolToHex, g as bytesToBigint, h as bytesToBool, c as bytesToHex, i as bytesToNumber, d as bytesToString, j as decodeAbi, k as decodeBytes, l as decodeFunctionData, m as decodeHex, n as decodeRlp, o as encodeAbi, p as encodeBytes, q as encodeFunctionData, r as encodeHex, s as encodeRlp, z as formatEther, S as formatGwei, T as formatUnit, t as getAddress, u as getContractAddress, w as getCreate2Address, v as getCreateAddress, x as getEventSignature, y as getFunctionSignature, F as hexToBigInt, H as hexToBool, I as hexToBytes, U as hexToNumber, J as hexToString, A as isAddress, B as isAddressEqual, C as isBytes, D as isHex, K as keccak256, L as numberToBytes, V as numberToHex, M as pad, N as padBytes, O as padHex, P as parseEther, Q as parseGwei, R as parseUnit, W as size, X as slice, Y as sliceBytes, Z as sliceHex, _ as stringToBytes, $ as stringToHex, a0 as trim } from '../parseGwei-0f85e8ca.js';
export { B as BlockFormatter, E as ExtractFormatter, e as Formatted, F as FormattedBlock, a as FormattedTransaction, h as FormattedTransactionReceipt, b as FormattedTransactionRequest, g as TransactionFormatter, i as TransactionReceiptFormatter, T as TransactionRequestFormatter, j as format, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from '../transactionRequest-f538ea86.js';
export { r as rpc } from '../rpc-26932bae.js';
import 'abitype';
import '../rpc-655c0ba4.js';
import '../rpc-15b85963.js';
import '../chains.js';
import '@wagmi/chains';
declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest): TRequest;
declare function extractFunctionName(def: string): string | undefined;

@@ -18,2 +19,2 @@ declare function extractFunctionParams(def: string): {

export { extractFunctionName, extractFunctionParams, extractFunctionType };
export { buildRequest, extractFunctionName, extractFunctionParams, extractFunctionType };
import {
BaseError,
HttpRequestError,
InternalRpcError,
InvalidInputRpcError,
InvalidParamsRpcError,
InvalidRequestRpcError,
JsonRpcVersionUnsupportedError,
LimitExceededRpcError,
MethodNotFoundRpcError,
MethodNotSupportedRpcError,
ParseRpcError,
ResourceNotFoundRpcError,
ResourceUnavailableRpcError,
RpcError,
RpcRequestError,
TimeoutError,
TransactionRejectedRpcError,
boolToBytes,
boolToHex,
buildRequest,
bytesToBigint,

@@ -29,2 +11,3 @@ bytesToBool,

decodeBytes,
decodeFunctionData,
decodeHex,

@@ -34,3 +17,3 @@ decodeRlp,

encodeBytes,
encodeFunctionParams,
encodeFunctionData,
encodeHex,

@@ -72,3 +55,2 @@ encodeRlp,

parseUnit,
rpc,
size,

@@ -81,21 +63,8 @@ slice,

trim
} from "../chunk-3EOU525X.js";
} from "../chunk-SRDTRROA.js";
import {
buildRequest,
rpc
} from "../chunk-WZITKXV3.js";
export {
BaseError,
HttpRequestError,
InternalRpcError,
InvalidInputRpcError,
InvalidParamsRpcError,
InvalidRequestRpcError,
JsonRpcVersionUnsupportedError,
LimitExceededRpcError,
MethodNotFoundRpcError,
MethodNotSupportedRpcError,
ParseRpcError,
ResourceNotFoundRpcError,
ResourceUnavailableRpcError,
RpcError,
RpcRequestError,
TimeoutError,
TransactionRejectedRpcError,
boolToBytes,

@@ -111,2 +80,3 @@ boolToHex,

decodeBytes,
decodeFunctionData,
decodeHex,

@@ -116,3 +86,3 @@ decodeRlp,

encodeBytes,
encodeFunctionParams,
encodeFunctionData,
encodeHex,

@@ -119,0 +89,0 @@ encodeRlp,

@@ -1,3 +0,3 @@

import { R as Requests, E as Events } from './eip1193-8f7c22ce.js';
import './rpc-655c0ba4.js';
import { R as Requests, E as Events } from './eip1193-8b4d90ce.js';
import './rpc-15b85963.js';

@@ -4,0 +4,0 @@ type WindowProvider = Requests & Events;

{
"name": "viem",
"description": "TypeScript (& JavaScript) Interface for Ethereum",
"version": "0.0.1-alpha.2",
"version": "0.0.1-alpha.3",
"files": [

@@ -6,0 +6,0 @@ "/actions",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc