viem 0.2.0-0-2-0.20230330T023229 → 0.2.0-0-2-0.20230403T055238
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/dist/abi.d.ts +3 -3
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/accounts/index.d.ts +4 -4
- package/dist/accounts/index.js +16 -16
- package/dist/accounts/index.mjs +2 -2
- package/dist/{chain-9da1e6b6.d.ts → chain-5507c6f0.d.ts} +25 -14
- package/dist/{chain-b53ed5d9.d.ts → chain-fe47467d.d.ts} +1 -1
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +89 -89
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-S4GWZ3LJ.mjs → chunk-EMXJKA5P.mjs} +2 -2
- package/dist/{chunk-B7WOV4RY.mjs → chunk-KILBOPDD.mjs} +738 -19
- package/dist/chunk-KILBOPDD.mjs.map +1 -0
- package/dist/{chunk-GNHXOZCH.js → chunk-KQOOAYBY.js} +6 -6
- package/dist/{chunk-2ESQNALV.js → chunk-PWUNCH5G.js} +762 -43
- package/dist/chunk-PWUNCH5G.js.map +1 -0
- package/dist/contract.d.ts +8 -8
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/{createTransport-e031366b.d.ts → createTransport-21a0d2b3.d.ts} +2 -2
- package/dist/{eip1193-e79469af.d.ts → eip1193-2f3a9cd2.d.ts} +1 -1
- package/dist/{encodeFunctionResult-d206ceb9.d.ts → encodeFunctionResult-c5185b98.d.ts} +1 -1
- package/dist/{encodePacked-b36ce88a.d.ts → encodePacked-98f67d09.d.ts} +1 -1
- package/dist/ens.d.ts +5 -5
- package/dist/ens.js +8 -3
- package/dist/ens.js.map +1 -1
- package/dist/ens.mjs +7 -2
- package/dist/ens.mjs.map +1 -1
- package/dist/ethers.d.ts +2 -2
- package/dist/ethers.js +4 -4
- package/dist/ethers.mjs +2 -2
- package/dist/{formatAbiItem-a7a3fb0f.d.ts → formatAbiItem-56dff508.d.ts} +1 -1
- package/dist/{getAbiItem-5e8b01de.d.ts → getAbiItem-bfba73d1.d.ts} +1 -1
- package/dist/{watchPendingTransactions-53449c4e.d.ts → getEnsResolver-9e26c596.d.ts} +177 -127
- package/dist/index.d.ts +126 -17
- package/dist/index.js +100 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-7678c2fa.d.ts → parseGwei-d2147f8b.d.ts} +5 -5
- package/dist/public.d.ts +5 -5
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/{publicKeyToAddress-87b9856c.d.ts → publicKeyToAddress-623eb398.d.ts} +2 -2
- package/dist/{test-68dbda5b.d.ts → test-b67569fe.d.ts} +3 -3
- package/dist/test.d.ts +5 -5
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/{typedData-8b24374d.d.ts → typedData-46b4d81f.d.ts} +1 -1
- package/dist/utils/index.d.ts +15 -15
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +5 -5
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/dist/window.d.ts +2 -2
- package/package.json +3 -2
- package/dist/chunk-2ESQNALV.js.map +0 -1
- package/dist/chunk-ASAFFZMD.js +0 -186
- package/dist/chunk-ASAFFZMD.js.map +0 -1
- package/dist/chunk-B7WOV4RY.mjs.map +0 -1
- package/dist/chunk-RFOQRRYW.mjs +0 -186
- package/dist/chunk-RFOQRRYW.mjs.map +0 -1
- /package/dist/{chunk-S4GWZ3LJ.mjs.map → chunk-EMXJKA5P.mjs.map} +0 -0
- /package/dist/{chunk-GNHXOZCH.js.map → chunk-KQOOAYBY.js.map} +0 -0
package/dist/index.d.ts
CHANGED
@@ -1,22 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
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, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, h as InvalidLegacyVError, N as NonceMaxValueError, i as NonceTooHighError, j as NonceTooLowError, k as RawContractError, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, T as TipAboveFeeCapError, D as ToRlpReturnType, l as TransactionExecutionError, n as TransactionNotFoundError, o as TransactionReceiptNotFoundError, m as TransactionTypeNotSupportedError, U as UnknownNodeError, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, W as WaitForTransactionReceiptTimeoutError, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aI as recoverTypedDataAddress, aJ as serializeTransaction, aK as size, aL as slice, aM as sliceBytes, aN as sliceHex, aO as stringToBytes, aP as stringToHex, aQ as stringify, aR as toBytes, aS as toHex, aT as toRlp, aU as trim, aV as validateTypedData, aW as verifyMessage, aX as verifyTypedData } from './parseGwei-7678c2fa.js';
|
1
|
+
import { P as PublicClient, W as WalletClient, R as ReadContractParameters, a as ReadContractReturnType, E as EstimateContractGasParameters, b as EstimateContractGasReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, d as WriteContractParameters, e as WriteContractReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType } from './getEnsResolver-9e26c596.js';
|
2
|
+
export { A as AddChainParameters, aN as AssetGateway, aO as AssetGatewayUrls, aU as BlockFormatter, i as CallParameters, j as CallReturnType, k as CreateBlockFilterReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, l as CreateEventFilterParameters, m as CreateEventFilterReturnType, n as CreatePendingTransactionFilterReturnType, D as DeployContractParameters, o as DeployContractReturnType, p as EstimateGasParameters, q as EstimateGasReturnType, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, G as GetAddressesReturnType, r as GetBalanceParameters, s as GetBalanceReturnType, t as GetBlockNumberParameters, u as GetBlockNumberReturnType, v as GetBlockParameters, w as GetBlockReturnType, x as GetBlockTransactionCountParameters, y as GetBlockTransactionCountReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, F as GetChainIdReturnType, H as GetEnsAddressParameters, I as GetEnsAddressReturnType, J as GetEnsNameParameters, K as GetEnsNameReturnType, L as GetEnsResolverParameters, M as GetEnsResolverReturnType, N as GetFeeHistoryParameters, O as GetFeeHistoryReturnType, Q as GetFilterChangesParameters, T as GetFilterChangesReturnType, U as GetFilterLogsParameters, V as GetFilterLogsReturnType, X as GetGasPriceReturnType, Y as GetLogsParameters, Z as GetLogsReturnType, _ as GetPermissionsReturnType, $ as GetStorageAtParameters, a0 as GetStorageAtReturnType, a1 as GetTransactionConfirmationsParameters, a3 as GetTransactionConfirmationsReturnType, a2 as GetTransactionCountParameters, a4 as GetTransactionCountReturnType, a5 as GetTransactionParameters, a6 as GetTransactionReceiptParameters, a7 as GetTransactionReceiptReturnType, a8 as GetTransactionReturnType, aP as GetTransportConfig, aQ as MulticallContracts, a9 as MulticallParameters, aR as MulticallResult, aS as MulticallResults, aa as MulticallReturnType, ab as OnBlock, ac as OnBlockNumberFn, ad as OnBlockNumberParameter, ae as OnBlockParameter, af as OnLogsFn, ag as OnLogsParameter, ah as OnTransactionsFn, ai as OnTransactionsParameter, aT as ParseAccount, P as PublicClient, aJ as PublicClientConfig, R as ReadContractParameters, a as ReadContractReturnType, aj as ReplacementReason, ak as ReplacementReturnType, al as RequestAddressesReturnType, an as RequestPermissionsParameters, am as RequestPermissionsReturnType, ao as SendTransactionParameters, ap as SendTransactionReturnType, aq as SignMessageParameters, ar as SignMessageReturnType, as as SignTypedDataParameters, at as SignTypedDataReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, au as SwitchChainParameters, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, av as UninstallFilterParameters, aw as UninstallFilterReturnType, ax as WaitForTransactionReceiptParameters, ay as WaitForTransactionReceiptReturnType, W as WalletClient, aK as WalletClientConfig, az as WatchAssetParameters, aA as WatchAssetReturnType, aB as WatchBlockNumberParameters, aC as WatchBlockNumberReturnType, aD as WatchBlocksParameters, aE as WatchBlocksReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType, aF as WatchEventParameters, aG as WatchEventReturnType, aH as WatchPendingTransactionsParameters, aI as WatchPendingTransactionsReturnType, d as WriteContractParameters, e as WriteContractReturnType, aL as createPublicClient, aM as createWalletClient, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from './getEnsResolver-9e26c596.js';
|
3
|
+
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createTransport-21a0d2b3.js';
|
4
|
+
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createTransport-21a0d2b3.js';
|
5
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-d2147f8b.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, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, h as InvalidLegacyVError, N as NonceMaxValueError, i as NonceTooHighError, j as NonceTooLowError, k as RawContractError, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, T as TipAboveFeeCapError, D as ToRlpReturnType, l as TransactionExecutionError, n as TransactionNotFoundError, o as TransactionReceiptNotFoundError, m as TransactionTypeNotSupportedError, U as UnknownNodeError, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, W as WaitForTransactionReceiptTimeoutError, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aI as recoverTypedDataAddress, aJ as serializeTransaction, aK as size, aL as slice, aM as sliceBytes, aN as sliceHex, aO as stringToBytes, aP as stringToHex, aQ as stringify, aR as toBytes, aS as toHex, aT as toRlp, aU as trim, aV as validateTypedData, aW as verifyMessage, aX as verifyTypedData } from './parseGwei-d2147f8b.js';
|
8
7
|
import WebSocket from 'isomorphic-ws';
|
9
|
-
import { H as Hex, A as AbiItem, a as Hash, C as Chain, B as ByteArray } from './chain-
|
10
|
-
export { A as AbiItem,
|
11
|
-
export { D as DropTransactionParameters, I as ImpersonateAccountParameters, a as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, b as RevertParameters, S as SendUnsignedTransactionParameters, c as SendUnsignedTransactionReturnType, d as SetBalanceParameters, e as SetBlockGasLimitParameters, f as SetBlockTimestampIntervalParameters, g as SetCodeParameters, h as SetCoinbaseParameters, i as SetIntervalMiningParameters, j as SetMinGasPriceParameters, k as SetNextBlockBaseFeePerGasParameters, l as SetNextBlockTimestampParameters, m as SetNonceParameters, n as SetStorageAtParameters, o as StopImpersonatingAccountParameters, T as TestClient, p as TestClientConfig, q as createTestClient } from './test-
|
8
|
+
import { H as Hex, A as AbiItem, a as Hash, C as Chain, B as ByteArray, I as IsNarrowable, P as Prettify, b as IsNever, c as IsUndefined, d as AbiEventParametersToPrimitiveTypes, M as MaybeExtractEventArgsFromAbi } from './chain-5507c6f0.js';
|
9
|
+
export { A as AbiItem, e as AccessList, f as Block, g as BlockIdentifier, h as BlockNumber, i as BlockTag, B as ByteArray, C as Chain, j as ContractFunctionConfig, k as ContractFunctionResult, aa as ExtractFormatter, F as FeeHistory, l as FeeValues, m as FeeValuesEIP1559, n as FeeValuesLegacy, ab as Formatted, ac as FormattedTransaction, G as GetConstructorArgs, o as GetErrorArgs, p as GetEventArgs, q as GetEventArgsFromTopics, r as GetFunctionArgs, a as Hash, H as Hex, s as InferErrorName, t as InferEventName, u as InferFunctionName, v as InferItemName, L as Log, R as RpcBlock, w as RpcBlockIdentifier, x as RpcBlockNumber, y as RpcFeeHistory, z as RpcFeeValues, D as RpcLog, E as RpcTransaction, J as RpcTransactionReceipt, K as RpcTransactionRequest, N as RpcUncle, T as Transaction, O as TransactionBase, Q as TransactionEIP1559, S as TransactionEIP2930, ad as TransactionFormatter, U as TransactionLegacy, V as TransactionReceipt, W as TransactionRequest, X as TransactionRequestBase, Y as TransactionRequestEIP1559, Z as TransactionRequestEIP2930, _ as TransactionRequestLegacy, $ as TransactionSerializable, a0 as TransactionSerializableBase, a1 as TransactionSerializableEIP1559, a2 as TransactionSerializableEIP2930, a3 as TransactionSerializableLegacy, a4 as TransactionSerialized, a5 as TransactionSerializedEIP1559, a6 as TransactionSerializedEIP2930, a7 as TransactionSerializedLegacy, a8 as TransactionType, a9 as Uncle, ae as defineTransaction, af as formatTransaction, ag as transactionType } from './chain-5507c6f0.js';
|
10
|
+
export { D as DropTransactionParameters, I as ImpersonateAccountParameters, a as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, b as RevertParameters, S as SendUnsignedTransactionParameters, c as SendUnsignedTransactionReturnType, d as SetBalanceParameters, e as SetBlockGasLimitParameters, f as SetBlockTimestampIntervalParameters, g as SetCodeParameters, h as SetCoinbaseParameters, i as SetIntervalMiningParameters, j as SetMinGasPriceParameters, k as SetNextBlockBaseFeePerGasParameters, l as SetNextBlockTimestampParameters, m as SetNonceParameters, n as SetStorageAtParameters, o as StopImpersonatingAccountParameters, T as TestClient, p as TestClientConfig, q as createTestClient } from './test-b67569fe.js';
|
11
|
+
import { AbiParameter, Abi, Narrow, Address, ExtractAbiEventNames, ExtractAbiFunctionNames, AbiFunction, ExtractAbiFunction, AbiParametersToPrimitiveTypes, AbiEvent, ExtractAbiEvent } from 'abitype';
|
12
|
+
export { Address, ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
|
13
|
+
import { A as Account } from './typedData-46b4d81f.js';
|
14
|
+
export { A as Account, a as AccountSource, C as CustomSource, H as HDAccount, b as HDOptions, J as JsonRpcAccount, L as LocalAccount } from './typedData-46b4d81f.js';
|
12
15
|
export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
|
13
|
-
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-
|
14
|
-
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-
|
15
|
-
export { e as encodePacked } from './encodePacked-
|
16
|
-
export {
|
17
|
-
export { d as defineChain } from './chain-b53ed5d9.js';
|
16
|
+
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-bfba73d1.js';
|
17
|
+
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-c5185b98.js';
|
18
|
+
export { e as encodePacked } from './encodePacked-98f67d09.js';
|
19
|
+
export { d as defineChain } from './chain-fe47467d.js';
|
18
20
|
export { HDKey } from '@scure/bip32';
|
19
|
-
import './eip1193-
|
21
|
+
import './eip1193-2f3a9cd2.js';
|
20
22
|
import '@wagmi/chains';
|
21
23
|
|
22
24
|
declare class AbiConstructorNotFoundError extends BaseError {
|
@@ -214,6 +216,13 @@ declare class OffsetOutOfBoundsError extends BaseError {
|
|
214
216
|
});
|
215
217
|
}
|
216
218
|
|
219
|
+
declare class EnsAvatarUriResolutionError extends BaseError {
|
220
|
+
name: string;
|
221
|
+
constructor({ uri }: {
|
222
|
+
uri: string;
|
223
|
+
});
|
224
|
+
}
|
225
|
+
|
217
226
|
declare class FilterTypeNotSupportedError extends BaseError {
|
218
227
|
name: string;
|
219
228
|
constructor(type: string);
|
@@ -499,6 +508,106 @@ declare function webSocket(
|
|
499
508
|
/** URL of the JSON-RPC API. Defaults to the chain's public RPC URL. */
|
500
509
|
url?: string, config?: WebSocketTransportConfig): WebSocketTransport;
|
501
510
|
|
511
|
+
type GetContractParameters<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, TAbi extends Abi | readonly unknown[] = Abi, TPublicClient extends PublicClient<TTransport, TChain> | unknown = unknown, TWalletClient extends WalletClient<TTransport, TChain, TAccount> | unknown = unknown> = {
|
512
|
+
/** Contract ABI */
|
513
|
+
abi: Narrow<TAbi>;
|
514
|
+
/** Contract address */
|
515
|
+
address: Address;
|
516
|
+
/** Public client */
|
517
|
+
publicClient?: TPublicClient;
|
518
|
+
/** Wallet client */
|
519
|
+
walletClient?: TWalletClient;
|
520
|
+
};
|
521
|
+
type GetContractReturnType<TAbi extends Abi | readonly unknown[] = Abi, TPublicClient extends PublicClient | unknown = unknown, TWalletClient extends WalletClient | unknown = unknown, _EventNames extends string = TAbi extends Abi ? Abi extends TAbi ? string : ExtractAbiEventNames<TAbi> : string, _ReadFunctionNames extends string = TAbi extends Abi ? Abi extends TAbi ? string : ExtractAbiFunctionNames<TAbi, 'pure' | 'view'> : string, _WriteFunctionNames extends string = TAbi extends Abi ? Abi extends TAbi ? string : ExtractAbiFunctionNames<TAbi, 'nonpayable' | 'payable'> : string, _Narrowable extends boolean = IsNarrowable<TAbi, Abi>> = Prettify<(TPublicClient extends PublicClient ? (IsNever<_ReadFunctionNames> extends true ? unknown : {
|
522
|
+
/**
|
523
|
+
* Calls a read-only function on a contract, and returns the response.
|
524
|
+
*
|
525
|
+
* A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas.
|
526
|
+
*
|
527
|
+
* Internally, `read` uses a [Public Client](https://viem.sh/docs/clients/public.html) to call the [`call` action](https://viem.sh/docs/actions/public/call.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
|
528
|
+
*/
|
529
|
+
read: {
|
530
|
+
[FunctionName in _ReadFunctionNames]: GetReadFunction<_Narrowable, TAbi, FunctionName>;
|
531
|
+
};
|
532
|
+
}) & (IsNever<_WriteFunctionNames> extends true ? unknown : {
|
533
|
+
/**
|
534
|
+
* Estimates the gas necessary to complete a transaction without submitting it to the network.
|
535
|
+
*/
|
536
|
+
estimateGas: {
|
537
|
+
[FunctionName in _WriteFunctionNames]: GetEstimateFunction<_Narrowable, TPublicClient extends PublicClient ? TPublicClient['chain'] : undefined, TAbi, FunctionName>;
|
538
|
+
};
|
539
|
+
/**
|
540
|
+
* Simulates/validates a contract interaction. This is useful for retrieving return data and revert reasons of contract write functions.
|
541
|
+
*
|
542
|
+
* This function does not require gas to execute and does not change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract.html), but also supports contract write functions.
|
543
|
+
*
|
544
|
+
* Internally, `simulate` uses a [Public Client](https://viem.sh/docs/clients/public.html) to call the [`call` action](https://viem.sh/docs/actions/public/call.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
|
545
|
+
*/
|
546
|
+
simulate: {
|
547
|
+
[FunctionName in _WriteFunctionNames]: GetSimulateFunction<_Narrowable, TPublicClient extends PublicClient ? TPublicClient['chain'] : undefined, TAbi, FunctionName>;
|
548
|
+
};
|
549
|
+
}) & (IsNever<_EventNames> extends true ? unknown : {
|
550
|
+
/**
|
551
|
+
* Creates a Filter to retrieve event logs that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html) or [`getFilterLogs`](https://viem.sh/docs/actions/public/getFilterLogs.html).
|
552
|
+
*/
|
553
|
+
createEventFilter: {
|
554
|
+
[EventName in _EventNames]: GetEventFilter<_Narrowable, TAbi, EventName>;
|
555
|
+
};
|
556
|
+
/**
|
557
|
+
* Watches and returns emitted contract event logs.
|
558
|
+
*
|
559
|
+
* This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent.html#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/contract/watchContractEvent.html#onLogs).
|
560
|
+
*
|
561
|
+
* `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter.html) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs.html) instead.
|
562
|
+
*/
|
563
|
+
watchEvent: {
|
564
|
+
[EventName in _EventNames]: GetWatchEvent<_Narrowable, TAbi, EventName>;
|
565
|
+
};
|
566
|
+
}) : unknown) & (TWalletClient extends WalletClient ? IsNever<_WriteFunctionNames> extends true ? unknown : {
|
567
|
+
/**
|
568
|
+
* Executes a write function on a contract.
|
569
|
+
*
|
570
|
+
* A "write" function on a Solidity contract modifies the state of the blockchain. These types of functions require gas to be executed, and hence a [Transaction](https://viem.sh/docs/glossary/terms.html) is needed to be broadcast in order to change the state.
|
571
|
+
*
|
572
|
+
* Internally, `write` uses a [Wallet Client](https://viem.sh/docs/clients/wallet.html) to call the [`sendTransaction` action](https://viem.sh/docs/actions/wallet/sendTransaction.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
|
573
|
+
*
|
574
|
+
* Warning: The `write` internally sends a transaction – it does not validate if the contract write will succeed (the contract may throw an error). It is highly recommended to [simulate the contract write with `contract.simulate`](https://viem.sh/docs/contract/writeContract.html#usage) before you execute it.
|
575
|
+
*/
|
576
|
+
write: {
|
577
|
+
[FunctionName in _WriteFunctionNames]: GetWriteFunction<_Narrowable, TWalletClient extends WalletClient ? TWalletClient['chain'] : undefined, TWalletClient extends WalletClient ? TWalletClient['account'] : undefined, TAbi, FunctionName>;
|
578
|
+
};
|
579
|
+
} : unknown)>;
|
580
|
+
/**
|
581
|
+
* Gets type-safe contract instance.
|
582
|
+
*/
|
583
|
+
declare function getContract<TTransport extends Transport, TAbi extends Abi | readonly unknown[], TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, TPublicClient extends PublicClient<TTransport, TChain> | undefined = PublicClient<TTransport, TChain> | undefined, TWalletClient extends WalletClient<TTransport, TChain, TAccount> | undefined = WalletClient<TTransport, TChain, TAccount> | undefined>({ abi, address, publicClient, walletClient, }: GetContractParameters<TTransport, TChain, TAccount, TAbi, TPublicClient, TWalletClient>): GetContractReturnType<TAbi, TPublicClient, TWalletClient>;
|
584
|
+
type GetReadFunction<Narrowable extends boolean, TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, Args = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, Options = Prettify<Omit<ReadContractParameters<TAbi, TFunctionName>, 'abi' | 'address' | 'args' | 'functionName'>>> = Narrowable extends true ? (...parameters: Args extends readonly [] ? [options?: Options] : [args: Args, options?: Options]) => Promise<ReadContractReturnType<TAbi, TFunctionName>> : (...parameters: [options?: Options] | [args: readonly unknown[], options?: Options]) => Promise<ReadContractReturnType>;
|
585
|
+
type GetEstimateFunction<Narrowable extends boolean, TChain extends Chain | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, Args = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, Options = Prettify<Omit<EstimateContractGasParameters<TAbi, TFunctionName, TChain>, 'abi' | 'address' | 'args' | 'functionName'>>> = Narrowable extends true ? (...parameters: Args extends readonly [] ? [options?: Options] : [args: Args, options?: Options]) => Promise<EstimateContractGasReturnType> : (...parameters: [options?: Options] | [args: readonly unknown[], options?: Options]) => Promise<EstimateContractGasReturnType>;
|
586
|
+
type GetSimulateFunction<Narrowable extends boolean, TChain extends Chain | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, Args = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>> = Narrowable extends true ? <TChainOverride extends Chain | undefined, Options extends Prettify<Omit<SimulateContractParameters<TAbi, TFunctionName, TChain, TChainOverride>, 'abi' | 'address' | 'args' | 'functionName'>>>(...parameters: Args extends readonly [] ? [options?: Options] : [args: Args, options?: Options]) => Promise<SimulateContractReturnType<TAbi, TFunctionName, TChain, TChainOverride>> : <TChainOverride extends Chain | undefined, Options extends Prettify<Omit<SimulateContractParameters<TAbi, TFunctionName, TChain, TChainOverride>, 'abi' | 'address' | 'args' | 'functionName'>>>(...parameters: [options?: Options] | [args: readonly unknown[], options?: Options]) => Promise<SimulateContractReturnType>;
|
587
|
+
type GetWriteFunction<Narrowable extends boolean, TChain extends Chain | undefined, TAccount extends Account | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string, TAbiFunction extends AbiFunction = TAbi extends Abi ? ExtractAbiFunction<TAbi, TFunctionName> : AbiFunction, Args = AbiParametersToPrimitiveTypes<TAbiFunction['inputs']>, IsOptionsRequired = [IsUndefined<TAccount>, IsUndefined<TChain>] extends [true, false] | [false, true] ? true : false> = Narrowable extends true ? <TChainOverride extends Chain | undefined, Options extends Prettify<Omit<WriteContractParameters<TAbi, TFunctionName, TChain, TAccount, TChainOverride>, 'abi' | 'address' | 'args' | 'functionName'>>, Rest extends IsOptionsRequired extends true ? [options: Options] : [options?: Options]>(...parameters: Args extends readonly [] ? Rest : [args: Args, ...parameters: Rest]) => Promise<WriteContractReturnType> : <TChainOverride extends Chain | undefined, Options extends Prettify<Omit<WriteContractParameters<TAbi, TFunctionName, TChain, TAccount, TChainOverride>, 'abi' | 'address' | 'args' | 'functionName'>>, Rest extends unknown[] = IsOptionsRequired extends true ? [options: Options] : [options?: Options]>(...parameters: Rest | [args: readonly unknown[], ...parameters: Rest]) => Promise<WriteContractReturnType>;
|
588
|
+
type GetEventFilter<Narrowable extends boolean, TAbi extends Abi | readonly unknown[], TEventName extends string, TAbiEvent extends AbiEvent = TAbi extends Abi ? ExtractAbiEvent<TAbi, TEventName> : AbiEvent, Args = AbiEventParametersToPrimitiveTypes<TAbiEvent['inputs']>, Options = Prettify<Omit<CreateContractEventFilterParameters<TAbi, TEventName>, 'abi' | 'address' | 'args' | 'eventName'>>, IndexedInputs = Extract<TAbiEvent['inputs'][number], {
|
589
|
+
indexed: true;
|
590
|
+
}>> = Narrowable extends true ? <TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined>(...parameters: IsNever<IndexedInputs> extends true ? [options?: Options] : [
|
591
|
+
args: Args | (Args extends Narrow<TArgs> ? Narrow<TArgs> : never),
|
592
|
+
options?: Options
|
593
|
+
]) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs>> : (...parameters: [options?: Options] | [
|
594
|
+
args: readonly unknown[] | CreateContractFilterOptions,
|
595
|
+
options?: Options
|
596
|
+
]) => Promise<CreateContractEventFilterReturnType>;
|
597
|
+
type GetWatchEvent<Narrowable extends boolean, TAbi extends Abi | readonly unknown[], TEventName extends string, TAbiEvent extends AbiEvent = TAbi extends Abi ? ExtractAbiEvent<TAbi, TEventName> : AbiEvent, Args = AbiEventParametersToPrimitiveTypes<TAbiEvent['inputs']>, Options = Prettify<Omit<WatchContractEventParameters<TAbi, TEventName>, 'abi' | 'address' | 'args' | 'eventName'>>, IndexedInputs = Extract<TAbiEvent['inputs'][number], {
|
598
|
+
indexed: true;
|
599
|
+
}>> = Narrowable extends true ? (...parameters: IsNever<IndexedInputs> extends true ? [options: Options] : [args: Args, options: Options]) => WatchContractEventReturnType : (...parameters: [options?: Options] | [
|
600
|
+
args: readonly unknown[] | WatchContractEventOptions,
|
601
|
+
options?: Options
|
602
|
+
]) => WatchContractEventReturnType;
|
603
|
+
type CreateContractFilterOptions = RemoveProperties<CreateContractEventFilterParameters>;
|
604
|
+
type WatchContractEventOptions = RemoveProperties<WatchContractEventParameters>;
|
605
|
+
type RemoveProperties<T extends object> = Prettify<{
|
606
|
+
[key: string]: unknown;
|
607
|
+
} & {
|
608
|
+
[_ in keyof T]?: never;
|
609
|
+
}>;
|
610
|
+
|
502
611
|
declare const multicall3Abi: readonly [{
|
503
612
|
readonly inputs: readonly [{
|
504
613
|
readonly components: readonly [{
|
@@ -543,4 +652,4 @@ declare const weiUnits: {
|
|
543
652
|
gwei: number;
|
544
653
|
};
|
545
654
|
|
546
|
-
export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiEventSignatureEmptyTopicsError, AbiEventSignatureNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BlockNotFoundError, ChainDoesNotSupportContract, CustomTransport, CustomTransportConfig, DataLengthTooLongError, DataLengthTooShortError, DecodeLogTopicsMismatch, FallbackTransport, FallbackTransportConfig, FilterTypeNotSupportedError, HttpRequestError, HttpTransport, HttpTransportConfig, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidChainIdError, InvalidDefinitionTypeError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, SwitchChainError, TimeoutError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, UserRejectedRequestError, WebSocketRequestError, WebSocketTransport, WebSocketTransportConfig, custom, etherUnits, fallback, gweiUnits, http, multicall3Abi, webSocket, weiUnits };
|
655
|
+
export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiEventSignatureEmptyTopicsError, AbiEventSignatureNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BlockNotFoundError, ChainDoesNotSupportContract, CustomTransport, CustomTransportConfig, DataLengthTooLongError, DataLengthTooShortError, DecodeLogTopicsMismatch, EnsAvatarUriResolutionError, FallbackTransport, FallbackTransportConfig, FilterTypeNotSupportedError, GetContractParameters, GetContractReturnType, HttpRequestError, HttpTransport, HttpTransportConfig, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidChainIdError, InvalidDefinitionTypeError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, SwitchChainError, TimeoutError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, UserRejectedRequestError, WebSocketRequestError, WebSocketTransport, WebSocketTransportConfig, custom, etherUnits, fallback, getContract, gweiUnits, http, multicall3Abi, webSocket, weiUnits };
|
package/dist/index.js
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var _chunkASAFFZMDjs = require('./chunk-ASAFFZMD.js');
|
7
6
|
|
8
7
|
|
9
8
|
|
@@ -262,7 +261,11 @@ var _chunkASAFFZMDjs = require('./chunk-ASAFFZMD.js');
|
|
262
261
|
|
263
262
|
|
264
263
|
|
265
|
-
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
var _chunkPWUNCH5Gjs = require('./chunk-PWUNCH5G.js');
|
266
269
|
|
267
270
|
// src/clients/transports/createTransport.ts
|
268
271
|
function createTransport({
|
@@ -276,7 +279,7 @@ function createTransport({
|
|
276
279
|
}, value) {
|
277
280
|
return {
|
278
281
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
279
|
-
request:
|
282
|
+
request: _chunkPWUNCH5Gjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
280
283
|
value
|
281
284
|
};
|
282
285
|
}
|
@@ -318,7 +321,7 @@ function fallback(transports_, config = {}) {
|
|
318
321
|
params
|
319
322
|
});
|
320
323
|
} catch (err) {
|
321
|
-
if (
|
324
|
+
if (_chunkPWUNCH5Gjs.isDeterministicError.call(void 0, err))
|
322
325
|
throw err;
|
323
326
|
if (i === transports.length - 1)
|
324
327
|
throw err;
|
@@ -404,7 +407,7 @@ function rankTransports({
|
|
404
407
|
];
|
405
408
|
}).sort((a, b) => b[0] - a[0]);
|
406
409
|
onTransports(scores.map(([, i]) => transports[i]));
|
407
|
-
await
|
410
|
+
await _chunkPWUNCH5Gjs.wait.call(void 0, interval);
|
408
411
|
rankTransports_();
|
409
412
|
};
|
410
413
|
rankTransports_();
|
@@ -423,13 +426,13 @@ function http(url, config = {}) {
|
|
423
426
|
const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
|
424
427
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _2 => _2.rpcUrls, 'access', _3 => _3.default, 'access', _4 => _4.http, 'access', _5 => _5[0]]);
|
425
428
|
if (!url_)
|
426
|
-
throw new (0,
|
429
|
+
throw new (0, _chunkPWUNCH5Gjs.UrlRequiredError)();
|
427
430
|
return createTransport(
|
428
431
|
{
|
429
432
|
key,
|
430
433
|
name,
|
431
434
|
async request({ method, params }) {
|
432
|
-
const { result } = await
|
435
|
+
const { result } = await _chunkPWUNCH5Gjs.rpc.http(url_, {
|
433
436
|
body: {
|
434
437
|
method,
|
435
438
|
params
|
@@ -459,14 +462,14 @@ function webSocket(url, config = {}) {
|
|
459
462
|
const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
|
460
463
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _6 => _6.rpcUrls, 'access', _7 => _7.default, 'access', _8 => _8.webSocket, 'optionalAccess', _9 => _9[0]]);
|
461
464
|
if (!url_)
|
462
|
-
throw new (0,
|
465
|
+
throw new (0, _chunkPWUNCH5Gjs.UrlRequiredError)();
|
463
466
|
return createTransport(
|
464
467
|
{
|
465
468
|
key,
|
466
469
|
name,
|
467
470
|
async request({ method, params }) {
|
468
|
-
const socket = await
|
469
|
-
const { result } = await
|
471
|
+
const socket = await _chunkPWUNCH5Gjs.getSocket.call(void 0, url_);
|
472
|
+
const { result } = await _chunkPWUNCH5Gjs.rpc.webSocketAsync(socket, {
|
470
473
|
body: { method, params },
|
471
474
|
timeout
|
472
475
|
});
|
@@ -479,12 +482,12 @@ function webSocket(url, config = {}) {
|
|
479
482
|
},
|
480
483
|
{
|
481
484
|
getSocket() {
|
482
|
-
return
|
485
|
+
return _chunkPWUNCH5Gjs.getSocket.call(void 0, url_);
|
483
486
|
},
|
484
487
|
async subscribe({ params, onData, onError }) {
|
485
|
-
const socket = await
|
488
|
+
const socket = await _chunkPWUNCH5Gjs.getSocket.call(void 0, url_);
|
486
489
|
const { result: subscriptionId } = await new Promise(
|
487
|
-
(resolve, reject) =>
|
490
|
+
(resolve, reject) => _chunkPWUNCH5Gjs.rpc.webSocket(socket, {
|
488
491
|
body: {
|
489
492
|
method: "eth_subscribe",
|
490
493
|
params
|
@@ -508,7 +511,7 @@ function webSocket(url, config = {}) {
|
|
508
511
|
subscriptionId,
|
509
512
|
async unsubscribe() {
|
510
513
|
return new Promise(
|
511
|
-
(resolve, reject) =>
|
514
|
+
(resolve, reject) => _chunkPWUNCH5Gjs.rpc.webSocket(socket, {
|
512
515
|
body: {
|
513
516
|
method: "eth_unsubscribe",
|
514
517
|
params: [subscriptionId]
|
@@ -564,92 +567,95 @@ function createClient({
|
|
564
567
|
|
565
568
|
// src/clients/decorators/public.ts
|
566
569
|
var publicActions = (client) => ({
|
567
|
-
call: (args) =>
|
568
|
-
createBlockFilter: () =>
|
569
|
-
createContractEventFilter: (args) =>
|
570
|
-
createEventFilter: (args) =>
|
571
|
-
createPendingTransactionFilter: () =>
|
572
|
-
estimateContractGas: (args) =>
|
573
|
-
estimateGas: (args) =>
|
574
|
-
getBalance: (args) =>
|
575
|
-
getBlock: (args) =>
|
576
|
-
getBlockNumber: (args) =>
|
577
|
-
getBlockTransactionCount: (args) =>
|
578
|
-
getBytecode: (args) =>
|
579
|
-
getChainId: () =>
|
580
|
-
getEnsAddress: (args) =>
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
570
|
+
call: (args) => _chunkPWUNCH5Gjs.call.call(void 0, client, args),
|
571
|
+
createBlockFilter: () => _chunkPWUNCH5Gjs.createBlockFilter.call(void 0, client),
|
572
|
+
createContractEventFilter: (args) => _chunkPWUNCH5Gjs.createContractEventFilter.call(void 0, client, args),
|
573
|
+
createEventFilter: (args) => _chunkPWUNCH5Gjs.createEventFilter.call(void 0, client, args),
|
574
|
+
createPendingTransactionFilter: () => _chunkPWUNCH5Gjs.createPendingTransactionFilter.call(void 0, client),
|
575
|
+
estimateContractGas: (args) => _chunkPWUNCH5Gjs.estimateContractGas.call(void 0, client, args),
|
576
|
+
estimateGas: (args) => _chunkPWUNCH5Gjs.estimateGas.call(void 0, client, args),
|
577
|
+
getBalance: (args) => _chunkPWUNCH5Gjs.getBalance.call(void 0, client, args),
|
578
|
+
getBlock: (args) => _chunkPWUNCH5Gjs.getBlock.call(void 0, client, args),
|
579
|
+
getBlockNumber: (args) => _chunkPWUNCH5Gjs.getBlockNumber.call(void 0, client, args),
|
580
|
+
getBlockTransactionCount: (args) => _chunkPWUNCH5Gjs.getBlockTransactionCount.call(void 0, client, args),
|
581
|
+
getBytecode: (args) => _chunkPWUNCH5Gjs.getBytecode.call(void 0, client, args),
|
582
|
+
getChainId: () => _chunkPWUNCH5Gjs.getChainId.call(void 0, client),
|
583
|
+
getEnsAddress: (args) => _chunkPWUNCH5Gjs.getEnsAddress.call(void 0, client, args),
|
584
|
+
getEnsAvatar: (args) => _chunkPWUNCH5Gjs.getEnsAvatar.call(void 0, client, args),
|
585
|
+
getEnsName: (args) => _chunkPWUNCH5Gjs.getEnsName.call(void 0, client, args),
|
586
|
+
getEnsResolver: (args) => _chunkPWUNCH5Gjs.getEnsResolver.call(void 0, client, args),
|
587
|
+
getEnsText: (args) => _chunkPWUNCH5Gjs.getEnsText.call(void 0, client, args),
|
588
|
+
getFeeHistory: (args) => _chunkPWUNCH5Gjs.getFeeHistory.call(void 0, client, args),
|
589
|
+
getFilterChanges: (args) => _chunkPWUNCH5Gjs.getFilterChanges.call(void 0, client, args),
|
590
|
+
getFilterLogs: (args) => _chunkPWUNCH5Gjs.getFilterLogs.call(void 0, client, args),
|
591
|
+
getGasPrice: () => _chunkPWUNCH5Gjs.getGasPrice.call(void 0, client),
|
592
|
+
getLogs: (args) => _chunkPWUNCH5Gjs.getLogs.call(void 0, client, args),
|
593
|
+
getStorageAt: (args) => _chunkPWUNCH5Gjs.getStorageAt.call(void 0, client, args),
|
594
|
+
getTransaction: (args) => _chunkPWUNCH5Gjs.getTransaction.call(void 0, client, args),
|
595
|
+
getTransactionConfirmations: (args) => _chunkPWUNCH5Gjs.getTransactionConfirmations.call(void 0, client, args),
|
596
|
+
getTransactionCount: (args) => _chunkPWUNCH5Gjs.getTransactionCount.call(void 0, client, args),
|
597
|
+
getTransactionReceipt: (args) => _chunkPWUNCH5Gjs.getTransactionReceipt.call(void 0, client, args),
|
598
|
+
multicall: (args) => _chunkPWUNCH5Gjs.multicall.call(void 0, client, args),
|
599
|
+
readContract: (args) => _chunkPWUNCH5Gjs.readContract.call(void 0, client, args),
|
600
|
+
simulateContract: (args) => _chunkPWUNCH5Gjs.simulateContract.call(void 0, client, args),
|
601
|
+
uninstallFilter: (args) => _chunkPWUNCH5Gjs.uninstallFilter.call(void 0, client, args),
|
602
|
+
waitForTransactionReceipt: (args) => _chunkPWUNCH5Gjs.waitForTransactionReceipt.call(void 0, client, args),
|
603
|
+
watchBlocks: (args) => _chunkPWUNCH5Gjs.watchBlocks.call(void 0, client, args),
|
604
|
+
watchBlockNumber: (args) => _chunkPWUNCH5Gjs.watchBlockNumber.call(void 0, client, args),
|
605
|
+
watchContractEvent: (args) => _chunkPWUNCH5Gjs.watchContractEvent.call(void 0, client, args),
|
606
|
+
watchEvent: (args) => _chunkPWUNCH5Gjs.watchEvent.call(void 0, client, args),
|
607
|
+
watchPendingTransactions: (args) => _chunkPWUNCH5Gjs.watchPendingTransactions.call(void 0, client, args)
|
602
608
|
});
|
603
609
|
|
604
610
|
// src/clients/decorators/test.ts
|
605
611
|
function testActions(client) {
|
606
612
|
return {
|
607
|
-
dropTransaction: (args) =>
|
608
|
-
getAutomine: () =>
|
609
|
-
getTxpoolContent: () =>
|
610
|
-
getTxpoolStatus: () =>
|
611
|
-
impersonateAccount: (args) =>
|
612
|
-
increaseTime: (args) =>
|
613
|
-
inspectTxpool: () =>
|
614
|
-
mine: (args) =>
|
615
|
-
removeBlockTimestampInterval: () =>
|
616
|
-
reset: (args) =>
|
617
|
-
revert: (args) =>
|
618
|
-
sendUnsignedTransaction: (args) =>
|
619
|
-
setAutomine: (args) =>
|
620
|
-
setBalance: (args) =>
|
621
|
-
setBlockGasLimit: (args) =>
|
622
|
-
setBlockTimestampInterval: (args) =>
|
623
|
-
setCode: (args) =>
|
624
|
-
setCoinbase: (args) =>
|
625
|
-
setIntervalMining: (args) =>
|
626
|
-
setLoggingEnabled: (args) =>
|
627
|
-
setMinGasPrice: (args) =>
|
628
|
-
setNextBlockBaseFeePerGas: (args) =>
|
629
|
-
setNextBlockTimestamp: (args) =>
|
630
|
-
setNonce: (args) =>
|
631
|
-
setRpcUrl: (args) =>
|
632
|
-
setStorageAt: (args) =>
|
633
|
-
snapshot: () =>
|
634
|
-
stopImpersonatingAccount: (args) =>
|
613
|
+
dropTransaction: (args) => _chunkPWUNCH5Gjs.dropTransaction.call(void 0, client, args),
|
614
|
+
getAutomine: () => _chunkPWUNCH5Gjs.getAutomine.call(void 0, client),
|
615
|
+
getTxpoolContent: () => _chunkPWUNCH5Gjs.getTxpoolContent.call(void 0, client),
|
616
|
+
getTxpoolStatus: () => _chunkPWUNCH5Gjs.getTxpoolStatus.call(void 0, client),
|
617
|
+
impersonateAccount: (args) => _chunkPWUNCH5Gjs.impersonateAccount.call(void 0, client, args),
|
618
|
+
increaseTime: (args) => _chunkPWUNCH5Gjs.increaseTime.call(void 0, client, args),
|
619
|
+
inspectTxpool: () => _chunkPWUNCH5Gjs.inspectTxpool.call(void 0, client),
|
620
|
+
mine: (args) => _chunkPWUNCH5Gjs.mine.call(void 0, client, args),
|
621
|
+
removeBlockTimestampInterval: () => _chunkPWUNCH5Gjs.removeBlockTimestampInterval.call(void 0, client),
|
622
|
+
reset: (args) => _chunkPWUNCH5Gjs.reset.call(void 0, client, args),
|
623
|
+
revert: (args) => _chunkPWUNCH5Gjs.revert.call(void 0, client, args),
|
624
|
+
sendUnsignedTransaction: (args) => _chunkPWUNCH5Gjs.sendUnsignedTransaction.call(void 0, client, args),
|
625
|
+
setAutomine: (args) => _chunkPWUNCH5Gjs.setAutomine.call(void 0, client, args),
|
626
|
+
setBalance: (args) => _chunkPWUNCH5Gjs.setBalance.call(void 0, client, args),
|
627
|
+
setBlockGasLimit: (args) => _chunkPWUNCH5Gjs.setBlockGasLimit.call(void 0, client, args),
|
628
|
+
setBlockTimestampInterval: (args) => _chunkPWUNCH5Gjs.setBlockTimestampInterval.call(void 0, client, args),
|
629
|
+
setCode: (args) => _chunkPWUNCH5Gjs.setCode.call(void 0, client, args),
|
630
|
+
setCoinbase: (args) => _chunkPWUNCH5Gjs.setCoinbase.call(void 0, client, args),
|
631
|
+
setIntervalMining: (args) => _chunkPWUNCH5Gjs.setIntervalMining.call(void 0, client, args),
|
632
|
+
setLoggingEnabled: (args) => _chunkPWUNCH5Gjs.setLoggingEnabled.call(void 0, client, args),
|
633
|
+
setMinGasPrice: (args) => _chunkPWUNCH5Gjs.setMinGasPrice.call(void 0, client, args),
|
634
|
+
setNextBlockBaseFeePerGas: (args) => _chunkPWUNCH5Gjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
635
|
+
setNextBlockTimestamp: (args) => _chunkPWUNCH5Gjs.setNextBlockTimestamp.call(void 0, client, args),
|
636
|
+
setNonce: (args) => _chunkPWUNCH5Gjs.setNonce.call(void 0, client, args),
|
637
|
+
setRpcUrl: (args) => _chunkPWUNCH5Gjs.setRpcUrl.call(void 0, client, args),
|
638
|
+
setStorageAt: (args) => _chunkPWUNCH5Gjs.setStorageAt.call(void 0, client, args),
|
639
|
+
snapshot: () => _chunkPWUNCH5Gjs.snapshot.call(void 0, client),
|
640
|
+
stopImpersonatingAccount: (args) => _chunkPWUNCH5Gjs.stopImpersonatingAccount.call(void 0, client, args)
|
635
641
|
};
|
636
642
|
}
|
637
643
|
|
638
644
|
// src/clients/decorators/wallet.ts
|
639
645
|
var walletActions = (client) => ({
|
640
|
-
addChain: (args) =>
|
641
|
-
deployContract: (args) =>
|
642
|
-
getAddresses: () =>
|
643
|
-
getChainId: () =>
|
644
|
-
getPermissions: () =>
|
645
|
-
requestAddresses: () =>
|
646
|
-
requestPermissions: (args) =>
|
647
|
-
sendTransaction: (args) =>
|
648
|
-
signMessage: (args) =>
|
649
|
-
signTypedData: (args) =>
|
650
|
-
switchChain: (args) =>
|
651
|
-
watchAsset: (args) =>
|
652
|
-
writeContract: (args) =>
|
646
|
+
addChain: (args) => _chunkPWUNCH5Gjs.addChain.call(void 0, client, args),
|
647
|
+
deployContract: (args) => _chunkPWUNCH5Gjs.deployContract.call(void 0, client, args),
|
648
|
+
getAddresses: () => _chunkPWUNCH5Gjs.getAddresses.call(void 0, client),
|
649
|
+
getChainId: () => _chunkPWUNCH5Gjs.getChainId.call(void 0, client),
|
650
|
+
getPermissions: () => _chunkPWUNCH5Gjs.getPermissions.call(void 0, client),
|
651
|
+
requestAddresses: () => _chunkPWUNCH5Gjs.requestAddresses.call(void 0, client),
|
652
|
+
requestPermissions: (args) => _chunkPWUNCH5Gjs.requestPermissions.call(void 0, client, args),
|
653
|
+
sendTransaction: (args) => _chunkPWUNCH5Gjs.sendTransaction.call(void 0, client, args),
|
654
|
+
signMessage: (args) => _chunkPWUNCH5Gjs.signMessage.call(void 0, client, args),
|
655
|
+
signTypedData: (args) => _chunkPWUNCH5Gjs.signTypedData.call(void 0, client, args),
|
656
|
+
switchChain: (args) => _chunkPWUNCH5Gjs.switchChain.call(void 0, client, args),
|
657
|
+
watchAsset: (args) => _chunkPWUNCH5Gjs.watchAsset.call(void 0, client, args),
|
658
|
+
writeContract: (args) => _chunkPWUNCH5Gjs.writeContract.call(void 0, client, args)
|
653
659
|
});
|
654
660
|
|
655
661
|
// src/clients/createPublicClient.ts
|
@@ -718,7 +724,7 @@ function createWalletClient({
|
|
718
724
|
transport: () => transport({ retryCount: 0 }),
|
719
725
|
type: "walletClient"
|
720
726
|
}),
|
721
|
-
account: account ?
|
727
|
+
account: account ? _chunkPWUNCH5Gjs.parseAccount.call(void 0, account) : void 0
|
722
728
|
};
|
723
729
|
return {
|
724
730
|
...client,
|
@@ -915,5 +921,7 @@ function createWalletClient({
|
|
915
921
|
|
916
922
|
|
917
923
|
|
918
|
-
exports.AbiConstructorNotFoundError = _chunk2ESQNALVjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk2ESQNALVjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk2ESQNALVjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunk2ESQNALVjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunk2ESQNALVjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk2ESQNALVjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk2ESQNALVjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk2ESQNALVjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk2ESQNALVjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk2ESQNALVjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunk2ESQNALVjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunk2ESQNALVjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunk2ESQNALVjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk2ESQNALVjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk2ESQNALVjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk2ESQNALVjs.BaseError; exports.BlockNotFoundError = _chunk2ESQNALVjs.BlockNotFoundError; exports.CallExecutionError = _chunk2ESQNALVjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunk2ESQNALVjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunk2ESQNALVjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunk2ESQNALVjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunk2ESQNALVjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunk2ESQNALVjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk2ESQNALVjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunk2ESQNALVjs.DecodeLogTopicsMismatch; exports.EstimateGasExecutionError = _chunk2ESQNALVjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunk2ESQNALVjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunk2ESQNALVjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunk2ESQNALVjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunk2ESQNALVjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk2ESQNALVjs.HttpRequestError; exports.InsufficientFundsError = _chunk2ESQNALVjs.InsufficientFundsError; exports.InternalRpcError = _chunk2ESQNALVjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunk2ESQNALVjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunk2ESQNALVjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunk2ESQNALVjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk2ESQNALVjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk2ESQNALVjs.InvalidAddressError; exports.InvalidArrayError = _chunk2ESQNALVjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk2ESQNALVjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunk2ESQNALVjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunk2ESQNALVjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunk2ESQNALVjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk2ESQNALVjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk2ESQNALVjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunk2ESQNALVjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunk2ESQNALVjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk2ESQNALVjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk2ESQNALVjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk2ESQNALVjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk2ESQNALVjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk2ESQNALVjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunk2ESQNALVjs.NonceMaxValueError; exports.NonceTooHighError = _chunk2ESQNALVjs.NonceTooHighError; exports.NonceTooLowError = _chunk2ESQNALVjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunk2ESQNALVjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk2ESQNALVjs.ParseRpcError; exports.RawContractError = _chunk2ESQNALVjs.RawContractError; exports.RequestError = _chunk2ESQNALVjs.RequestError; exports.ResourceNotFoundRpcError = _chunk2ESQNALVjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk2ESQNALVjs.ResourceUnavailableRpcError; exports.RpcError = _chunk2ESQNALVjs.RpcError; exports.RpcRequestError = _chunk2ESQNALVjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk2ESQNALVjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunk2ESQNALVjs.SwitchChainError; exports.TimeoutError = _chunk2ESQNALVjs.TimeoutError; exports.TipAboveFeeCapError = _chunk2ESQNALVjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunk2ESQNALVjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunk2ESQNALVjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk2ESQNALVjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk2ESQNALVjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunk2ESQNALVjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunk2ESQNALVjs.UnknownNodeError; exports.UnknownRpcError = _chunk2ESQNALVjs.UnknownRpcError; exports.UrlRequiredError = _chunk2ESQNALVjs.UrlRequiredError; exports.UserRejectedRequestError = _chunk2ESQNALVjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunk2ESQNALVjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk2ESQNALVjs.WebSocketRequestError; exports.assertRequest = _chunk2ESQNALVjs.assertRequest; exports.assertTransactionEIP1559 = _chunk2ESQNALVjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunk2ESQNALVjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunk2ESQNALVjs.assertTransactionLegacy; exports.boolToBytes = _chunk2ESQNALVjs.boolToBytes; exports.boolToHex = _chunk2ESQNALVjs.boolToHex; exports.bytesToBigint = _chunk2ESQNALVjs.bytesToBigint; exports.bytesToBool = _chunk2ESQNALVjs.bytesToBool; exports.bytesToHex = _chunk2ESQNALVjs.bytesToHex; exports.bytesToNumber = _chunk2ESQNALVjs.bytesToNumber; exports.bytesToString = _chunk2ESQNALVjs.bytesToString; exports.concat = _chunk2ESQNALVjs.concat; exports.concatBytes = _chunk2ESQNALVjs.concatBytes; exports.concatHex = _chunk2ESQNALVjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunk2ESQNALVjs.decodeAbiParameters; exports.decodeErrorResult = _chunk2ESQNALVjs.decodeErrorResult; exports.decodeEventLog = _chunk2ESQNALVjs.decodeEventLog; exports.decodeFunctionData = _chunk2ESQNALVjs.decodeFunctionData; exports.decodeFunctionResult = _chunk2ESQNALVjs.decodeFunctionResult; exports.defineBlock = _chunk2ESQNALVjs.defineBlock; exports.defineChain = _chunk2ESQNALVjs.defineChain; exports.defineTransaction = _chunk2ESQNALVjs.defineTransaction; exports.defineTransactionReceipt = _chunk2ESQNALVjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk2ESQNALVjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk2ESQNALVjs.encodeAbiParameters; exports.encodeDeployData = _chunk2ESQNALVjs.encodeDeployData; exports.encodeErrorResult = _chunk2ESQNALVjs.encodeErrorResult; exports.encodeEventTopics = _chunk2ESQNALVjs.encodeEventTopics; exports.encodeFunctionData = _chunk2ESQNALVjs.encodeFunctionData; exports.encodeFunctionResult = _chunk2ESQNALVjs.encodeFunctionResult; exports.encodePacked = _chunk2ESQNALVjs.encodePacked; exports.etherUnits = _chunk2ESQNALVjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunk2ESQNALVjs.formatBlock; exports.formatEther = _chunk2ESQNALVjs.formatEther; exports.formatGwei = _chunk2ESQNALVjs.formatGwei; exports.formatTransaction = _chunk2ESQNALVjs.formatTransaction; exports.formatTransactionRequest = _chunk2ESQNALVjs.formatTransactionRequest; exports.formatUnits = _chunk2ESQNALVjs.formatUnits; exports.fromBytes = _chunk2ESQNALVjs.fromBytes; exports.fromHex = _chunk2ESQNALVjs.fromHex; exports.fromRlp = _chunk2ESQNALVjs.fromRlp; exports.getAbiItem = _chunk2ESQNALVjs.getAbiItem; exports.getAddress = _chunk2ESQNALVjs.getAddress; exports.getContractAddress = _chunk2ESQNALVjs.getContractAddress; exports.getContractError = _chunk2ESQNALVjs.getContractError; exports.getCreate2Address = _chunk2ESQNALVjs.getCreate2Address; exports.getCreateAddress = _chunk2ESQNALVjs.getCreateAddress; exports.getEventSelector = _chunk2ESQNALVjs.getEventSelector; exports.getFunctionSelector = _chunk2ESQNALVjs.getFunctionSelector; exports.getSerializedTransactionType = _chunk2ESQNALVjs.getSerializedTransactionType; exports.getTransactionType = _chunk2ESQNALVjs.getTransactionType; exports.gweiUnits = _chunk2ESQNALVjs.gweiUnits; exports.hashMessage = _chunk2ESQNALVjs.hashMessage; exports.hashTypedData = _chunk2ESQNALVjs.hashTypedData; exports.hexToBigInt = _chunk2ESQNALVjs.hexToBigInt; exports.hexToBool = _chunk2ESQNALVjs.hexToBool; exports.hexToBytes = _chunk2ESQNALVjs.hexToBytes; exports.hexToNumber = _chunk2ESQNALVjs.hexToNumber; exports.hexToString = _chunk2ESQNALVjs.hexToString; exports.http = http; exports.isAddress = _chunk2ESQNALVjs.isAddress; exports.isAddressEqual = _chunk2ESQNALVjs.isAddressEqual; exports.isBytes = _chunk2ESQNALVjs.isBytes; exports.isHash = _chunk2ESQNALVjs.isHash; exports.isHex = _chunk2ESQNALVjs.isHex; exports.keccak256 = _chunk2ESQNALVjs.keccak256; exports.labelhash = _chunkASAFFZMDjs.labelhash; exports.multicall3Abi = _chunk2ESQNALVjs.multicall3Abi; exports.namehash = _chunkASAFFZMDjs.namehash; exports.numberToBytes = _chunk2ESQNALVjs.numberToBytes; exports.numberToHex = _chunk2ESQNALVjs.numberToHex; exports.pad = _chunk2ESQNALVjs.pad; exports.padBytes = _chunk2ESQNALVjs.padBytes; exports.padHex = _chunk2ESQNALVjs.padHex; exports.parseAbi = _chunk2ESQNALVjs.parseAbi; exports.parseAbiItem = _chunk2ESQNALVjs.parseAbiItem; exports.parseAbiParameter = _chunk2ESQNALVjs.parseAbiParameter; exports.parseAbiParameters = _chunk2ESQNALVjs.parseAbiParameters; exports.parseEther = _chunk2ESQNALVjs.parseEther; exports.parseGwei = _chunk2ESQNALVjs.parseGwei; exports.parseTransaction = _chunk2ESQNALVjs.parseTransaction; exports.parseUnits = _chunk2ESQNALVjs.parseUnits; exports.prepareRequest = _chunk2ESQNALVjs.prepareRequest; exports.recoverAddress = _chunk2ESQNALVjs.recoverAddress; exports.recoverMessageAddress = _chunk2ESQNALVjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunk2ESQNALVjs.recoverTypedDataAddress; exports.serializeTransaction = _chunk2ESQNALVjs.serializeTransaction; exports.size = _chunk2ESQNALVjs.size; exports.slice = _chunk2ESQNALVjs.slice; exports.sliceBytes = _chunk2ESQNALVjs.sliceBytes; exports.sliceHex = _chunk2ESQNALVjs.sliceHex; exports.stringToBytes = _chunk2ESQNALVjs.stringToBytes; exports.stringToHex = _chunk2ESQNALVjs.stringToHex; exports.stringify = _chunk2ESQNALVjs.stringify; exports.toBytes = _chunk2ESQNALVjs.toBytes; exports.toHex = _chunk2ESQNALVjs.toHex; exports.toRlp = _chunk2ESQNALVjs.toRlp; exports.transactionType = _chunk2ESQNALVjs.transactionType; exports.trim = _chunk2ESQNALVjs.trim; exports.validateTypedData = _chunk2ESQNALVjs.validateTypedData; exports.verifyMessage = _chunk2ESQNALVjs.verifyMessage; exports.verifyTypedData = _chunk2ESQNALVjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunk2ESQNALVjs.weiUnits;
|
924
|
+
|
925
|
+
|
926
|
+
exports.AbiConstructorNotFoundError = _chunkPWUNCH5Gjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkPWUNCH5Gjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkPWUNCH5Gjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkPWUNCH5Gjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkPWUNCH5Gjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkPWUNCH5Gjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkPWUNCH5Gjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkPWUNCH5Gjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkPWUNCH5Gjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkPWUNCH5Gjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunkPWUNCH5Gjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunkPWUNCH5Gjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkPWUNCH5Gjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkPWUNCH5Gjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkPWUNCH5Gjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkPWUNCH5Gjs.BaseError; exports.BlockNotFoundError = _chunkPWUNCH5Gjs.BlockNotFoundError; exports.CallExecutionError = _chunkPWUNCH5Gjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkPWUNCH5Gjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkPWUNCH5Gjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkPWUNCH5Gjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkPWUNCH5Gjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkPWUNCH5Gjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkPWUNCH5Gjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunkPWUNCH5Gjs.DecodeLogTopicsMismatch; exports.EnsAvatarUriResolutionError = _chunkPWUNCH5Gjs.EnsAvatarUriResolutionError; exports.EstimateGasExecutionError = _chunkPWUNCH5Gjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkPWUNCH5Gjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkPWUNCH5Gjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkPWUNCH5Gjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkPWUNCH5Gjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkPWUNCH5Gjs.HttpRequestError; exports.InsufficientFundsError = _chunkPWUNCH5Gjs.InsufficientFundsError; exports.InternalRpcError = _chunkPWUNCH5Gjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkPWUNCH5Gjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkPWUNCH5Gjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkPWUNCH5Gjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkPWUNCH5Gjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkPWUNCH5Gjs.InvalidAddressError; exports.InvalidArrayError = _chunkPWUNCH5Gjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkPWUNCH5Gjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunkPWUNCH5Gjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunkPWUNCH5Gjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkPWUNCH5Gjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkPWUNCH5Gjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkPWUNCH5Gjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunkPWUNCH5Gjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunkPWUNCH5Gjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkPWUNCH5Gjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkPWUNCH5Gjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkPWUNCH5Gjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkPWUNCH5Gjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkPWUNCH5Gjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkPWUNCH5Gjs.NonceMaxValueError; exports.NonceTooHighError = _chunkPWUNCH5Gjs.NonceTooHighError; exports.NonceTooLowError = _chunkPWUNCH5Gjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkPWUNCH5Gjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkPWUNCH5Gjs.ParseRpcError; exports.RawContractError = _chunkPWUNCH5Gjs.RawContractError; exports.RequestError = _chunkPWUNCH5Gjs.RequestError; exports.ResourceNotFoundRpcError = _chunkPWUNCH5Gjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkPWUNCH5Gjs.ResourceUnavailableRpcError; exports.RpcError = _chunkPWUNCH5Gjs.RpcError; exports.RpcRequestError = _chunkPWUNCH5Gjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkPWUNCH5Gjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkPWUNCH5Gjs.SwitchChainError; exports.TimeoutError = _chunkPWUNCH5Gjs.TimeoutError; exports.TipAboveFeeCapError = _chunkPWUNCH5Gjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkPWUNCH5Gjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkPWUNCH5Gjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkPWUNCH5Gjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkPWUNCH5Gjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkPWUNCH5Gjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkPWUNCH5Gjs.UnknownNodeError; exports.UnknownRpcError = _chunkPWUNCH5Gjs.UnknownRpcError; exports.UrlRequiredError = _chunkPWUNCH5Gjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkPWUNCH5Gjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkPWUNCH5Gjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkPWUNCH5Gjs.WebSocketRequestError; exports.assertRequest = _chunkPWUNCH5Gjs.assertRequest; exports.assertTransactionEIP1559 = _chunkPWUNCH5Gjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkPWUNCH5Gjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkPWUNCH5Gjs.assertTransactionLegacy; exports.boolToBytes = _chunkPWUNCH5Gjs.boolToBytes; exports.boolToHex = _chunkPWUNCH5Gjs.boolToHex; exports.bytesToBigint = _chunkPWUNCH5Gjs.bytesToBigint; exports.bytesToBool = _chunkPWUNCH5Gjs.bytesToBool; exports.bytesToHex = _chunkPWUNCH5Gjs.bytesToHex; exports.bytesToNumber = _chunkPWUNCH5Gjs.bytesToNumber; exports.bytesToString = _chunkPWUNCH5Gjs.bytesToString; exports.concat = _chunkPWUNCH5Gjs.concat; exports.concatBytes = _chunkPWUNCH5Gjs.concatBytes; exports.concatHex = _chunkPWUNCH5Gjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkPWUNCH5Gjs.decodeAbiParameters; exports.decodeErrorResult = _chunkPWUNCH5Gjs.decodeErrorResult; exports.decodeEventLog = _chunkPWUNCH5Gjs.decodeEventLog; exports.decodeFunctionData = _chunkPWUNCH5Gjs.decodeFunctionData; exports.decodeFunctionResult = _chunkPWUNCH5Gjs.decodeFunctionResult; exports.defineBlock = _chunkPWUNCH5Gjs.defineBlock; exports.defineChain = _chunkPWUNCH5Gjs.defineChain; exports.defineTransaction = _chunkPWUNCH5Gjs.defineTransaction; exports.defineTransactionReceipt = _chunkPWUNCH5Gjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkPWUNCH5Gjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkPWUNCH5Gjs.encodeAbiParameters; exports.encodeDeployData = _chunkPWUNCH5Gjs.encodeDeployData; exports.encodeErrorResult = _chunkPWUNCH5Gjs.encodeErrorResult; exports.encodeEventTopics = _chunkPWUNCH5Gjs.encodeEventTopics; exports.encodeFunctionData = _chunkPWUNCH5Gjs.encodeFunctionData; exports.encodeFunctionResult = _chunkPWUNCH5Gjs.encodeFunctionResult; exports.encodePacked = _chunkPWUNCH5Gjs.encodePacked; exports.etherUnits = _chunkPWUNCH5Gjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkPWUNCH5Gjs.formatBlock; exports.formatEther = _chunkPWUNCH5Gjs.formatEther; exports.formatGwei = _chunkPWUNCH5Gjs.formatGwei; exports.formatTransaction = _chunkPWUNCH5Gjs.formatTransaction; exports.formatTransactionRequest = _chunkPWUNCH5Gjs.formatTransactionRequest; exports.formatUnits = _chunkPWUNCH5Gjs.formatUnits; exports.fromBytes = _chunkPWUNCH5Gjs.fromBytes; exports.fromHex = _chunkPWUNCH5Gjs.fromHex; exports.fromRlp = _chunkPWUNCH5Gjs.fromRlp; exports.getAbiItem = _chunkPWUNCH5Gjs.getAbiItem; exports.getAddress = _chunkPWUNCH5Gjs.getAddress; exports.getContract = _chunkPWUNCH5Gjs.getContract; exports.getContractAddress = _chunkPWUNCH5Gjs.getContractAddress; exports.getContractError = _chunkPWUNCH5Gjs.getContractError; exports.getCreate2Address = _chunkPWUNCH5Gjs.getCreate2Address; exports.getCreateAddress = _chunkPWUNCH5Gjs.getCreateAddress; exports.getEventSelector = _chunkPWUNCH5Gjs.getEventSelector; exports.getFunctionSelector = _chunkPWUNCH5Gjs.getFunctionSelector; exports.getSerializedTransactionType = _chunkPWUNCH5Gjs.getSerializedTransactionType; exports.getTransactionType = _chunkPWUNCH5Gjs.getTransactionType; exports.gweiUnits = _chunkPWUNCH5Gjs.gweiUnits; exports.hashMessage = _chunkPWUNCH5Gjs.hashMessage; exports.hashTypedData = _chunkPWUNCH5Gjs.hashTypedData; exports.hexToBigInt = _chunkPWUNCH5Gjs.hexToBigInt; exports.hexToBool = _chunkPWUNCH5Gjs.hexToBool; exports.hexToBytes = _chunkPWUNCH5Gjs.hexToBytes; exports.hexToNumber = _chunkPWUNCH5Gjs.hexToNumber; exports.hexToString = _chunkPWUNCH5Gjs.hexToString; exports.http = http; exports.isAddress = _chunkPWUNCH5Gjs.isAddress; exports.isAddressEqual = _chunkPWUNCH5Gjs.isAddressEqual; exports.isBytes = _chunkPWUNCH5Gjs.isBytes; exports.isHash = _chunkPWUNCH5Gjs.isHash; exports.isHex = _chunkPWUNCH5Gjs.isHex; exports.keccak256 = _chunkPWUNCH5Gjs.keccak256; exports.labelhash = _chunkPWUNCH5Gjs.labelhash; exports.multicall3Abi = _chunkPWUNCH5Gjs.multicall3Abi; exports.namehash = _chunkPWUNCH5Gjs.namehash; exports.numberToBytes = _chunkPWUNCH5Gjs.numberToBytes; exports.numberToHex = _chunkPWUNCH5Gjs.numberToHex; exports.pad = _chunkPWUNCH5Gjs.pad; exports.padBytes = _chunkPWUNCH5Gjs.padBytes; exports.padHex = _chunkPWUNCH5Gjs.padHex; exports.parseAbi = _chunkPWUNCH5Gjs.parseAbi; exports.parseAbiItem = _chunkPWUNCH5Gjs.parseAbiItem; exports.parseAbiParameter = _chunkPWUNCH5Gjs.parseAbiParameter; exports.parseAbiParameters = _chunkPWUNCH5Gjs.parseAbiParameters; exports.parseEther = _chunkPWUNCH5Gjs.parseEther; exports.parseGwei = _chunkPWUNCH5Gjs.parseGwei; exports.parseTransaction = _chunkPWUNCH5Gjs.parseTransaction; exports.parseUnits = _chunkPWUNCH5Gjs.parseUnits; exports.prepareRequest = _chunkPWUNCH5Gjs.prepareRequest; exports.recoverAddress = _chunkPWUNCH5Gjs.recoverAddress; exports.recoverMessageAddress = _chunkPWUNCH5Gjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkPWUNCH5Gjs.recoverTypedDataAddress; exports.serializeTransaction = _chunkPWUNCH5Gjs.serializeTransaction; exports.size = _chunkPWUNCH5Gjs.size; exports.slice = _chunkPWUNCH5Gjs.slice; exports.sliceBytes = _chunkPWUNCH5Gjs.sliceBytes; exports.sliceHex = _chunkPWUNCH5Gjs.sliceHex; exports.stringToBytes = _chunkPWUNCH5Gjs.stringToBytes; exports.stringToHex = _chunkPWUNCH5Gjs.stringToHex; exports.stringify = _chunkPWUNCH5Gjs.stringify; exports.toBytes = _chunkPWUNCH5Gjs.toBytes; exports.toHex = _chunkPWUNCH5Gjs.toHex; exports.toRlp = _chunkPWUNCH5Gjs.toRlp; exports.transactionType = _chunkPWUNCH5Gjs.transactionType; exports.trim = _chunkPWUNCH5Gjs.trim; exports.validateTypedData = _chunkPWUNCH5Gjs.validateTypedData; exports.verifyMessage = _chunkPWUNCH5Gjs.verifyMessage; exports.verifyTypedData = _chunkPWUNCH5Gjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunkPWUNCH5Gjs.weiUnits;
|
919
927
|
//# sourceMappingURL=index.js.map
|