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
@@ -1,8 +1,8 @@
|
|
1
|
-
import { a as Transport, b as ClientConfig, C as Client } from './createTransport-
|
2
|
-
import { C as Chain, a4 as ExtractFormatter, ab as Formatters, ac as Formatter, a5 as Formatted, c as Block, R as RpcBlock, T as Transaction, N as TransactionReceipt, y as RpcTransactionReceipt, a2 as TransactionType, z as RpcTransactionRequest, O as TransactionRequest, H as Hex, ad as GetChain, G as GetConstructorArgs, ae as MergeIntersectionProperties, a as Hash, af as GetValue, g as ContractFunctionConfig, ag as IsUndefined, ah as MaybeExtractEventArgsFromAbi, h as ContractFunctionResult, ai as Prettify, f as BlockTag, aj as MaybeAbiEventName, e as BlockNumber, p as InferEventName, F as FeeHistory, L as Log, a6 as FormattedTransaction, a7 as TransactionFormatter, m as GetEventArgs } from './chain-9da1e6b6.js';
|
3
|
-
import { W as WalletPermission, a as WatchAssetParams, R as Requests, P as PublicRequests } from './eip1193-e79469af.js';
|
1
|
+
import { a as Transport, b as ClientConfig, C as Client } from './createTransport-21a0d2b3.js';
|
4
2
|
import { Abi, Narrow, Address, TypedData, AbiEvent, ExtractAbiEvent } from 'abitype';
|
5
|
-
import {
|
3
|
+
import { C as Chain, aa as ExtractFormatter, ah as Formatters, ai as Formatter, ab as Formatted, f as Block, R as RpcBlock, T as Transaction, V as TransactionReceipt, J as RpcTransactionReceipt, a8 as TransactionType, K as RpcTransactionRequest, W as TransactionRequest, H as Hex, aj as GetChain, G as GetConstructorArgs, ak as MergeIntersectionProperties, a as Hash, j as ContractFunctionConfig, al as GetValue, c as IsUndefined, M as MaybeExtractEventArgsFromAbi, k as ContractFunctionResult, i as BlockTag, am as MaybeAbiEventName, h as BlockNumber, P as Prettify, t as InferEventName, F as FeeHistory, L as Log, ac as FormattedTransaction, ad as TransactionFormatter, p as GetEventArgs } from './chain-5507c6f0.js';
|
4
|
+
import { A as Account, T as TypedDataDefinition, J as JsonRpcAccount } from './typedData-46b4d81f.js';
|
5
|
+
import { W as WalletPermission, a as WatchAssetParams, R as Requests, P as PublicRequests } from './eip1193-2f3a9cd2.js';
|
6
6
|
|
7
7
|
type BlockFormatter<TChain extends Chain | undefined = Chain> = TChain extends Chain ? ExtractFormatter<TChain, 'block', NonNullable<Formatters['block']>> : Formatters['block'];
|
8
8
|
type FormattedBlock<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Block>;
|
@@ -32,7 +32,7 @@ type FormattedTransactionRequest$1<TFormatter extends Formatter | undefined = Fo
|
|
32
32
|
declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
33
33
|
declare const defineTransactionRequest: <TFormat extends Formatter<Partial<TransactionRequest<bigint, number>>, Partial<RpcTransactionRequest> & {
|
34
34
|
[key: string]: unknown;
|
35
|
-
}>, TExclude extends ("value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "from" | "accessList" | "to" | "
|
35
|
+
}>, TExclude extends ("value" | "data" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "from" | "accessList" | "to" | "gas" | "nonce")[] = []>({ exclude, format: formatOverride, }: {
|
36
36
|
exclude?: TExclude | undefined;
|
37
37
|
format?: TFormat | undefined;
|
38
38
|
}) => (data: Partial<TransactionRequest<bigint, number>> & {
|
@@ -99,9 +99,7 @@ type WatchAssetParameters = WatchAssetParams;
|
|
99
99
|
type WatchAssetReturnType = boolean;
|
100
100
|
declare function watchAsset<TChain extends Chain | undefined, TAccount extends Account | undefined = undefined>(client: WalletClient<Transport, TChain, TAccount>, params: WatchAssetParameters): Promise<WatchAssetReturnType>;
|
101
101
|
|
102
|
-
type WriteContractParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TChain extends Chain | undefined = Chain, TAccount extends Account | undefined = undefined, TChainOverride extends Chain | undefined = undefined> = Omit<SendTransactionParameters<TChain, TAccount, TChainOverride>, 'chain' | 'to' | 'data' | 'value'> &
|
103
|
-
value?: GetValue<TAbi, TFunctionName, SendTransactionParameters<TChain>['value']>;
|
104
|
-
} & GetChain<TChain, TChainOverride> & ContractFunctionConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'>;
|
102
|
+
type WriteContractParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TChain extends Chain | undefined = Chain, TAccount extends Account | undefined = undefined, TChainOverride extends Chain | undefined = undefined> = ContractFunctionConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> & Omit<SendTransactionParameters<TChain, TAccount, TChainOverride>, 'chain' | 'to' | 'data' | 'value'> & GetChain<TChain, TChainOverride> & GetValue<TAbi, TFunctionName, SendTransactionParameters<TChain>['value']>;
|
105
103
|
type WriteContractReturnType = SendTransactionReturnType;
|
106
104
|
declare function writeContract<TChain extends Chain | undefined, TAccount extends Account | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChainOverride extends Chain | undefined = undefined>(client: WalletClient<Transport, TChain, TAccount>, { abi, address, args, functionName, ...request }: WriteContractParameters<TAbi, TFunctionName, TChain, TAccount, TChainOverride>): Promise<WriteContractReturnType>;
|
107
105
|
|
@@ -112,6 +110,11 @@ type GetAccountParameter<TAccount extends Account | undefined = Account | undefi
|
|
112
110
|
};
|
113
111
|
type ParseAccount<TAccount extends Account | Address | undefined> = (TAccount extends Account ? TAccount : never) | (TAccount extends Address ? JsonRpcAccount : never) | (TAccount extends undefined ? undefined : never);
|
114
112
|
|
113
|
+
type AssetGateway = 'ipfs' | 'arweave';
|
114
|
+
type AssetGatewayUrls = {
|
115
|
+
[key in AssetGateway]?: string;
|
116
|
+
};
|
117
|
+
|
115
118
|
type FilterType = 'transaction' | 'block' | 'event';
|
116
119
|
type Filter<TFilterType extends FilterType = 'event', TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string | undefined = undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined = MaybeExtractEventArgsFromAbi<TAbi, TEventName>> = {
|
117
120
|
id: Hex;
|
@@ -181,117 +184,6 @@ type MulticallResults<TContracts extends Contract[], TAllowFailure extends boole
|
|
181
184
|
|
182
185
|
type GetTransportConfig<TTransport extends Transport> = ReturnType<TTransport>['config'];
|
183
186
|
|
184
|
-
type GetEnsAddressParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
185
|
-
/** ENS name to get address. */
|
186
|
-
name: string;
|
187
|
-
/** Address of ENS Universal Resolver Contract */
|
188
|
-
universalResolverAddress?: Address;
|
189
|
-
}>;
|
190
|
-
type GetEnsAddressReturnType = Address;
|
191
|
-
/**
|
192
|
-
* @description Gets address for ENS name.
|
193
|
-
*
|
194
|
-
* - Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
|
195
|
-
* - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
|
196
|
-
*/
|
197
|
-
declare function getEnsAddress<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }: GetEnsAddressParameters): Promise<GetEnsAddressReturnType>;
|
198
|
-
|
199
|
-
type GetEnsNameParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
200
|
-
/** Address to get ENS name for. */
|
201
|
-
address: Address;
|
202
|
-
/** Address of ENS Universal Resolver Contract. */
|
203
|
-
universalResolverAddress?: Address;
|
204
|
-
}>;
|
205
|
-
type GetEnsNameReturnType = string | null;
|
206
|
-
/**
|
207
|
-
* @description Gets primary name for specified address.
|
208
|
-
*
|
209
|
-
* - Calls `reverse(bytes)` on ENS Universal Resolver Contract.
|
210
|
-
*
|
211
|
-
* @example
|
212
|
-
* const ensName = await getEnsName(publicClient, {
|
213
|
-
* address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
|
214
|
-
* })
|
215
|
-
* // 'wagmi-dev.eth'
|
216
|
-
*/
|
217
|
-
declare function getEnsName<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }: GetEnsNameParameters): Promise<GetEnsNameReturnType>;
|
218
|
-
|
219
|
-
type PublicActions<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = {
|
220
|
-
call: (args: CallParameters<TChain>) => Promise<CallReturnType>;
|
221
|
-
createBlockFilter: () => Promise<CreateBlockFilterReturnType>;
|
222
|
-
createContractEventFilter: <TAbi extends Abi | readonly unknown[], TEventName extends string | undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined>(args: CreateContractEventFilterParameters<TAbi, TEventName, TArgs>) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs>>;
|
223
|
-
createEventFilter: <TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined>(args?: CreateEventFilterParameters<TAbiEvent, TAbi, TEventName, TArgs>) => Promise<CreateEventFilterReturnType<TAbiEvent, TAbi, TEventName, TArgs>>;
|
224
|
-
createPendingTransactionFilter: () => Promise<CreatePendingTransactionFilterReturnType>;
|
225
|
-
estimateContractGas: <TChain extends Chain | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: EstimateContractGasParameters<TAbi, TFunctionName, TChain>) => Promise<EstimateContractGasReturnType>;
|
226
|
-
estimateGas: (args: EstimateGasParameters<TChain>) => Promise<EstimateGasReturnType>;
|
227
|
-
getBalance: (args: GetBalanceParameters) => Promise<GetBalanceReturnType>;
|
228
|
-
getBlock: (args?: GetBlockParameters) => Promise<GetBlockReturnType<TChain>>;
|
229
|
-
getBlockNumber: (args?: GetBlockNumberParameters) => Promise<GetBlockNumberReturnType>;
|
230
|
-
getBlockTransactionCount: (args?: GetBlockTransactionCountParameters) => Promise<GetBlockTransactionCountReturnType>;
|
231
|
-
getBytecode: (args: GetBytecodeParameters) => Promise<GetBytecodeReturnType>;
|
232
|
-
getChainId: () => Promise<GetChainIdReturnType>;
|
233
|
-
getEnsAddress: (args: GetEnsAddressParameters) => Promise<GetEnsAddressReturnType>;
|
234
|
-
getEnsName: (args: GetEnsNameParameters) => Promise<GetEnsNameReturnType>;
|
235
|
-
getFeeHistory: (args: GetFeeHistoryParameters) => Promise<GetFeeHistoryReturnType>;
|
236
|
-
getFilterChanges: <TFilterType extends FilterType, TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined>(args: GetFilterChangesParameters<TFilterType, TAbiEvent, TAbi, TEventName>) => Promise<GetFilterChangesReturnType<TFilterType, TAbiEvent, TAbi, TEventName>>;
|
237
|
-
getFilterLogs: <TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined>(args: GetFilterLogsParameters<TAbiEvent, TAbi, TEventName>) => Promise<GetFilterLogsReturnType<TAbiEvent, TAbi, TEventName>>;
|
238
|
-
getGasPrice: () => Promise<GetGasPriceReturnType>;
|
239
|
-
getLogs: <TAbiEvent extends AbiEvent | undefined>(args?: GetLogsParameters<TAbiEvent>) => Promise<GetLogsReturnType<TAbiEvent>>;
|
240
|
-
getStorageAt: (args: GetStorageAtParameters) => Promise<GetStorageAtReturnType>;
|
241
|
-
getTransaction: (args: GetTransactionParameters) => Promise<GetTransactionReturnType<TChain>>;
|
242
|
-
getTransactionConfirmations: (args: GetTransactionConfirmationsParameters<TChain>) => Promise<GetTransactionConfirmationsReturnType>;
|
243
|
-
getTransactionCount: (args: GetTransactionCountParameters) => Promise<GetTransactionCountReturnType>;
|
244
|
-
getTransactionReceipt: (args: GetTransactionReceiptParameters) => Promise<GetTransactionReceiptReturnType<TChain>>;
|
245
|
-
multicall: <TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: MulticallParameters<TContracts, TAllowFailure>) => Promise<MulticallReturnType<TContracts, TAllowFailure>>;
|
246
|
-
readContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: ReadContractParameters<TAbi, TFunctionName>) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
247
|
-
simulateContract: <TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any, TChainOverride extends Chain | undefined = undefined>(args: SimulateContractParameters<TAbi, TFunctionName, TChain, TChainOverride>) => Promise<SimulateContractReturnType<TAbi, TFunctionName, TChain, TChainOverride>>;
|
248
|
-
uninstallFilter: (args: UninstallFilterParameters) => Promise<UninstallFilterReturnType>;
|
249
|
-
waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters<TChain>) => Promise<WaitForTransactionReceiptReturnType<TChain>>;
|
250
|
-
watchBlockNumber: (args: WatchBlockNumberParameters) => WatchBlockNumberReturnType;
|
251
|
-
watchBlocks: (args: WatchBlocksParameters<TTransport, TChain>) => WatchBlocksReturnType;
|
252
|
-
watchContractEvent: <TAbi extends Abi | readonly unknown[], TEventName extends string>(args: WatchContractEventParameters<TAbi, TEventName>) => WatchContractEventReturnType;
|
253
|
-
watchEvent: <TAbiEvent extends AbiEvent | undefined>(args: WatchEventParameters<TAbiEvent>) => WatchEventReturnType;
|
254
|
-
watchPendingTransactions: (args: WatchPendingTransactionsParameters<TTransport>) => WatchPendingTransactionsReturnType;
|
255
|
-
};
|
256
|
-
|
257
|
-
type WalletClientConfig<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccountOrAddress extends Account | Address | undefined = Account | Address | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
258
|
-
/** The Account to use for the Wallet Client. This will be used for Actions that require an account as an argument. */
|
259
|
-
account?: TAccountOrAddress;
|
260
|
-
};
|
261
|
-
type WalletClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, TIncludeActions extends boolean = true> = Prettify<Client<TTransport, Requests, TChain> & (TIncludeActions extends true ? WalletActions<TChain, TAccount> : unknown) & {
|
262
|
-
/** The Account to use for the Wallet Client. */
|
263
|
-
account: TAccount;
|
264
|
-
}>;
|
265
|
-
/**
|
266
|
-
* @description Creates a wallet client with a given transport.
|
267
|
-
*/
|
268
|
-
declare function createWalletClient<TTransport extends Transport, TChain extends Chain | undefined = undefined, TAccountOrAddress extends Account | Address | undefined = undefined>({ account, chain, transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain, TAccountOrAddress>): WalletClient<TTransport, TChain, TAccountOrAddress extends Address ? Prettify<JsonRpcAccount<TAccountOrAddress>> : TAccountOrAddress, true>;
|
269
|
-
|
270
|
-
type WalletActions<TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = {
|
271
|
-
addChain: (args: AddChainParameters) => Promise<void>;
|
272
|
-
deployContract: <TAbi extends Abi | readonly unknown[], TChainOverride extends Chain | undefined>(args: DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<DeployContractReturnType>;
|
273
|
-
getAddresses: () => Promise<GetAddressesReturnType>;
|
274
|
-
getChainId: () => Promise<GetChainIdReturnType>;
|
275
|
-
getPermissions: () => Promise<GetPermissionsReturnType>;
|
276
|
-
requestAddresses: () => Promise<RequestAddressesReturnType>;
|
277
|
-
requestPermissions: (args: RequestPermissionsParameters) => Promise<RequestPermissionsReturnType>;
|
278
|
-
sendTransaction: <TChainOverride extends Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride>) => Promise<SendTransactionReturnType>;
|
279
|
-
signMessage: (args: SignMessageParameters<TAccount>) => Promise<SignMessageReturnType>;
|
280
|
-
signTypedData: <TTypedData extends TypedData | {
|
281
|
-
[key: string]: unknown;
|
282
|
-
}, TPrimaryType extends string>(args: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<SignTypedDataReturnType>;
|
283
|
-
switchChain: (args: SwitchChainParameters) => Promise<void>;
|
284
|
-
watchAsset: (args: WatchAssetParameters) => Promise<WatchAssetReturnType>;
|
285
|
-
writeContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChainOverride extends Chain | undefined>(args: WriteContractParameters<TAbi, TFunctionName, TChain, TAccount, TChainOverride>) => Promise<WriteContractReturnType>;
|
286
|
-
};
|
287
|
-
|
288
|
-
type PublicClientConfig<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'>;
|
289
|
-
type PublicClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TIncludeActions extends boolean = true> = Prettify<Client<TTransport, PublicRequests, TChain> & (TIncludeActions extends true ? PublicActions<TTransport, TChain> : unknown)>;
|
290
|
-
/**
|
291
|
-
* @description Creates a public client with a given transport.
|
292
|
-
*/
|
293
|
-
declare function createPublicClient<TTransport extends Transport, TChain extends Chain | undefined = undefined>({ chain, key, name, transport, pollingInterval, }: PublicClientConfig<TTransport, TChain>): PublicClient<TTransport, TChain, true>;
|
294
|
-
|
295
187
|
type FormattedCall<TFormatter extends Formatter | undefined = Formatter> = MergeIntersectionProperties<Omit<Formatted<TFormatter, TransactionRequest, true>, 'from'>, TransactionRequest>;
|
296
188
|
type CallParameters<TChain extends Chain | undefined = Chain | undefined> = FormattedCall<TransactionRequestFormatter<TChain>> & {
|
297
189
|
account?: Account | Address;
|
@@ -309,11 +201,9 @@ type CallReturnType = {
|
|
309
201
|
};
|
310
202
|
declare function call<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, args: CallParameters<TChain>): Promise<CallReturnType>;
|
311
203
|
|
312
|
-
type SimulateContractParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any, TChain extends Chain | undefined = Chain | undefined, TChainOverride extends Chain | undefined = undefined> =
|
204
|
+
type SimulateContractParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any, TChain extends Chain | undefined = Chain | undefined, TChainOverride extends Chain | undefined = undefined> = {
|
313
205
|
chain?: TChainOverride;
|
314
|
-
} & ContractFunctionConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> &
|
315
|
-
value?: GetValue<TAbi, TFunctionName, CallParameters<TChain>['value']>;
|
316
|
-
};
|
206
|
+
} & ContractFunctionConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> & Omit<CallParameters<TChainOverride extends Chain ? TChainOverride : TChain>, 'to' | 'data' | 'value'> & GetValue<TAbi, TFunctionName, CallParameters<TChain>['value']>;
|
317
207
|
type SimulateContractReturnType<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TChain extends Chain | undefined = Chain | undefined, TChainOverride extends Chain | undefined = undefined> = {
|
318
208
|
result: ContractFunctionResult<TAbi, TFunctionName>;
|
319
209
|
request: Omit<WriteContractParameters<TAbi, TFunctionName, TChain, undefined, TChainOverride>, 'chain'> & {
|
@@ -380,9 +270,7 @@ type EstimateGasReturnType = bigint;
|
|
380
270
|
*/
|
381
271
|
declare function estimateGas<TChain extends Chain | undefined, TAccount extends Account | undefined = undefined>(client: PublicClient<Transport, TChain> | WalletClient<Transport, TChain, TAccount>, args: EstimateGasParameters<TChain, TAccount>): Promise<EstimateGasReturnType>;
|
382
272
|
|
383
|
-
type EstimateContractGasParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TChain extends Chain | undefined = Chain | undefined> = Omit<EstimateGasParameters<TChain>, 'data' | 'to' | 'value'> &
|
384
|
-
value?: GetValue<TAbi, TFunctionName, EstimateGasParameters<TChain>['value']>;
|
385
|
-
};
|
273
|
+
type EstimateContractGasParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string, TChain extends Chain | undefined = Chain | undefined> = ContractFunctionConfig<TAbi, TFunctionName, 'payable' | 'nonpayable'> & Omit<EstimateGasParameters<TChain>, 'data' | 'to' | 'value'> & GetValue<TAbi, TFunctionName, EstimateGasParameters<TChain>['value']>;
|
386
274
|
type EstimateContractGasReturnType = bigint;
|
387
275
|
declare function estimateContractGas<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { abi, address, args, functionName, ...request }: EstimateContractGasParameters<TAbi, TFunctionName, TChain>): Promise<EstimateContractGasReturnType>;
|
388
276
|
|
@@ -823,4 +711,166 @@ type WatchPendingTransactionsParameters<TTransport extends Transport = Transport
|
|
823
711
|
type WatchPendingTransactionsReturnType = () => void;
|
824
712
|
declare function watchPendingTransactions<TTransport extends Transport, TChain extends Chain | undefined>(client: PublicClient<TTransport, TChain>, { batch, onError, onTransactions, poll: poll_, pollingInterval, }: WatchPendingTransactionsParameters<TTransport>): () => void;
|
825
713
|
|
826
|
-
|
714
|
+
type PublicActions<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = {
|
715
|
+
call: (args: CallParameters<TChain>) => Promise<CallReturnType>;
|
716
|
+
createBlockFilter: () => Promise<CreateBlockFilterReturnType>;
|
717
|
+
createContractEventFilter: <TAbi extends Abi | readonly unknown[], TEventName extends string | undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined>(args: CreateContractEventFilterParameters<TAbi, TEventName, TArgs>) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs>>;
|
718
|
+
createEventFilter: <TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined>(args?: CreateEventFilterParameters<TAbiEvent, TAbi, TEventName, TArgs>) => Promise<CreateEventFilterReturnType<TAbiEvent, TAbi, TEventName, TArgs>>;
|
719
|
+
createPendingTransactionFilter: () => Promise<CreatePendingTransactionFilterReturnType>;
|
720
|
+
estimateContractGas: <TChain extends Chain | undefined, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: EstimateContractGasParameters<TAbi, TFunctionName, TChain>) => Promise<EstimateContractGasReturnType>;
|
721
|
+
estimateGas: (args: EstimateGasParameters<TChain>) => Promise<EstimateGasReturnType>;
|
722
|
+
getBalance: (args: GetBalanceParameters) => Promise<GetBalanceReturnType>;
|
723
|
+
getBlock: (args?: GetBlockParameters) => Promise<GetBlockReturnType<TChain>>;
|
724
|
+
getBlockNumber: (args?: GetBlockNumberParameters) => Promise<GetBlockNumberReturnType>;
|
725
|
+
getBlockTransactionCount: (args?: GetBlockTransactionCountParameters) => Promise<GetBlockTransactionCountReturnType>;
|
726
|
+
getBytecode: (args: GetBytecodeParameters) => Promise<GetBytecodeReturnType>;
|
727
|
+
getChainId: () => Promise<GetChainIdReturnType>;
|
728
|
+
getEnsAddress: (args: GetEnsAddressParameters) => Promise<GetEnsAddressReturnType>;
|
729
|
+
getEnsAvatar: (args: GetEnsAvatarParameters) => Promise<GetEnsAvatarReturnType>;
|
730
|
+
getEnsName: (args: GetEnsNameParameters) => Promise<GetEnsNameReturnType>;
|
731
|
+
getEnsResolver: (args: GetEnsResolverParameters) => Promise<GetEnsResolverReturnType>;
|
732
|
+
getEnsText: (args: GetEnsTextParameters) => Promise<GetEnsTextReturnType>;
|
733
|
+
getFeeHistory: (args: GetFeeHistoryParameters) => Promise<GetFeeHistoryReturnType>;
|
734
|
+
getFilterChanges: <TFilterType extends FilterType, TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined>(args: GetFilterChangesParameters<TFilterType, TAbiEvent, TAbi, TEventName>) => Promise<GetFilterChangesReturnType<TFilterType, TAbiEvent, TAbi, TEventName>>;
|
735
|
+
getFilterLogs: <TAbiEvent extends AbiEvent | undefined, TAbi extends Abi | readonly unknown[], TEventName extends string | undefined>(args: GetFilterLogsParameters<TAbiEvent, TAbi, TEventName>) => Promise<GetFilterLogsReturnType<TAbiEvent, TAbi, TEventName>>;
|
736
|
+
getGasPrice: () => Promise<GetGasPriceReturnType>;
|
737
|
+
getLogs: <TAbiEvent extends AbiEvent | undefined>(args?: GetLogsParameters<TAbiEvent>) => Promise<GetLogsReturnType<TAbiEvent>>;
|
738
|
+
getStorageAt: (args: GetStorageAtParameters) => Promise<GetStorageAtReturnType>;
|
739
|
+
getTransaction: (args: GetTransactionParameters) => Promise<GetTransactionReturnType<TChain>>;
|
740
|
+
getTransactionConfirmations: (args: GetTransactionConfirmationsParameters<TChain>) => Promise<GetTransactionConfirmationsReturnType>;
|
741
|
+
getTransactionCount: (args: GetTransactionCountParameters) => Promise<GetTransactionCountReturnType>;
|
742
|
+
getTransactionReceipt: (args: GetTransactionReceiptParameters) => Promise<GetTransactionReceiptReturnType<TChain>>;
|
743
|
+
multicall: <TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: MulticallParameters<TContracts, TAllowFailure>) => Promise<MulticallReturnType<TContracts, TAllowFailure>>;
|
744
|
+
readContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: ReadContractParameters<TAbi, TFunctionName>) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
745
|
+
simulateContract: <TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any, TChainOverride extends Chain | undefined = undefined>(args: SimulateContractParameters<TAbi, TFunctionName, TChain, TChainOverride>) => Promise<SimulateContractReturnType<TAbi, TFunctionName, TChain, TChainOverride>>;
|
746
|
+
uninstallFilter: (args: UninstallFilterParameters) => Promise<UninstallFilterReturnType>;
|
747
|
+
waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters<TChain>) => Promise<WaitForTransactionReceiptReturnType<TChain>>;
|
748
|
+
watchBlockNumber: (args: WatchBlockNumberParameters) => WatchBlockNumberReturnType;
|
749
|
+
watchBlocks: (args: WatchBlocksParameters<TTransport, TChain>) => WatchBlocksReturnType;
|
750
|
+
watchContractEvent: <TAbi extends Abi | readonly unknown[], TEventName extends string>(args: WatchContractEventParameters<TAbi, TEventName>) => WatchContractEventReturnType;
|
751
|
+
watchEvent: <TAbiEvent extends AbiEvent | undefined>(args: WatchEventParameters<TAbiEvent>) => WatchEventReturnType;
|
752
|
+
watchPendingTransactions: (args: WatchPendingTransactionsParameters<TTransport>) => WatchPendingTransactionsReturnType;
|
753
|
+
};
|
754
|
+
|
755
|
+
type WalletClientConfig<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccountOrAddress extends Account | Address | undefined = Account | Address | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
756
|
+
/** The Account to use for the Wallet Client. This will be used for Actions that require an account as an argument. */
|
757
|
+
account?: TAccountOrAddress;
|
758
|
+
};
|
759
|
+
type WalletClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined, TIncludeActions extends boolean = true> = Prettify<Client<TTransport, Requests, TChain> & (TIncludeActions extends true ? WalletActions<TChain, TAccount> : unknown) & {
|
760
|
+
/** The Account to use for the Wallet Client. */
|
761
|
+
account: TAccount;
|
762
|
+
}>;
|
763
|
+
/**
|
764
|
+
* @description Creates a wallet client with a given transport.
|
765
|
+
*/
|
766
|
+
declare function createWalletClient<TTransport extends Transport, TChain extends Chain | undefined = undefined, TAccountOrAddress extends Account | Address | undefined = undefined>({ account, chain, transport, key, name, pollingInterval, }: WalletClientConfig<TTransport, TChain, TAccountOrAddress>): WalletClient<TTransport, TChain, TAccountOrAddress extends Address ? Prettify<JsonRpcAccount<TAccountOrAddress>> : TAccountOrAddress, true>;
|
767
|
+
|
768
|
+
type WalletActions<TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = {
|
769
|
+
addChain: (args: AddChainParameters) => Promise<void>;
|
770
|
+
deployContract: <TAbi extends Abi | readonly unknown[], TChainOverride extends Chain | undefined>(args: DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<DeployContractReturnType>;
|
771
|
+
getAddresses: () => Promise<GetAddressesReturnType>;
|
772
|
+
getChainId: () => Promise<GetChainIdReturnType>;
|
773
|
+
getPermissions: () => Promise<GetPermissionsReturnType>;
|
774
|
+
requestAddresses: () => Promise<RequestAddressesReturnType>;
|
775
|
+
requestPermissions: (args: RequestPermissionsParameters) => Promise<RequestPermissionsReturnType>;
|
776
|
+
sendTransaction: <TChainOverride extends Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride>) => Promise<SendTransactionReturnType>;
|
777
|
+
signMessage: (args: SignMessageParameters<TAccount>) => Promise<SignMessageReturnType>;
|
778
|
+
signTypedData: <TTypedData extends TypedData | {
|
779
|
+
[key: string]: unknown;
|
780
|
+
}, TPrimaryType extends string>(args: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<SignTypedDataReturnType>;
|
781
|
+
switchChain: (args: SwitchChainParameters) => Promise<void>;
|
782
|
+
watchAsset: (args: WatchAssetParameters) => Promise<WatchAssetReturnType>;
|
783
|
+
writeContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChainOverride extends Chain | undefined>(args: WriteContractParameters<TAbi, TFunctionName, TChain, TAccount, TChainOverride>) => Promise<WriteContractReturnType>;
|
784
|
+
};
|
785
|
+
|
786
|
+
type PublicClientConfig<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'>;
|
787
|
+
type PublicClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TIncludeActions extends boolean = true> = Prettify<Client<TTransport, PublicRequests, TChain> & (TIncludeActions extends true ? PublicActions<TTransport, TChain> : unknown)>;
|
788
|
+
/**
|
789
|
+
* @description Creates a public client with a given transport.
|
790
|
+
*/
|
791
|
+
declare function createPublicClient<TTransport extends Transport, TChain extends Chain | undefined = undefined>({ chain, key, name, transport, pollingInterval, }: PublicClientConfig<TTransport, TChain>): PublicClient<TTransport, TChain, true>;
|
792
|
+
|
793
|
+
type GetEnsAddressParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
794
|
+
/** ENS name to get address. */
|
795
|
+
name: string;
|
796
|
+
/** Address of ENS Universal Resolver Contract */
|
797
|
+
universalResolverAddress?: Address;
|
798
|
+
}>;
|
799
|
+
type GetEnsAddressReturnType = Address;
|
800
|
+
/**
|
801
|
+
* @description Gets address for ENS name.
|
802
|
+
*
|
803
|
+
* - Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
|
804
|
+
* - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
|
805
|
+
*/
|
806
|
+
declare function getEnsAddress<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }: GetEnsAddressParameters): Promise<GetEnsAddressReturnType>;
|
807
|
+
|
808
|
+
type GetEnsTextParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
809
|
+
/** ENS name to get ENS avatar for. */
|
810
|
+
name: string;
|
811
|
+
/** Text record to retrieve */
|
812
|
+
key: string;
|
813
|
+
/** Address of ENS Universal Resolver Contract. */
|
814
|
+
universalResolverAddress?: Address;
|
815
|
+
}>;
|
816
|
+
type GetEnsTextReturnType = string | null;
|
817
|
+
/**
|
818
|
+
* @description Gets text record for ENS name.
|
819
|
+
*
|
820
|
+
* - Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
|
821
|
+
* - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
|
822
|
+
*
|
823
|
+
* @example
|
824
|
+
* import { normalize } from 'viem/ens'
|
825
|
+
*
|
826
|
+
* const twitterRecord = await getEnsText(publicClient, {
|
827
|
+
* name: normalize('wagmi-dev.eth'),
|
828
|
+
* key: 'com.twitter',
|
829
|
+
* })
|
830
|
+
* // 'wagmi_sh'
|
831
|
+
*/
|
832
|
+
declare function getEnsText<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, name, key, universalResolverAddress: universalResolverAddress_, }: GetEnsTextParameters): Promise<GetEnsTextReturnType>;
|
833
|
+
|
834
|
+
type GetEnsAvatarParameters = Prettify<Omit<GetEnsTextParameters, 'key'> & {
|
835
|
+
/** Custom gateways to use */
|
836
|
+
gatewayUrls?: AssetGatewayUrls;
|
837
|
+
}>;
|
838
|
+
type GetEnsAvatarReturnType = string | null;
|
839
|
+
/**
|
840
|
+
* @description Gets avatar URI for ENS name.
|
841
|
+
*/
|
842
|
+
declare function getEnsAvatar<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, gatewayUrls, name, universalResolverAddress, }: GetEnsAvatarParameters): Promise<GetEnsAvatarReturnType>;
|
843
|
+
|
844
|
+
type GetEnsNameParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
845
|
+
/** Address to get ENS name for. */
|
846
|
+
address: Address;
|
847
|
+
/** Address of ENS Universal Resolver Contract. */
|
848
|
+
universalResolverAddress?: Address;
|
849
|
+
}>;
|
850
|
+
type GetEnsNameReturnType = string | null;
|
851
|
+
/**
|
852
|
+
* @description Gets primary name for specified address.
|
853
|
+
*
|
854
|
+
* - Calls `reverse(bytes)` on ENS Universal Resolver Contract.
|
855
|
+
*
|
856
|
+
* @example
|
857
|
+
* const ensName = await getEnsName(publicClient, {
|
858
|
+
* address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
|
859
|
+
* })
|
860
|
+
* // 'wagmi-dev.eth'
|
861
|
+
*/
|
862
|
+
declare function getEnsName<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }: GetEnsNameParameters): Promise<GetEnsNameReturnType>;
|
863
|
+
|
864
|
+
type GetEnsResolverParameters = Prettify<Pick<ReadContractParameters, 'blockNumber' | 'blockTag'> & {
|
865
|
+
/** ENS name to get resolver. */
|
866
|
+
name: string;
|
867
|
+
/** Address of ENS Universal Resolver Contract */
|
868
|
+
universalResolverAddress?: Address;
|
869
|
+
}>;
|
870
|
+
type GetEnsResolverReturnType = Address;
|
871
|
+
/**
|
872
|
+
* @description Gets resolver for ENS name.
|
873
|
+
*/
|
874
|
+
declare function getEnsResolver<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }: GetEnsResolverParameters): Promise<`0x${string}`>;
|
875
|
+
|
876
|
+
export { GetStorageAtParameters as $, AddChainParameters as A, GetBytecodeReturnType as B, CreateContractEventFilterParameters as C, DeployContractParameters as D, EstimateContractGasParameters as E, GetChainIdReturnType as F, GetAddressesReturnType as G, GetEnsAddressParameters as H, GetEnsAddressReturnType as I, GetEnsNameParameters as J, GetEnsNameReturnType as K, GetEnsResolverParameters as L, GetEnsResolverReturnType as M, GetFeeHistoryParameters as N, GetFeeHistoryReturnType as O, PublicClient as P, GetFilterChangesParameters as Q, ReadContractParameters as R, SimulateContractParameters as S, GetFilterChangesReturnType as T, GetFilterLogsParameters as U, GetFilterLogsReturnType as V, WalletClient as W, GetGasPriceReturnType as X, GetLogsParameters as Y, GetLogsReturnType as Z, GetPermissionsReturnType as _, ReadContractReturnType as a, defineTransactionReceipt as a$, GetStorageAtReturnType as a0, GetTransactionConfirmationsParameters as a1, GetTransactionCountParameters as a2, GetTransactionConfirmationsReturnType as a3, GetTransactionCountReturnType as a4, GetTransactionParameters as a5, GetTransactionReceiptParameters as a6, GetTransactionReceiptReturnType as a7, GetTransactionReturnType as a8, MulticallParameters as a9, WatchAssetReturnType as aA, WatchBlockNumberParameters as aB, WatchBlockNumberReturnType as aC, WatchBlocksParameters as aD, WatchBlocksReturnType as aE, WatchEventParameters as aF, WatchEventReturnType as aG, WatchPendingTransactionsParameters as aH, WatchPendingTransactionsReturnType as aI, PublicClientConfig as aJ, WalletClientConfig as aK, createPublicClient as aL, createWalletClient as aM, AssetGateway as aN, AssetGatewayUrls as aO, GetTransportConfig as aP, MulticallContracts as aQ, MulticallResult as aR, MulticallResults as aS, ParseAccount as aT, BlockFormatter as aU, FormattedBlock as aV, FormattedTransactionReceipt as aW, FormattedTransactionRequest$1 as aX, TransactionReceiptFormatter as aY, TransactionRequestFormatter as aZ, defineBlock as a_, MulticallReturnType as aa, OnBlock as ab, OnBlockNumberFn as ac, OnBlockNumberParameter as ad, OnBlockParameter as ae, OnLogsFn as af, OnLogsParameter as ag, OnTransactionsFn as ah, OnTransactionsParameter as ai, ReplacementReason as aj, ReplacementReturnType as ak, RequestAddressesReturnType as al, RequestPermissionsReturnType as am, RequestPermissionsParameters as an, SendTransactionParameters as ao, SendTransactionReturnType as ap, SignMessageParameters as aq, SignMessageReturnType as ar, SignTypedDataParameters as as, SignTypedDataReturnType as at, SwitchChainParameters as au, UninstallFilterParameters as av, UninstallFilterReturnType as aw, WaitForTransactionReceiptParameters as ax, WaitForTransactionReceiptReturnType as ay, WatchAssetParameters as az, EstimateContractGasReturnType as b, defineTransactionRequest as b0, formatBlock as b1, formatTransactionRequest as b2, GetAccountParameter as b3, createContractEventFilter as b4, estimateContractGas as b5, getBytecode as b6, getStorageAt as b7, multicall as b8, readContract as b9, getFilterLogs as bA, getLogs as bB, getGasPrice as bC, getTransaction as bD, getTransactionConfirmations as bE, getTransactionCount as bF, getTransactionReceipt as bG, uninstallFilter as bH, waitForTransactionReceipt as bI, watchBlockNumber as bJ, watchBlocks as bK, watchEvent as bL, watchPendingTransactions as bM, addChain as bN, getAddresses as bO, getPermissions as bP, requestAddresses as bQ, requestPermissions as bR, sendTransaction as bS, signMessage as bT, signTypedData as bU, switchChain as bV, watchAsset as bW, FormattedTransactionRequest as bX, simulateContract as ba, watchContractEvent as bb, deployContract as bc, writeContract as bd, GetEnsAvatarParameters as be, GetEnsAvatarReturnType as bf, GetEnsTextParameters as bg, GetEnsTextReturnType as bh, getEnsAddress as bi, getEnsAvatar as bj, getEnsName as bk, getEnsResolver as bl, getEnsText as bm, call as bn, createBlockFilter as bo, createEventFilter as bp, createPendingTransactionFilter as bq, estimateGas as br, getBalance as bs, getBlock as bt, getBlockNumber as bu, getBlockNumberCache as bv, getBlockTransactionCount as bw, getChainId as bx, getFeeHistory as by, getFilterChanges as bz, SimulateContractReturnType as c, WriteContractParameters as d, WriteContractReturnType as e, CreateContractEventFilterReturnType as f, WatchContractEventParameters as g, WatchContractEventReturnType as h, CallParameters as i, CallReturnType as j, CreateBlockFilterReturnType as k, CreateEventFilterParameters as l, CreateEventFilterReturnType as m, CreatePendingTransactionFilterReturnType as n, DeployContractReturnType as o, EstimateGasParameters as p, EstimateGasReturnType as q, GetBalanceParameters as r, GetBalanceReturnType as s, GetBlockNumberParameters as t, GetBlockNumberReturnType as u, GetBlockParameters as v, GetBlockReturnType as w, GetBlockTransactionCountParameters as x, GetBlockTransactionCountReturnType as y, GetBytecodeParameters as z };
|