viem 0.1.3 → 0.1.5
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/README.md +6 -0
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/chains.d.ts +380 -3
- package/dist/chains.js +80 -46
- package/dist/chains.js.map +1 -1
- package/dist/chains.mjs +37 -3
- package/dist/chains.mjs.map +1 -1
- package/dist/{chunk-MC6HQXR7.js → chunk-DEVNY3L7.js} +21 -21
- package/dist/{chunk-UJYIRVKR.mjs → chunk-MOUDBLFI.mjs} +3 -3
- package/dist/chunk-MOUDBLFI.mjs.map +1 -0
- package/dist/{chunk-PLPHFY5A.mjs → chunk-PDAHLHX3.mjs} +2 -2
- package/dist/{chunk-Z62X7UMW.js → chunk-WW4QO23M.js} +3 -3
- package/dist/chunk-WW4QO23M.js.map +1 -0
- package/dist/contract.d.ts +1 -1
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/{createPublicClient-c13b17f9.d.ts → createPublicClient-b12dc2b7.d.ts} +20 -1
- package/dist/ens.d.ts +1 -1
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +90 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-f91ad655.d.ts → parseGwei-ac04b47a.d.ts} +1 -1
- package/dist/public.d.ts +3 -24
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-UJYIRVKR.mjs.map +0 -1
- package/dist/chunk-Z62X7UMW.js.map +0 -1
- /package/dist/{chunk-MC6HQXR7.js.map → chunk-DEVNY3L7.js.map} +0 -0
- /package/dist/{chunk-PLPHFY5A.mjs.map → chunk-PDAHLHX3.mjs.map} +0 -0
package/dist/contract.d.ts
CHANGED
@@ -2,7 +2,7 @@ import './chain-d64be356.js';
|
|
2
2
|
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-de103f9b.js';
|
3
3
|
export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from './encodeFunctionResult-12963e93.js';
|
4
4
|
export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-8ee3a7fa.js';
|
5
|
-
export { m as CreateContractEventFilterParameters, n as CreateContractEventFilterReturnType, V as DeployContractParameters, X as DeployContractReturnType, o as EstimateContractGasParameters, p as EstimateContractGasReturnType, G as GetBytecodeParameters, q as GetBytecodeReturnType, r as GetStorageAtParameters, s as GetStorageAtReturnType, M as MulticallParameters, t as MulticallReturnType, O as OnLogsFn, u as OnLogsParameter, R as ReadContractParameters, v as ReadContractReturnType, w as SimulateContractParameters, x as SimulateContractReturnType, y as WatchContractEventParameters, Y as WriteContractParameters, Z as WriteContractReturnType, z as createContractEventFilter, _ as deployContract, D as estimateContractGas, H as getBytecode, I as getStorageAt, K as multicall, N as readContract, Q as simulateContract, U as watchContractEvent, $ as writeContract } from './createPublicClient-
|
5
|
+
export { m as CreateContractEventFilterParameters, n as CreateContractEventFilterReturnType, V as DeployContractParameters, X as DeployContractReturnType, o as EstimateContractGasParameters, p as EstimateContractGasReturnType, G as GetBytecodeParameters, q as GetBytecodeReturnType, r as GetStorageAtParameters, s as GetStorageAtReturnType, M as MulticallParameters, t as MulticallReturnType, O as OnLogsFn, u as OnLogsParameter, R as ReadContractParameters, v as ReadContractReturnType, w as SimulateContractParameters, x as SimulateContractReturnType, y as WatchContractEventParameters, Y as WriteContractParameters, Z as WriteContractReturnType, z as createContractEventFilter, _ as deployContract, D as estimateContractGas, H as getBytecode, I as getStorageAt, K as multicall, N as readContract, Q as simulateContract, U as watchContractEvent, $ as writeContract } from './createPublicClient-b12dc2b7.js';
|
6
6
|
import '@wagmi/chains';
|
7
7
|
import 'abitype';
|
8
8
|
import './eip1193-029d52f0.js';
|
package/dist/contract.js
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunkWW4QO23Mjs = require('./chunk-WW4QO23M.js');
|
27
27
|
|
28
28
|
|
29
29
|
|
@@ -49,5 +49,5 @@ var _chunkZ62X7UMWjs = require('./chunk-Z62X7UMW.js');
|
|
49
49
|
|
50
50
|
|
51
51
|
|
52
|
-
exports.createContractEventFilter =
|
52
|
+
exports.createContractEventFilter = _chunkWW4QO23Mjs.createContractEventFilter; exports.decodeAbiParameters = _chunkWW4QO23Mjs.decodeAbiParameters; exports.decodeErrorResult = _chunkWW4QO23Mjs.decodeErrorResult; exports.decodeEventLog = _chunkWW4QO23Mjs.decodeEventLog; exports.decodeFunctionData = _chunkWW4QO23Mjs.decodeFunctionData; exports.decodeFunctionResult = _chunkWW4QO23Mjs.decodeFunctionResult; exports.deployContract = _chunkWW4QO23Mjs.deployContract; exports.encodeAbiParameters = _chunkWW4QO23Mjs.encodeAbiParameters; exports.encodeDeployData = _chunkWW4QO23Mjs.encodeDeployData; exports.encodeErrorResult = _chunkWW4QO23Mjs.encodeErrorResult; exports.encodeEventTopics = _chunkWW4QO23Mjs.encodeEventTopics; exports.encodeFunctionData = _chunkWW4QO23Mjs.encodeFunctionData; exports.encodeFunctionResult = _chunkWW4QO23Mjs.encodeFunctionResult; exports.estimateContractGas = _chunkWW4QO23Mjs.estimateContractGas; exports.formatAbiItem = _chunkWW4QO23Mjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkWW4QO23Mjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkWW4QO23Mjs.getAbiItem; exports.getBytecode = _chunkWW4QO23Mjs.getBytecode; exports.getStorageAt = _chunkWW4QO23Mjs.getStorageAt; exports.multicall = _chunkWW4QO23Mjs.multicall; exports.readContract = _chunkWW4QO23Mjs.readContract; exports.simulateContract = _chunkWW4QO23Mjs.simulateContract; exports.watchContractEvent = _chunkWW4QO23Mjs.watchContractEvent; exports.writeContract = _chunkWW4QO23Mjs.writeContract;
|
53
53
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.mjs
CHANGED
@@ -424,6 +424,24 @@ type GetTransactionConfirmationsParameters<TChain extends Chain = Chain> = {
|
|
424
424
|
type GetTransactionConfirmationsReturnType = bigint;
|
425
425
|
declare function getTransactionConfirmations<TChain extends Chain>(client: PublicClient<any, TChain>, { hash, transactionReceipt }: GetTransactionConfirmationsParameters<TChain>): Promise<GetTransactionConfirmationsReturnType>;
|
426
426
|
|
427
|
+
type GetTransactionCountParameters = {
|
428
|
+
/** The account address. */
|
429
|
+
address: Address;
|
430
|
+
} & ({
|
431
|
+
/** The block number. */
|
432
|
+
blockNumber?: bigint;
|
433
|
+
blockTag?: never;
|
434
|
+
} | {
|
435
|
+
blockNumber?: never;
|
436
|
+
/** The block tag. Defaults to 'latest'. */
|
437
|
+
blockTag?: BlockTag;
|
438
|
+
});
|
439
|
+
type GetTransactionCountReturnType = number;
|
440
|
+
/**
|
441
|
+
* @description Returns the number of transactions an account has broadcast / sent.
|
442
|
+
*/
|
443
|
+
declare function getTransactionCount(client: PublicClient | WalletClient, { address, blockTag, blockNumber }: GetTransactionCountParameters): Promise<GetTransactionCountReturnType>;
|
444
|
+
|
427
445
|
type GetTransactionReceiptParameters = {
|
428
446
|
/** The hash of the transaction. */
|
429
447
|
hash: Hash;
|
@@ -717,6 +735,7 @@ type PublicActions<TChain extends Chain = Chain> = {
|
|
717
735
|
getStorageAt: (args: GetStorageAtParameters) => Promise<GetStorageAtReturnType>;
|
718
736
|
getTransaction: (args: GetTransactionParameters) => Promise<GetTransactionReturnType<TChain>>;
|
719
737
|
getTransactionConfirmations: (args: GetTransactionConfirmationsParameters<TChain>) => Promise<GetTransactionConfirmationsReturnType>;
|
738
|
+
getTransactionCount: (args: GetTransactionCountParameters) => Promise<GetTransactionCountReturnType>;
|
720
739
|
getTransactionReceipt: (args: GetTransactionReceiptParameters) => Promise<GetTransactionReceiptReturnType<TChain>>;
|
721
740
|
multicall: <TContracts extends ContractConfig[], TAllowFailure extends boolean = true>(args: MulticallParameters<TContracts, TAllowFailure>) => Promise<MulticallReturnType<TContracts, TAllowFailure>>;
|
722
741
|
readContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: ReadContractParameters<TAbi, TFunctionName>) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
@@ -768,4 +787,4 @@ type PublicClient<TTransport extends Transport = Transport, TChain extends Chain
|
|
768
787
|
*/
|
769
788
|
declare function createPublicClient<TTransport extends Transport, TChain extends Chain>({ chain, key, name, transport, pollingInterval, }: PublicClientConfig<TTransport, TChain>): PublicClient<TTransport, TChain, true>;
|
770
789
|
|
771
|
-
export { writeContract as $, Account as A, BlockFormatter as B, CallParameters as C, estimateContractGas as D, EstimateGasParameters as E, FormattedBlock as F, GetBytecodeParameters as G, getBytecode as H, getStorageAt as I, JsonRpcAccount as J, multicall as K, LocalAccount as L, MulticallParameters as M, readContract as N, OnLogsFn as O, PublicClient as P, simulateContract as Q, ReadContractParameters as R, SendTransactionParameters as S, TransactionReceiptFormatter as T, watchContractEvent as U, DeployContractParameters as V, WalletClient as W, DeployContractReturnType as X, WriteContractParameters as Y, WriteContractReturnType as Z, deployContract as _, PublicClientConfig as a,
|
790
|
+
export { writeContract as $, Account as A, BlockFormatter as B, CallParameters as C, estimateContractGas as D, EstimateGasParameters as E, FormattedBlock as F, GetBytecodeParameters as G, getBytecode as H, getStorageAt as I, JsonRpcAccount as J, multicall as K, LocalAccount as L, MulticallParameters as M, readContract as N, OnLogsFn as O, PublicClient as P, simulateContract as Q, ReadContractParameters as R, SendTransactionParameters as S, TransactionReceiptFormatter as T, watchContractEvent as U, DeployContractParameters as V, WalletClient as W, DeployContractReturnType as X, WriteContractParameters as Y, WriteContractReturnType as Z, deployContract as _, PublicClientConfig as a, OnTransactionsFn as a$, GetEnsAddressParameters as a0, GetEnsNameParameters as a1, getEnsAddress as a2, getEnsName as a3, call as a4, createBlockFilter as a5, createEventFilter as a6, createPendingTransactionFilter as a7, estimateGas as a8, getBalance as a9, GetBalanceParameters as aA, GetBalanceReturnType as aB, GetBlockParameters as aC, GetBlockNumberParameters as aD, GetBlockNumberReturnType as aE, GetBlockReturnType as aF, GetBlockTransactionCountParameters as aG, GetBlockTransactionCountReturnType as aH, GetFeeHistoryParameters as aI, GetFeeHistoryReturnType as aJ, GetFilterChangesParameters as aK, GetFilterChangesReturnType as aL, GetFilterLogsParameters as aM, GetFilterLogsReturnType as aN, GetGasPriceReturnType as aO, GetTransactionParameters as aP, GetTransactionConfirmationsParameters as aQ, GetTransactionConfirmationsReturnType as aR, GetTransactionCountParameters as aS, GetTransactionCountReturnType as aT, GetTransactionReceiptParameters as aU, GetTransactionReceiptReturnType as aV, GetTransactionReturnType as aW, OnBlock as aX, OnBlockNumberFn as aY, OnBlockNumberParameter as aZ, OnBlockParameter as a_, getBlock as aa, getBlockNumber as ab, getBlockNumberCache as ac, getBlockTransactionCount as ad, getChainId as ae, getFeeHistory as af, getFilterChanges as ag, getFilterLogs as ah, getLogs as ai, getGasPrice as aj, getTransaction as ak, getTransactionConfirmations as al, getTransactionCount as am, getTransactionReceipt as an, uninstallFilter as ao, waitForTransactionReceipt as ap, watchBlockNumber as aq, watchBlocks as ar, watchEvent as as, watchPendingTransactions as at, CallReturnType as au, CreateBlockFilterReturnType as av, CreateEventFilterParameters as aw, CreateEventFilterReturnType as ax, CreatePendingTransactionFilterReturnType as ay, EstimateGasReturnType as az, WalletClientConfig as b, OnTransactionsParameter as b0, ReplacementReason as b1, ReplacementReturnType as b2, UninstallFilterParameters as b3, UninstallFilterReturnType as b4, WaitForTransactionReceiptParameters as b5, WaitForTransactionReceiptReturnType as b6, WatchBlockNumberParameters as b7, WatchBlocksParameters as b8, WatchPendingTransactionsParameters as b9, addChain as ba, getAddresses as bb, getPermissions as bc, requestAddresses as bd, requestPermissions as be, sendTransaction as bf, signMessage as bg, switchChain as bh, watchAsset as bi, AddChainParameters as bj, FormattedTransactionRequest as bk, GetPermissionsReturnType as bl, GetAddressesReturnType as bm, RequestAddressesReturnType as bn, RequestPermissionsReturnType as bo, SendTransactionReturnType as bp, SignMessageParameters as bq, SignMessageReturnType as br, SwitchChainParameters as bs, WatchAssetParameters as bt, WatchAssetReturnType as bu, createPublicClient as c, createWalletClient as d, FormattedTransactionReceipt as e, FormattedTransactionRequest$1 as f, TransactionRequestFormatter as g, defineBlock as h, defineTransactionReceipt as i, defineTransactionRequest as j, formatBlock as k, formatTransactionRequest as l, CreateContractEventFilterParameters as m, CreateContractEventFilterReturnType as n, EstimateContractGasParameters as o, EstimateContractGasReturnType as p, GetBytecodeReturnType as q, GetStorageAtParameters as r, GetStorageAtReturnType as s, MulticallReturnType as t, OnLogsParameter as u, ReadContractReturnType as v, SimulateContractParameters as w, SimulateContractReturnType as x, WatchContractEventParameters as y, createContractEventFilter as z };
|
package/dist/ens.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { a0 as GetEnsAddressParameters, a1 as GetEnsNameParameters, a2 as getEnsAddress, a3 as getEnsName } from './createPublicClient-
|
1
|
+
export { a0 as GetEnsAddressParameters, a1 as GetEnsNameParameters, a2 as getEnsAddress, a3 as getEnsName } from './createPublicClient-b12dc2b7.js';
|
2
2
|
export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
|
3
3
|
import './chain-d64be356.js';
|
4
4
|
import './eip1193-029d52f0.js';
|
package/dist/ens.js
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
7
|
-
require('./chunk-
|
6
|
+
var _chunkDEVNY3L7js = require('./chunk-DEVNY3L7.js');
|
7
|
+
require('./chunk-WW4QO23M.js');
|
8
8
|
|
9
9
|
// src/utils/ens/normalize.ts
|
10
10
|
var _idnauts46hx = require('idna-uts46-hx');
|
@@ -17,5 +17,5 @@ function normalize(name) {
|
|
17
17
|
|
18
18
|
|
19
19
|
|
20
|
-
exports.getEnsAddress =
|
20
|
+
exports.getEnsAddress = _chunkDEVNY3L7js.getEnsAddress; exports.getEnsName = _chunkDEVNY3L7js.getEnsName; exports.labelhash = _chunkDEVNY3L7js.labelhash; exports.namehash = _chunkDEVNY3L7js.namehash; exports.normalize = normalize;
|
21
21
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
package/dist/index.d.ts
CHANGED
@@ -2,10 +2,10 @@ import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './cr
|
|
2
2
|
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-8575dcd6.js';
|
3
3
|
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-d64be356.js';
|
4
4
|
export { A as AbiItem, b as AccessList, c as Block, d as BlockIdentifier, e as BlockNumber, f as BlockTag, B as ByteArray, C as Chain, g as ContractConfig, I as ExtractFormatter, F as FeeHistory, h as FeeValues, i as FeeValuesEIP1559, j as FeeValuesLegacy, J as Formatted, K as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, k as RpcBlockIdentifier, l as RpcBlockNumber, m as RpcFeeHistory, n as RpcFeeValues, o as RpcLog, p as RpcTransaction, q as RpcTransactionReceipt, r as RpcTransactionRequest, s as RpcUncle, y as Transaction, z as TransactionBase, D as TransactionEIP1559, E as TransactionEIP2930, M as TransactionFormatter, G as TransactionLegacy, T as TransactionReceipt, t as TransactionRequest, u as TransactionRequestBase, v as TransactionRequestEIP1559, w as TransactionRequestEIP2930, x as TransactionRequestLegacy, U as Uncle, N as defineTransaction, O as formatTransaction, P as transactionType } from './chain-d64be356.js';
|
5
|
-
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-
|
6
|
-
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpReturnType, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as formatEther, z as formatGwei, A as formatUnits, D as fromBytes, J as fromHex, K as fromRlp, L as getAccount, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, $ as hexToNumber, a0 as hexToString, a1 as isAddress, a2 as isAddressEqual, a3 as isBytes, a4 as isHex, a5 as keccak256, a6 as numberToBytes, a7 as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnits, ae as size, af as slice, ag as sliceBytes, ah as sliceHex, ai as stringToBytes, aj as stringToHex, ak as stringify, al as toBytes, am as toHex, an as toRlp, ao as trim } from './parseGwei-
|
5
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-ac04b47a.js';
|
6
|
+
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpReturnType, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as formatEther, z as formatGwei, A as formatUnits, D as fromBytes, J as fromHex, K as fromRlp, L as getAccount, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, $ as hexToNumber, a0 as hexToString, a1 as isAddress, a2 as isAddressEqual, a3 as isBytes, a4 as isHex, a5 as keccak256, a6 as numberToBytes, a7 as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnits, ae as size, af as slice, ag as sliceBytes, ah as sliceHex, ai as stringToBytes, aj as stringToHex, ak as stringify, al as toBytes, am as toHex, an as toRlp, ao as trim } from './parseGwei-ac04b47a.js';
|
7
7
|
import WebSocket from 'isomorphic-ws';
|
8
|
-
export { A as Account, B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, J as JsonRpcAccount, L as LocalAccount, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, W as WalletClient, b as WalletClientConfig, c as createPublicClient, d as createWalletClient, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from './createPublicClient-
|
8
|
+
export { A as Account, B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, J as JsonRpcAccount, L as LocalAccount, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, W as WalletClient, b as WalletClientConfig, c as createPublicClient, d as createWalletClient, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from './createPublicClient-b12dc2b7.js';
|
9
9
|
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-f964519b.js';
|
10
10
|
export { Address, ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
|
11
11
|
export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkDEVNY3L7js = require('./chunk-DEVNY3L7.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -234,7 +234,8 @@ var _chunkMC6HQXR7js = require('./chunk-MC6HQXR7.js');
|
|
234
234
|
|
235
235
|
|
236
236
|
|
237
|
-
|
237
|
+
|
238
|
+
var _chunkWW4QO23Mjs = require('./chunk-WW4QO23M.js');
|
238
239
|
|
239
240
|
// src/clients/transports/createTransport.ts
|
240
241
|
function createTransport({
|
@@ -248,7 +249,7 @@ function createTransport({
|
|
248
249
|
}, value) {
|
249
250
|
return {
|
250
251
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
251
|
-
request:
|
252
|
+
request: _chunkWW4QO23Mjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
252
253
|
value
|
253
254
|
};
|
254
255
|
}
|
@@ -282,7 +283,7 @@ function fallback(transports, config = {}) {
|
|
282
283
|
params
|
283
284
|
});
|
284
285
|
} catch (err) {
|
285
|
-
if (
|
286
|
+
if (_chunkWW4QO23Mjs.isDeterministicError.call(void 0, err))
|
286
287
|
throw err;
|
287
288
|
if (i === transports.length - 1)
|
288
289
|
throw err;
|
@@ -316,13 +317,13 @@ function http(url, config = {}) {
|
|
316
317
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
317
318
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
318
319
|
if (!url_)
|
319
|
-
throw new (0,
|
320
|
+
throw new (0, _chunkWW4QO23Mjs.UrlRequiredError)();
|
320
321
|
return createTransport(
|
321
322
|
{
|
322
323
|
key,
|
323
324
|
name,
|
324
325
|
async request({ method, params }) {
|
325
|
-
const { result } = await
|
326
|
+
const { result } = await _chunkWW4QO23Mjs.rpc.http(url_, {
|
326
327
|
body: {
|
327
328
|
method,
|
328
329
|
params
|
@@ -356,14 +357,14 @@ function webSocket(url, config = {}) {
|
|
356
357
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
357
358
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
358
359
|
if (!url_)
|
359
|
-
throw new (0,
|
360
|
+
throw new (0, _chunkWW4QO23Mjs.UrlRequiredError)();
|
360
361
|
return createTransport(
|
361
362
|
{
|
362
363
|
key,
|
363
364
|
name,
|
364
365
|
async request({ method, params }) {
|
365
|
-
const socket = await
|
366
|
-
const { result } = await
|
366
|
+
const socket = await _chunkWW4QO23Mjs.getSocket.call(void 0, url_);
|
367
|
+
const { result } = await _chunkWW4QO23Mjs.rpc.webSocketAsync(socket, {
|
367
368
|
body: { method, params },
|
368
369
|
timeout
|
369
370
|
});
|
@@ -376,12 +377,12 @@ function webSocket(url, config = {}) {
|
|
376
377
|
},
|
377
378
|
{
|
378
379
|
getSocket() {
|
379
|
-
return
|
380
|
+
return _chunkWW4QO23Mjs.getSocket.call(void 0, url_);
|
380
381
|
},
|
381
382
|
async subscribe({ params, onData, onError }) {
|
382
|
-
const socket = await
|
383
|
+
const socket = await _chunkWW4QO23Mjs.getSocket.call(void 0, url_);
|
383
384
|
const { result: subscriptionId } = await new Promise(
|
384
|
-
(resolve, reject) =>
|
385
|
+
(resolve, reject) => _chunkWW4QO23Mjs.rpc.webSocket(socket, {
|
385
386
|
body: {
|
386
387
|
method: "eth_subscribe",
|
387
388
|
params
|
@@ -403,7 +404,7 @@ function webSocket(url, config = {}) {
|
|
403
404
|
subscriptionId,
|
404
405
|
async unsubscribe() {
|
405
406
|
return new Promise(
|
406
|
-
(resolve, reject) =>
|
407
|
+
(resolve, reject) => _chunkWW4QO23Mjs.rpc.webSocket(socket, {
|
407
408
|
body: {
|
408
409
|
method: "eth_unsubscribe",
|
409
410
|
params: [subscriptionId]
|
@@ -459,88 +460,89 @@ function createClient({
|
|
459
460
|
|
460
461
|
// src/clients/decorators/public.ts
|
461
462
|
var publicActions = (client) => ({
|
462
|
-
call: (args) =>
|
463
|
-
createBlockFilter: () =>
|
464
|
-
createContractEventFilter: (args) =>
|
465
|
-
createEventFilter: (args) =>
|
466
|
-
createPendingTransactionFilter: () =>
|
467
|
-
estimateContractGas: (args) =>
|
468
|
-
estimateGas: (args) =>
|
469
|
-
getBalance: (args) =>
|
470
|
-
getBlock: (args) =>
|
471
|
-
getBlockNumber: (args) =>
|
472
|
-
getBlockTransactionCount: (args) =>
|
473
|
-
getBytecode: (args) =>
|
474
|
-
getChainId: () =>
|
475
|
-
getEnsAddress: (args) =>
|
476
|
-
getEnsName: (args) =>
|
477
|
-
getFeeHistory: (args) =>
|
478
|
-
getFilterChanges: (args) =>
|
479
|
-
getFilterLogs: (args) =>
|
480
|
-
getGasPrice: () =>
|
481
|
-
getLogs: (args) =>
|
482
|
-
getStorageAt: (args) =>
|
483
|
-
getTransaction: (args) =>
|
484
|
-
getTransactionConfirmations: (args) =>
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
463
|
+
call: (args) => _chunkWW4QO23Mjs.call.call(void 0, client, args),
|
464
|
+
createBlockFilter: () => _chunkWW4QO23Mjs.createBlockFilter.call(void 0, client),
|
465
|
+
createContractEventFilter: (args) => _chunkWW4QO23Mjs.createContractEventFilter.call(void 0, client, args),
|
466
|
+
createEventFilter: (args) => _chunkWW4QO23Mjs.createEventFilter.call(void 0, client, args),
|
467
|
+
createPendingTransactionFilter: () => _chunkWW4QO23Mjs.createPendingTransactionFilter.call(void 0, client),
|
468
|
+
estimateContractGas: (args) => _chunkWW4QO23Mjs.estimateContractGas.call(void 0, client, args),
|
469
|
+
estimateGas: (args) => _chunkWW4QO23Mjs.estimateGas.call(void 0, client, args),
|
470
|
+
getBalance: (args) => _chunkWW4QO23Mjs.getBalance.call(void 0, client, args),
|
471
|
+
getBlock: (args) => _chunkWW4QO23Mjs.getBlock.call(void 0, client, args),
|
472
|
+
getBlockNumber: (args) => _chunkWW4QO23Mjs.getBlockNumber.call(void 0, client, args),
|
473
|
+
getBlockTransactionCount: (args) => _chunkWW4QO23Mjs.getBlockTransactionCount.call(void 0, client, args),
|
474
|
+
getBytecode: (args) => _chunkWW4QO23Mjs.getBytecode.call(void 0, client, args),
|
475
|
+
getChainId: () => _chunkWW4QO23Mjs.getChainId.call(void 0, client),
|
476
|
+
getEnsAddress: (args) => _chunkDEVNY3L7js.getEnsAddress.call(void 0, client, args),
|
477
|
+
getEnsName: (args) => _chunkDEVNY3L7js.getEnsName.call(void 0, client, args),
|
478
|
+
getFeeHistory: (args) => _chunkWW4QO23Mjs.getFeeHistory.call(void 0, client, args),
|
479
|
+
getFilterChanges: (args) => _chunkWW4QO23Mjs.getFilterChanges.call(void 0, client, args),
|
480
|
+
getFilterLogs: (args) => _chunkWW4QO23Mjs.getFilterLogs.call(void 0, client, args),
|
481
|
+
getGasPrice: () => _chunkWW4QO23Mjs.getGasPrice.call(void 0, client),
|
482
|
+
getLogs: (args) => _chunkWW4QO23Mjs.getLogs.call(void 0, client, args),
|
483
|
+
getStorageAt: (args) => _chunkWW4QO23Mjs.getStorageAt.call(void 0, client, args),
|
484
|
+
getTransaction: (args) => _chunkWW4QO23Mjs.getTransaction.call(void 0, client, args),
|
485
|
+
getTransactionConfirmations: (args) => _chunkWW4QO23Mjs.getTransactionConfirmations.call(void 0, client, args),
|
486
|
+
getTransactionCount: (args) => _chunkWW4QO23Mjs.getTransactionCount.call(void 0, client, args),
|
487
|
+
getTransactionReceipt: (args) => _chunkWW4QO23Mjs.getTransactionReceipt.call(void 0, client, args),
|
488
|
+
multicall: (args) => _chunkWW4QO23Mjs.multicall.call(void 0, client, args),
|
489
|
+
readContract: (args) => _chunkWW4QO23Mjs.readContract.call(void 0, client, args),
|
490
|
+
simulateContract: (args) => _chunkWW4QO23Mjs.simulateContract.call(void 0, client, args),
|
491
|
+
uninstallFilter: (args) => _chunkWW4QO23Mjs.uninstallFilter.call(void 0, client, args),
|
492
|
+
waitForTransactionReceipt: (args) => _chunkWW4QO23Mjs.waitForTransactionReceipt.call(void 0, client, args),
|
493
|
+
watchBlocks: (args) => _chunkWW4QO23Mjs.watchBlocks.call(void 0, client, args),
|
494
|
+
watchBlockNumber: (args) => _chunkWW4QO23Mjs.watchBlockNumber.call(void 0, client, args),
|
495
|
+
watchContractEvent: (args) => _chunkWW4QO23Mjs.watchContractEvent.call(void 0, client, args),
|
496
|
+
watchEvent: (args) => _chunkWW4QO23Mjs.watchEvent.call(void 0, client, args),
|
497
|
+
watchPendingTransactions: (args) => _chunkWW4QO23Mjs.watchPendingTransactions.call(void 0, client, args)
|
496
498
|
});
|
497
499
|
|
498
500
|
// src/clients/decorators/test.ts
|
499
501
|
var testActions = (client) => ({
|
500
|
-
dropTransaction: (args) =>
|
501
|
-
getAutomine: () =>
|
502
|
-
getTxpoolContent: () =>
|
503
|
-
getTxpoolStatus: () =>
|
504
|
-
impersonateAccount: (args) =>
|
505
|
-
increaseTime: (args) =>
|
506
|
-
inspectTxpool: () =>
|
507
|
-
mine: (args) =>
|
508
|
-
removeBlockTimestampInterval: () =>
|
509
|
-
reset: (args) =>
|
510
|
-
revert: (args) =>
|
511
|
-
sendUnsignedTransaction: (args) =>
|
512
|
-
setAutomine: (args) =>
|
513
|
-
setBalance: (args) =>
|
514
|
-
setBlockGasLimit: (args) =>
|
515
|
-
setBlockTimestampInterval: (args) =>
|
516
|
-
setCode: (args) =>
|
517
|
-
setCoinbase: (args) =>
|
518
|
-
setIntervalMining: (args) =>
|
519
|
-
setLoggingEnabled: (args) =>
|
520
|
-
setMinGasPrice: (args) =>
|
521
|
-
setNextBlockBaseFeePerGas: (args) =>
|
522
|
-
setNextBlockTimestamp: (args) =>
|
523
|
-
setNonce: (args) =>
|
524
|
-
setRpcUrl: (args) =>
|
525
|
-
setStorageAt: (args) =>
|
526
|
-
snapshot: () =>
|
527
|
-
stopImpersonatingAccount: (args) =>
|
502
|
+
dropTransaction: (args) => _chunkWW4QO23Mjs.dropTransaction.call(void 0, client, args),
|
503
|
+
getAutomine: () => _chunkWW4QO23Mjs.getAutomine.call(void 0, client),
|
504
|
+
getTxpoolContent: () => _chunkWW4QO23Mjs.getTxpoolContent.call(void 0, client),
|
505
|
+
getTxpoolStatus: () => _chunkWW4QO23Mjs.getTxpoolStatus.call(void 0, client),
|
506
|
+
impersonateAccount: (args) => _chunkWW4QO23Mjs.impersonateAccount.call(void 0, client, args),
|
507
|
+
increaseTime: (args) => _chunkWW4QO23Mjs.increaseTime.call(void 0, client, args),
|
508
|
+
inspectTxpool: () => _chunkWW4QO23Mjs.inspectTxpool.call(void 0, client),
|
509
|
+
mine: (args) => _chunkWW4QO23Mjs.mine.call(void 0, client, args),
|
510
|
+
removeBlockTimestampInterval: () => _chunkWW4QO23Mjs.removeBlockTimestampInterval.call(void 0, client),
|
511
|
+
reset: (args) => _chunkWW4QO23Mjs.reset.call(void 0, client, args),
|
512
|
+
revert: (args) => _chunkWW4QO23Mjs.revert.call(void 0, client, args),
|
513
|
+
sendUnsignedTransaction: (args) => _chunkWW4QO23Mjs.sendUnsignedTransaction.call(void 0, client, args),
|
514
|
+
setAutomine: (args) => _chunkWW4QO23Mjs.setAutomine.call(void 0, client, args),
|
515
|
+
setBalance: (args) => _chunkWW4QO23Mjs.setBalance.call(void 0, client, args),
|
516
|
+
setBlockGasLimit: (args) => _chunkWW4QO23Mjs.setBlockGasLimit.call(void 0, client, args),
|
517
|
+
setBlockTimestampInterval: (args) => _chunkWW4QO23Mjs.setBlockTimestampInterval.call(void 0, client, args),
|
518
|
+
setCode: (args) => _chunkWW4QO23Mjs.setCode.call(void 0, client, args),
|
519
|
+
setCoinbase: (args) => _chunkWW4QO23Mjs.setCoinbase.call(void 0, client, args),
|
520
|
+
setIntervalMining: (args) => _chunkWW4QO23Mjs.setIntervalMining.call(void 0, client, args),
|
521
|
+
setLoggingEnabled: (args) => _chunkWW4QO23Mjs.setLoggingEnabled.call(void 0, client, args),
|
522
|
+
setMinGasPrice: (args) => _chunkWW4QO23Mjs.setMinGasPrice.call(void 0, client, args),
|
523
|
+
setNextBlockBaseFeePerGas: (args) => _chunkWW4QO23Mjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
524
|
+
setNextBlockTimestamp: (args) => _chunkWW4QO23Mjs.setNextBlockTimestamp.call(void 0, client, args),
|
525
|
+
setNonce: (args) => _chunkWW4QO23Mjs.setNonce.call(void 0, client, args),
|
526
|
+
setRpcUrl: (args) => _chunkWW4QO23Mjs.setRpcUrl.call(void 0, client, args),
|
527
|
+
setStorageAt: (args) => _chunkWW4QO23Mjs.setStorageAt.call(void 0, client, args),
|
528
|
+
snapshot: () => _chunkWW4QO23Mjs.snapshot.call(void 0, client),
|
529
|
+
stopImpersonatingAccount: (args) => _chunkWW4QO23Mjs.stopImpersonatingAccount.call(void 0, client, args)
|
528
530
|
});
|
529
531
|
|
530
532
|
// src/clients/decorators/wallet.ts
|
531
533
|
var walletActions = (client) => ({
|
532
|
-
addChain: (args) =>
|
533
|
-
deployContract: (args) =>
|
534
|
-
getAddresses: () =>
|
535
|
-
getChainId: () =>
|
536
|
-
getPermissions: () =>
|
537
|
-
requestAddresses: () =>
|
538
|
-
requestPermissions: (args) =>
|
539
|
-
sendTransaction: (args) =>
|
540
|
-
signMessage: (args) =>
|
541
|
-
switchChain: (args) =>
|
542
|
-
watchAsset: (args) =>
|
543
|
-
writeContract: (args) =>
|
534
|
+
addChain: (args) => _chunkWW4QO23Mjs.addChain.call(void 0, client, args),
|
535
|
+
deployContract: (args) => _chunkWW4QO23Mjs.deployContract.call(void 0, client, args),
|
536
|
+
getAddresses: () => _chunkWW4QO23Mjs.getAddresses.call(void 0, client),
|
537
|
+
getChainId: () => _chunkWW4QO23Mjs.getChainId.call(void 0, client),
|
538
|
+
getPermissions: () => _chunkWW4QO23Mjs.getPermissions.call(void 0, client),
|
539
|
+
requestAddresses: () => _chunkWW4QO23Mjs.requestAddresses.call(void 0, client),
|
540
|
+
requestPermissions: (args) => _chunkWW4QO23Mjs.requestPermissions.call(void 0, client, args),
|
541
|
+
sendTransaction: (args) => _chunkWW4QO23Mjs.sendTransaction.call(void 0, client, args),
|
542
|
+
signMessage: (args) => _chunkWW4QO23Mjs.signMessage.call(void 0, client, args),
|
543
|
+
switchChain: (args) => _chunkWW4QO23Mjs.switchChain.call(void 0, client, args),
|
544
|
+
watchAsset: (args) => _chunkWW4QO23Mjs.watchAsset.call(void 0, client, args),
|
545
|
+
writeContract: (args) => _chunkWW4QO23Mjs.writeContract.call(void 0, client, args)
|
544
546
|
});
|
545
547
|
|
546
548
|
// src/clients/createPublicClient.ts
|
@@ -776,5 +778,5 @@ function createWalletClient({
|
|
776
778
|
|
777
779
|
|
778
780
|
|
779
|
-
exports.AbiConstructorNotFoundError = _chunkZ62X7UMWjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkZ62X7UMWjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkZ62X7UMWjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkZ62X7UMWjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkZ62X7UMWjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkZ62X7UMWjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkZ62X7UMWjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkZ62X7UMWjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkZ62X7UMWjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkZ62X7UMWjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkZ62X7UMWjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkZ62X7UMWjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkZ62X7UMWjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkZ62X7UMWjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkZ62X7UMWjs.BaseError; exports.BlockNotFoundError = _chunkZ62X7UMWjs.BlockNotFoundError; exports.CallExecutionError = _chunkZ62X7UMWjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkZ62X7UMWjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkZ62X7UMWjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkZ62X7UMWjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkZ62X7UMWjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkZ62X7UMWjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkZ62X7UMWjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkZ62X7UMWjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkZ62X7UMWjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkZ62X7UMWjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkZ62X7UMWjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkZ62X7UMWjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkZ62X7UMWjs.HttpRequestError; exports.InsufficientFundsError = _chunkZ62X7UMWjs.InsufficientFundsError; exports.InternalRpcError = _chunkZ62X7UMWjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkZ62X7UMWjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkZ62X7UMWjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkZ62X7UMWjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkZ62X7UMWjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkZ62X7UMWjs.InvalidAddressError; exports.InvalidArrayError = _chunkZ62X7UMWjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkZ62X7UMWjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkZ62X7UMWjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkZ62X7UMWjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkZ62X7UMWjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkZ62X7UMWjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkZ62X7UMWjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkZ62X7UMWjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkZ62X7UMWjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkZ62X7UMWjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkZ62X7UMWjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkZ62X7UMWjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkZ62X7UMWjs.NonceMaxValueError; exports.NonceTooHighError = _chunkZ62X7UMWjs.NonceTooHighError; exports.NonceTooLowError = _chunkZ62X7UMWjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkZ62X7UMWjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkZ62X7UMWjs.ParseRpcError; exports.RawContractError = _chunkZ62X7UMWjs.RawContractError; exports.RequestError = _chunkZ62X7UMWjs.RequestError; exports.ResourceNotFoundRpcError = _chunkZ62X7UMWjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkZ62X7UMWjs.ResourceUnavailableRpcError; exports.RpcError = _chunkZ62X7UMWjs.RpcError; exports.RpcRequestError = _chunkZ62X7UMWjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkZ62X7UMWjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkZ62X7UMWjs.SwitchChainError; exports.TimeoutError = _chunkZ62X7UMWjs.TimeoutError; exports.TipAboveFeeCapError = _chunkZ62X7UMWjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkZ62X7UMWjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkZ62X7UMWjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkZ62X7UMWjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkZ62X7UMWjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkZ62X7UMWjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkZ62X7UMWjs.UnknownNodeError; exports.UnknownRpcError = _chunkZ62X7UMWjs.UnknownRpcError; exports.UrlRequiredError = _chunkZ62X7UMWjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkZ62X7UMWjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkZ62X7UMWjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkZ62X7UMWjs.WebSocketRequestError; exports.boolToBytes = _chunkZ62X7UMWjs.boolToBytes; exports.boolToHex = _chunkZ62X7UMWjs.boolToHex; exports.bytesToBigint = _chunkZ62X7UMWjs.bytesToBigint; exports.bytesToBool = _chunkZ62X7UMWjs.bytesToBool; exports.bytesToHex = _chunkZ62X7UMWjs.bytesToHex; exports.bytesToNumber = _chunkZ62X7UMWjs.bytesToNumber; exports.bytesToString = _chunkZ62X7UMWjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkZ62X7UMWjs.decodeAbiParameters; exports.decodeErrorResult = _chunkZ62X7UMWjs.decodeErrorResult; exports.decodeEventLog = _chunkZ62X7UMWjs.decodeEventLog; exports.decodeFunctionData = _chunkZ62X7UMWjs.decodeFunctionData; exports.decodeFunctionResult = _chunkZ62X7UMWjs.decodeFunctionResult; exports.defineBlock = _chunkZ62X7UMWjs.defineBlock; exports.defineChain = _chunkZ62X7UMWjs.defineChain; exports.defineTransaction = _chunkZ62X7UMWjs.defineTransaction; exports.defineTransactionReceipt = _chunkZ62X7UMWjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkZ62X7UMWjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkZ62X7UMWjs.encodeAbiParameters; exports.encodeDeployData = _chunkZ62X7UMWjs.encodeDeployData; exports.encodeErrorResult = _chunkZ62X7UMWjs.encodeErrorResult; exports.encodeEventTopics = _chunkZ62X7UMWjs.encodeEventTopics; exports.encodeFunctionData = _chunkZ62X7UMWjs.encodeFunctionData; exports.encodeFunctionResult = _chunkZ62X7UMWjs.encodeFunctionResult; exports.encodePacked = _chunkZ62X7UMWjs.encodePacked; exports.etherUnits = _chunkZ62X7UMWjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkZ62X7UMWjs.formatBlock; exports.formatEther = _chunkZ62X7UMWjs.formatEther; exports.formatGwei = _chunkZ62X7UMWjs.formatGwei; exports.formatTransaction = _chunkZ62X7UMWjs.formatTransaction; exports.formatTransactionRequest = _chunkZ62X7UMWjs.formatTransactionRequest; exports.formatUnits = _chunkZ62X7UMWjs.formatUnits; exports.fromBytes = _chunkZ62X7UMWjs.fromBytes; exports.fromHex = _chunkZ62X7UMWjs.fromHex; exports.fromRlp = _chunkZ62X7UMWjs.fromRlp; exports.getAbiItem = _chunkZ62X7UMWjs.getAbiItem; exports.getAccount = _chunkZ62X7UMWjs.getAccount; exports.getAddress = _chunkZ62X7UMWjs.getAddress; exports.getContractAddress = _chunkZ62X7UMWjs.getContractAddress; exports.getContractError = _chunkZ62X7UMWjs.getContractError; exports.getCreate2Address = _chunkZ62X7UMWjs.getCreate2Address; exports.getCreateAddress = _chunkZ62X7UMWjs.getCreateAddress; exports.getEventSelector = _chunkZ62X7UMWjs.getEventSelector; exports.getFunctionSelector = _chunkZ62X7UMWjs.getFunctionSelector; exports.gweiUnits = _chunkZ62X7UMWjs.gweiUnits; exports.hexToBigInt = _chunkZ62X7UMWjs.hexToBigInt; exports.hexToBool = _chunkZ62X7UMWjs.hexToBool; exports.hexToBytes = _chunkZ62X7UMWjs.hexToBytes; exports.hexToNumber = _chunkZ62X7UMWjs.hexToNumber; exports.hexToString = _chunkZ62X7UMWjs.hexToString; exports.http = http; exports.isAddress = _chunkZ62X7UMWjs.isAddress; exports.isAddressEqual = _chunkZ62X7UMWjs.isAddressEqual; exports.isBytes = _chunkZ62X7UMWjs.isBytes; exports.isHex = _chunkZ62X7UMWjs.isHex; exports.keccak256 = _chunkZ62X7UMWjs.keccak256; exports.labelhash = _chunkMC6HQXR7js.labelhash; exports.multicall3Abi = _chunkZ62X7UMWjs.multicall3Abi; exports.namehash = _chunkMC6HQXR7js.namehash; exports.numberToBytes = _chunkZ62X7UMWjs.numberToBytes; exports.numberToHex = _chunkZ62X7UMWjs.numberToHex; exports.pad = _chunkZ62X7UMWjs.pad; exports.padBytes = _chunkZ62X7UMWjs.padBytes; exports.padHex = _chunkZ62X7UMWjs.padHex; exports.parseAbi = _chunkZ62X7UMWjs.parseAbi; exports.parseAbiItem = _chunkZ62X7UMWjs.parseAbiItem; exports.parseAbiParameter = _chunkZ62X7UMWjs.parseAbiParameter; exports.parseAbiParameters = _chunkZ62X7UMWjs.parseAbiParameters; exports.parseEther = _chunkZ62X7UMWjs.parseEther; exports.parseGwei = _chunkZ62X7UMWjs.parseGwei; exports.parseUnits = _chunkZ62X7UMWjs.parseUnits; exports.size = _chunkZ62X7UMWjs.size; exports.slice = _chunkZ62X7UMWjs.slice; exports.sliceBytes = _chunkZ62X7UMWjs.sliceBytes; exports.sliceHex = _chunkZ62X7UMWjs.sliceHex; exports.stringToBytes = _chunkZ62X7UMWjs.stringToBytes; exports.stringToHex = _chunkZ62X7UMWjs.stringToHex; exports.stringify = _chunkZ62X7UMWjs.stringify; exports.toBytes = _chunkZ62X7UMWjs.toBytes; exports.toHex = _chunkZ62X7UMWjs.toHex; exports.toRlp = _chunkZ62X7UMWjs.toRlp; exports.transactionType = _chunkZ62X7UMWjs.transactionType; exports.trim = _chunkZ62X7UMWjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkZ62X7UMWjs.weiUnits;
|
781
|
+
exports.AbiConstructorNotFoundError = _chunkWW4QO23Mjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkWW4QO23Mjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkWW4QO23Mjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkWW4QO23Mjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkWW4QO23Mjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkWW4QO23Mjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkWW4QO23Mjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkWW4QO23Mjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkWW4QO23Mjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkWW4QO23Mjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkWW4QO23Mjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkWW4QO23Mjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkWW4QO23Mjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkWW4QO23Mjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkWW4QO23Mjs.BaseError; exports.BlockNotFoundError = _chunkWW4QO23Mjs.BlockNotFoundError; exports.CallExecutionError = _chunkWW4QO23Mjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkWW4QO23Mjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkWW4QO23Mjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkWW4QO23Mjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkWW4QO23Mjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkWW4QO23Mjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkWW4QO23Mjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkWW4QO23Mjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkWW4QO23Mjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkWW4QO23Mjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkWW4QO23Mjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkWW4QO23Mjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkWW4QO23Mjs.HttpRequestError; exports.InsufficientFundsError = _chunkWW4QO23Mjs.InsufficientFundsError; exports.InternalRpcError = _chunkWW4QO23Mjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkWW4QO23Mjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkWW4QO23Mjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkWW4QO23Mjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkWW4QO23Mjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkWW4QO23Mjs.InvalidAddressError; exports.InvalidArrayError = _chunkWW4QO23Mjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkWW4QO23Mjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkWW4QO23Mjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkWW4QO23Mjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkWW4QO23Mjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkWW4QO23Mjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkWW4QO23Mjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkWW4QO23Mjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkWW4QO23Mjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkWW4QO23Mjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkWW4QO23Mjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkWW4QO23Mjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkWW4QO23Mjs.NonceMaxValueError; exports.NonceTooHighError = _chunkWW4QO23Mjs.NonceTooHighError; exports.NonceTooLowError = _chunkWW4QO23Mjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkWW4QO23Mjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkWW4QO23Mjs.ParseRpcError; exports.RawContractError = _chunkWW4QO23Mjs.RawContractError; exports.RequestError = _chunkWW4QO23Mjs.RequestError; exports.ResourceNotFoundRpcError = _chunkWW4QO23Mjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkWW4QO23Mjs.ResourceUnavailableRpcError; exports.RpcError = _chunkWW4QO23Mjs.RpcError; exports.RpcRequestError = _chunkWW4QO23Mjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkWW4QO23Mjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkWW4QO23Mjs.SwitchChainError; exports.TimeoutError = _chunkWW4QO23Mjs.TimeoutError; exports.TipAboveFeeCapError = _chunkWW4QO23Mjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkWW4QO23Mjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkWW4QO23Mjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkWW4QO23Mjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkWW4QO23Mjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkWW4QO23Mjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkWW4QO23Mjs.UnknownNodeError; exports.UnknownRpcError = _chunkWW4QO23Mjs.UnknownRpcError; exports.UrlRequiredError = _chunkWW4QO23Mjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkWW4QO23Mjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkWW4QO23Mjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkWW4QO23Mjs.WebSocketRequestError; exports.boolToBytes = _chunkWW4QO23Mjs.boolToBytes; exports.boolToHex = _chunkWW4QO23Mjs.boolToHex; exports.bytesToBigint = _chunkWW4QO23Mjs.bytesToBigint; exports.bytesToBool = _chunkWW4QO23Mjs.bytesToBool; exports.bytesToHex = _chunkWW4QO23Mjs.bytesToHex; exports.bytesToNumber = _chunkWW4QO23Mjs.bytesToNumber; exports.bytesToString = _chunkWW4QO23Mjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkWW4QO23Mjs.decodeAbiParameters; exports.decodeErrorResult = _chunkWW4QO23Mjs.decodeErrorResult; exports.decodeEventLog = _chunkWW4QO23Mjs.decodeEventLog; exports.decodeFunctionData = _chunkWW4QO23Mjs.decodeFunctionData; exports.decodeFunctionResult = _chunkWW4QO23Mjs.decodeFunctionResult; exports.defineBlock = _chunkWW4QO23Mjs.defineBlock; exports.defineChain = _chunkWW4QO23Mjs.defineChain; exports.defineTransaction = _chunkWW4QO23Mjs.defineTransaction; exports.defineTransactionReceipt = _chunkWW4QO23Mjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkWW4QO23Mjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkWW4QO23Mjs.encodeAbiParameters; exports.encodeDeployData = _chunkWW4QO23Mjs.encodeDeployData; exports.encodeErrorResult = _chunkWW4QO23Mjs.encodeErrorResult; exports.encodeEventTopics = _chunkWW4QO23Mjs.encodeEventTopics; exports.encodeFunctionData = _chunkWW4QO23Mjs.encodeFunctionData; exports.encodeFunctionResult = _chunkWW4QO23Mjs.encodeFunctionResult; exports.encodePacked = _chunkWW4QO23Mjs.encodePacked; exports.etherUnits = _chunkWW4QO23Mjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkWW4QO23Mjs.formatBlock; exports.formatEther = _chunkWW4QO23Mjs.formatEther; exports.formatGwei = _chunkWW4QO23Mjs.formatGwei; exports.formatTransaction = _chunkWW4QO23Mjs.formatTransaction; exports.formatTransactionRequest = _chunkWW4QO23Mjs.formatTransactionRequest; exports.formatUnits = _chunkWW4QO23Mjs.formatUnits; exports.fromBytes = _chunkWW4QO23Mjs.fromBytes; exports.fromHex = _chunkWW4QO23Mjs.fromHex; exports.fromRlp = _chunkWW4QO23Mjs.fromRlp; exports.getAbiItem = _chunkWW4QO23Mjs.getAbiItem; exports.getAccount = _chunkWW4QO23Mjs.getAccount; exports.getAddress = _chunkWW4QO23Mjs.getAddress; exports.getContractAddress = _chunkWW4QO23Mjs.getContractAddress; exports.getContractError = _chunkWW4QO23Mjs.getContractError; exports.getCreate2Address = _chunkWW4QO23Mjs.getCreate2Address; exports.getCreateAddress = _chunkWW4QO23Mjs.getCreateAddress; exports.getEventSelector = _chunkWW4QO23Mjs.getEventSelector; exports.getFunctionSelector = _chunkWW4QO23Mjs.getFunctionSelector; exports.gweiUnits = _chunkWW4QO23Mjs.gweiUnits; exports.hexToBigInt = _chunkWW4QO23Mjs.hexToBigInt; exports.hexToBool = _chunkWW4QO23Mjs.hexToBool; exports.hexToBytes = _chunkWW4QO23Mjs.hexToBytes; exports.hexToNumber = _chunkWW4QO23Mjs.hexToNumber; exports.hexToString = _chunkWW4QO23Mjs.hexToString; exports.http = http; exports.isAddress = _chunkWW4QO23Mjs.isAddress; exports.isAddressEqual = _chunkWW4QO23Mjs.isAddressEqual; exports.isBytes = _chunkWW4QO23Mjs.isBytes; exports.isHex = _chunkWW4QO23Mjs.isHex; exports.keccak256 = _chunkWW4QO23Mjs.keccak256; exports.labelhash = _chunkDEVNY3L7js.labelhash; exports.multicall3Abi = _chunkWW4QO23Mjs.multicall3Abi; exports.namehash = _chunkDEVNY3L7js.namehash; exports.numberToBytes = _chunkWW4QO23Mjs.numberToBytes; exports.numberToHex = _chunkWW4QO23Mjs.numberToHex; exports.pad = _chunkWW4QO23Mjs.pad; exports.padBytes = _chunkWW4QO23Mjs.padBytes; exports.padHex = _chunkWW4QO23Mjs.padHex; exports.parseAbi = _chunkWW4QO23Mjs.parseAbi; exports.parseAbiItem = _chunkWW4QO23Mjs.parseAbiItem; exports.parseAbiParameter = _chunkWW4QO23Mjs.parseAbiParameter; exports.parseAbiParameters = _chunkWW4QO23Mjs.parseAbiParameters; exports.parseEther = _chunkWW4QO23Mjs.parseEther; exports.parseGwei = _chunkWW4QO23Mjs.parseGwei; exports.parseUnits = _chunkWW4QO23Mjs.parseUnits; exports.size = _chunkWW4QO23Mjs.size; exports.slice = _chunkWW4QO23Mjs.slice; exports.sliceBytes = _chunkWW4QO23Mjs.sliceBytes; exports.sliceHex = _chunkWW4QO23Mjs.sliceHex; exports.stringToBytes = _chunkWW4QO23Mjs.stringToBytes; exports.stringToHex = _chunkWW4QO23Mjs.stringToHex; exports.stringify = _chunkWW4QO23Mjs.stringify; exports.toBytes = _chunkWW4QO23Mjs.toBytes; exports.toHex = _chunkWW4QO23Mjs.toHex; exports.toRlp = _chunkWW4QO23Mjs.toRlp; exports.transactionType = _chunkWW4QO23Mjs.transactionType; exports.trim = _chunkWW4QO23Mjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkWW4QO23Mjs.weiUnits;
|
780
782
|
//# sourceMappingURL=index.js.map
|