@wagmi/connectors 1.0.0-next.4 → 1.0.0-next.6

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.
@@ -1 +1,1578 @@
1
- export * from '../../src/mock/index'
1
+ import * as abitype_dist_abi_7aa1f183 from 'abitype/dist/abi-7aa1f183';
2
+ import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
3
+ import * as viem from 'viem';
4
+ import * as viem_dist_types_types from 'viem/dist/types/types';
5
+ import { Chain } from '@wagmi/chains';
6
+ import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-a11da01a.js';
7
+ import EventEmitter from 'eventemitter3';
8
+ import 'abitype';
9
+
10
+ type MockProviderOptions = {
11
+ chainId: number;
12
+ flags?: {
13
+ isAuthorized?: boolean;
14
+ failConnect?: boolean;
15
+ failSwitchChain?: boolean;
16
+ noSwitchChain?: boolean;
17
+ };
18
+ walletClient: WalletClient;
19
+ };
20
+ type Events = {
21
+ accountsChanged(accounts: string[]): void;
22
+ chainChanged(chainId: number | string): void;
23
+ disconnect(): void;
24
+ };
25
+ type Event = keyof Events;
26
+ declare class MockProvider {
27
+ #private;
28
+ events: EventEmitter<Events, any>;
29
+ chainId: number;
30
+ constructor(options: MockProviderOptions);
31
+ enable(): Promise<`0x${string}`[]>;
32
+ disconnect(): Promise<void>;
33
+ getAccounts(): Promise<`0x${string}`[]>;
34
+ getWalletClient(): {
35
+ chain: viem.Chain<viem_dist_types_types.Formatters>;
36
+ key: string;
37
+ name: string;
38
+ pollingInterval: number;
39
+ request: {
40
+ (args: {
41
+ method: "web3_clientVersion";
42
+ params?: undefined;
43
+ }): Promise<string>;
44
+ (args: {
45
+ method: "web3_sha3";
46
+ params: [data: `0x${string}`];
47
+ }): Promise<string>;
48
+ (args: {
49
+ method: "net_listening";
50
+ params?: undefined;
51
+ }): Promise<boolean>;
52
+ (args: {
53
+ method: "net_peerCount";
54
+ params?: undefined;
55
+ }): Promise<`0x${string}`>;
56
+ (args: {
57
+ method: "net_version";
58
+ params?: undefined;
59
+ }): Promise<`0x${string}`>;
60
+ (args: {
61
+ method: "eth_blockNumber";
62
+ params?: undefined;
63
+ }): Promise<`0x${string}`>;
64
+ (args: {
65
+ method: "eth_call";
66
+ params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
67
+ }): Promise<`0x${string}`>;
68
+ (args: {
69
+ method: "eth_chainId";
70
+ params?: undefined;
71
+ }): Promise<`0x${string}`>;
72
+ (args: {
73
+ method: "eth_coinbase";
74
+ params?: undefined;
75
+ }): Promise<`0x${string}`>;
76
+ (args: {
77
+ method: "eth_estimateGas";
78
+ params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
79
+ }): Promise<`0x${string}`>;
80
+ (args: {
81
+ method: "eth_feeHistory";
82
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
83
+ }): Promise<viem.RpcFeeHistory>;
84
+ (args: {
85
+ method: "eth_gasPrice";
86
+ params?: undefined;
87
+ }): Promise<`0x${string}`>;
88
+ (args: {
89
+ method: "eth_getBalance";
90
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
91
+ }): Promise<`0x${string}`>;
92
+ (args: {
93
+ method: "eth_getBlockByHash";
94
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
95
+ }): Promise<viem.RpcBlock | null>;
96
+ (args: {
97
+ method: "eth_getBlockByNumber";
98
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
99
+ }): Promise<viem.RpcBlock | null>;
100
+ (args: {
101
+ method: "eth_getBlockTransactionCountByHash";
102
+ params: [hash: `0x${string}`];
103
+ }): Promise<`0x${string}`>;
104
+ (args: {
105
+ method: "eth_getBlockTransactionCountByNumber";
106
+ params: [block: `0x${string}` | viem.BlockTag];
107
+ }): Promise<`0x${string}`>;
108
+ (args: {
109
+ method: "eth_getCode";
110
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
111
+ }): Promise<`0x${string}`>;
112
+ (args: {
113
+ method: "eth_getFilterChanges";
114
+ params: [filterId: `0x${string}`];
115
+ }): Promise<`0x${string}`[] | {
116
+ address: `0x${string}`;
117
+ blockHash: `0x${string}` | null;
118
+ blockNumber: `0x${string}` | null;
119
+ data: `0x${string}`;
120
+ logIndex: `0x${string}` | null;
121
+ transactionHash: `0x${string}` | null;
122
+ transactionIndex: `0x${string}` | null;
123
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
124
+ removed: boolean;
125
+ }[]>;
126
+ (args: {
127
+ method: "eth_getFilterLogs";
128
+ params: [filterId: `0x${string}`];
129
+ }): Promise<{
130
+ address: `0x${string}`;
131
+ blockHash: `0x${string}` | null;
132
+ blockNumber: `0x${string}` | null;
133
+ data: `0x${string}`;
134
+ logIndex: `0x${string}` | null;
135
+ transactionHash: `0x${string}` | null;
136
+ transactionIndex: `0x${string}` | null;
137
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
138
+ removed: boolean;
139
+ }[]>;
140
+ (args: {
141
+ method: "eth_getLogs";
142
+ params: [parameters: {
143
+ address?: `0x${string}` | `0x${string}`[] | undefined;
144
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
145
+ } & ({
146
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
147
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
148
+ blockHash?: undefined;
149
+ } | {
150
+ fromBlock?: undefined;
151
+ toBlock?: undefined;
152
+ blockHash?: `0x${string}` | undefined;
153
+ })];
154
+ }): Promise<{
155
+ address: `0x${string}`;
156
+ blockHash: `0x${string}` | null;
157
+ blockNumber: `0x${string}` | null;
158
+ data: `0x${string}`;
159
+ logIndex: `0x${string}` | null;
160
+ transactionHash: `0x${string}` | null;
161
+ transactionIndex: `0x${string}` | null;
162
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
163
+ removed: boolean;
164
+ }[]>;
165
+ (args: {
166
+ method: "eth_getStorageAt";
167
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
168
+ }): Promise<`0x${string}`>;
169
+ (args: {
170
+ method: "eth_getTransactionByBlockHashAndIndex";
171
+ params: [hash: `0x${string}`, index: `0x${string}`];
172
+ }): Promise<viem.RpcTransaction | null>;
173
+ (args: {
174
+ method: "eth_getTransactionByBlockNumberAndIndex";
175
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
176
+ }): Promise<viem.RpcTransaction | null>;
177
+ (args: {
178
+ method: "eth_getTransactionByHash";
179
+ params: [hash: `0x${string}`];
180
+ }): Promise<viem.RpcTransaction | null>;
181
+ (args: {
182
+ method: "eth_getTransactionCount";
183
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
184
+ }): Promise<`0x${string}`>;
185
+ (args: {
186
+ method: "eth_getTransactionReceipt";
187
+ params: [hash: `0x${string}`];
188
+ }): Promise<viem.RpcTransactionReceipt | null>;
189
+ (args: {
190
+ method: "eth_getUncleByBlockHashAndIndex";
191
+ params: [hash: `0x${string}`, index: `0x${string}`];
192
+ }): Promise<viem.RpcUncle | null>;
193
+ (args: {
194
+ method: "eth_getUncleByBlockNumberAndIndex";
195
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
196
+ }): Promise<viem.RpcUncle | null>;
197
+ (args: {
198
+ method: "eth_getUncleCountByBlockHash";
199
+ params: [hash: `0x${string}`];
200
+ }): Promise<`0x${string}`>;
201
+ (args: {
202
+ method: "eth_getUncleCountByBlockNumber";
203
+ params: [block: `0x${string}` | viem.BlockTag];
204
+ }): Promise<`0x${string}`>;
205
+ (args: {
206
+ method: "eth_newBlockFilter";
207
+ params?: undefined;
208
+ }): Promise<`0x${string}`>;
209
+ (args: {
210
+ method: "eth_newFilter";
211
+ params: [filter: {
212
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
213
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
214
+ address?: `0x${string}` | `0x${string}`[] | undefined;
215
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
216
+ }];
217
+ }): Promise<`0x${string}`>;
218
+ (args: {
219
+ method: "eth_newPendingTransactionFilter";
220
+ params?: undefined;
221
+ }): Promise<`0x${string}`>;
222
+ (args: {
223
+ method: "eth_protocolVersion";
224
+ params?: undefined;
225
+ }): Promise<string>;
226
+ (args: {
227
+ method: "eth_sendRawTransaction";
228
+ params: [signedTransaction: `0x${string}`];
229
+ }): Promise<`0x${string}`>;
230
+ (args: {
231
+ method: "eth_uninstallFilter";
232
+ params: [filterId: `0x${string}`];
233
+ }): Promise<boolean>;
234
+ } & {
235
+ (args: {
236
+ method: "eth_sendTransaction";
237
+ params: [request: viem.RpcTransactionRequest];
238
+ }): Promise<`0x${string}`>;
239
+ (args: {
240
+ method: "eth_sign";
241
+ params: [address: `0x${string}`, data: `0x${string}`];
242
+ }): Promise<`0x${string}`>;
243
+ (args: {
244
+ method: "eth_signTransaction";
245
+ params: [request: viem.RpcTransactionRequest];
246
+ }): Promise<`0x${string}`>;
247
+ (args: {
248
+ method: "eth_signTypedData_v4";
249
+ params: [address: `0x${string}`, message: string];
250
+ }): Promise<`0x${string}`>;
251
+ (args: {
252
+ method: "eth_syncing";
253
+ params?: undefined;
254
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
255
+ (args: {
256
+ method: "personal_sign";
257
+ params: [data: `0x${string}`, address: `0x${string}`];
258
+ }): Promise<`0x${string}`>;
259
+ } & {
260
+ (args: {
261
+ method: "eth_accounts";
262
+ params?: undefined;
263
+ }): Promise<`0x${string}`[]>;
264
+ (args: {
265
+ method: "eth_chainId";
266
+ params?: undefined;
267
+ }): Promise<`0x${string}`>;
268
+ (args: {
269
+ method: "eth_requestAccounts";
270
+ params?: undefined;
271
+ }): Promise<`0x${string}`[]>;
272
+ (args: {
273
+ method: "wallet_requestPermissions";
274
+ params: [permissions: {
275
+ eth_accounts: Record<string, any>;
276
+ }];
277
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
278
+ (args: {
279
+ method: "wallet_getPermissions";
280
+ params?: undefined;
281
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
282
+ (args: {
283
+ method: "wallet_addEthereumChain";
284
+ params: [chain: viem_dist_types_types_eip1193.Chain];
285
+ }): Promise<null>;
286
+ (args: {
287
+ method: "wallet_switchEthereumChain";
288
+ params: [chain: {
289
+ chainId: string;
290
+ }];
291
+ }): Promise<null>;
292
+ (args: {
293
+ method: "wallet_watchAsset";
294
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
295
+ }): Promise<boolean>;
296
+ };
297
+ transport: viem.TransportConfig<string, {
298
+ (args: {
299
+ method: "web3_clientVersion";
300
+ params?: undefined;
301
+ }): Promise<string>;
302
+ (args: {
303
+ method: "web3_sha3";
304
+ params: [data: `0x${string}`];
305
+ }): Promise<string>;
306
+ (args: {
307
+ method: "net_listening";
308
+ params?: undefined;
309
+ }): Promise<boolean>;
310
+ (args: {
311
+ method: "net_peerCount";
312
+ params?: undefined;
313
+ }): Promise<`0x${string}`>;
314
+ (args: {
315
+ method: "net_version";
316
+ params?: undefined;
317
+ }): Promise<`0x${string}`>;
318
+ (args: {
319
+ method: "eth_blockNumber";
320
+ params?: undefined;
321
+ }): Promise<`0x${string}`>;
322
+ (args: {
323
+ method: "eth_call";
324
+ params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
325
+ }): Promise<`0x${string}`>;
326
+ (args: {
327
+ method: "eth_chainId";
328
+ params?: undefined;
329
+ }): Promise<`0x${string}`>;
330
+ (args: {
331
+ method: "eth_coinbase";
332
+ params?: undefined;
333
+ }): Promise<`0x${string}`>;
334
+ (args: {
335
+ method: "eth_estimateGas";
336
+ params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
337
+ }): Promise<`0x${string}`>;
338
+ (args: {
339
+ method: "eth_feeHistory";
340
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
341
+ }): Promise<viem.RpcFeeHistory>;
342
+ (args: {
343
+ method: "eth_gasPrice";
344
+ params?: undefined;
345
+ }): Promise<`0x${string}`>;
346
+ (args: {
347
+ method: "eth_getBalance";
348
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
349
+ }): Promise<`0x${string}`>;
350
+ (args: {
351
+ method: "eth_getBlockByHash";
352
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
353
+ }): Promise<viem.RpcBlock | null>;
354
+ (args: {
355
+ method: "eth_getBlockByNumber";
356
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
357
+ }): Promise<viem.RpcBlock | null>;
358
+ (args: {
359
+ method: "eth_getBlockTransactionCountByHash";
360
+ params: [hash: `0x${string}`];
361
+ }): Promise<`0x${string}`>;
362
+ (args: {
363
+ method: "eth_getBlockTransactionCountByNumber";
364
+ params: [block: `0x${string}` | viem.BlockTag];
365
+ }): Promise<`0x${string}`>;
366
+ (args: {
367
+ method: "eth_getCode";
368
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
369
+ }): Promise<`0x${string}`>;
370
+ (args: {
371
+ method: "eth_getFilterChanges";
372
+ params: [filterId: `0x${string}`];
373
+ }): Promise<`0x${string}`[] | {
374
+ address: `0x${string}`;
375
+ blockHash: `0x${string}` | null;
376
+ blockNumber: `0x${string}` | null;
377
+ data: `0x${string}`;
378
+ logIndex: `0x${string}` | null;
379
+ transactionHash: `0x${string}` | null;
380
+ transactionIndex: `0x${string}` | null;
381
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
382
+ removed: boolean;
383
+ }[]>;
384
+ (args: {
385
+ method: "eth_getFilterLogs";
386
+ params: [filterId: `0x${string}`];
387
+ }): Promise<{
388
+ address: `0x${string}`;
389
+ blockHash: `0x${string}` | null;
390
+ blockNumber: `0x${string}` | null;
391
+ data: `0x${string}`;
392
+ logIndex: `0x${string}` | null;
393
+ transactionHash: `0x${string}` | null;
394
+ transactionIndex: `0x${string}` | null;
395
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
396
+ removed: boolean;
397
+ }[]>;
398
+ (args: {
399
+ method: "eth_getLogs";
400
+ params: [parameters: {
401
+ address?: `0x${string}` | `0x${string}`[] | undefined;
402
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
403
+ } & ({
404
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
405
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
406
+ blockHash?: undefined;
407
+ } | {
408
+ fromBlock?: undefined;
409
+ toBlock?: undefined;
410
+ blockHash?: `0x${string}` | undefined;
411
+ })];
412
+ }): Promise<{
413
+ address: `0x${string}`;
414
+ blockHash: `0x${string}` | null;
415
+ blockNumber: `0x${string}` | null;
416
+ data: `0x${string}`;
417
+ logIndex: `0x${string}` | null;
418
+ transactionHash: `0x${string}` | null;
419
+ transactionIndex: `0x${string}` | null;
420
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
421
+ removed: boolean;
422
+ }[]>;
423
+ (args: {
424
+ method: "eth_getStorageAt";
425
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
426
+ }): Promise<`0x${string}`>;
427
+ (args: {
428
+ method: "eth_getTransactionByBlockHashAndIndex";
429
+ params: [hash: `0x${string}`, index: `0x${string}`];
430
+ }): Promise<viem.RpcTransaction | null>;
431
+ (args: {
432
+ method: "eth_getTransactionByBlockNumberAndIndex";
433
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
434
+ }): Promise<viem.RpcTransaction | null>;
435
+ (args: {
436
+ method: "eth_getTransactionByHash";
437
+ params: [hash: `0x${string}`];
438
+ }): Promise<viem.RpcTransaction | null>;
439
+ (args: {
440
+ method: "eth_getTransactionCount";
441
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
442
+ }): Promise<`0x${string}`>;
443
+ (args: {
444
+ method: "eth_getTransactionReceipt";
445
+ params: [hash: `0x${string}`];
446
+ }): Promise<viem.RpcTransactionReceipt | null>;
447
+ (args: {
448
+ method: "eth_getUncleByBlockHashAndIndex";
449
+ params: [hash: `0x${string}`, index: `0x${string}`];
450
+ }): Promise<viem.RpcUncle | null>;
451
+ (args: {
452
+ method: "eth_getUncleByBlockNumberAndIndex";
453
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
454
+ }): Promise<viem.RpcUncle | null>;
455
+ (args: {
456
+ method: "eth_getUncleCountByBlockHash";
457
+ params: [hash: `0x${string}`];
458
+ }): Promise<`0x${string}`>;
459
+ (args: {
460
+ method: "eth_getUncleCountByBlockNumber";
461
+ params: [block: `0x${string}` | viem.BlockTag];
462
+ }): Promise<`0x${string}`>;
463
+ (args: {
464
+ method: "eth_newBlockFilter";
465
+ params?: undefined;
466
+ }): Promise<`0x${string}`>;
467
+ (args: {
468
+ method: "eth_newFilter";
469
+ params: [filter: {
470
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
471
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
472
+ address?: `0x${string}` | `0x${string}`[] | undefined;
473
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
474
+ }];
475
+ }): Promise<`0x${string}`>;
476
+ (args: {
477
+ method: "eth_newPendingTransactionFilter";
478
+ params?: undefined;
479
+ }): Promise<`0x${string}`>;
480
+ (args: {
481
+ method: "eth_protocolVersion";
482
+ params?: undefined;
483
+ }): Promise<string>;
484
+ (args: {
485
+ method: "eth_sendRawTransaction";
486
+ params: [signedTransaction: `0x${string}`];
487
+ }): Promise<`0x${string}`>;
488
+ (args: {
489
+ method: "eth_uninstallFilter";
490
+ params: [filterId: `0x${string}`];
491
+ }): Promise<boolean>;
492
+ } & {
493
+ (args: {
494
+ method: "eth_sendTransaction";
495
+ params: [request: viem.RpcTransactionRequest];
496
+ }): Promise<`0x${string}`>;
497
+ (args: {
498
+ method: "eth_sign";
499
+ params: [address: `0x${string}`, data: `0x${string}`];
500
+ }): Promise<`0x${string}`>;
501
+ (args: {
502
+ method: "eth_signTransaction";
503
+ params: [request: viem.RpcTransactionRequest];
504
+ }): Promise<`0x${string}`>;
505
+ (args: {
506
+ method: "eth_signTypedData_v4";
507
+ params: [address: `0x${string}`, message: string];
508
+ }): Promise<`0x${string}`>;
509
+ (args: {
510
+ method: "eth_syncing";
511
+ params?: undefined;
512
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
513
+ (args: {
514
+ method: "personal_sign";
515
+ params: [data: `0x${string}`, address: `0x${string}`];
516
+ }): Promise<`0x${string}`>;
517
+ } & {
518
+ (args: {
519
+ method: "eth_accounts";
520
+ params?: undefined;
521
+ }): Promise<`0x${string}`[]>;
522
+ (args: {
523
+ method: "eth_chainId";
524
+ params?: undefined;
525
+ }): Promise<`0x${string}`>;
526
+ (args: {
527
+ method: "eth_requestAccounts";
528
+ params?: undefined;
529
+ }): Promise<`0x${string}`[]>;
530
+ (args: {
531
+ method: "wallet_requestPermissions";
532
+ params: [permissions: {
533
+ eth_accounts: Record<string, any>;
534
+ }];
535
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
536
+ (args: {
537
+ method: "wallet_getPermissions";
538
+ params?: undefined;
539
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
540
+ (args: {
541
+ method: "wallet_addEthereumChain";
542
+ params: [chain: viem_dist_types_types_eip1193.Chain];
543
+ }): Promise<null>;
544
+ (args: {
545
+ method: "wallet_switchEthereumChain";
546
+ params: [chain: {
547
+ chainId: string;
548
+ }];
549
+ }): Promise<null>;
550
+ (args: {
551
+ method: "wallet_watchAsset";
552
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
553
+ }): Promise<boolean>;
554
+ }> & Record<string, any>;
555
+ type: string;
556
+ uid: string;
557
+ addChain: (args: viem.AddChainParameters) => Promise<void>;
558
+ deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
559
+ getAddresses: () => Promise<viem.GetAddressesReturnType>;
560
+ getChainId: () => Promise<number>;
561
+ getPermissions: () => Promise<viem.GetPermissionsReturnType>;
562
+ requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
563
+ requestPermissions: (args: {
564
+ [x: string]: Record<string, any>;
565
+ eth_accounts: Record<string, any>;
566
+ }) => Promise<viem.RequestPermissionsReturnType>;
567
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_1>) => Promise<`0x${string}`>;
568
+ signMessage: (args: viem.SignMessageParameters<viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
569
+ signTypedData: <TTypedData extends {
570
+ [key: string]: unknown;
571
+ } | {
572
+ [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
573
+ [x: `string[${string}]`]: undefined;
574
+ [x: `function[${string}]`]: undefined;
575
+ [x: `address[${string}]`]: undefined;
576
+ [x: `bool[${string}]`]: undefined;
577
+ [x: `bytes[${string}]`]: undefined;
578
+ [x: `bytes5[${string}]`]: undefined;
579
+ [x: `bytes1[${string}]`]: undefined;
580
+ [x: `bytes18[${string}]`]: undefined;
581
+ [x: `bytes2[${string}]`]: undefined;
582
+ [x: `bytes16[${string}]`]: undefined;
583
+ [x: `bytes10[${string}]`]: undefined;
584
+ [x: `bytes3[${string}]`]: undefined;
585
+ [x: `bytes4[${string}]`]: undefined;
586
+ [x: `bytes6[${string}]`]: undefined;
587
+ [x: `bytes7[${string}]`]: undefined;
588
+ [x: `bytes8[${string}]`]: undefined;
589
+ [x: `bytes9[${string}]`]: undefined;
590
+ [x: `bytes11[${string}]`]: undefined;
591
+ [x: `bytes12[${string}]`]: undefined;
592
+ [x: `bytes13[${string}]`]: undefined;
593
+ [x: `bytes14[${string}]`]: undefined;
594
+ [x: `bytes15[${string}]`]: undefined;
595
+ [x: `bytes17[${string}]`]: undefined;
596
+ [x: `bytes19[${string}]`]: undefined;
597
+ [x: `bytes20[${string}]`]: undefined;
598
+ [x: `bytes21[${string}]`]: undefined;
599
+ [x: `bytes22[${string}]`]: undefined;
600
+ [x: `bytes23[${string}]`]: undefined;
601
+ [x: `bytes24[${string}]`]: undefined;
602
+ [x: `bytes25[${string}]`]: undefined;
603
+ [x: `bytes26[${string}]`]: undefined;
604
+ [x: `bytes27[${string}]`]: undefined;
605
+ [x: `bytes28[${string}]`]: undefined;
606
+ [x: `bytes29[${string}]`]: undefined;
607
+ [x: `bytes30[${string}]`]: undefined;
608
+ [x: `bytes31[${string}]`]: undefined;
609
+ [x: `bytes32[${string}]`]: undefined;
610
+ [x: `int[${string}]`]: undefined;
611
+ [x: `int16[${string}]`]: undefined;
612
+ [x: `int8[${string}]`]: undefined;
613
+ [x: `int24[${string}]`]: undefined;
614
+ [x: `int32[${string}]`]: undefined;
615
+ [x: `int40[${string}]`]: undefined;
616
+ [x: `int48[${string}]`]: undefined;
617
+ [x: `int56[${string}]`]: undefined;
618
+ [x: `int64[${string}]`]: undefined;
619
+ [x: `int72[${string}]`]: undefined;
620
+ [x: `int80[${string}]`]: undefined;
621
+ [x: `int88[${string}]`]: undefined;
622
+ [x: `int96[${string}]`]: undefined;
623
+ [x: `int104[${string}]`]: undefined;
624
+ [x: `int112[${string}]`]: undefined;
625
+ [x: `int120[${string}]`]: undefined;
626
+ [x: `int128[${string}]`]: undefined;
627
+ [x: `int136[${string}]`]: undefined;
628
+ [x: `int144[${string}]`]: undefined;
629
+ [x: `int152[${string}]`]: undefined;
630
+ [x: `int160[${string}]`]: undefined;
631
+ [x: `int168[${string}]`]: undefined;
632
+ [x: `int176[${string}]`]: undefined;
633
+ [x: `int184[${string}]`]: undefined;
634
+ [x: `int192[${string}]`]: undefined;
635
+ [x: `int200[${string}]`]: undefined;
636
+ [x: `int208[${string}]`]: undefined;
637
+ [x: `int216[${string}]`]: undefined;
638
+ [x: `int224[${string}]`]: undefined;
639
+ [x: `int232[${string}]`]: undefined;
640
+ [x: `int240[${string}]`]: undefined;
641
+ [x: `int248[${string}]`]: undefined;
642
+ [x: `int256[${string}]`]: undefined;
643
+ [x: `uint[${string}]`]: undefined;
644
+ [x: `uint16[${string}]`]: undefined;
645
+ [x: `uint8[${string}]`]: undefined;
646
+ [x: `uint24[${string}]`]: undefined;
647
+ [x: `uint32[${string}]`]: undefined;
648
+ [x: `uint40[${string}]`]: undefined;
649
+ [x: `uint48[${string}]`]: undefined;
650
+ [x: `uint56[${string}]`]: undefined;
651
+ [x: `uint64[${string}]`]: undefined;
652
+ [x: `uint72[${string}]`]: undefined;
653
+ [x: `uint80[${string}]`]: undefined;
654
+ [x: `uint88[${string}]`]: undefined;
655
+ [x: `uint96[${string}]`]: undefined;
656
+ [x: `uint104[${string}]`]: undefined;
657
+ [x: `uint112[${string}]`]: undefined;
658
+ [x: `uint120[${string}]`]: undefined;
659
+ [x: `uint128[${string}]`]: undefined;
660
+ [x: `uint136[${string}]`]: undefined;
661
+ [x: `uint144[${string}]`]: undefined;
662
+ [x: `uint152[${string}]`]: undefined;
663
+ [x: `uint160[${string}]`]: undefined;
664
+ [x: `uint168[${string}]`]: undefined;
665
+ [x: `uint176[${string}]`]: undefined;
666
+ [x: `uint184[${string}]`]: undefined;
667
+ [x: `uint192[${string}]`]: undefined;
668
+ [x: `uint200[${string}]`]: undefined;
669
+ [x: `uint208[${string}]`]: undefined;
670
+ [x: `uint216[${string}]`]: undefined;
671
+ [x: `uint224[${string}]`]: undefined;
672
+ [x: `uint232[${string}]`]: undefined;
673
+ [x: `uint240[${string}]`]: undefined;
674
+ [x: `uint248[${string}]`]: undefined;
675
+ [x: `uint256[${string}]`]: undefined;
676
+ string?: undefined;
677
+ address?: undefined;
678
+ bool?: undefined;
679
+ bytes?: undefined;
680
+ bytes5?: undefined;
681
+ bytes1?: undefined;
682
+ bytes18?: undefined;
683
+ bytes2?: undefined;
684
+ bytes16?: undefined;
685
+ bytes10?: undefined;
686
+ bytes3?: undefined;
687
+ bytes4?: undefined;
688
+ bytes6?: undefined;
689
+ bytes7?: undefined;
690
+ bytes8?: undefined;
691
+ bytes9?: undefined;
692
+ bytes11?: undefined;
693
+ bytes12?: undefined;
694
+ bytes13?: undefined;
695
+ bytes14?: undefined;
696
+ bytes15?: undefined;
697
+ bytes17?: undefined;
698
+ bytes19?: undefined;
699
+ bytes20?: undefined;
700
+ bytes21?: undefined;
701
+ bytes22?: undefined;
702
+ bytes23?: undefined;
703
+ bytes24?: undefined;
704
+ bytes25?: undefined;
705
+ bytes26?: undefined;
706
+ bytes27?: undefined;
707
+ bytes28?: undefined;
708
+ bytes29?: undefined;
709
+ bytes30?: undefined;
710
+ bytes31?: undefined;
711
+ bytes32?: undefined;
712
+ int16?: undefined;
713
+ int8?: undefined;
714
+ int24?: undefined;
715
+ int32?: undefined;
716
+ int40?: undefined;
717
+ int48?: undefined;
718
+ int56?: undefined;
719
+ int64?: undefined;
720
+ int72?: undefined;
721
+ int80?: undefined;
722
+ int88?: undefined;
723
+ int96?: undefined;
724
+ int104?: undefined;
725
+ int112?: undefined;
726
+ int120?: undefined;
727
+ int128?: undefined;
728
+ int136?: undefined;
729
+ int144?: undefined;
730
+ int152?: undefined;
731
+ int160?: undefined;
732
+ int168?: undefined;
733
+ int176?: undefined;
734
+ int184?: undefined;
735
+ int192?: undefined;
736
+ int200?: undefined;
737
+ int208?: undefined;
738
+ int216?: undefined;
739
+ int224?: undefined;
740
+ int232?: undefined;
741
+ int240?: undefined;
742
+ int248?: undefined;
743
+ int256?: undefined;
744
+ uint16?: undefined;
745
+ uint8?: undefined;
746
+ uint24?: undefined;
747
+ uint32?: undefined;
748
+ uint40?: undefined;
749
+ uint48?: undefined;
750
+ uint56?: undefined;
751
+ uint64?: undefined;
752
+ uint72?: undefined;
753
+ uint80?: undefined;
754
+ uint88?: undefined;
755
+ uint96?: undefined;
756
+ uint104?: undefined;
757
+ uint112?: undefined;
758
+ uint120?: undefined;
759
+ uint128?: undefined;
760
+ uint136?: undefined;
761
+ uint144?: undefined;
762
+ uint152?: undefined;
763
+ uint160?: undefined;
764
+ uint168?: undefined;
765
+ uint176?: undefined;
766
+ uint184?: undefined;
767
+ uint192?: undefined;
768
+ uint200?: undefined;
769
+ uint208?: undefined;
770
+ uint216?: undefined;
771
+ uint224?: undefined;
772
+ uint232?: undefined;
773
+ uint240?: undefined;
774
+ uint248?: undefined;
775
+ uint256?: undefined;
776
+ }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
777
+ switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
778
+ watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
779
+ writeContract: <TAbi_1 extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
780
+ account: viem.Account<`0x${string}`>;
781
+ };
782
+ switchChain(chainId: number): Promise<void>;
783
+ switchWalletClient(walletClient: WalletClient): Promise<void>;
784
+ watchAsset(_asset: {
785
+ address: string;
786
+ decimals?: number;
787
+ image?: string;
788
+ symbol: string;
789
+ }): Promise<boolean>;
790
+ request({ method, params }: any): Promise<string | undefined>;
791
+ on(event: Event, listener: (...args: any[]) => void): this;
792
+ removeListener(event: Event, listener: (...args: any[]) => void): this;
793
+ toJSON(): string;
794
+ }
795
+
796
+ type MockConnectorOptions = Omit<MockProviderOptions, 'chainId'> & {
797
+ chainId?: number;
798
+ };
799
+ declare class MockConnector extends Connector<MockProvider, MockConnectorOptions> {
800
+ #private;
801
+ readonly id = "mock";
802
+ readonly name = "Mock";
803
+ readonly ready = true;
804
+ constructor({ chains, options, }: {
805
+ chains?: Chain[];
806
+ options: MockConnectorOptions;
807
+ });
808
+ connect({ chainId }?: {
809
+ chainId?: number;
810
+ }): Promise<Required<ConnectorData>>;
811
+ disconnect(): Promise<void>;
812
+ getAccount(): Promise<`0x${string}`>;
813
+ getChainId(): Promise<number>;
814
+ getProvider({ chainId }?: {
815
+ chainId?: number;
816
+ }): Promise<MockProvider>;
817
+ getWalletClient(): Promise<{
818
+ chain: viem.Chain<viem_dist_types_types.Formatters>;
819
+ key: string;
820
+ name: string;
821
+ pollingInterval: number;
822
+ request: {
823
+ (args: {
824
+ method: "web3_clientVersion";
825
+ params?: undefined;
826
+ }): Promise<string>;
827
+ (args: {
828
+ method: "web3_sha3";
829
+ params: [data: `0x${string}`];
830
+ }): Promise<string>;
831
+ (args: {
832
+ method: "net_listening";
833
+ params?: undefined;
834
+ }): Promise<boolean>;
835
+ (args: {
836
+ method: "net_peerCount";
837
+ params?: undefined;
838
+ }): Promise<`0x${string}`>;
839
+ (args: {
840
+ method: "net_version";
841
+ params?: undefined;
842
+ }): Promise<`0x${string}`>;
843
+ (args: {
844
+ method: "eth_blockNumber";
845
+ params?: undefined;
846
+ }): Promise<`0x${string}`>;
847
+ (args: {
848
+ method: "eth_call";
849
+ params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
850
+ }): Promise<`0x${string}`>;
851
+ (args: {
852
+ method: "eth_chainId";
853
+ params?: undefined;
854
+ }): Promise<`0x${string}`>;
855
+ (args: {
856
+ method: "eth_coinbase";
857
+ params?: undefined;
858
+ }): Promise<`0x${string}`>;
859
+ (args: {
860
+ method: "eth_estimateGas";
861
+ params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
862
+ }): Promise<`0x${string}`>;
863
+ (args: {
864
+ method: "eth_feeHistory";
865
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
866
+ }): Promise<viem.RpcFeeHistory>;
867
+ (args: {
868
+ method: "eth_gasPrice";
869
+ params?: undefined;
870
+ }): Promise<`0x${string}`>;
871
+ (args: {
872
+ method: "eth_getBalance";
873
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
874
+ }): Promise<`0x${string}`>;
875
+ (args: {
876
+ method: "eth_getBlockByHash";
877
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
878
+ }): Promise<viem.RpcBlock | null>;
879
+ (args: {
880
+ method: "eth_getBlockByNumber";
881
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
882
+ }): Promise<viem.RpcBlock | null>;
883
+ (args: {
884
+ method: "eth_getBlockTransactionCountByHash";
885
+ params: [hash: `0x${string}`];
886
+ }): Promise<`0x${string}`>;
887
+ (args: {
888
+ method: "eth_getBlockTransactionCountByNumber";
889
+ params: [block: `0x${string}` | viem.BlockTag];
890
+ }): Promise<`0x${string}`>;
891
+ (args: {
892
+ method: "eth_getCode";
893
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
894
+ }): Promise<`0x${string}`>;
895
+ (args: {
896
+ method: "eth_getFilterChanges";
897
+ params: [filterId: `0x${string}`];
898
+ }): Promise<`0x${string}`[] | {
899
+ address: `0x${string}`;
900
+ blockHash: `0x${string}` | null;
901
+ blockNumber: `0x${string}` | null;
902
+ data: `0x${string}`;
903
+ logIndex: `0x${string}` | null;
904
+ transactionHash: `0x${string}` | null;
905
+ transactionIndex: `0x${string}` | null;
906
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
907
+ removed: boolean;
908
+ }[]>;
909
+ (args: {
910
+ method: "eth_getFilterLogs";
911
+ params: [filterId: `0x${string}`];
912
+ }): Promise<{
913
+ address: `0x${string}`;
914
+ blockHash: `0x${string}` | null;
915
+ blockNumber: `0x${string}` | null;
916
+ data: `0x${string}`;
917
+ logIndex: `0x${string}` | null;
918
+ transactionHash: `0x${string}` | null;
919
+ transactionIndex: `0x${string}` | null;
920
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
921
+ removed: boolean;
922
+ }[]>;
923
+ (args: {
924
+ method: "eth_getLogs";
925
+ params: [parameters: {
926
+ address?: `0x${string}` | `0x${string}`[] | undefined;
927
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
928
+ } & ({
929
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
930
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
931
+ blockHash?: undefined;
932
+ } | {
933
+ fromBlock?: undefined;
934
+ toBlock?: undefined;
935
+ blockHash?: `0x${string}` | undefined;
936
+ })];
937
+ }): Promise<{
938
+ address: `0x${string}`;
939
+ blockHash: `0x${string}` | null;
940
+ blockNumber: `0x${string}` | null;
941
+ data: `0x${string}`;
942
+ logIndex: `0x${string}` | null;
943
+ transactionHash: `0x${string}` | null;
944
+ transactionIndex: `0x${string}` | null;
945
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
946
+ removed: boolean;
947
+ }[]>;
948
+ (args: {
949
+ method: "eth_getStorageAt";
950
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
951
+ }): Promise<`0x${string}`>;
952
+ (args: {
953
+ method: "eth_getTransactionByBlockHashAndIndex";
954
+ params: [hash: `0x${string}`, index: `0x${string}`];
955
+ }): Promise<viem.RpcTransaction | null>;
956
+ (args: {
957
+ method: "eth_getTransactionByBlockNumberAndIndex";
958
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
959
+ }): Promise<viem.RpcTransaction | null>;
960
+ (args: {
961
+ method: "eth_getTransactionByHash";
962
+ params: [hash: `0x${string}`];
963
+ }): Promise<viem.RpcTransaction | null>;
964
+ (args: {
965
+ method: "eth_getTransactionCount";
966
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
967
+ }): Promise<`0x${string}`>;
968
+ (args: {
969
+ method: "eth_getTransactionReceipt";
970
+ params: [hash: `0x${string}`];
971
+ }): Promise<viem.RpcTransactionReceipt | null>;
972
+ (args: {
973
+ method: "eth_getUncleByBlockHashAndIndex";
974
+ params: [hash: `0x${string}`, index: `0x${string}`];
975
+ }): Promise<viem.RpcUncle | null>;
976
+ (args: {
977
+ method: "eth_getUncleByBlockNumberAndIndex";
978
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
979
+ }): Promise<viem.RpcUncle | null>;
980
+ (args: {
981
+ method: "eth_getUncleCountByBlockHash";
982
+ params: [hash: `0x${string}`];
983
+ }): Promise<`0x${string}`>;
984
+ (args: {
985
+ method: "eth_getUncleCountByBlockNumber";
986
+ params: [block: `0x${string}` | viem.BlockTag];
987
+ }): Promise<`0x${string}`>;
988
+ (args: {
989
+ method: "eth_newBlockFilter";
990
+ params?: undefined;
991
+ }): Promise<`0x${string}`>;
992
+ (args: {
993
+ method: "eth_newFilter";
994
+ params: [filter: {
995
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
996
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
997
+ address?: `0x${string}` | `0x${string}`[] | undefined;
998
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
999
+ }];
1000
+ }): Promise<`0x${string}`>;
1001
+ (args: {
1002
+ method: "eth_newPendingTransactionFilter";
1003
+ params?: undefined;
1004
+ }): Promise<`0x${string}`>;
1005
+ (args: {
1006
+ method: "eth_protocolVersion";
1007
+ params?: undefined;
1008
+ }): Promise<string>;
1009
+ (args: {
1010
+ method: "eth_sendRawTransaction";
1011
+ params: [signedTransaction: `0x${string}`];
1012
+ }): Promise<`0x${string}`>;
1013
+ (args: {
1014
+ method: "eth_uninstallFilter";
1015
+ params: [filterId: `0x${string}`];
1016
+ }): Promise<boolean>;
1017
+ } & {
1018
+ (args: {
1019
+ method: "eth_sendTransaction";
1020
+ params: [request: viem.RpcTransactionRequest];
1021
+ }): Promise<`0x${string}`>;
1022
+ (args: {
1023
+ method: "eth_sign";
1024
+ params: [address: `0x${string}`, data: `0x${string}`];
1025
+ }): Promise<`0x${string}`>;
1026
+ (args: {
1027
+ method: "eth_signTransaction";
1028
+ params: [request: viem.RpcTransactionRequest];
1029
+ }): Promise<`0x${string}`>;
1030
+ (args: {
1031
+ method: "eth_signTypedData_v4";
1032
+ params: [address: `0x${string}`, message: string];
1033
+ }): Promise<`0x${string}`>;
1034
+ (args: {
1035
+ method: "eth_syncing";
1036
+ params?: undefined;
1037
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
1038
+ (args: {
1039
+ method: "personal_sign";
1040
+ params: [data: `0x${string}`, address: `0x${string}`];
1041
+ }): Promise<`0x${string}`>;
1042
+ } & {
1043
+ (args: {
1044
+ method: "eth_accounts";
1045
+ params?: undefined;
1046
+ }): Promise<`0x${string}`[]>;
1047
+ (args: {
1048
+ method: "eth_chainId";
1049
+ params?: undefined;
1050
+ }): Promise<`0x${string}`>;
1051
+ (args: {
1052
+ method: "eth_requestAccounts";
1053
+ params?: undefined;
1054
+ }): Promise<`0x${string}`[]>;
1055
+ (args: {
1056
+ method: "wallet_requestPermissions";
1057
+ params: [permissions: {
1058
+ eth_accounts: Record<string, any>;
1059
+ }];
1060
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1061
+ (args: {
1062
+ method: "wallet_getPermissions";
1063
+ params?: undefined;
1064
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1065
+ (args: {
1066
+ method: "wallet_addEthereumChain";
1067
+ params: [chain: viem_dist_types_types_eip1193.Chain];
1068
+ }): Promise<null>;
1069
+ (args: {
1070
+ method: "wallet_switchEthereumChain";
1071
+ params: [chain: {
1072
+ chainId: string;
1073
+ }];
1074
+ }): Promise<null>;
1075
+ (args: {
1076
+ method: "wallet_watchAsset";
1077
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
1078
+ }): Promise<boolean>;
1079
+ };
1080
+ transport: viem.TransportConfig<string, {
1081
+ (args: {
1082
+ method: "web3_clientVersion";
1083
+ params?: undefined;
1084
+ }): Promise<string>;
1085
+ (args: {
1086
+ method: "web3_sha3";
1087
+ params: [data: `0x${string}`];
1088
+ }): Promise<string>;
1089
+ (args: {
1090
+ method: "net_listening";
1091
+ params?: undefined;
1092
+ }): Promise<boolean>;
1093
+ (args: {
1094
+ method: "net_peerCount";
1095
+ params?: undefined;
1096
+ }): Promise<`0x${string}`>;
1097
+ (args: {
1098
+ method: "net_version";
1099
+ params?: undefined;
1100
+ }): Promise<`0x${string}`>;
1101
+ (args: {
1102
+ method: "eth_blockNumber";
1103
+ params?: undefined;
1104
+ }): Promise<`0x${string}`>;
1105
+ (args: {
1106
+ method: "eth_call";
1107
+ params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
1108
+ }): Promise<`0x${string}`>;
1109
+ (args: {
1110
+ method: "eth_chainId";
1111
+ params?: undefined;
1112
+ }): Promise<`0x${string}`>;
1113
+ (args: {
1114
+ method: "eth_coinbase";
1115
+ params?: undefined;
1116
+ }): Promise<`0x${string}`>;
1117
+ (args: {
1118
+ method: "eth_estimateGas";
1119
+ params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
1120
+ }): Promise<`0x${string}`>;
1121
+ (args: {
1122
+ method: "eth_feeHistory";
1123
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
1124
+ }): Promise<viem.RpcFeeHistory>;
1125
+ (args: {
1126
+ method: "eth_gasPrice";
1127
+ params?: undefined;
1128
+ }): Promise<`0x${string}`>;
1129
+ (args: {
1130
+ method: "eth_getBalance";
1131
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1132
+ }): Promise<`0x${string}`>;
1133
+ (args: {
1134
+ method: "eth_getBlockByHash";
1135
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
1136
+ }): Promise<viem.RpcBlock | null>;
1137
+ (args: {
1138
+ method: "eth_getBlockByNumber";
1139
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
1140
+ }): Promise<viem.RpcBlock | null>;
1141
+ (args: {
1142
+ method: "eth_getBlockTransactionCountByHash";
1143
+ params: [hash: `0x${string}`];
1144
+ }): Promise<`0x${string}`>;
1145
+ (args: {
1146
+ method: "eth_getBlockTransactionCountByNumber";
1147
+ params: [block: `0x${string}` | viem.BlockTag];
1148
+ }): Promise<`0x${string}`>;
1149
+ (args: {
1150
+ method: "eth_getCode";
1151
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1152
+ }): Promise<`0x${string}`>;
1153
+ (args: {
1154
+ method: "eth_getFilterChanges";
1155
+ params: [filterId: `0x${string}`];
1156
+ }): Promise<`0x${string}`[] | {
1157
+ address: `0x${string}`;
1158
+ blockHash: `0x${string}` | null;
1159
+ blockNumber: `0x${string}` | null;
1160
+ data: `0x${string}`;
1161
+ logIndex: `0x${string}` | null;
1162
+ transactionHash: `0x${string}` | null;
1163
+ transactionIndex: `0x${string}` | null;
1164
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
1165
+ removed: boolean;
1166
+ }[]>;
1167
+ (args: {
1168
+ method: "eth_getFilterLogs";
1169
+ params: [filterId: `0x${string}`];
1170
+ }): Promise<{
1171
+ address: `0x${string}`;
1172
+ blockHash: `0x${string}` | null;
1173
+ blockNumber: `0x${string}` | null;
1174
+ data: `0x${string}`;
1175
+ logIndex: `0x${string}` | null;
1176
+ transactionHash: `0x${string}` | null;
1177
+ transactionIndex: `0x${string}` | null;
1178
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
1179
+ removed: boolean;
1180
+ }[]>;
1181
+ (args: {
1182
+ method: "eth_getLogs";
1183
+ params: [parameters: {
1184
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1185
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
1186
+ } & ({
1187
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1188
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
1189
+ blockHash?: undefined;
1190
+ } | {
1191
+ fromBlock?: undefined;
1192
+ toBlock?: undefined;
1193
+ blockHash?: `0x${string}` | undefined;
1194
+ })];
1195
+ }): Promise<{
1196
+ address: `0x${string}`;
1197
+ blockHash: `0x${string}` | null;
1198
+ blockNumber: `0x${string}` | null;
1199
+ data: `0x${string}`;
1200
+ logIndex: `0x${string}` | null;
1201
+ transactionHash: `0x${string}` | null;
1202
+ transactionIndex: `0x${string}` | null;
1203
+ topics: [] | [`0x${string}`, ...`0x${string}`[]];
1204
+ removed: boolean;
1205
+ }[]>;
1206
+ (args: {
1207
+ method: "eth_getStorageAt";
1208
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1209
+ }): Promise<`0x${string}`>;
1210
+ (args: {
1211
+ method: "eth_getTransactionByBlockHashAndIndex";
1212
+ params: [hash: `0x${string}`, index: `0x${string}`];
1213
+ }): Promise<viem.RpcTransaction | null>;
1214
+ (args: {
1215
+ method: "eth_getTransactionByBlockNumberAndIndex";
1216
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1217
+ }): Promise<viem.RpcTransaction | null>;
1218
+ (args: {
1219
+ method: "eth_getTransactionByHash";
1220
+ params: [hash: `0x${string}`];
1221
+ }): Promise<viem.RpcTransaction | null>;
1222
+ (args: {
1223
+ method: "eth_getTransactionCount";
1224
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
1225
+ }): Promise<`0x${string}`>;
1226
+ (args: {
1227
+ method: "eth_getTransactionReceipt";
1228
+ params: [hash: `0x${string}`];
1229
+ }): Promise<viem.RpcTransactionReceipt | null>;
1230
+ (args: {
1231
+ method: "eth_getUncleByBlockHashAndIndex";
1232
+ params: [hash: `0x${string}`, index: `0x${string}`];
1233
+ }): Promise<viem.RpcUncle | null>;
1234
+ (args: {
1235
+ method: "eth_getUncleByBlockNumberAndIndex";
1236
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
1237
+ }): Promise<viem.RpcUncle | null>;
1238
+ (args: {
1239
+ method: "eth_getUncleCountByBlockHash";
1240
+ params: [hash: `0x${string}`];
1241
+ }): Promise<`0x${string}`>;
1242
+ (args: {
1243
+ method: "eth_getUncleCountByBlockNumber";
1244
+ params: [block: `0x${string}` | viem.BlockTag];
1245
+ }): Promise<`0x${string}`>;
1246
+ (args: {
1247
+ method: "eth_newBlockFilter";
1248
+ params?: undefined;
1249
+ }): Promise<`0x${string}`>;
1250
+ (args: {
1251
+ method: "eth_newFilter";
1252
+ params: [filter: {
1253
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
1254
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
1255
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1256
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
1257
+ }];
1258
+ }): Promise<`0x${string}`>;
1259
+ (args: {
1260
+ method: "eth_newPendingTransactionFilter";
1261
+ params?: undefined;
1262
+ }): Promise<`0x${string}`>;
1263
+ (args: {
1264
+ method: "eth_protocolVersion";
1265
+ params?: undefined;
1266
+ }): Promise<string>;
1267
+ (args: {
1268
+ method: "eth_sendRawTransaction";
1269
+ params: [signedTransaction: `0x${string}`];
1270
+ }): Promise<`0x${string}`>;
1271
+ (args: {
1272
+ method: "eth_uninstallFilter";
1273
+ params: [filterId: `0x${string}`];
1274
+ }): Promise<boolean>;
1275
+ } & {
1276
+ (args: {
1277
+ method: "eth_sendTransaction";
1278
+ params: [request: viem.RpcTransactionRequest];
1279
+ }): Promise<`0x${string}`>;
1280
+ (args: {
1281
+ method: "eth_sign";
1282
+ params: [address: `0x${string}`, data: `0x${string}`];
1283
+ }): Promise<`0x${string}`>;
1284
+ (args: {
1285
+ method: "eth_signTransaction";
1286
+ params: [request: viem.RpcTransactionRequest];
1287
+ }): Promise<`0x${string}`>;
1288
+ (args: {
1289
+ method: "eth_signTypedData_v4";
1290
+ params: [address: `0x${string}`, message: string];
1291
+ }): Promise<`0x${string}`>;
1292
+ (args: {
1293
+ method: "eth_syncing";
1294
+ params?: undefined;
1295
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
1296
+ (args: {
1297
+ method: "personal_sign";
1298
+ params: [data: `0x${string}`, address: `0x${string}`];
1299
+ }): Promise<`0x${string}`>;
1300
+ } & {
1301
+ (args: {
1302
+ method: "eth_accounts";
1303
+ params?: undefined;
1304
+ }): Promise<`0x${string}`[]>;
1305
+ (args: {
1306
+ method: "eth_chainId";
1307
+ params?: undefined;
1308
+ }): Promise<`0x${string}`>;
1309
+ (args: {
1310
+ method: "eth_requestAccounts";
1311
+ params?: undefined;
1312
+ }): Promise<`0x${string}`[]>;
1313
+ (args: {
1314
+ method: "wallet_requestPermissions";
1315
+ params: [permissions: {
1316
+ eth_accounts: Record<string, any>;
1317
+ }];
1318
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1319
+ (args: {
1320
+ method: "wallet_getPermissions";
1321
+ params?: undefined;
1322
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
1323
+ (args: {
1324
+ method: "wallet_addEthereumChain";
1325
+ params: [chain: viem_dist_types_types_eip1193.Chain];
1326
+ }): Promise<null>;
1327
+ (args: {
1328
+ method: "wallet_switchEthereumChain";
1329
+ params: [chain: {
1330
+ chainId: string;
1331
+ }];
1332
+ }): Promise<null>;
1333
+ (args: {
1334
+ method: "wallet_watchAsset";
1335
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
1336
+ }): Promise<boolean>;
1337
+ }> & Record<string, any>;
1338
+ type: string;
1339
+ uid: string;
1340
+ addChain: (args: viem.AddChainParameters) => Promise<void>;
1341
+ deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride>) => Promise<`0x${string}`>;
1342
+ getAddresses: () => Promise<viem.GetAddressesReturnType>;
1343
+ getChainId: () => Promise<number>;
1344
+ getPermissions: () => Promise<viem.GetPermissionsReturnType>;
1345
+ requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
1346
+ requestPermissions: (args: {
1347
+ [x: string]: Record<string, any>;
1348
+ eth_accounts: Record<string, any>;
1349
+ }) => Promise<viem.RequestPermissionsReturnType>;
1350
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_1>) => Promise<`0x${string}`>;
1351
+ signMessage: (args: viem.SignMessageParameters<viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
1352
+ signTypedData: <TTypedData extends {
1353
+ [key: string]: unknown;
1354
+ } | {
1355
+ [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
1356
+ [x: `string[${string}]`]: undefined;
1357
+ [x: `function[${string}]`]: undefined;
1358
+ [x: `address[${string}]`]: undefined;
1359
+ [x: `bool[${string}]`]: undefined;
1360
+ [x: `bytes[${string}]`]: undefined;
1361
+ [x: `bytes5[${string}]`]: undefined;
1362
+ [x: `bytes1[${string}]`]: undefined;
1363
+ [x: `bytes18[${string}]`]: undefined;
1364
+ [x: `bytes2[${string}]`]: undefined;
1365
+ [x: `bytes16[${string}]`]: undefined;
1366
+ [x: `bytes10[${string}]`]: undefined;
1367
+ [x: `bytes3[${string}]`]: undefined;
1368
+ [x: `bytes4[${string}]`]: undefined;
1369
+ [x: `bytes6[${string}]`]: undefined;
1370
+ [x: `bytes7[${string}]`]: undefined;
1371
+ [x: `bytes8[${string}]`]: undefined;
1372
+ [x: `bytes9[${string}]`]: undefined;
1373
+ [x: `bytes11[${string}]`]: undefined;
1374
+ [x: `bytes12[${string}]`]: undefined;
1375
+ [x: `bytes13[${string}]`]: undefined;
1376
+ [x: `bytes14[${string}]`]: undefined;
1377
+ [x: `bytes15[${string}]`]: undefined;
1378
+ [x: `bytes17[${string}]`]: undefined;
1379
+ [x: `bytes19[${string}]`]: undefined;
1380
+ [x: `bytes20[${string}]`]: undefined;
1381
+ [x: `bytes21[${string}]`]: undefined;
1382
+ [x: `bytes22[${string}]`]: undefined;
1383
+ [x: `bytes23[${string}]`]: undefined;
1384
+ [x: `bytes24[${string}]`]: undefined;
1385
+ [x: `bytes25[${string}]`]: undefined;
1386
+ [x: `bytes26[${string}]`]: undefined;
1387
+ [x: `bytes27[${string}]`]: undefined;
1388
+ [x: `bytes28[${string}]`]: undefined;
1389
+ [x: `bytes29[${string}]`]: undefined;
1390
+ [x: `bytes30[${string}]`]: undefined;
1391
+ [x: `bytes31[${string}]`]: undefined;
1392
+ [x: `bytes32[${string}]`]: undefined;
1393
+ [x: `int[${string}]`]: undefined;
1394
+ [x: `int16[${string}]`]: undefined;
1395
+ [x: `int8[${string}]`]: undefined;
1396
+ [x: `int24[${string}]`]: undefined;
1397
+ [x: `int32[${string}]`]: undefined;
1398
+ [x: `int40[${string}]`]: undefined;
1399
+ [x: `int48[${string}]`]: undefined;
1400
+ [x: `int56[${string}]`]: undefined;
1401
+ [x: `int64[${string}]`]: undefined;
1402
+ [x: `int72[${string}]`]: undefined;
1403
+ [x: `int80[${string}]`]: undefined;
1404
+ [x: `int88[${string}]`]: undefined;
1405
+ [x: `int96[${string}]`]: undefined;
1406
+ [x: `int104[${string}]`]: undefined;
1407
+ [x: `int112[${string}]`]: undefined;
1408
+ [x: `int120[${string}]`]: undefined;
1409
+ [x: `int128[${string}]`]: undefined;
1410
+ [x: `int136[${string}]`]: undefined;
1411
+ [x: `int144[${string}]`]: undefined;
1412
+ [x: `int152[${string}]`]: undefined;
1413
+ [x: `int160[${string}]`]: undefined;
1414
+ [x: `int168[${string}]`]: undefined;
1415
+ [x: `int176[${string}]`]: undefined;
1416
+ [x: `int184[${string}]`]: undefined;
1417
+ [x: `int192[${string}]`]: undefined;
1418
+ [x: `int200[${string}]`]: undefined;
1419
+ [x: `int208[${string}]`]: undefined;
1420
+ [x: `int216[${string}]`]: undefined;
1421
+ [x: `int224[${string}]`]: undefined;
1422
+ [x: `int232[${string}]`]: undefined;
1423
+ [x: `int240[${string}]`]: undefined;
1424
+ [x: `int248[${string}]`]: undefined;
1425
+ [x: `int256[${string}]`]: undefined;
1426
+ [x: `uint[${string}]`]: undefined;
1427
+ [x: `uint16[${string}]`]: undefined;
1428
+ [x: `uint8[${string}]`]: undefined;
1429
+ [x: `uint24[${string}]`]: undefined;
1430
+ [x: `uint32[${string}]`]: undefined;
1431
+ [x: `uint40[${string}]`]: undefined;
1432
+ [x: `uint48[${string}]`]: undefined;
1433
+ [x: `uint56[${string}]`]: undefined;
1434
+ [x: `uint64[${string}]`]: undefined;
1435
+ [x: `uint72[${string}]`]: undefined;
1436
+ [x: `uint80[${string}]`]: undefined;
1437
+ [x: `uint88[${string}]`]: undefined;
1438
+ [x: `uint96[${string}]`]: undefined;
1439
+ [x: `uint104[${string}]`]: undefined;
1440
+ [x: `uint112[${string}]`]: undefined;
1441
+ [x: `uint120[${string}]`]: undefined;
1442
+ [x: `uint128[${string}]`]: undefined;
1443
+ [x: `uint136[${string}]`]: undefined;
1444
+ [x: `uint144[${string}]`]: undefined;
1445
+ [x: `uint152[${string}]`]: undefined;
1446
+ [x: `uint160[${string}]`]: undefined;
1447
+ [x: `uint168[${string}]`]: undefined;
1448
+ [x: `uint176[${string}]`]: undefined;
1449
+ [x: `uint184[${string}]`]: undefined;
1450
+ [x: `uint192[${string}]`]: undefined;
1451
+ [x: `uint200[${string}]`]: undefined;
1452
+ [x: `uint208[${string}]`]: undefined;
1453
+ [x: `uint216[${string}]`]: undefined;
1454
+ [x: `uint224[${string}]`]: undefined;
1455
+ [x: `uint232[${string}]`]: undefined;
1456
+ [x: `uint240[${string}]`]: undefined;
1457
+ [x: `uint248[${string}]`]: undefined;
1458
+ [x: `uint256[${string}]`]: undefined;
1459
+ string?: undefined;
1460
+ address?: undefined;
1461
+ bool?: undefined;
1462
+ bytes?: undefined;
1463
+ bytes5?: undefined;
1464
+ bytes1?: undefined;
1465
+ bytes18?: undefined;
1466
+ bytes2?: undefined;
1467
+ bytes16?: undefined;
1468
+ bytes10?: undefined;
1469
+ bytes3?: undefined;
1470
+ bytes4?: undefined;
1471
+ bytes6?: undefined;
1472
+ bytes7?: undefined;
1473
+ bytes8?: undefined;
1474
+ bytes9?: undefined;
1475
+ bytes11?: undefined;
1476
+ bytes12?: undefined;
1477
+ bytes13?: undefined;
1478
+ bytes14?: undefined;
1479
+ bytes15?: undefined;
1480
+ bytes17?: undefined;
1481
+ bytes19?: undefined;
1482
+ bytes20?: undefined;
1483
+ bytes21?: undefined;
1484
+ bytes22?: undefined;
1485
+ bytes23?: undefined;
1486
+ bytes24?: undefined;
1487
+ bytes25?: undefined;
1488
+ bytes26?: undefined;
1489
+ bytes27?: undefined;
1490
+ bytes28?: undefined;
1491
+ bytes29?: undefined;
1492
+ bytes30?: undefined;
1493
+ bytes31?: undefined;
1494
+ bytes32?: undefined;
1495
+ int16?: undefined;
1496
+ int8?: undefined;
1497
+ int24?: undefined;
1498
+ int32?: undefined;
1499
+ int40?: undefined;
1500
+ int48?: undefined;
1501
+ int56?: undefined;
1502
+ int64?: undefined;
1503
+ int72?: undefined;
1504
+ int80?: undefined;
1505
+ int88?: undefined;
1506
+ int96?: undefined;
1507
+ int104?: undefined;
1508
+ int112?: undefined;
1509
+ int120?: undefined;
1510
+ int128?: undefined;
1511
+ int136?: undefined;
1512
+ int144?: undefined;
1513
+ int152?: undefined;
1514
+ int160?: undefined;
1515
+ int168?: undefined;
1516
+ int176?: undefined;
1517
+ int184?: undefined;
1518
+ int192?: undefined;
1519
+ int200?: undefined;
1520
+ int208?: undefined;
1521
+ int216?: undefined;
1522
+ int224?: undefined;
1523
+ int232?: undefined;
1524
+ int240?: undefined;
1525
+ int248?: undefined;
1526
+ int256?: undefined;
1527
+ uint16?: undefined;
1528
+ uint8?: undefined;
1529
+ uint24?: undefined;
1530
+ uint32?: undefined;
1531
+ uint40?: undefined;
1532
+ uint48?: undefined;
1533
+ uint56?: undefined;
1534
+ uint64?: undefined;
1535
+ uint72?: undefined;
1536
+ uint80?: undefined;
1537
+ uint88?: undefined;
1538
+ uint96?: undefined;
1539
+ uint104?: undefined;
1540
+ uint112?: undefined;
1541
+ uint120?: undefined;
1542
+ uint128?: undefined;
1543
+ uint136?: undefined;
1544
+ uint144?: undefined;
1545
+ uint152?: undefined;
1546
+ uint160?: undefined;
1547
+ uint168?: undefined;
1548
+ uint176?: undefined;
1549
+ uint184?: undefined;
1550
+ uint192?: undefined;
1551
+ uint200?: undefined;
1552
+ uint208?: undefined;
1553
+ uint216?: undefined;
1554
+ uint224?: undefined;
1555
+ uint232?: undefined;
1556
+ uint240?: undefined;
1557
+ uint248?: undefined;
1558
+ uint256?: undefined;
1559
+ }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, viem.Account<`0x${string}`>>) => Promise<`0x${string}`>;
1560
+ switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
1561
+ watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
1562
+ writeContract: <TAbi_1 extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, viem.Chain<viem_dist_types_types.Formatters>, viem.Account<`0x${string}`>, TChainOverride_2>) => Promise<`0x${string}`>;
1563
+ account: viem.Account<`0x${string}`>;
1564
+ }>;
1565
+ isAuthorized(): Promise<boolean>;
1566
+ watchAsset(asset: {
1567
+ address: string;
1568
+ decimals?: number;
1569
+ image?: string;
1570
+ symbol: string;
1571
+ }): Promise<boolean>;
1572
+ protected onAccountsChanged: (accounts: string[]) => void;
1573
+ protected onChainChanged: (chainId: number | string) => void;
1574
+ protected onDisconnect: () => void;
1575
+ toJSON(): string;
1576
+ }
1577
+
1578
+ export { MockConnector, MockProvider, MockProviderOptions };