@wagmi/core 0.10.10 → 1.0.0-next.1

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 (34) hide show
  1. package/README.md +2 -2
  2. package/connectors/walletConnectV1/package.json +4 -0
  3. package/dist/{chunk-VQG3VKOR.js → chunk-LF3Y5HFO.js} +714 -1242
  4. package/dist/index-fc9ab085.d.ts +22 -0
  5. package/dist/index.d.ts +1039 -1291
  6. package/dist/index.js +17 -45
  7. package/dist/internal/index.d.ts +18 -8
  8. package/dist/internal/index.js +5 -3
  9. package/dist/internal/test.d.ts +771 -9
  10. package/dist/internal/test.js +46 -34
  11. package/dist/providers/alchemy.d.ts +4 -6
  12. package/dist/providers/alchemy.js +9 -26
  13. package/dist/providers/infura.d.ts +4 -6
  14. package/dist/providers/infura.js +9 -26
  15. package/dist/providers/jsonRpc.d.ts +4 -7
  16. package/dist/providers/jsonRpc.js +4 -20
  17. package/dist/providers/public.d.ts +4 -7
  18. package/dist/providers/public.js +3 -18
  19. package/dist/window.d.ts +7 -0
  20. package/dist/window.js +0 -0
  21. package/internal/dist/wagmi-core-internal.cjs.d.ts +11 -0
  22. package/internal/dist/wagmi-core-internal.cjs.js +16 -0
  23. package/package.json +11 -6
  24. package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +11 -0
  25. package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +16 -0
  26. package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +11 -0
  27. package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +16 -0
  28. package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +11 -0
  29. package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +16 -0
  30. package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +11 -0
  31. package/providers/public/dist/wagmi-core-providers-public.cjs.js +16 -0
  32. package/window/package.json +4 -0
  33. package/dist/getContract-2443b222.d.ts +0 -310
  34. package/dist/index-35b6525c.d.ts +0 -49
@@ -1,8 +1,8 @@
1
- import '../index-35b6525c.js';
2
- import { Wallet, providers } from 'ethers';
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_dist_types_types from 'viem/dist/types/types';
4
+ import * as viem from 'viem';
3
5
  import { Chain } from '@wagmi/chains';
4
- import '@wagmi/connectors';
5
- import 'abitype';
6
6
 
7
7
  declare const testChains: (Chain | {
8
8
  readonly id: 5;
@@ -184,9 +184,771 @@ declare const testChains: (Chain | {
184
184
  };
185
185
  };
186
186
  })[];
187
- declare class WalletSigner extends Wallet {
188
- connectUnchecked(): providers.JsonRpcSigner;
189
- }
190
- declare function getSigners(): WalletSigner[];
187
+ declare function getWalletClients(): {
188
+ chain: Chain;
189
+ key: string;
190
+ name: string;
191
+ pollingInterval: number;
192
+ request: {
193
+ (args: {
194
+ method: "web3_clientVersion";
195
+ params?: undefined;
196
+ }): Promise<string>;
197
+ (args: {
198
+ method: "web3_sha3";
199
+ params: [data: `0x${string}`];
200
+ }): Promise<string>;
201
+ (args: {
202
+ method: "net_listening";
203
+ params?: undefined;
204
+ }): Promise<boolean>;
205
+ (args: {
206
+ method: "net_peerCount";
207
+ params?: undefined;
208
+ }): Promise<`0x${string}`>;
209
+ (args: {
210
+ method: "net_version";
211
+ params?: undefined;
212
+ }): Promise<`0x${string}`>;
213
+ (args: {
214
+ method: "eth_blockNumber";
215
+ params?: undefined;
216
+ }): Promise<`0x${string}`>;
217
+ (args: {
218
+ method: "eth_call";
219
+ params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
220
+ }): Promise<`0x${string}`>;
221
+ (args: {
222
+ method: "eth_chainId";
223
+ params?: undefined;
224
+ }): Promise<`0x${string}`>;
225
+ (args: {
226
+ method: "eth_coinbase";
227
+ params?: undefined;
228
+ }): Promise<`0x${string}`>;
229
+ (args: {
230
+ method: "eth_estimateGas";
231
+ params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
232
+ }): Promise<`0x${string}`>;
233
+ (args: {
234
+ method: "eth_feeHistory";
235
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
236
+ }): Promise<viem.RpcFeeHistory>;
237
+ (args: {
238
+ method: "eth_gasPrice";
239
+ params?: undefined;
240
+ }): Promise<`0x${string}`>;
241
+ (args: {
242
+ method: "eth_getBalance";
243
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
244
+ }): Promise<`0x${string}`>;
245
+ (args: {
246
+ method: "eth_getBlockByHash";
247
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
248
+ }): Promise<viem.RpcBlock | null>;
249
+ (args: {
250
+ method: "eth_getBlockByNumber";
251
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
252
+ }): Promise<viem.RpcBlock | null>;
253
+ (args: {
254
+ method: "eth_getBlockTransactionCountByHash";
255
+ params: [hash: `0x${string}`];
256
+ }): Promise<`0x${string}`>;
257
+ (args: {
258
+ method: "eth_getBlockTransactionCountByNumber";
259
+ params: [block: `0x${string}` | viem.BlockTag];
260
+ }): Promise<`0x${string}`>;
261
+ (args: {
262
+ method: "eth_getCode";
263
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
264
+ }): Promise<`0x${string}`>;
265
+ (args: {
266
+ method: "eth_getFilterChanges";
267
+ params: [filterId: `0x${string}`];
268
+ }): Promise<{
269
+ address: `0x${string}`;
270
+ blockHash: `0x${string}` | null;
271
+ blockNumber: `0x${string}` | null;
272
+ data: `0x${string}`;
273
+ logIndex: `0x${string}` | null;
274
+ transactionHash: `0x${string}` | null;
275
+ transactionIndex: `0x${string}` | null;
276
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
277
+ removed: boolean;
278
+ }[] | `0x${string}`[]>;
279
+ (args: {
280
+ method: "eth_getFilterLogs";
281
+ params: [filterId: `0x${string}`];
282
+ }): Promise<{
283
+ address: `0x${string}`;
284
+ blockHash: `0x${string}` | null;
285
+ blockNumber: `0x${string}` | null;
286
+ data: `0x${string}`;
287
+ logIndex: `0x${string}` | null;
288
+ transactionHash: `0x${string}` | null;
289
+ transactionIndex: `0x${string}` | null;
290
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
291
+ removed: boolean;
292
+ }[]>;
293
+ (args: {
294
+ method: "eth_getLogs";
295
+ params: [parameters: {
296
+ address?: `0x${string}` | `0x${string}`[] | undefined;
297
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
298
+ } & ({
299
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
300
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
301
+ blockHash?: undefined;
302
+ } | {
303
+ fromBlock?: undefined;
304
+ toBlock?: undefined;
305
+ blockHash?: `0x${string}` | undefined;
306
+ })];
307
+ }): Promise<{
308
+ address: `0x${string}`;
309
+ blockHash: `0x${string}` | null;
310
+ blockNumber: `0x${string}` | null;
311
+ data: `0x${string}`;
312
+ logIndex: `0x${string}` | null;
313
+ transactionHash: `0x${string}` | null;
314
+ transactionIndex: `0x${string}` | null;
315
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
316
+ removed: boolean;
317
+ }[]>;
318
+ (args: {
319
+ method: "eth_getStorageAt";
320
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
321
+ }): Promise<`0x${string}`>;
322
+ (args: {
323
+ method: "eth_getTransactionByBlockHashAndIndex";
324
+ params: [hash: `0x${string}`, index: `0x${string}`];
325
+ }): Promise<viem.RpcTransaction | null>;
326
+ (args: {
327
+ method: "eth_getTransactionByBlockNumberAndIndex";
328
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
329
+ }): Promise<viem.RpcTransaction | null>;
330
+ (args: {
331
+ method: "eth_getTransactionByHash";
332
+ params: [hash: `0x${string}`];
333
+ }): Promise<viem.RpcTransaction | null>;
334
+ (args: {
335
+ method: "eth_getTransactionCount";
336
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
337
+ }): Promise<`0x${string}`>;
338
+ (args: {
339
+ method: "eth_getTransactionReceipt";
340
+ params: [hash: `0x${string}`];
341
+ }): Promise<viem.RpcTransactionReceipt | null>;
342
+ (args: {
343
+ method: "eth_getUncleByBlockHashAndIndex";
344
+ params: [hash: `0x${string}`, index: `0x${string}`];
345
+ }): Promise<viem.RpcUncle | null>;
346
+ (args: {
347
+ method: "eth_getUncleByBlockNumberAndIndex";
348
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
349
+ }): Promise<viem.RpcUncle | null>;
350
+ (args: {
351
+ method: "eth_getUncleCountByBlockHash";
352
+ params: [hash: `0x${string}`];
353
+ }): Promise<`0x${string}`>;
354
+ (args: {
355
+ method: "eth_getUncleCountByBlockNumber";
356
+ params: [block: `0x${string}` | viem.BlockTag];
357
+ }): Promise<`0x${string}`>;
358
+ (args: {
359
+ method: "eth_newBlockFilter";
360
+ params?: undefined;
361
+ }): Promise<`0x${string}`>;
362
+ (args: {
363
+ method: "eth_newFilter";
364
+ params: [filter: {
365
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
366
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
367
+ address?: `0x${string}` | `0x${string}`[] | undefined;
368
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
369
+ }];
370
+ }): Promise<`0x${string}`>;
371
+ (args: {
372
+ method: "eth_newPendingTransactionFilter";
373
+ params?: undefined;
374
+ }): Promise<`0x${string}`>;
375
+ (args: {
376
+ method: "eth_protocolVersion";
377
+ params?: undefined;
378
+ }): Promise<string>;
379
+ (args: {
380
+ method: "eth_sendRawTransaction";
381
+ params: [signedTransaction: `0x${string}`];
382
+ }): Promise<`0x${string}`>;
383
+ (args: {
384
+ method: "eth_uninstallFilter";
385
+ params: [filterId: `0x${string}`];
386
+ }): Promise<boolean>;
387
+ } & {
388
+ (args: {
389
+ method: "eth_sendTransaction";
390
+ params: [request: viem.RpcTransactionRequest];
391
+ }): Promise<`0x${string}`>;
392
+ (args: {
393
+ method: "eth_sign";
394
+ params: [address: `0x${string}`, data: `0x${string}`];
395
+ }): Promise<`0x${string}`>;
396
+ (args: {
397
+ method: "eth_signTransaction";
398
+ params: [request: viem.RpcTransactionRequest];
399
+ }): Promise<`0x${string}`>;
400
+ (args: {
401
+ method: "eth_signTypedData_v4";
402
+ params: [address: `0x${string}`, message: string];
403
+ }): Promise<`0x${string}`>;
404
+ (args: {
405
+ method: "eth_syncing";
406
+ params?: undefined;
407
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
408
+ (args: {
409
+ method: "personal_sign";
410
+ params: [data: `0x${string}`, address: `0x${string}`];
411
+ }): Promise<`0x${string}`>;
412
+ } & {
413
+ (args: {
414
+ method: "eth_accounts";
415
+ params?: undefined;
416
+ }): Promise<`0x${string}`[]>;
417
+ (args: {
418
+ method: "eth_chainId";
419
+ params?: undefined;
420
+ }): Promise<`0x${string}`>;
421
+ (args: {
422
+ method: "eth_requestAccounts";
423
+ params?: undefined;
424
+ }): Promise<`0x${string}`[]>;
425
+ (args: {
426
+ method: "wallet_requestPermissions";
427
+ params: [permissions: {
428
+ eth_accounts: Record<string, any>;
429
+ }];
430
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
431
+ (args: {
432
+ method: "wallet_getPermissions";
433
+ params?: undefined;
434
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
435
+ (args: {
436
+ method: "wallet_addEthereumChain";
437
+ params: [chain: viem_dist_types_types_eip1193.Chain];
438
+ }): Promise<null>;
439
+ (args: {
440
+ method: "wallet_switchEthereumChain";
441
+ params: [chain: {
442
+ chainId: string;
443
+ }];
444
+ }): Promise<null>;
445
+ (args: {
446
+ method: "wallet_watchAsset";
447
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
448
+ }): Promise<boolean>;
449
+ };
450
+ transport: viem.TransportConfig<"custom", {
451
+ (args: {
452
+ method: "web3_clientVersion";
453
+ params?: undefined;
454
+ }): Promise<string>;
455
+ (args: {
456
+ method: "web3_sha3";
457
+ params: [data: `0x${string}`];
458
+ }): Promise<string>;
459
+ (args: {
460
+ method: "net_listening";
461
+ params?: undefined;
462
+ }): Promise<boolean>;
463
+ (args: {
464
+ method: "net_peerCount";
465
+ params?: undefined;
466
+ }): Promise<`0x${string}`>;
467
+ (args: {
468
+ method: "net_version";
469
+ params?: undefined;
470
+ }): Promise<`0x${string}`>;
471
+ (args: {
472
+ method: "eth_blockNumber";
473
+ params?: undefined;
474
+ }): Promise<`0x${string}`>;
475
+ (args: {
476
+ method: "eth_call";
477
+ params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
478
+ }): Promise<`0x${string}`>;
479
+ (args: {
480
+ method: "eth_chainId";
481
+ params?: undefined;
482
+ }): Promise<`0x${string}`>;
483
+ (args: {
484
+ method: "eth_coinbase";
485
+ params?: undefined;
486
+ }): Promise<`0x${string}`>;
487
+ (args: {
488
+ method: "eth_estimateGas";
489
+ params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
490
+ }): Promise<`0x${string}`>;
491
+ (args: {
492
+ method: "eth_feeHistory";
493
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
494
+ }): Promise<viem.RpcFeeHistory>;
495
+ (args: {
496
+ method: "eth_gasPrice";
497
+ params?: undefined;
498
+ }): Promise<`0x${string}`>;
499
+ (args: {
500
+ method: "eth_getBalance";
501
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
502
+ }): Promise<`0x${string}`>;
503
+ (args: {
504
+ method: "eth_getBlockByHash";
505
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
506
+ }): Promise<viem.RpcBlock | null>;
507
+ (args: {
508
+ method: "eth_getBlockByNumber";
509
+ params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
510
+ }): Promise<viem.RpcBlock | null>;
511
+ (args: {
512
+ method: "eth_getBlockTransactionCountByHash";
513
+ params: [hash: `0x${string}`];
514
+ }): Promise<`0x${string}`>;
515
+ (args: {
516
+ method: "eth_getBlockTransactionCountByNumber";
517
+ params: [block: `0x${string}` | viem.BlockTag];
518
+ }): Promise<`0x${string}`>;
519
+ (args: {
520
+ method: "eth_getCode";
521
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
522
+ }): Promise<`0x${string}`>;
523
+ (args: {
524
+ method: "eth_getFilterChanges";
525
+ params: [filterId: `0x${string}`];
526
+ }): Promise<{
527
+ address: `0x${string}`;
528
+ blockHash: `0x${string}` | null;
529
+ blockNumber: `0x${string}` | null;
530
+ data: `0x${string}`;
531
+ logIndex: `0x${string}` | null;
532
+ transactionHash: `0x${string}` | null;
533
+ transactionIndex: `0x${string}` | null;
534
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
535
+ removed: boolean;
536
+ }[] | `0x${string}`[]>;
537
+ (args: {
538
+ method: "eth_getFilterLogs";
539
+ params: [filterId: `0x${string}`];
540
+ }): Promise<{
541
+ address: `0x${string}`;
542
+ blockHash: `0x${string}` | null;
543
+ blockNumber: `0x${string}` | null;
544
+ data: `0x${string}`;
545
+ logIndex: `0x${string}` | null;
546
+ transactionHash: `0x${string}` | null;
547
+ transactionIndex: `0x${string}` | null;
548
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
549
+ removed: boolean;
550
+ }[]>;
551
+ (args: {
552
+ method: "eth_getLogs";
553
+ params: [parameters: {
554
+ address?: `0x${string}` | `0x${string}`[] | undefined;
555
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
556
+ } & ({
557
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
558
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
559
+ blockHash?: undefined;
560
+ } | {
561
+ fromBlock?: undefined;
562
+ toBlock?: undefined;
563
+ blockHash?: `0x${string}` | undefined;
564
+ })];
565
+ }): Promise<{
566
+ address: `0x${string}`;
567
+ blockHash: `0x${string}` | null;
568
+ blockNumber: `0x${string}` | null;
569
+ data: `0x${string}`;
570
+ logIndex: `0x${string}` | null;
571
+ transactionHash: `0x${string}` | null;
572
+ transactionIndex: `0x${string}` | null;
573
+ topics: [`0x${string}`, ...`0x${string}`[]] | [];
574
+ removed: boolean;
575
+ }[]>;
576
+ (args: {
577
+ method: "eth_getStorageAt";
578
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
579
+ }): Promise<`0x${string}`>;
580
+ (args: {
581
+ method: "eth_getTransactionByBlockHashAndIndex";
582
+ params: [hash: `0x${string}`, index: `0x${string}`];
583
+ }): Promise<viem.RpcTransaction | null>;
584
+ (args: {
585
+ method: "eth_getTransactionByBlockNumberAndIndex";
586
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
587
+ }): Promise<viem.RpcTransaction | null>;
588
+ (args: {
589
+ method: "eth_getTransactionByHash";
590
+ params: [hash: `0x${string}`];
591
+ }): Promise<viem.RpcTransaction | null>;
592
+ (args: {
593
+ method: "eth_getTransactionCount";
594
+ params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
595
+ }): Promise<`0x${string}`>;
596
+ (args: {
597
+ method: "eth_getTransactionReceipt";
598
+ params: [hash: `0x${string}`];
599
+ }): Promise<viem.RpcTransactionReceipt | null>;
600
+ (args: {
601
+ method: "eth_getUncleByBlockHashAndIndex";
602
+ params: [hash: `0x${string}`, index: `0x${string}`];
603
+ }): Promise<viem.RpcUncle | null>;
604
+ (args: {
605
+ method: "eth_getUncleByBlockNumberAndIndex";
606
+ params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
607
+ }): Promise<viem.RpcUncle | null>;
608
+ (args: {
609
+ method: "eth_getUncleCountByBlockHash";
610
+ params: [hash: `0x${string}`];
611
+ }): Promise<`0x${string}`>;
612
+ (args: {
613
+ method: "eth_getUncleCountByBlockNumber";
614
+ params: [block: `0x${string}` | viem.BlockTag];
615
+ }): Promise<`0x${string}`>;
616
+ (args: {
617
+ method: "eth_newBlockFilter";
618
+ params?: undefined;
619
+ }): Promise<`0x${string}`>;
620
+ (args: {
621
+ method: "eth_newFilter";
622
+ params: [filter: {
623
+ fromBlock?: `0x${string}` | viem.BlockTag | undefined;
624
+ toBlock?: `0x${string}` | viem.BlockTag | undefined;
625
+ address?: `0x${string}` | `0x${string}`[] | undefined;
626
+ topics?: viem_dist_types_types.LogTopic[] | undefined;
627
+ }];
628
+ }): Promise<`0x${string}`>;
629
+ (args: {
630
+ method: "eth_newPendingTransactionFilter";
631
+ params?: undefined;
632
+ }): Promise<`0x${string}`>;
633
+ (args: {
634
+ method: "eth_protocolVersion";
635
+ params?: undefined;
636
+ }): Promise<string>;
637
+ (args: {
638
+ method: "eth_sendRawTransaction";
639
+ params: [signedTransaction: `0x${string}`];
640
+ }): Promise<`0x${string}`>;
641
+ (args: {
642
+ method: "eth_uninstallFilter";
643
+ params: [filterId: `0x${string}`];
644
+ }): Promise<boolean>;
645
+ } & {
646
+ (args: {
647
+ method: "eth_sendTransaction";
648
+ params: [request: viem.RpcTransactionRequest];
649
+ }): Promise<`0x${string}`>;
650
+ (args: {
651
+ method: "eth_sign";
652
+ params: [address: `0x${string}`, data: `0x${string}`];
653
+ }): Promise<`0x${string}`>;
654
+ (args: {
655
+ method: "eth_signTransaction";
656
+ params: [request: viem.RpcTransactionRequest];
657
+ }): Promise<`0x${string}`>;
658
+ (args: {
659
+ method: "eth_signTypedData_v4";
660
+ params: [address: `0x${string}`, message: string];
661
+ }): Promise<`0x${string}`>;
662
+ (args: {
663
+ method: "eth_syncing";
664
+ params?: undefined;
665
+ }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
666
+ (args: {
667
+ method: "personal_sign";
668
+ params: [data: `0x${string}`, address: `0x${string}`];
669
+ }): Promise<`0x${string}`>;
670
+ } & {
671
+ (args: {
672
+ method: "eth_accounts";
673
+ params?: undefined;
674
+ }): Promise<`0x${string}`[]>;
675
+ (args: {
676
+ method: "eth_chainId";
677
+ params?: undefined;
678
+ }): Promise<`0x${string}`>;
679
+ (args: {
680
+ method: "eth_requestAccounts";
681
+ params?: undefined;
682
+ }): Promise<`0x${string}`[]>;
683
+ (args: {
684
+ method: "wallet_requestPermissions";
685
+ params: [permissions: {
686
+ eth_accounts: Record<string, any>;
687
+ }];
688
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
689
+ (args: {
690
+ method: "wallet_getPermissions";
691
+ params?: undefined;
692
+ }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
693
+ (args: {
694
+ method: "wallet_addEthereumChain";
695
+ params: [chain: viem_dist_types_types_eip1193.Chain];
696
+ }): Promise<null>;
697
+ (args: {
698
+ method: "wallet_switchEthereumChain";
699
+ params: [chain: {
700
+ chainId: string;
701
+ }];
702
+ }): Promise<null>;
703
+ (args: {
704
+ method: "wallet_watchAsset";
705
+ params: viem_dist_types_types_eip1193.WatchAssetParams;
706
+ }): Promise<boolean>;
707
+ }> & ((...args: any) => Promise<any>);
708
+ type: string;
709
+ uid: string;
710
+ addChain: (args: viem.AddChainParameters) => Promise<void>;
711
+ deployContract: <TAbi extends abitype_dist_abi_7aa1f183.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
712
+ address: `0x${string}`;
713
+ type: "json-rpc";
714
+ }, TChainOverride>) => Promise<`0x${string}`>;
715
+ getAddresses: () => Promise<viem.GetAddressesReturnType>;
716
+ getChainId: () => Promise<number>;
717
+ getPermissions: () => Promise<viem.GetPermissionsReturnType>;
718
+ requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
719
+ requestPermissions: (args: {
720
+ [x: string]: Record<string, any>;
721
+ eth_accounts: Record<string, any>;
722
+ }) => Promise<viem.RequestPermissionsReturnType>;
723
+ sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
724
+ address: `0x${string}`;
725
+ type: "json-rpc";
726
+ }, TChainOverride_1>) => Promise<`0x${string}`>;
727
+ signMessage: (args: viem.SignMessageParameters<{
728
+ address: `0x${string}`;
729
+ type: "json-rpc";
730
+ }>) => Promise<`0x${string}`>;
731
+ signTypedData: <TTypedData extends {
732
+ [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
733
+ [x: `string[${string}]`]: undefined;
734
+ [x: `function[${string}]`]: undefined;
735
+ [x: `address[${string}]`]: undefined;
736
+ [x: `bool[${string}]`]: undefined;
737
+ [x: `bytes[${string}]`]: undefined;
738
+ [x: `bytes18[${string}]`]: undefined;
739
+ [x: `bytes1[${string}]`]: undefined;
740
+ [x: `bytes25[${string}]`]: undefined;
741
+ [x: `bytes14[${string}]`]: undefined;
742
+ [x: `bytes5[${string}]`]: undefined;
743
+ [x: `bytes10[${string}]`]: undefined;
744
+ [x: `bytes19[${string}]`]: undefined;
745
+ [x: `bytes16[${string}]`]: undefined;
746
+ [x: `bytes2[${string}]`]: undefined;
747
+ [x: `bytes32[${string}]`]: undefined;
748
+ [x: `bytes3[${string}]`]: undefined;
749
+ [x: `bytes4[${string}]`]: undefined;
750
+ [x: `bytes6[${string}]`]: undefined;
751
+ [x: `bytes7[${string}]`]: undefined;
752
+ [x: `bytes8[${string}]`]: undefined;
753
+ [x: `bytes9[${string}]`]: undefined;
754
+ [x: `bytes11[${string}]`]: undefined;
755
+ [x: `bytes12[${string}]`]: undefined;
756
+ [x: `bytes13[${string}]`]: undefined;
757
+ [x: `bytes15[${string}]`]: undefined;
758
+ [x: `bytes17[${string}]`]: undefined;
759
+ [x: `bytes20[${string}]`]: undefined;
760
+ [x: `bytes21[${string}]`]: undefined;
761
+ [x: `bytes22[${string}]`]: undefined;
762
+ [x: `bytes23[${string}]`]: undefined;
763
+ [x: `bytes24[${string}]`]: undefined;
764
+ [x: `bytes26[${string}]`]: undefined;
765
+ [x: `bytes27[${string}]`]: undefined;
766
+ [x: `bytes28[${string}]`]: undefined;
767
+ [x: `bytes29[${string}]`]: undefined;
768
+ [x: `bytes30[${string}]`]: undefined;
769
+ [x: `bytes31[${string}]`]: undefined;
770
+ [x: `int[${string}]`]: undefined;
771
+ [x: `int56[${string}]`]: undefined;
772
+ [x: `int16[${string}]`]: undefined;
773
+ [x: `int40[${string}]`]: undefined;
774
+ [x: `int32[${string}]`]: undefined;
775
+ [x: `int8[${string}]`]: undefined;
776
+ [x: `int24[${string}]`]: undefined;
777
+ [x: `int48[${string}]`]: undefined;
778
+ [x: `int64[${string}]`]: undefined;
779
+ [x: `int72[${string}]`]: undefined;
780
+ [x: `int80[${string}]`]: undefined;
781
+ [x: `int88[${string}]`]: undefined;
782
+ [x: `int96[${string}]`]: undefined;
783
+ [x: `int104[${string}]`]: undefined;
784
+ [x: `int112[${string}]`]: undefined;
785
+ [x: `int120[${string}]`]: undefined;
786
+ [x: `int128[${string}]`]: undefined;
787
+ [x: `int136[${string}]`]: undefined;
788
+ [x: `int144[${string}]`]: undefined;
789
+ [x: `int152[${string}]`]: undefined;
790
+ [x: `int160[${string}]`]: undefined;
791
+ [x: `int168[${string}]`]: undefined;
792
+ [x: `int176[${string}]`]: undefined;
793
+ [x: `int184[${string}]`]: undefined;
794
+ [x: `int192[${string}]`]: undefined;
795
+ [x: `int200[${string}]`]: undefined;
796
+ [x: `int208[${string}]`]: undefined;
797
+ [x: `int216[${string}]`]: undefined;
798
+ [x: `int224[${string}]`]: undefined;
799
+ [x: `int232[${string}]`]: undefined;
800
+ [x: `int240[${string}]`]: undefined;
801
+ [x: `int248[${string}]`]: undefined;
802
+ [x: `int256[${string}]`]: undefined;
803
+ [x: `uint[${string}]`]: undefined;
804
+ [x: `uint56[${string}]`]: undefined;
805
+ [x: `uint16[${string}]`]: undefined;
806
+ [x: `uint40[${string}]`]: undefined;
807
+ [x: `uint32[${string}]`]: undefined;
808
+ [x: `uint8[${string}]`]: undefined;
809
+ [x: `uint24[${string}]`]: undefined;
810
+ [x: `uint48[${string}]`]: undefined;
811
+ [x: `uint64[${string}]`]: undefined;
812
+ [x: `uint72[${string}]`]: undefined;
813
+ [x: `uint80[${string}]`]: undefined;
814
+ [x: `uint88[${string}]`]: undefined;
815
+ [x: `uint96[${string}]`]: undefined;
816
+ [x: `uint104[${string}]`]: undefined;
817
+ [x: `uint112[${string}]`]: undefined;
818
+ [x: `uint120[${string}]`]: undefined;
819
+ [x: `uint128[${string}]`]: undefined;
820
+ [x: `uint136[${string}]`]: undefined;
821
+ [x: `uint144[${string}]`]: undefined;
822
+ [x: `uint152[${string}]`]: undefined;
823
+ [x: `uint160[${string}]`]: undefined;
824
+ [x: `uint168[${string}]`]: undefined;
825
+ [x: `uint176[${string}]`]: undefined;
826
+ [x: `uint184[${string}]`]: undefined;
827
+ [x: `uint192[${string}]`]: undefined;
828
+ [x: `uint200[${string}]`]: undefined;
829
+ [x: `uint208[${string}]`]: undefined;
830
+ [x: `uint216[${string}]`]: undefined;
831
+ [x: `uint224[${string}]`]: undefined;
832
+ [x: `uint232[${string}]`]: undefined;
833
+ [x: `uint240[${string}]`]: undefined;
834
+ [x: `uint248[${string}]`]: undefined;
835
+ [x: `uint256[${string}]`]: undefined;
836
+ string?: undefined;
837
+ address?: undefined;
838
+ bool?: undefined;
839
+ bytes?: undefined;
840
+ bytes18?: undefined;
841
+ bytes1?: undefined;
842
+ bytes25?: undefined;
843
+ bytes14?: undefined;
844
+ bytes5?: undefined;
845
+ bytes10?: undefined;
846
+ bytes19?: undefined;
847
+ bytes16?: undefined;
848
+ bytes2?: undefined;
849
+ bytes32?: undefined;
850
+ bytes3?: undefined;
851
+ bytes4?: undefined;
852
+ bytes6?: undefined;
853
+ bytes7?: undefined;
854
+ bytes8?: undefined;
855
+ bytes9?: undefined;
856
+ bytes11?: undefined;
857
+ bytes12?: undefined;
858
+ bytes13?: undefined;
859
+ bytes15?: undefined;
860
+ bytes17?: undefined;
861
+ bytes20?: undefined;
862
+ bytes21?: undefined;
863
+ bytes22?: undefined;
864
+ bytes23?: undefined;
865
+ bytes24?: undefined;
866
+ bytes26?: undefined;
867
+ bytes27?: undefined;
868
+ bytes28?: undefined;
869
+ bytes29?: undefined;
870
+ bytes30?: undefined;
871
+ bytes31?: undefined;
872
+ int56?: undefined;
873
+ int16?: undefined;
874
+ int40?: undefined;
875
+ int32?: undefined;
876
+ int8?: undefined;
877
+ int24?: undefined;
878
+ int48?: undefined;
879
+ int64?: undefined;
880
+ int72?: undefined;
881
+ int80?: undefined;
882
+ int88?: undefined;
883
+ int96?: undefined;
884
+ int104?: undefined;
885
+ int112?: undefined;
886
+ int120?: undefined;
887
+ int128?: undefined;
888
+ int136?: undefined;
889
+ int144?: undefined;
890
+ int152?: undefined;
891
+ int160?: undefined;
892
+ int168?: undefined;
893
+ int176?: undefined;
894
+ int184?: undefined;
895
+ int192?: undefined;
896
+ int200?: undefined;
897
+ int208?: undefined;
898
+ int216?: undefined;
899
+ int224?: undefined;
900
+ int232?: undefined;
901
+ int240?: undefined;
902
+ int248?: undefined;
903
+ int256?: undefined;
904
+ uint56?: undefined;
905
+ uint16?: undefined;
906
+ uint40?: undefined;
907
+ uint32?: undefined;
908
+ uint8?: undefined;
909
+ uint24?: undefined;
910
+ uint48?: undefined;
911
+ uint64?: undefined;
912
+ uint72?: undefined;
913
+ uint80?: undefined;
914
+ uint88?: undefined;
915
+ uint96?: undefined;
916
+ uint104?: undefined;
917
+ uint112?: undefined;
918
+ uint120?: undefined;
919
+ uint128?: undefined;
920
+ uint136?: undefined;
921
+ uint144?: undefined;
922
+ uint152?: undefined;
923
+ uint160?: undefined;
924
+ uint168?: undefined;
925
+ uint176?: undefined;
926
+ uint184?: undefined;
927
+ uint192?: undefined;
928
+ uint200?: undefined;
929
+ uint208?: undefined;
930
+ uint216?: undefined;
931
+ uint224?: undefined;
932
+ uint232?: undefined;
933
+ uint240?: undefined;
934
+ uint248?: undefined;
935
+ uint256?: undefined;
936
+ } | {
937
+ [key: string]: unknown;
938
+ }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, {
939
+ address: `0x${string}`;
940
+ type: "json-rpc";
941
+ }>) => Promise<`0x${string}`>;
942
+ switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
943
+ watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
944
+ 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, Chain, {
945
+ address: `0x${string}`;
946
+ type: "json-rpc";
947
+ }, TChainOverride_2>) => Promise<`0x${string}`>;
948
+ account: {
949
+ address: `0x${string}`;
950
+ type: "json-rpc";
951
+ };
952
+ }[];
191
953
 
192
- export { getSigners, testChains };
954
+ export { getWalletClients, testChains };