wagmi 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -1606
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -4,15 +4,13 @@ import { Persister } from '@tanstack/react-query-persist-client';
4
4
  import * as _wagmi_core from '@wagmi/core';
5
5
  import { PublicClient, WebSocketPublicClient, CreateConfigParameters as CreateConfigParameters$1, Config as Config$1, GetAccountResult, FetchBalanceResult, FetchBalanceArgs, ConnectArgs, ConnectResult, SignMessageArgs, SignMessageResult, SignTypedDataArgs, SignTypedDataResult, SwitchNetworkArgs, SwitchNetworkResult, WatchContractEventConfig, WatchContractEventCallback, ReadContractsResult, ReadContractsConfig, ReadContractResult, ReadContractConfig, WriteContractMode, WriteContractResult, WriteContractUnpreparedArgs, PrepareWriteContractResult, WalletClient, PrepareWriteContractConfig, FetchTokenResult, FetchTokenArgs, FetchEnsAddressArgs, FetchEnsAddressResult, FetchEnsAvatarArgs, FetchEnsAvatarResult, FetchEnsNameArgs, FetchEnsNameResult, FetchEnsResolverArgs, FetchEnsResolverResult, FetchBlockNumberArgs, FetchBlockNumberResult, FetchFeeDataResult, FetchFeeDataArgs, GetPublicClientArgs, GetWalletClientResult, GetWalletClientArgs, GetWebSocketPublicClientArgs, PrepareSendTransactionResult, PrepareSendTransactionArgs, SendTransactionResult, SendTransactionArgs, FetchTransactionArgs, FetchTransactionResult, WaitForTransactionArgs, WaitForTransactionResult, WatchPendingTransactionsCallback } from '@wagmi/core';
6
6
  export { Chain, ChainMismatchError, ChainNotConfiguredError, ChainProviderFn, ConfigChainsNotFound, Connector, ConnectorAlreadyConnectedError, ConnectorData, ConnectorEvents, ConnectorNotFoundError, PublicClient, Storage, SwitchChainNotSupportedError, Unit, WalletClient, WebSocketPublicClient, WindowProvider, configureChains, createStorage, deepEqual, deserialize, erc20ABI, erc4626ABI, erc721ABI, mainnet, readContracts, sepolia, serialize } from '@wagmi/core';
7
- import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
8
- import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
9
- import * as viem from 'viem';
10
- import { ContractFunctionConfig, MulticallContracts, SendTransactionParameters, GetFunctionArgs } from 'viem';
11
7
  import * as React from 'react';
12
- import * as abitype_dist_abi_3a9c20c7 from 'abitype/dist/abi-3a9c20c7';
13
- import { Never } from '@wagmi/core/internal';
8
+ import * as abitype from 'abitype';
14
9
  import { TypedData, Abi, Narrow } from 'abitype';
15
10
  export { Address } from 'abitype';
11
+ import { Never } from '@wagmi/core/internal';
12
+ import * as viem from 'viem';
13
+ import { ContractFunctionConfig, MulticallContracts, SendTransactionParameters, GetFunctionArgs } from 'viem';
16
14
 
17
15
  type CreateConfigParameters<TPublicClient extends PublicClient = PublicClient, TWebSocketPublicClient extends WebSocketPublicClient = WebSocketPublicClient> = CreateConfigParameters$1<TPublicClient, TWebSocketPublicClient> & {
18
16
  queryClient?: QueryClient;
@@ -25,920 +23,12 @@ type Config<TPublicClient extends PublicClient = PublicClient, TWebSocketPublicC
25
23
  queryClient: QueryClient;
26
24
  };
27
25
 
28
- declare const Context: React.Context<Config<PublicClient<viem.Transport<string, Record<string, any>, {
29
- (args: {
30
- method: "web3_clientVersion";
31
- params?: undefined;
32
- }): Promise<string>;
33
- (args: {
34
- method: "web3_sha3";
35
- params: [data: `0x${string}`];
36
- }): Promise<string>;
37
- (args: {
38
- method: "net_listening";
39
- params?: undefined;
40
- }): Promise<boolean>;
41
- (args: {
42
- method: "net_peerCount";
43
- params?: undefined;
44
- }): Promise<`0x${string}`>;
45
- (args: {
46
- method: "net_version";
47
- params?: undefined;
48
- }): Promise<`0x${string}`>;
49
- (args: {
50
- method: "eth_blockNumber";
51
- params?: undefined;
52
- }): Promise<`0x${string}`>;
53
- (args: {
54
- method: "eth_call";
55
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
56
- }): Promise<`0x${string}`>;
57
- (args: {
58
- method: "eth_chainId";
59
- params?: undefined;
60
- }): Promise<`0x${string}`>;
61
- (args: {
62
- method: "eth_coinbase";
63
- params?: undefined;
64
- }): Promise<`0x${string}`>;
65
- (args: {
66
- method: "eth_estimateGas";
67
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
68
- }): Promise<`0x${string}`>;
69
- (args: {
70
- method: "eth_feeHistory";
71
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
72
- }): Promise<viem.RpcFeeHistory>;
73
- (args: {
74
- method: "eth_gasPrice";
75
- params?: undefined;
76
- }): Promise<`0x${string}`>;
77
- (args: {
78
- method: "eth_getBalance";
79
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
80
- }): Promise<`0x${string}`>;
81
- (args: {
82
- method: "eth_getBlockByHash";
83
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
84
- }): Promise<viem.RpcBlock | null>;
85
- (args: {
86
- method: "eth_getBlockByNumber";
87
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
88
- }): Promise<viem.RpcBlock | null>;
89
- (args: {
90
- method: "eth_getBlockTransactionCountByHash";
91
- params: [hash: `0x${string}`];
92
- }): Promise<`0x${string}`>;
93
- (args: {
94
- method: "eth_getBlockTransactionCountByNumber";
95
- params: [block: `0x${string}` | viem.BlockTag];
96
- }): Promise<`0x${string}`>;
97
- (args: {
98
- method: "eth_getCode";
99
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
100
- }): Promise<`0x${string}`>;
101
- (args: {
102
- method: "eth_getFilterChanges";
103
- params: [filterId: `0x${string}`];
104
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
105
- (args: {
106
- method: "eth_getFilterLogs";
107
- params: [filterId: `0x${string}`];
108
- }): Promise<viem.RpcLog[]>;
109
- (args: {
110
- method: "eth_getLogs";
111
- params: [parameters: {
112
- address?: `0x${string}` | `0x${string}`[] | undefined;
113
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
114
- } & ({
115
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
116
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
117
- blockHash?: undefined;
118
- } | {
119
- fromBlock?: undefined;
120
- toBlock?: undefined;
121
- blockHash?: `0x${string}` | undefined;
122
- })];
123
- }): Promise<viem.RpcLog[]>;
124
- (args: {
125
- method: "eth_getStorageAt";
126
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
127
- }): Promise<`0x${string}`>;
128
- (args: {
129
- method: "eth_getTransactionByBlockHashAndIndex";
130
- params: [hash: `0x${string}`, index: `0x${string}`];
131
- }): Promise<viem.RpcTransaction | null>;
132
- (args: {
133
- method: "eth_getTransactionByBlockNumberAndIndex";
134
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
135
- }): Promise<viem.RpcTransaction | null>;
136
- (args: {
137
- method: "eth_getTransactionByHash";
138
- params: [hash: `0x${string}`];
139
- }): Promise<viem.RpcTransaction | null>;
140
- (args: {
141
- method: "eth_getTransactionCount";
142
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
143
- }): Promise<`0x${string}`>;
144
- (args: {
145
- method: "eth_getTransactionReceipt";
146
- params: [hash: `0x${string}`];
147
- }): Promise<viem.RpcTransactionReceipt | null>;
148
- (args: {
149
- method: "eth_getUncleByBlockHashAndIndex";
150
- params: [hash: `0x${string}`, index: `0x${string}`];
151
- }): Promise<viem.RpcUncle | null>;
152
- (args: {
153
- method: "eth_getUncleByBlockNumberAndIndex";
154
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
155
- }): Promise<viem.RpcUncle | null>;
156
- (args: {
157
- method: "eth_getUncleCountByBlockHash";
158
- params: [hash: `0x${string}`];
159
- }): Promise<`0x${string}`>;
160
- (args: {
161
- method: "eth_getUncleCountByBlockNumber";
162
- params: [block: `0x${string}` | viem.BlockTag];
163
- }): Promise<`0x${string}`>;
164
- (args: {
165
- method: "eth_newBlockFilter";
166
- params?: undefined;
167
- }): Promise<`0x${string}`>;
168
- (args: {
169
- method: "eth_newFilter";
170
- params: [filter: {
171
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
172
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
173
- address?: `0x${string}` | `0x${string}`[] | undefined;
174
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
175
- }];
176
- }): Promise<`0x${string}`>;
177
- (args: {
178
- method: "eth_newPendingTransactionFilter";
179
- params?: undefined;
180
- }): Promise<`0x${string}`>;
181
- (args: {
182
- method: "eth_protocolVersion";
183
- params?: undefined;
184
- }): Promise<string>;
185
- (args: {
186
- method: "eth_sendRawTransaction";
187
- params: [signedTransaction: `0x${string}`];
188
- }): Promise<`0x${string}`>;
189
- (args: {
190
- method: "eth_uninstallFilter";
191
- params: [filterId: `0x${string}`];
192
- }): Promise<boolean>;
193
- } & {
194
- (args: {
195
- method: "eth_sendTransaction";
196
- params: [request: viem.RpcTransactionRequest];
197
- }): Promise<`0x${string}`>;
198
- (args: {
199
- method: "eth_sign";
200
- params: [address: `0x${string}`, data: `0x${string}`];
201
- }): Promise<`0x${string}`>;
202
- (args: {
203
- method: "eth_signTransaction";
204
- params: [request: viem.RpcTransactionRequest];
205
- }): Promise<`0x${string}`>;
206
- (args: {
207
- method: "eth_signTypedData_v4";
208
- params: [address: `0x${string}`, message: string];
209
- }): Promise<`0x${string}`>;
210
- (args: {
211
- method: "eth_syncing";
212
- params?: undefined;
213
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
214
- (args: {
215
- method: "personal_sign";
216
- params: [data: `0x${string}`, address: `0x${string}`];
217
- }): Promise<`0x${string}`>;
218
- } & {
219
- (args: {
220
- method: "eth_accounts";
221
- params?: undefined;
222
- }): Promise<`0x${string}`[]>;
223
- (args: {
224
- method: "eth_chainId";
225
- params?: undefined;
226
- }): Promise<`0x${string}`>;
227
- (args: {
228
- method: "eth_requestAccounts";
229
- params?: undefined;
230
- }): Promise<`0x${string}`[]>;
231
- (args: {
232
- method: "wallet_requestPermissions";
233
- params: [permissions: {
234
- eth_accounts: Record<string, any>;
235
- }];
236
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
237
- (args: {
238
- method: "wallet_getPermissions";
239
- params?: undefined;
240
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
241
- (args: {
242
- method: "wallet_addEthereumChain";
243
- params: [chain: viem_dist_types_types_eip1193.Chain];
244
- }): Promise<null>;
245
- (args: {
246
- method: "wallet_switchEthereumChain";
247
- params: [chain: {
248
- chainId: string;
249
- }];
250
- }): Promise<null>;
251
- (args: {
252
- method: "wallet_watchAsset";
253
- params: viem_dist_types_types_eip1193.WatchAssetParams;
254
- }): Promise<boolean>;
255
- }>, _wagmi_core.Chain>, WebSocketPublicClient<viem.Transport<string, Record<string, any>, {
256
- (args: {
257
- method: "web3_clientVersion";
258
- params?: undefined;
259
- }): Promise<string>;
260
- (args: {
261
- method: "web3_sha3";
262
- params: [data: `0x${string}`];
263
- }): Promise<string>;
264
- (args: {
265
- method: "net_listening";
266
- params?: undefined;
267
- }): Promise<boolean>;
268
- (args: {
269
- method: "net_peerCount";
270
- params?: undefined;
271
- }): Promise<`0x${string}`>;
272
- (args: {
273
- method: "net_version";
274
- params?: undefined;
275
- }): Promise<`0x${string}`>;
276
- (args: {
277
- method: "eth_blockNumber";
278
- params?: undefined;
279
- }): Promise<`0x${string}`>;
280
- (args: {
281
- method: "eth_call";
282
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
283
- }): Promise<`0x${string}`>;
284
- (args: {
285
- method: "eth_chainId";
286
- params?: undefined;
287
- }): Promise<`0x${string}`>;
288
- (args: {
289
- method: "eth_coinbase";
290
- params?: undefined;
291
- }): Promise<`0x${string}`>;
292
- (args: {
293
- method: "eth_estimateGas";
294
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
295
- }): Promise<`0x${string}`>;
296
- (args: {
297
- method: "eth_feeHistory";
298
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
299
- }): Promise<viem.RpcFeeHistory>;
300
- (args: {
301
- method: "eth_gasPrice";
302
- params?: undefined;
303
- }): Promise<`0x${string}`>;
304
- (args: {
305
- method: "eth_getBalance";
306
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
307
- }): Promise<`0x${string}`>;
308
- (args: {
309
- method: "eth_getBlockByHash";
310
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
311
- }): Promise<viem.RpcBlock | null>;
312
- (args: {
313
- method: "eth_getBlockByNumber";
314
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
315
- }): Promise<viem.RpcBlock | null>;
316
- (args: {
317
- method: "eth_getBlockTransactionCountByHash";
318
- params: [hash: `0x${string}`];
319
- }): Promise<`0x${string}`>;
320
- (args: {
321
- method: "eth_getBlockTransactionCountByNumber";
322
- params: [block: `0x${string}` | viem.BlockTag];
323
- }): Promise<`0x${string}`>;
324
- (args: {
325
- method: "eth_getCode";
326
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
327
- }): Promise<`0x${string}`>;
328
- (args: {
329
- method: "eth_getFilterChanges";
330
- params: [filterId: `0x${string}`];
331
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
332
- (args: {
333
- method: "eth_getFilterLogs";
334
- params: [filterId: `0x${string}`];
335
- }): Promise<viem.RpcLog[]>;
336
- (args: {
337
- method: "eth_getLogs";
338
- params: [parameters: {
339
- address?: `0x${string}` | `0x${string}`[] | undefined;
340
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
341
- } & ({
342
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
343
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
344
- blockHash?: undefined;
345
- } | {
346
- fromBlock?: undefined;
347
- toBlock?: undefined;
348
- blockHash?: `0x${string}` | undefined;
349
- })];
350
- }): Promise<viem.RpcLog[]>;
351
- (args: {
352
- method: "eth_getStorageAt";
353
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
354
- }): Promise<`0x${string}`>;
355
- (args: {
356
- method: "eth_getTransactionByBlockHashAndIndex";
357
- params: [hash: `0x${string}`, index: `0x${string}`];
358
- }): Promise<viem.RpcTransaction | null>;
359
- (args: {
360
- method: "eth_getTransactionByBlockNumberAndIndex";
361
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
362
- }): Promise<viem.RpcTransaction | null>;
363
- (args: {
364
- method: "eth_getTransactionByHash";
365
- params: [hash: `0x${string}`];
366
- }): Promise<viem.RpcTransaction | null>;
367
- (args: {
368
- method: "eth_getTransactionCount";
369
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
370
- }): Promise<`0x${string}`>;
371
- (args: {
372
- method: "eth_getTransactionReceipt";
373
- params: [hash: `0x${string}`];
374
- }): Promise<viem.RpcTransactionReceipt | null>;
375
- (args: {
376
- method: "eth_getUncleByBlockHashAndIndex";
377
- params: [hash: `0x${string}`, index: `0x${string}`];
378
- }): Promise<viem.RpcUncle | null>;
379
- (args: {
380
- method: "eth_getUncleByBlockNumberAndIndex";
381
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
382
- }): Promise<viem.RpcUncle | null>;
383
- (args: {
384
- method: "eth_getUncleCountByBlockHash";
385
- params: [hash: `0x${string}`];
386
- }): Promise<`0x${string}`>;
387
- (args: {
388
- method: "eth_getUncleCountByBlockNumber";
389
- params: [block: `0x${string}` | viem.BlockTag];
390
- }): Promise<`0x${string}`>;
391
- (args: {
392
- method: "eth_newBlockFilter";
393
- params?: undefined;
394
- }): Promise<`0x${string}`>;
395
- (args: {
396
- method: "eth_newFilter";
397
- params: [filter: {
398
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
399
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
400
- address?: `0x${string}` | `0x${string}`[] | undefined;
401
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
402
- }];
403
- }): Promise<`0x${string}`>;
404
- (args: {
405
- method: "eth_newPendingTransactionFilter";
406
- params?: undefined;
407
- }): Promise<`0x${string}`>;
408
- (args: {
409
- method: "eth_protocolVersion";
410
- params?: undefined;
411
- }): Promise<string>;
412
- (args: {
413
- method: "eth_sendRawTransaction";
414
- params: [signedTransaction: `0x${string}`];
415
- }): Promise<`0x${string}`>;
416
- (args: {
417
- method: "eth_uninstallFilter";
418
- params: [filterId: `0x${string}`];
419
- }): Promise<boolean>;
420
- } & {
421
- (args: {
422
- method: "eth_sendTransaction";
423
- params: [request: viem.RpcTransactionRequest];
424
- }): Promise<`0x${string}`>;
425
- (args: {
426
- method: "eth_sign";
427
- params: [address: `0x${string}`, data: `0x${string}`];
428
- }): Promise<`0x${string}`>;
429
- (args: {
430
- method: "eth_signTransaction";
431
- params: [request: viem.RpcTransactionRequest];
432
- }): Promise<`0x${string}`>;
433
- (args: {
434
- method: "eth_signTypedData_v4";
435
- params: [address: `0x${string}`, message: string];
436
- }): Promise<`0x${string}`>;
437
- (args: {
438
- method: "eth_syncing";
439
- params?: undefined;
440
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
441
- (args: {
442
- method: "personal_sign";
443
- params: [data: `0x${string}`, address: `0x${string}`];
444
- }): Promise<`0x${string}`>;
445
- } & {
446
- (args: {
447
- method: "eth_accounts";
448
- params?: undefined;
449
- }): Promise<`0x${string}`[]>;
450
- (args: {
451
- method: "eth_chainId";
452
- params?: undefined;
453
- }): Promise<`0x${string}`>;
454
- (args: {
455
- method: "eth_requestAccounts";
456
- params?: undefined;
457
- }): Promise<`0x${string}`[]>;
458
- (args: {
459
- method: "wallet_requestPermissions";
460
- params: [permissions: {
461
- eth_accounts: Record<string, any>;
462
- }];
463
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
464
- (args: {
465
- method: "wallet_getPermissions";
466
- params?: undefined;
467
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
468
- (args: {
469
- method: "wallet_addEthereumChain";
470
- params: [chain: viem_dist_types_types_eip1193.Chain];
471
- }): Promise<null>;
472
- (args: {
473
- method: "wallet_switchEthereumChain";
474
- params: [chain: {
475
- chainId: string;
476
- }];
477
- }): Promise<null>;
478
- (args: {
479
- method: "wallet_watchAsset";
480
- params: viem_dist_types_types_eip1193.WatchAssetParams;
481
- }): Promise<boolean>;
482
- }>, _wagmi_core.Chain>> | undefined>;
26
+ declare const Context: React.Context<Config<PublicClient, WebSocketPublicClient> | undefined>;
483
27
  type WagmiConfigProps<TPublicClient extends PublicClient = PublicClient, TWebSocketPublicClient extends WebSocketPublicClient = WebSocketPublicClient> = {
484
28
  /** React-decorated Client instance */
485
29
  config: Config<TPublicClient, TWebSocketPublicClient>;
486
30
  };
487
- declare function WagmiConfig<TPublicClient extends PublicClient, TWebSocketPublicClient extends WebSocketPublicClient>({ children, config, }: React.PropsWithChildren<WagmiConfigProps<TPublicClient, TWebSocketPublicClient>>): React.FunctionComponentElement<React.ProviderProps<Config<PublicClient<viem.Transport<string, Record<string, any>, {
488
- (args: {
489
- method: "web3_clientVersion";
490
- params?: undefined;
491
- }): Promise<string>;
492
- (args: {
493
- method: "web3_sha3";
494
- params: [data: `0x${string}`];
495
- }): Promise<string>;
496
- (args: {
497
- method: "net_listening";
498
- params?: undefined;
499
- }): Promise<boolean>;
500
- (args: {
501
- method: "net_peerCount";
502
- params?: undefined;
503
- }): Promise<`0x${string}`>;
504
- (args: {
505
- method: "net_version";
506
- params?: undefined;
507
- }): Promise<`0x${string}`>;
508
- (args: {
509
- method: "eth_blockNumber";
510
- params?: undefined;
511
- }): Promise<`0x${string}`>;
512
- (args: {
513
- method: "eth_call";
514
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
515
- }): Promise<`0x${string}`>;
516
- (args: {
517
- method: "eth_chainId";
518
- params?: undefined;
519
- }): Promise<`0x${string}`>;
520
- (args: {
521
- method: "eth_coinbase";
522
- params?: undefined;
523
- }): Promise<`0x${string}`>;
524
- (args: {
525
- method: "eth_estimateGas";
526
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
527
- }): Promise<`0x${string}`>;
528
- (args: {
529
- method: "eth_feeHistory";
530
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
531
- }): Promise<viem.RpcFeeHistory>;
532
- (args: {
533
- method: "eth_gasPrice";
534
- params?: undefined;
535
- }): Promise<`0x${string}`>;
536
- (args: {
537
- method: "eth_getBalance";
538
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
539
- }): Promise<`0x${string}`>;
540
- (args: {
541
- method: "eth_getBlockByHash";
542
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
543
- }): Promise<viem.RpcBlock | null>;
544
- (args: {
545
- method: "eth_getBlockByNumber";
546
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
547
- }): Promise<viem.RpcBlock | null>;
548
- (args: {
549
- method: "eth_getBlockTransactionCountByHash";
550
- params: [hash: `0x${string}`];
551
- }): Promise<`0x${string}`>;
552
- (args: {
553
- method: "eth_getBlockTransactionCountByNumber";
554
- params: [block: `0x${string}` | viem.BlockTag];
555
- }): Promise<`0x${string}`>;
556
- (args: {
557
- method: "eth_getCode";
558
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
559
- }): Promise<`0x${string}`>;
560
- (args: {
561
- method: "eth_getFilterChanges";
562
- params: [filterId: `0x${string}`];
563
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
564
- (args: {
565
- method: "eth_getFilterLogs";
566
- params: [filterId: `0x${string}`];
567
- }): Promise<viem.RpcLog[]>;
568
- (args: {
569
- method: "eth_getLogs";
570
- params: [parameters: {
571
- address?: `0x${string}` | `0x${string}`[] | undefined;
572
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
573
- } & ({
574
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
575
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
576
- blockHash?: undefined;
577
- } | {
578
- fromBlock?: undefined;
579
- toBlock?: undefined;
580
- blockHash?: `0x${string}` | undefined;
581
- })];
582
- }): Promise<viem.RpcLog[]>;
583
- (args: {
584
- method: "eth_getStorageAt";
585
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
586
- }): Promise<`0x${string}`>;
587
- (args: {
588
- method: "eth_getTransactionByBlockHashAndIndex";
589
- params: [hash: `0x${string}`, index: `0x${string}`];
590
- }): Promise<viem.RpcTransaction | null>;
591
- (args: {
592
- method: "eth_getTransactionByBlockNumberAndIndex";
593
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
594
- }): Promise<viem.RpcTransaction | null>;
595
- (args: {
596
- method: "eth_getTransactionByHash";
597
- params: [hash: `0x${string}`];
598
- }): Promise<viem.RpcTransaction | null>;
599
- (args: {
600
- method: "eth_getTransactionCount";
601
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
602
- }): Promise<`0x${string}`>;
603
- (args: {
604
- method: "eth_getTransactionReceipt";
605
- params: [hash: `0x${string}`];
606
- }): Promise<viem.RpcTransactionReceipt | null>;
607
- (args: {
608
- method: "eth_getUncleByBlockHashAndIndex";
609
- params: [hash: `0x${string}`, index: `0x${string}`];
610
- }): Promise<viem.RpcUncle | null>;
611
- (args: {
612
- method: "eth_getUncleByBlockNumberAndIndex";
613
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
614
- }): Promise<viem.RpcUncle | null>;
615
- (args: {
616
- method: "eth_getUncleCountByBlockHash";
617
- params: [hash: `0x${string}`];
618
- }): Promise<`0x${string}`>;
619
- (args: {
620
- method: "eth_getUncleCountByBlockNumber";
621
- params: [block: `0x${string}` | viem.BlockTag];
622
- }): Promise<`0x${string}`>;
623
- (args: {
624
- method: "eth_newBlockFilter";
625
- params?: undefined;
626
- }): Promise<`0x${string}`>;
627
- (args: {
628
- method: "eth_newFilter";
629
- params: [filter: {
630
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
631
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
632
- address?: `0x${string}` | `0x${string}`[] | undefined;
633
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
634
- }];
635
- }): Promise<`0x${string}`>;
636
- (args: {
637
- method: "eth_newPendingTransactionFilter";
638
- params?: undefined;
639
- }): Promise<`0x${string}`>;
640
- (args: {
641
- method: "eth_protocolVersion";
642
- params?: undefined;
643
- }): Promise<string>;
644
- (args: {
645
- method: "eth_sendRawTransaction";
646
- params: [signedTransaction: `0x${string}`];
647
- }): Promise<`0x${string}`>;
648
- (args: {
649
- method: "eth_uninstallFilter";
650
- params: [filterId: `0x${string}`];
651
- }): Promise<boolean>;
652
- } & {
653
- (args: {
654
- method: "eth_sendTransaction";
655
- params: [request: viem.RpcTransactionRequest];
656
- }): Promise<`0x${string}`>;
657
- (args: {
658
- method: "eth_sign";
659
- params: [address: `0x${string}`, data: `0x${string}`];
660
- }): Promise<`0x${string}`>;
661
- (args: {
662
- method: "eth_signTransaction";
663
- params: [request: viem.RpcTransactionRequest];
664
- }): Promise<`0x${string}`>;
665
- (args: {
666
- method: "eth_signTypedData_v4";
667
- params: [address: `0x${string}`, message: string];
668
- }): Promise<`0x${string}`>;
669
- (args: {
670
- method: "eth_syncing";
671
- params?: undefined;
672
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
673
- (args: {
674
- method: "personal_sign";
675
- params: [data: `0x${string}`, address: `0x${string}`];
676
- }): Promise<`0x${string}`>;
677
- } & {
678
- (args: {
679
- method: "eth_accounts";
680
- params?: undefined;
681
- }): Promise<`0x${string}`[]>;
682
- (args: {
683
- method: "eth_chainId";
684
- params?: undefined;
685
- }): Promise<`0x${string}`>;
686
- (args: {
687
- method: "eth_requestAccounts";
688
- params?: undefined;
689
- }): Promise<`0x${string}`[]>;
690
- (args: {
691
- method: "wallet_requestPermissions";
692
- params: [permissions: {
693
- eth_accounts: Record<string, any>;
694
- }];
695
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
696
- (args: {
697
- method: "wallet_getPermissions";
698
- params?: undefined;
699
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
700
- (args: {
701
- method: "wallet_addEthereumChain";
702
- params: [chain: viem_dist_types_types_eip1193.Chain];
703
- }): Promise<null>;
704
- (args: {
705
- method: "wallet_switchEthereumChain";
706
- params: [chain: {
707
- chainId: string;
708
- }];
709
- }): Promise<null>;
710
- (args: {
711
- method: "wallet_watchAsset";
712
- params: viem_dist_types_types_eip1193.WatchAssetParams;
713
- }): Promise<boolean>;
714
- }>, _wagmi_core.Chain>, WebSocketPublicClient<viem.Transport<string, Record<string, any>, {
715
- (args: {
716
- method: "web3_clientVersion";
717
- params?: undefined;
718
- }): Promise<string>;
719
- (args: {
720
- method: "web3_sha3";
721
- params: [data: `0x${string}`];
722
- }): Promise<string>;
723
- (args: {
724
- method: "net_listening";
725
- params?: undefined;
726
- }): Promise<boolean>;
727
- (args: {
728
- method: "net_peerCount";
729
- params?: undefined;
730
- }): Promise<`0x${string}`>;
731
- (args: {
732
- method: "net_version";
733
- params?: undefined;
734
- }): Promise<`0x${string}`>;
735
- (args: {
736
- method: "eth_blockNumber";
737
- params?: undefined;
738
- }): Promise<`0x${string}`>;
739
- (args: {
740
- method: "eth_call";
741
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
742
- }): Promise<`0x${string}`>;
743
- (args: {
744
- method: "eth_chainId";
745
- params?: undefined;
746
- }): Promise<`0x${string}`>;
747
- (args: {
748
- method: "eth_coinbase";
749
- params?: undefined;
750
- }): Promise<`0x${string}`>;
751
- (args: {
752
- method: "eth_estimateGas";
753
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
754
- }): Promise<`0x${string}`>;
755
- (args: {
756
- method: "eth_feeHistory";
757
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
758
- }): Promise<viem.RpcFeeHistory>;
759
- (args: {
760
- method: "eth_gasPrice";
761
- params?: undefined;
762
- }): Promise<`0x${string}`>;
763
- (args: {
764
- method: "eth_getBalance";
765
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
766
- }): Promise<`0x${string}`>;
767
- (args: {
768
- method: "eth_getBlockByHash";
769
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
770
- }): Promise<viem.RpcBlock | null>;
771
- (args: {
772
- method: "eth_getBlockByNumber";
773
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
774
- }): Promise<viem.RpcBlock | null>;
775
- (args: {
776
- method: "eth_getBlockTransactionCountByHash";
777
- params: [hash: `0x${string}`];
778
- }): Promise<`0x${string}`>;
779
- (args: {
780
- method: "eth_getBlockTransactionCountByNumber";
781
- params: [block: `0x${string}` | viem.BlockTag];
782
- }): Promise<`0x${string}`>;
783
- (args: {
784
- method: "eth_getCode";
785
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
786
- }): Promise<`0x${string}`>;
787
- (args: {
788
- method: "eth_getFilterChanges";
789
- params: [filterId: `0x${string}`];
790
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
791
- (args: {
792
- method: "eth_getFilterLogs";
793
- params: [filterId: `0x${string}`];
794
- }): Promise<viem.RpcLog[]>;
795
- (args: {
796
- method: "eth_getLogs";
797
- params: [parameters: {
798
- address?: `0x${string}` | `0x${string}`[] | undefined;
799
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
800
- } & ({
801
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
802
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
803
- blockHash?: undefined;
804
- } | {
805
- fromBlock?: undefined;
806
- toBlock?: undefined;
807
- blockHash?: `0x${string}` | undefined;
808
- })];
809
- }): Promise<viem.RpcLog[]>;
810
- (args: {
811
- method: "eth_getStorageAt";
812
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
813
- }): Promise<`0x${string}`>;
814
- (args: {
815
- method: "eth_getTransactionByBlockHashAndIndex";
816
- params: [hash: `0x${string}`, index: `0x${string}`];
817
- }): Promise<viem.RpcTransaction | null>;
818
- (args: {
819
- method: "eth_getTransactionByBlockNumberAndIndex";
820
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
821
- }): Promise<viem.RpcTransaction | null>;
822
- (args: {
823
- method: "eth_getTransactionByHash";
824
- params: [hash: `0x${string}`];
825
- }): Promise<viem.RpcTransaction | null>;
826
- (args: {
827
- method: "eth_getTransactionCount";
828
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
829
- }): Promise<`0x${string}`>;
830
- (args: {
831
- method: "eth_getTransactionReceipt";
832
- params: [hash: `0x${string}`];
833
- }): Promise<viem.RpcTransactionReceipt | null>;
834
- (args: {
835
- method: "eth_getUncleByBlockHashAndIndex";
836
- params: [hash: `0x${string}`, index: `0x${string}`];
837
- }): Promise<viem.RpcUncle | null>;
838
- (args: {
839
- method: "eth_getUncleByBlockNumberAndIndex";
840
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
841
- }): Promise<viem.RpcUncle | null>;
842
- (args: {
843
- method: "eth_getUncleCountByBlockHash";
844
- params: [hash: `0x${string}`];
845
- }): Promise<`0x${string}`>;
846
- (args: {
847
- method: "eth_getUncleCountByBlockNumber";
848
- params: [block: `0x${string}` | viem.BlockTag];
849
- }): Promise<`0x${string}`>;
850
- (args: {
851
- method: "eth_newBlockFilter";
852
- params?: undefined;
853
- }): Promise<`0x${string}`>;
854
- (args: {
855
- method: "eth_newFilter";
856
- params: [filter: {
857
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
858
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
859
- address?: `0x${string}` | `0x${string}`[] | undefined;
860
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
861
- }];
862
- }): Promise<`0x${string}`>;
863
- (args: {
864
- method: "eth_newPendingTransactionFilter";
865
- params?: undefined;
866
- }): Promise<`0x${string}`>;
867
- (args: {
868
- method: "eth_protocolVersion";
869
- params?: undefined;
870
- }): Promise<string>;
871
- (args: {
872
- method: "eth_sendRawTransaction";
873
- params: [signedTransaction: `0x${string}`];
874
- }): Promise<`0x${string}`>;
875
- (args: {
876
- method: "eth_uninstallFilter";
877
- params: [filterId: `0x${string}`];
878
- }): Promise<boolean>;
879
- } & {
880
- (args: {
881
- method: "eth_sendTransaction";
882
- params: [request: viem.RpcTransactionRequest];
883
- }): Promise<`0x${string}`>;
884
- (args: {
885
- method: "eth_sign";
886
- params: [address: `0x${string}`, data: `0x${string}`];
887
- }): Promise<`0x${string}`>;
888
- (args: {
889
- method: "eth_signTransaction";
890
- params: [request: viem.RpcTransactionRequest];
891
- }): Promise<`0x${string}`>;
892
- (args: {
893
- method: "eth_signTypedData_v4";
894
- params: [address: `0x${string}`, message: string];
895
- }): Promise<`0x${string}`>;
896
- (args: {
897
- method: "eth_syncing";
898
- params?: undefined;
899
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
900
- (args: {
901
- method: "personal_sign";
902
- params: [data: `0x${string}`, address: `0x${string}`];
903
- }): Promise<`0x${string}`>;
904
- } & {
905
- (args: {
906
- method: "eth_accounts";
907
- params?: undefined;
908
- }): Promise<`0x${string}`[]>;
909
- (args: {
910
- method: "eth_chainId";
911
- params?: undefined;
912
- }): Promise<`0x${string}`>;
913
- (args: {
914
- method: "eth_requestAccounts";
915
- params?: undefined;
916
- }): Promise<`0x${string}`[]>;
917
- (args: {
918
- method: "wallet_requestPermissions";
919
- params: [permissions: {
920
- eth_accounts: Record<string, any>;
921
- }];
922
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
923
- (args: {
924
- method: "wallet_getPermissions";
925
- params?: undefined;
926
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
927
- (args: {
928
- method: "wallet_addEthereumChain";
929
- params: [chain: viem_dist_types_types_eip1193.Chain];
930
- }): Promise<null>;
931
- (args: {
932
- method: "wallet_switchEthereumChain";
933
- params: [chain: {
934
- chainId: string;
935
- }];
936
- }): Promise<null>;
937
- (args: {
938
- method: "wallet_watchAsset";
939
- params: viem_dist_types_types_eip1193.WatchAssetParams;
940
- }): Promise<boolean>;
941
- }>, _wagmi_core.Chain>> | undefined>>;
31
+ declare function WagmiConfig<TPublicClient extends PublicClient, TWebSocketPublicClient extends WebSocketPublicClient>({ children, config, }: React.PropsWithChildren<WagmiConfigProps<TPublicClient, TWebSocketPublicClient>>): React.FunctionComponentElement<React.ProviderProps<Config<PublicClient, WebSocketPublicClient> | undefined>>;
942
32
  declare function useConfig<TPublicClient extends PublicClient, TWebSocketPublicClient extends WebSocketPublicClient = WebSocketPublicClient>(): Config<TPublicClient, TWebSocketPublicClient>;
943
33
 
944
34
  type UseAccountConfig = {
@@ -951,234 +41,7 @@ type UseAccountConfig = {
951
41
  /** Function to invoke when disconnected */
952
42
  onDisconnect?(): void;
953
43
  };
954
- declare function useAccount({ onConnect, onDisconnect }?: UseAccountConfig): GetAccountResult<_wagmi_core.PublicClient<viem.Transport<string, Record<string, any>, {
955
- (args: {
956
- method: "web3_clientVersion";
957
- params?: undefined;
958
- }): Promise<string>;
959
- (args: {
960
- method: "web3_sha3";
961
- params: [data: `0x${string}`];
962
- }): Promise<string>;
963
- (args: {
964
- method: "net_listening";
965
- params?: undefined;
966
- }): Promise<boolean>;
967
- (args: {
968
- method: "net_peerCount";
969
- params?: undefined;
970
- }): Promise<`0x${string}`>;
971
- (args: {
972
- method: "net_version";
973
- params?: undefined;
974
- }): Promise<`0x${string}`>;
975
- (args: {
976
- method: "eth_blockNumber";
977
- params?: undefined;
978
- }): Promise<`0x${string}`>;
979
- (args: {
980
- method: "eth_call";
981
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
982
- }): Promise<`0x${string}`>;
983
- (args: {
984
- method: "eth_chainId";
985
- params?: undefined;
986
- }): Promise<`0x${string}`>;
987
- (args: {
988
- method: "eth_coinbase";
989
- params?: undefined;
990
- }): Promise<`0x${string}`>;
991
- (args: {
992
- method: "eth_estimateGas";
993
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
994
- }): Promise<`0x${string}`>;
995
- (args: {
996
- method: "eth_feeHistory";
997
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
998
- }): Promise<viem.RpcFeeHistory>;
999
- (args: {
1000
- method: "eth_gasPrice";
1001
- params?: undefined;
1002
- }): Promise<`0x${string}`>;
1003
- (args: {
1004
- method: "eth_getBalance";
1005
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1006
- }): Promise<`0x${string}`>;
1007
- (args: {
1008
- method: "eth_getBlockByHash";
1009
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
1010
- }): Promise<viem.RpcBlock | null>;
1011
- (args: {
1012
- method: "eth_getBlockByNumber";
1013
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
1014
- }): Promise<viem.RpcBlock | null>;
1015
- (args: {
1016
- method: "eth_getBlockTransactionCountByHash";
1017
- params: [hash: `0x${string}`];
1018
- }): Promise<`0x${string}`>;
1019
- (args: {
1020
- method: "eth_getBlockTransactionCountByNumber";
1021
- params: [block: `0x${string}` | viem.BlockTag];
1022
- }): Promise<`0x${string}`>;
1023
- (args: {
1024
- method: "eth_getCode";
1025
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1026
- }): Promise<`0x${string}`>;
1027
- (args: {
1028
- method: "eth_getFilterChanges";
1029
- params: [filterId: `0x${string}`];
1030
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
1031
- (args: {
1032
- method: "eth_getFilterLogs";
1033
- params: [filterId: `0x${string}`];
1034
- }): Promise<viem.RpcLog[]>;
1035
- (args: {
1036
- method: "eth_getLogs";
1037
- params: [parameters: {
1038
- address?: `0x${string}` | `0x${string}`[] | undefined;
1039
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1040
- } & ({
1041
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1042
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1043
- blockHash?: undefined;
1044
- } | {
1045
- fromBlock?: undefined;
1046
- toBlock?: undefined;
1047
- blockHash?: `0x${string}` | undefined;
1048
- })];
1049
- }): Promise<viem.RpcLog[]>;
1050
- (args: {
1051
- method: "eth_getStorageAt";
1052
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1053
- }): Promise<`0x${string}`>;
1054
- (args: {
1055
- method: "eth_getTransactionByBlockHashAndIndex";
1056
- params: [hash: `0x${string}`, index: `0x${string}`];
1057
- }): Promise<viem.RpcTransaction | null>;
1058
- (args: {
1059
- method: "eth_getTransactionByBlockNumberAndIndex";
1060
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1061
- }): Promise<viem.RpcTransaction | null>;
1062
- (args: {
1063
- method: "eth_getTransactionByHash";
1064
- params: [hash: `0x${string}`];
1065
- }): Promise<viem.RpcTransaction | null>;
1066
- (args: {
1067
- method: "eth_getTransactionCount";
1068
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1069
- }): Promise<`0x${string}`>;
1070
- (args: {
1071
- method: "eth_getTransactionReceipt";
1072
- params: [hash: `0x${string}`];
1073
- }): Promise<viem.RpcTransactionReceipt | null>;
1074
- (args: {
1075
- method: "eth_getUncleByBlockHashAndIndex";
1076
- params: [hash: `0x${string}`, index: `0x${string}`];
1077
- }): Promise<viem.RpcUncle | null>;
1078
- (args: {
1079
- method: "eth_getUncleByBlockNumberAndIndex";
1080
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1081
- }): Promise<viem.RpcUncle | null>;
1082
- (args: {
1083
- method: "eth_getUncleCountByBlockHash";
1084
- params: [hash: `0x${string}`];
1085
- }): Promise<`0x${string}`>;
1086
- (args: {
1087
- method: "eth_getUncleCountByBlockNumber";
1088
- params: [block: `0x${string}` | viem.BlockTag];
1089
- }): Promise<`0x${string}`>;
1090
- (args: {
1091
- method: "eth_newBlockFilter";
1092
- params?: undefined;
1093
- }): Promise<`0x${string}`>;
1094
- (args: {
1095
- method: "eth_newFilter";
1096
- params: [filter: {
1097
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1098
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1099
- address?: `0x${string}` | `0x${string}`[] | undefined;
1100
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1101
- }];
1102
- }): Promise<`0x${string}`>;
1103
- (args: {
1104
- method: "eth_newPendingTransactionFilter";
1105
- params?: undefined;
1106
- }): Promise<`0x${string}`>;
1107
- (args: {
1108
- method: "eth_protocolVersion";
1109
- params?: undefined;
1110
- }): Promise<string>;
1111
- (args: {
1112
- method: "eth_sendRawTransaction";
1113
- params: [signedTransaction: `0x${string}`];
1114
- }): Promise<`0x${string}`>;
1115
- (args: {
1116
- method: "eth_uninstallFilter";
1117
- params: [filterId: `0x${string}`];
1118
- }): Promise<boolean>;
1119
- } & {
1120
- (args: {
1121
- method: "eth_sendTransaction";
1122
- params: [request: viem.RpcTransactionRequest];
1123
- }): Promise<`0x${string}`>;
1124
- (args: {
1125
- method: "eth_sign";
1126
- params: [address: `0x${string}`, data: `0x${string}`];
1127
- }): Promise<`0x${string}`>;
1128
- (args: {
1129
- method: "eth_signTransaction";
1130
- params: [request: viem.RpcTransactionRequest];
1131
- }): Promise<`0x${string}`>;
1132
- (args: {
1133
- method: "eth_signTypedData_v4";
1134
- params: [address: `0x${string}`, message: string];
1135
- }): Promise<`0x${string}`>;
1136
- (args: {
1137
- method: "eth_syncing";
1138
- params?: undefined;
1139
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
1140
- (args: {
1141
- method: "personal_sign";
1142
- params: [data: `0x${string}`, address: `0x${string}`];
1143
- }): Promise<`0x${string}`>;
1144
- } & {
1145
- (args: {
1146
- method: "eth_accounts";
1147
- params?: undefined;
1148
- }): Promise<`0x${string}`[]>;
1149
- (args: {
1150
- method: "eth_chainId";
1151
- params?: undefined;
1152
- }): Promise<`0x${string}`>;
1153
- (args: {
1154
- method: "eth_requestAccounts";
1155
- params?: undefined;
1156
- }): Promise<`0x${string}`[]>;
1157
- (args: {
1158
- method: "wallet_requestPermissions";
1159
- params: [permissions: {
1160
- eth_accounts: Record<string, any>;
1161
- }];
1162
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1163
- (args: {
1164
- method: "wallet_getPermissions";
1165
- params?: undefined;
1166
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1167
- (args: {
1168
- method: "wallet_addEthereumChain";
1169
- params: [chain: viem_dist_types_types_eip1193.Chain];
1170
- }): Promise<null>;
1171
- (args: {
1172
- method: "wallet_switchEthereumChain";
1173
- params: [chain: {
1174
- chainId: string;
1175
- }];
1176
- }): Promise<null>;
1177
- (args: {
1178
- method: "wallet_watchAsset";
1179
- params: viem_dist_types_types_eip1193.WatchAssetParams;
1180
- }): Promise<boolean>;
1181
- }>, _wagmi_core.Chain>>;
44
+ declare function useAccount({ onConnect, onDisconnect }?: UseAccountConfig): GetAccountResult<_wagmi_core.PublicClient>;
1182
45
 
1183
46
  type UseInfiniteQueryResult<TData, TError> = Pick<InfiniteQueryObserverResult<TData, TError>, 'data' | 'error' | 'fetchNextPage' | 'fetchStatus' | 'hasNextPage' | 'isError' | 'isFetched' | 'isFetchedAfterMount' | 'isFetching' | 'isFetchingNextPage' | 'isLoading' | 'isRefetching' | 'isSuccess' | 'refetch'> & {
1184
47
  isIdle: boolean;
@@ -1266,463 +129,9 @@ type UseConnectArgs = Partial<ConnectArgs>;
1266
129
  type UseConnectConfig = MutationConfig<ConnectResult, Error, ConnectArgs>;
1267
130
  declare function useConnect({ chainId, connector, onError, onMutate, onSettled, onSuccess, }?: UseConnectArgs & UseConnectConfig): {
1268
131
  readonly connect: (args?: Partial<ConnectArgs>) => void;
1269
- readonly connectAsync: (args?: Partial<ConnectArgs>) => Promise<ConnectResult<_wagmi_core.PublicClient<viem.Transport<string, Record<string, any>, {
1270
- (args: {
1271
- method: "web3_clientVersion";
1272
- params?: undefined;
1273
- }): Promise<string>;
1274
- (args: {
1275
- method: "web3_sha3";
1276
- params: [data: `0x${string}`];
1277
- }): Promise<string>;
1278
- (args: {
1279
- method: "net_listening";
1280
- params?: undefined;
1281
- }): Promise<boolean>;
1282
- (args: {
1283
- method: "net_peerCount";
1284
- params?: undefined;
1285
- }): Promise<`0x${string}`>;
1286
- (args: {
1287
- method: "net_version";
1288
- params?: undefined;
1289
- }): Promise<`0x${string}`>;
1290
- (args: {
1291
- method: "eth_blockNumber";
1292
- params?: undefined;
1293
- }): Promise<`0x${string}`>;
1294
- (args: {
1295
- method: "eth_call";
1296
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
1297
- }): Promise<`0x${string}`>;
1298
- (args: {
1299
- method: "eth_chainId";
1300
- params?: undefined;
1301
- }): Promise<`0x${string}`>;
1302
- (args: {
1303
- method: "eth_coinbase";
1304
- params?: undefined;
1305
- }): Promise<`0x${string}`>;
1306
- (args: {
1307
- method: "eth_estimateGas";
1308
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
1309
- }): Promise<`0x${string}`>;
1310
- (args: {
1311
- method: "eth_feeHistory";
1312
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
1313
- }): Promise<viem.RpcFeeHistory>;
1314
- (args: {
1315
- method: "eth_gasPrice";
1316
- params?: undefined;
1317
- }): Promise<`0x${string}`>;
1318
- (args: {
1319
- method: "eth_getBalance";
1320
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1321
- }): Promise<`0x${string}`>;
1322
- (args: {
1323
- method: "eth_getBlockByHash";
1324
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
1325
- }): Promise<viem.RpcBlock | null>;
1326
- (args: {
1327
- method: "eth_getBlockByNumber";
1328
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
1329
- }): Promise<viem.RpcBlock | null>;
1330
- (args: {
1331
- method: "eth_getBlockTransactionCountByHash";
1332
- params: [hash: `0x${string}`];
1333
- }): Promise<`0x${string}`>;
1334
- (args: {
1335
- method: "eth_getBlockTransactionCountByNumber";
1336
- params: [block: `0x${string}` | viem.BlockTag];
1337
- }): Promise<`0x${string}`>;
1338
- (args: {
1339
- method: "eth_getCode";
1340
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1341
- }): Promise<`0x${string}`>;
1342
- (args: {
1343
- method: "eth_getFilterChanges";
1344
- params: [filterId: `0x${string}`];
1345
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
1346
- (args: {
1347
- method: "eth_getFilterLogs";
1348
- params: [filterId: `0x${string}`];
1349
- }): Promise<viem.RpcLog[]>;
1350
- (args: {
1351
- method: "eth_getLogs";
1352
- params: [parameters: {
1353
- address?: `0x${string}` | `0x${string}`[] | undefined;
1354
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1355
- } & ({
1356
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1357
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1358
- blockHash?: undefined;
1359
- } | {
1360
- fromBlock?: undefined;
1361
- toBlock?: undefined;
1362
- blockHash?: `0x${string}` | undefined;
1363
- })];
1364
- }): Promise<viem.RpcLog[]>;
1365
- (args: {
1366
- method: "eth_getStorageAt";
1367
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1368
- }): Promise<`0x${string}`>;
1369
- (args: {
1370
- method: "eth_getTransactionByBlockHashAndIndex";
1371
- params: [hash: `0x${string}`, index: `0x${string}`];
1372
- }): Promise<viem.RpcTransaction | null>;
1373
- (args: {
1374
- method: "eth_getTransactionByBlockNumberAndIndex";
1375
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1376
- }): Promise<viem.RpcTransaction | null>;
1377
- (args: {
1378
- method: "eth_getTransactionByHash";
1379
- params: [hash: `0x${string}`];
1380
- }): Promise<viem.RpcTransaction | null>;
1381
- (args: {
1382
- method: "eth_getTransactionCount";
1383
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1384
- }): Promise<`0x${string}`>;
1385
- (args: {
1386
- method: "eth_getTransactionReceipt";
1387
- params: [hash: `0x${string}`];
1388
- }): Promise<viem.RpcTransactionReceipt | null>;
1389
- (args: {
1390
- method: "eth_getUncleByBlockHashAndIndex";
1391
- params: [hash: `0x${string}`, index: `0x${string}`];
1392
- }): Promise<viem.RpcUncle | null>;
1393
- (args: {
1394
- method: "eth_getUncleByBlockNumberAndIndex";
1395
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1396
- }): Promise<viem.RpcUncle | null>;
1397
- (args: {
1398
- method: "eth_getUncleCountByBlockHash";
1399
- params: [hash: `0x${string}`];
1400
- }): Promise<`0x${string}`>;
1401
- (args: {
1402
- method: "eth_getUncleCountByBlockNumber";
1403
- params: [block: `0x${string}` | viem.BlockTag];
1404
- }): Promise<`0x${string}`>;
1405
- (args: {
1406
- method: "eth_newBlockFilter";
1407
- params?: undefined;
1408
- }): Promise<`0x${string}`>;
1409
- (args: {
1410
- method: "eth_newFilter";
1411
- params: [filter: {
1412
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1413
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1414
- address?: `0x${string}` | `0x${string}`[] | undefined;
1415
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1416
- }];
1417
- }): Promise<`0x${string}`>;
1418
- (args: {
1419
- method: "eth_newPendingTransactionFilter";
1420
- params?: undefined;
1421
- }): Promise<`0x${string}`>;
1422
- (args: {
1423
- method: "eth_protocolVersion";
1424
- params?: undefined;
1425
- }): Promise<string>;
1426
- (args: {
1427
- method: "eth_sendRawTransaction";
1428
- params: [signedTransaction: `0x${string}`];
1429
- }): Promise<`0x${string}`>;
1430
- (args: {
1431
- method: "eth_uninstallFilter";
1432
- params: [filterId: `0x${string}`];
1433
- }): Promise<boolean>;
1434
- } & {
1435
- (args: {
1436
- method: "eth_sendTransaction";
1437
- params: [request: viem.RpcTransactionRequest];
1438
- }): Promise<`0x${string}`>;
1439
- (args: {
1440
- method: "eth_sign";
1441
- params: [address: `0x${string}`, data: `0x${string}`];
1442
- }): Promise<`0x${string}`>;
1443
- (args: {
1444
- method: "eth_signTransaction";
1445
- params: [request: viem.RpcTransactionRequest];
1446
- }): Promise<`0x${string}`>;
1447
- (args: {
1448
- method: "eth_signTypedData_v4";
1449
- params: [address: `0x${string}`, message: string];
1450
- }): Promise<`0x${string}`>;
1451
- (args: {
1452
- method: "eth_syncing";
1453
- params?: undefined;
1454
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
1455
- (args: {
1456
- method: "personal_sign";
1457
- params: [data: `0x${string}`, address: `0x${string}`];
1458
- }): Promise<`0x${string}`>;
1459
- } & {
1460
- (args: {
1461
- method: "eth_accounts";
1462
- params?: undefined;
1463
- }): Promise<`0x${string}`[]>;
1464
- (args: {
1465
- method: "eth_chainId";
1466
- params?: undefined;
1467
- }): Promise<`0x${string}`>;
1468
- (args: {
1469
- method: "eth_requestAccounts";
1470
- params?: undefined;
1471
- }): Promise<`0x${string}`[]>;
1472
- (args: {
1473
- method: "wallet_requestPermissions";
1474
- params: [permissions: {
1475
- eth_accounts: Record<string, any>;
1476
- }];
1477
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1478
- (args: {
1479
- method: "wallet_getPermissions";
1480
- params?: undefined;
1481
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1482
- (args: {
1483
- method: "wallet_addEthereumChain";
1484
- params: [chain: viem_dist_types_types_eip1193.Chain];
1485
- }): Promise<null>;
1486
- (args: {
1487
- method: "wallet_switchEthereumChain";
1488
- params: [chain: {
1489
- chainId: string;
1490
- }];
1491
- }): Promise<null>;
1492
- (args: {
1493
- method: "wallet_watchAsset";
1494
- params: viem_dist_types_types_eip1193.WatchAssetParams;
1495
- }): Promise<boolean>;
1496
- }>, _wagmi_core.Chain>>>;
132
+ readonly connectAsync: (args?: Partial<ConnectArgs>) => Promise<ConnectResult<_wagmi_core.PublicClient>>;
1497
133
  readonly connectors: _wagmi_core.Connector<any, any>[];
1498
- readonly data: ConnectResult<_wagmi_core.PublicClient<viem.Transport<string, Record<string, any>, {
1499
- (args: {
1500
- method: "web3_clientVersion";
1501
- params?: undefined;
1502
- }): Promise<string>;
1503
- (args: {
1504
- method: "web3_sha3";
1505
- params: [data: `0x${string}`];
1506
- }): Promise<string>;
1507
- (args: {
1508
- method: "net_listening";
1509
- params?: undefined;
1510
- }): Promise<boolean>;
1511
- (args: {
1512
- method: "net_peerCount";
1513
- params?: undefined;
1514
- }): Promise<`0x${string}`>;
1515
- (args: {
1516
- method: "net_version";
1517
- params?: undefined;
1518
- }): Promise<`0x${string}`>;
1519
- (args: {
1520
- method: "eth_blockNumber";
1521
- params?: undefined;
1522
- }): Promise<`0x${string}`>;
1523
- (args: {
1524
- method: "eth_call";
1525
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
1526
- }): Promise<`0x${string}`>;
1527
- (args: {
1528
- method: "eth_chainId";
1529
- params?: undefined;
1530
- }): Promise<`0x${string}`>;
1531
- (args: {
1532
- method: "eth_coinbase";
1533
- params?: undefined;
1534
- }): Promise<`0x${string}`>;
1535
- (args: {
1536
- method: "eth_estimateGas";
1537
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
1538
- }): Promise<`0x${string}`>;
1539
- (args: {
1540
- method: "eth_feeHistory";
1541
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
1542
- }): Promise<viem.RpcFeeHistory>;
1543
- (args: {
1544
- method: "eth_gasPrice";
1545
- params?: undefined;
1546
- }): Promise<`0x${string}`>;
1547
- (args: {
1548
- method: "eth_getBalance";
1549
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1550
- }): Promise<`0x${string}`>;
1551
- (args: {
1552
- method: "eth_getBlockByHash";
1553
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
1554
- }): Promise<viem.RpcBlock | null>;
1555
- (args: {
1556
- method: "eth_getBlockByNumber";
1557
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
1558
- }): Promise<viem.RpcBlock | null>;
1559
- (args: {
1560
- method: "eth_getBlockTransactionCountByHash";
1561
- params: [hash: `0x${string}`];
1562
- }): Promise<`0x${string}`>;
1563
- (args: {
1564
- method: "eth_getBlockTransactionCountByNumber";
1565
- params: [block: `0x${string}` | viem.BlockTag];
1566
- }): Promise<`0x${string}`>;
1567
- (args: {
1568
- method: "eth_getCode";
1569
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1570
- }): Promise<`0x${string}`>;
1571
- (args: {
1572
- method: "eth_getFilterChanges";
1573
- params: [filterId: `0x${string}`];
1574
- }): Promise<`0x${string}`[] | viem.RpcLog[]>;
1575
- (args: {
1576
- method: "eth_getFilterLogs";
1577
- params: [filterId: `0x${string}`];
1578
- }): Promise<viem.RpcLog[]>;
1579
- (args: {
1580
- method: "eth_getLogs";
1581
- params: [parameters: {
1582
- address?: `0x${string}` | `0x${string}`[] | undefined;
1583
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1584
- } & ({
1585
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1586
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1587
- blockHash?: undefined;
1588
- } | {
1589
- fromBlock?: undefined;
1590
- toBlock?: undefined;
1591
- blockHash?: `0x${string}` | undefined;
1592
- })];
1593
- }): Promise<viem.RpcLog[]>;
1594
- (args: {
1595
- method: "eth_getStorageAt";
1596
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1597
- }): Promise<`0x${string}`>;
1598
- (args: {
1599
- method: "eth_getTransactionByBlockHashAndIndex";
1600
- params: [hash: `0x${string}`, index: `0x${string}`];
1601
- }): Promise<viem.RpcTransaction | null>;
1602
- (args: {
1603
- method: "eth_getTransactionByBlockNumberAndIndex";
1604
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1605
- }): Promise<viem.RpcTransaction | null>;
1606
- (args: {
1607
- method: "eth_getTransactionByHash";
1608
- params: [hash: `0x${string}`];
1609
- }): Promise<viem.RpcTransaction | null>;
1610
- (args: {
1611
- method: "eth_getTransactionCount";
1612
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1613
- }): Promise<`0x${string}`>;
1614
- (args: {
1615
- method: "eth_getTransactionReceipt";
1616
- params: [hash: `0x${string}`];
1617
- }): Promise<viem.RpcTransactionReceipt | null>;
1618
- (args: {
1619
- method: "eth_getUncleByBlockHashAndIndex";
1620
- params: [hash: `0x${string}`, index: `0x${string}`];
1621
- }): Promise<viem.RpcUncle | null>;
1622
- (args: {
1623
- method: "eth_getUncleByBlockNumberAndIndex";
1624
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1625
- }): Promise<viem.RpcUncle | null>;
1626
- (args: {
1627
- method: "eth_getUncleCountByBlockHash";
1628
- params: [hash: `0x${string}`];
1629
- }): Promise<`0x${string}`>;
1630
- (args: {
1631
- method: "eth_getUncleCountByBlockNumber";
1632
- params: [block: `0x${string}` | viem.BlockTag];
1633
- }): Promise<`0x${string}`>;
1634
- (args: {
1635
- method: "eth_newBlockFilter";
1636
- params?: undefined;
1637
- }): Promise<`0x${string}`>;
1638
- (args: {
1639
- method: "eth_newFilter";
1640
- params: [filter: {
1641
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1642
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
1643
- address?: `0x${string}` | `0x${string}`[] | undefined;
1644
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
1645
- }];
1646
- }): Promise<`0x${string}`>;
1647
- (args: {
1648
- method: "eth_newPendingTransactionFilter";
1649
- params?: undefined;
1650
- }): Promise<`0x${string}`>;
1651
- (args: {
1652
- method: "eth_protocolVersion";
1653
- params?: undefined;
1654
- }): Promise<string>;
1655
- (args: {
1656
- method: "eth_sendRawTransaction";
1657
- params: [signedTransaction: `0x${string}`];
1658
- }): Promise<`0x${string}`>;
1659
- (args: {
1660
- method: "eth_uninstallFilter";
1661
- params: [filterId: `0x${string}`];
1662
- }): Promise<boolean>;
1663
- } & {
1664
- (args: {
1665
- method: "eth_sendTransaction";
1666
- params: [request: viem.RpcTransactionRequest];
1667
- }): Promise<`0x${string}`>;
1668
- (args: {
1669
- method: "eth_sign";
1670
- params: [address: `0x${string}`, data: `0x${string}`];
1671
- }): Promise<`0x${string}`>;
1672
- (args: {
1673
- method: "eth_signTransaction";
1674
- params: [request: viem.RpcTransactionRequest];
1675
- }): Promise<`0x${string}`>;
1676
- (args: {
1677
- method: "eth_signTypedData_v4";
1678
- params: [address: `0x${string}`, message: string];
1679
- }): Promise<`0x${string}`>;
1680
- (args: {
1681
- method: "eth_syncing";
1682
- params?: undefined;
1683
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
1684
- (args: {
1685
- method: "personal_sign";
1686
- params: [data: `0x${string}`, address: `0x${string}`];
1687
- }): Promise<`0x${string}`>;
1688
- } & {
1689
- (args: {
1690
- method: "eth_accounts";
1691
- params?: undefined;
1692
- }): Promise<`0x${string}`[]>;
1693
- (args: {
1694
- method: "eth_chainId";
1695
- params?: undefined;
1696
- }): Promise<`0x${string}`>;
1697
- (args: {
1698
- method: "eth_requestAccounts";
1699
- params?: undefined;
1700
- }): Promise<`0x${string}`[]>;
1701
- (args: {
1702
- method: "wallet_requestPermissions";
1703
- params: [permissions: {
1704
- eth_accounts: Record<string, any>;
1705
- }];
1706
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1707
- (args: {
1708
- method: "wallet_getPermissions";
1709
- params?: undefined;
1710
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1711
- (args: {
1712
- method: "wallet_addEthereumChain";
1713
- params: [chain: viem_dist_types_types_eip1193.Chain];
1714
- }): Promise<null>;
1715
- (args: {
1716
- method: "wallet_switchEthereumChain";
1717
- params: [chain: {
1718
- chainId: string;
1719
- }];
1720
- }): Promise<null>;
1721
- (args: {
1722
- method: "wallet_watchAsset";
1723
- params: viem_dist_types_types_eip1193.WatchAssetParams;
1724
- }): Promise<boolean>;
1725
- }>, _wagmi_core.Chain>> | undefined;
134
+ readonly data: ConnectResult<_wagmi_core.PublicClient> | undefined;
1726
135
  readonly error: Error | null;
1727
136
  readonly isError: boolean;
1728
137
  readonly isIdle: boolean;
@@ -1792,7 +201,7 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
1792
201
  isSuccess: boolean;
1793
202
  reset: () => void;
1794
203
  signTypedData: <TTypedDataMutate extends {
1795
- [x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
204
+ [x: string]: readonly abitype.TypedDataParameter[];
1796
205
  [x: `string[${string}]`]: undefined;
1797
206
  [x: `function[${string}]`]: undefined;
1798
207
  [x: `address[${string}]`]: undefined;
@@ -1998,7 +407,7 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
1998
407
  uint256?: undefined;
1999
408
  } = TTypedData>(args?: UseSignTypedDataArgs<TTypedDataMutate, string> | undefined) => void;
2000
409
  signTypedDataAsync: <TTypedDataMutate_1 extends {
2001
- [x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
410
+ [x: string]: readonly abitype.TypedDataParameter[];
2002
411
  [x: `string[${string}]`]: undefined;
2003
412
  [x: `function[${string}]`]: undefined;
2004
413
  [x: `address[${string}]`]: undefined;
@@ -2204,7 +613,7 @@ declare function useSignTypedData<TTypedData extends TypedData, TPrimaryType ext
2204
613
  uint256?: undefined;
2205
614
  } = TTypedData>(args?: UseSignTypedDataArgs<TTypedDataMutate_1, string> | undefined) => Promise<`0x${string}`>;
2206
615
  status: "error" | "success" | "loading" | "idle";
2207
- variables: SignTypedDataArgs<TTypedData, string> | undefined;
616
+ variables: SignTypedDataArgs<TTypedData> | undefined;
2208
617
  };
2209
618
 
2210
619
  type UseSwitchNetworkArgs = Partial<SwitchNetworkArgs>;
@@ -2391,7 +800,7 @@ type UsePrepareContractWriteConfig<TAbi extends Abi | readonly unknown[] = Abi,
2391
800
  declare function usePrepareContractWrite<TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChainId extends number>({ address, abi, functionName, chainId, args, cacheTime, enabled, scopeKey, staleTime, suspense, onError, onSettled, onSuccess, ...config }?: UsePrepareContractWriteConfig<TAbi, TFunctionName, TChainId>): Pick<_tanstack_react_query.QueryObserverResult<PrepareWriteContractResult<TAbi, TFunctionName, TChainId>, Error>, "data" | "error" | "isError" | "isLoading" | "isSuccess" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isRefetching" | "refetch" | "fetchStatus"> & {
2392
801
  isIdle: boolean;
2393
802
  status: "error" | "success" | "loading" | "idle";
2394
- internal: Pick<_tanstack_react_query.QueryObserverResult<unknown, unknown>, "isLoadingError" | "isRefetchError" | "dataUpdatedAt" | "errorUpdatedAt" | "failureCount" | "isPaused" | "isPlaceholderData" | "isPreviousData" | "isStale" | "remove">;
803
+ internal: Pick<_tanstack_react_query.QueryObserverResult, "isLoadingError" | "isRefetchError" | "dataUpdatedAt" | "errorUpdatedAt" | "failureCount" | "isPaused" | "isPlaceholderData" | "isPreviousData" | "isStale" | "remove">;
2395
804
  } & {
2396
805
  config: PrepareWriteContractResult<TAbi, TFunctionName, TChainId>;
2397
806
  };
@@ -2469,7 +878,7 @@ type UsePrepareSendTransactionConfig = Partial<PrepareSendTransactionArgs> & Que
2469
878
  declare function usePrepareSendTransaction({ accessList, account, chainId, cacheTime, data, enabled, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, scopeKey, staleTime, suspense, to, value, onError, onSettled, onSuccess, }?: UsePrepareSendTransactionConfig): Pick<_tanstack_react_query.QueryObserverResult<PrepareSendTransactionResult, Error>, "data" | "error" | "isError" | "isLoading" | "isSuccess" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isRefetching" | "refetch" | "fetchStatus"> & {
2470
879
  isIdle: boolean;
2471
880
  status: "error" | "success" | "loading" | "idle";
2472
- internal: Pick<_tanstack_react_query.QueryObserverResult<unknown, unknown>, "isLoadingError" | "isRefetchError" | "dataUpdatedAt" | "errorUpdatedAt" | "failureCount" | "isPaused" | "isPlaceholderData" | "isPreviousData" | "isStale" | "remove">;
881
+ internal: Pick<_tanstack_react_query.QueryObserverResult, "isLoadingError" | "isRefetchError" | "dataUpdatedAt" | "errorUpdatedAt" | "failureCount" | "isPaused" | "isPlaceholderData" | "isPreviousData" | "isStale" | "remove">;
2473
882
  } & {
2474
883
  config: PrepareSendTransactionResult;
2475
884
  };
@@ -2531,7 +940,7 @@ declare function useTransaction({ cacheTime, chainId: chainId_, enabled, hash, s
2531
940
 
2532
941
  type UseWaitForTransactionArgs = Partial<WaitForTransactionArgs>;
2533
942
  type UseWaitForTransactionConfig = QueryConfig<WaitForTransactionResult, Error>;
2534
- declare function useWaitForTransaction({ chainId: chainId_, confirmations, hash, timeout, cacheTime, enabled, scopeKey, staleTime, suspense, onError, onReplaced, onSettled, onSuccess, }?: UseWaitForTransactionArgs & UseWaitForTransactionConfig): UseQueryResult<viem.TransactionReceipt<bigint, number, "success" | "reverted", viem.TransactionType>, Error>;
943
+ declare function useWaitForTransaction({ chainId: chainId_, confirmations, hash, timeout, cacheTime, enabled, scopeKey, staleTime, suspense, onError, onReplaced, onSettled, onSuccess, }?: UseWaitForTransactionArgs & UseWaitForTransactionConfig): UseQueryResult<viem.TransactionReceipt, Error>;
2535
944
 
2536
945
  type UseWatchPendingTransactionsConfig = {
2537
946
  /** The chain ID to listen on. */