@wagmi/core 1.3.10-cjs → 1.4.0-cjs

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,42 +1,40 @@
1
1
  import * as abitype from 'abitype';
2
- import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
3
- import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
4
2
  import * as viem from 'viem';
5
- import { Chain } from '@wagmi/chains';
3
+ import { Chain } from 'viem/chains';
6
4
 
7
5
  declare const testChains: (Chain | {
8
- readonly id: 5;
9
- readonly network: "goerli";
10
- readonly name: "Goerli";
6
+ readonly id: 1;
7
+ readonly network: "homestead";
8
+ readonly name: "Ethereum";
11
9
  readonly nativeCurrency: {
12
- readonly name: "Goerli Ether";
10
+ readonly name: "Ether";
13
11
  readonly symbol: "ETH";
14
12
  readonly decimals: 18;
15
13
  };
16
14
  readonly rpcUrls: {
17
15
  readonly alchemy: {
18
- readonly http: readonly ["https://eth-goerli.g.alchemy.com/v2"];
19
- readonly webSocket: readonly ["wss://eth-goerli.g.alchemy.com/v2"];
16
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
17
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
20
18
  };
21
19
  readonly infura: {
22
- readonly http: readonly ["https://goerli.infura.io/v3"];
23
- readonly webSocket: readonly ["wss://goerli.infura.io/ws/v3"];
20
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
21
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
24
22
  };
25
23
  readonly default: {
26
- readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
24
+ readonly http: readonly ["https://cloudflare-eth.com"];
27
25
  };
28
26
  readonly public: {
29
- readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
27
+ readonly http: readonly ["https://cloudflare-eth.com"];
30
28
  };
31
29
  };
32
30
  readonly blockExplorers: {
33
31
  readonly etherscan: {
34
32
  readonly name: "Etherscan";
35
- readonly url: "https://goerli.etherscan.io";
33
+ readonly url: "https://etherscan.io";
36
34
  };
37
35
  readonly default: {
38
36
  readonly name: "Etherscan";
39
- readonly url: "https://goerli.etherscan.io";
37
+ readonly url: "https://etherscan.io";
40
38
  };
41
39
  };
42
40
  readonly contracts: {
@@ -44,48 +42,47 @@ declare const testChains: (Chain | {
44
42
  readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
45
43
  };
46
44
  readonly ensUniversalResolver: {
47
- readonly address: "0x56522D00C410a43BFfDF00a9A569489297385790";
48
- readonly blockCreated: 8765204;
45
+ readonly address: "0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62";
46
+ readonly blockCreated: 16966585;
49
47
  };
50
48
  readonly multicall3: {
51
49
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
52
- readonly blockCreated: 6507670;
50
+ readonly blockCreated: 14353601;
53
51
  };
54
52
  };
55
- readonly testnet: true;
56
53
  } | {
57
- readonly id: 1;
58
- readonly network: "homestead";
59
- readonly name: "Ethereum";
54
+ readonly id: 5;
55
+ readonly network: "goerli";
56
+ readonly name: "Goerli";
60
57
  readonly nativeCurrency: {
61
- readonly name: "Ether";
58
+ readonly name: "Goerli Ether";
62
59
  readonly symbol: "ETH";
63
60
  readonly decimals: 18;
64
61
  };
65
62
  readonly rpcUrls: {
66
63
  readonly alchemy: {
67
- readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
68
- readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
64
+ readonly http: readonly ["https://eth-goerli.g.alchemy.com/v2"];
65
+ readonly webSocket: readonly ["wss://eth-goerli.g.alchemy.com/v2"];
69
66
  };
70
67
  readonly infura: {
71
- readonly http: readonly ["https://mainnet.infura.io/v3"];
72
- readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
68
+ readonly http: readonly ["https://goerli.infura.io/v3"];
69
+ readonly webSocket: readonly ["wss://goerli.infura.io/ws/v3"];
73
70
  };
74
71
  readonly default: {
75
- readonly http: readonly ["https://cloudflare-eth.com"];
72
+ readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
76
73
  };
77
74
  readonly public: {
78
- readonly http: readonly ["https://cloudflare-eth.com"];
75
+ readonly http: readonly ["https://rpc.ankr.com/eth_goerli"];
79
76
  };
80
77
  };
81
78
  readonly blockExplorers: {
82
79
  readonly etherscan: {
83
80
  readonly name: "Etherscan";
84
- readonly url: "https://etherscan.io";
81
+ readonly url: "https://goerli.etherscan.io";
85
82
  };
86
83
  readonly default: {
87
84
  readonly name: "Etherscan";
88
- readonly url: "https://etherscan.io";
85
+ readonly url: "https://goerli.etherscan.io";
89
86
  };
90
87
  };
91
88
  readonly contracts: {
@@ -93,17 +90,18 @@ declare const testChains: (Chain | {
93
90
  readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
94
91
  };
95
92
  readonly ensUniversalResolver: {
96
- readonly address: "0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62";
97
- readonly blockCreated: 16966585;
93
+ readonly address: "0x56522D00C410a43BFfDF00a9A569489297385790";
94
+ readonly blockCreated: 8765204;
98
95
  };
99
96
  readonly multicall3: {
100
97
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
101
- readonly blockCreated: 14353601;
98
+ readonly blockCreated: 6507670;
102
99
  };
103
100
  };
101
+ readonly testnet: true;
104
102
  } | {
105
103
  readonly id: 10;
106
- readonly name: "OP Mainnet";
104
+ readonly name: "Optimism";
107
105
  readonly network: "optimism";
108
106
  readonly nativeCurrency: {
109
107
  readonly name: "Ether";
@@ -189,466 +187,12 @@ declare function getWalletClients(): {
189
187
  key: string;
190
188
  name: string;
191
189
  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 | undefined];
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 | undefined];
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<viem.RpcLog[] | `0x${string}`[]>;
269
- (args: {
270
- method: "eth_getFilterLogs";
271
- params: [filterId: `0x${string}`];
272
- }): Promise<viem.RpcLog[]>;
273
- (args: {
274
- method: "eth_getLogs";
275
- params: [parameters: {
276
- address?: `0x${string}` | `0x${string}`[] | undefined;
277
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
278
- } & ({
279
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
280
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
281
- blockHash?: undefined;
282
- } | {
283
- fromBlock?: undefined;
284
- toBlock?: undefined;
285
- blockHash?: `0x${string}` | undefined;
286
- })];
287
- }): Promise<viem.RpcLog[]>;
288
- (args: {
289
- method: "eth_getStorageAt";
290
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
291
- }): Promise<`0x${string}`>;
292
- (args: {
293
- method: "eth_getTransactionByBlockHashAndIndex";
294
- params: [hash: `0x${string}`, index: `0x${string}`];
295
- }): Promise<viem.RpcTransaction | null>;
296
- (args: {
297
- method: "eth_getTransactionByBlockNumberAndIndex";
298
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
299
- }): Promise<viem.RpcTransaction | null>;
300
- (args: {
301
- method: "eth_getTransactionByHash";
302
- params: [hash: `0x${string}`];
303
- }): Promise<viem.RpcTransaction | null>;
304
- (args: {
305
- method: "eth_getTransactionCount";
306
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
307
- }): Promise<`0x${string}`>;
308
- (args: {
309
- method: "eth_getTransactionReceipt";
310
- params: [hash: `0x${string}`];
311
- }): Promise<viem.RpcTransactionReceipt | null>;
312
- (args: {
313
- method: "eth_getUncleByBlockHashAndIndex";
314
- params: [hash: `0x${string}`, index: `0x${string}`];
315
- }): Promise<viem.RpcUncle | null>;
316
- (args: {
317
- method: "eth_getUncleByBlockNumberAndIndex";
318
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
319
- }): Promise<viem.RpcUncle | null>;
320
- (args: {
321
- method: "eth_getUncleCountByBlockHash";
322
- params: [hash: `0x${string}`];
323
- }): Promise<`0x${string}`>;
324
- (args: {
325
- method: "eth_getUncleCountByBlockNumber";
326
- params: [block: `0x${string}` | viem.BlockTag];
327
- }): Promise<`0x${string}`>;
328
- (args: {
329
- method: "eth_newBlockFilter";
330
- params?: undefined;
331
- }): Promise<`0x${string}`>;
332
- (args: {
333
- method: "eth_newFilter";
334
- params: [filter: {
335
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
336
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
337
- address?: `0x${string}` | `0x${string}`[] | undefined;
338
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
339
- }];
340
- }): Promise<`0x${string}`>;
341
- (args: {
342
- method: "eth_newPendingTransactionFilter";
343
- params?: undefined;
344
- }): Promise<`0x${string}`>;
345
- (args: {
346
- method: "eth_protocolVersion";
347
- params?: undefined;
348
- }): Promise<string>;
349
- (args: {
350
- method: "eth_sendRawTransaction";
351
- params: [signedTransaction: `0x${string}`];
352
- }): Promise<`0x${string}`>;
353
- (args: {
354
- method: "eth_uninstallFilter";
355
- params: [filterId: `0x${string}`];
356
- }): Promise<boolean>;
357
- } & {
358
- (args: {
359
- method: "eth_sendTransaction";
360
- params: [request: viem.RpcTransactionRequest];
361
- }): Promise<`0x${string}`>;
362
- (args: {
363
- method: "eth_sign";
364
- params: [address: `0x${string}`, data: `0x${string}`];
365
- }): Promise<`0x${string}`>;
366
- (args: {
367
- method: "eth_signTransaction";
368
- params: [request: viem.RpcTransactionRequest];
369
- }): Promise<`0x${string}`>;
370
- (args: {
371
- method: "eth_signTypedData_v4";
372
- params: [address: `0x${string}`, message: string];
373
- }): Promise<`0x${string}`>;
374
- (args: {
375
- method: "eth_syncing";
376
- params?: undefined;
377
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
378
- (args: {
379
- method: "personal_sign";
380
- params: [data: `0x${string}`, address: `0x${string}`];
381
- }): Promise<`0x${string}`>;
382
- } & {
383
- (args: {
384
- method: "eth_accounts";
385
- params?: undefined;
386
- }): Promise<`0x${string}`[]>;
387
- (args: {
388
- method: "eth_chainId";
389
- params?: undefined;
390
- }): Promise<`0x${string}`>;
391
- (args: {
392
- method: "eth_requestAccounts";
393
- params?: undefined;
394
- }): Promise<`0x${string}`[]>;
395
- (args: {
396
- method: "wallet_requestPermissions";
397
- params: [permissions: {
398
- eth_accounts: Record<string, any>;
399
- }];
400
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
401
- (args: {
402
- method: "wallet_getPermissions";
403
- params?: undefined;
404
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
405
- (args: {
406
- method: "wallet_addEthereumChain";
407
- params: [chain: viem_dist_types_types_eip1193.Chain];
408
- }): Promise<null>;
409
- (args: {
410
- method: "wallet_switchEthereumChain";
411
- params: [chain: {
412
- chainId: string;
413
- }];
414
- }): Promise<null>;
415
- (args: {
416
- method: "wallet_watchAsset";
417
- params: viem_dist_types_types_eip1193.WatchAssetParams;
418
- }): Promise<boolean>;
419
- };
420
- transport: viem.TransportConfig<"custom", {
421
- (args: {
422
- method: "web3_clientVersion";
423
- params?: undefined;
424
- }): Promise<string>;
425
- (args: {
426
- method: "web3_sha3";
427
- params: [data: `0x${string}`];
428
- }): Promise<string>;
429
- (args: {
430
- method: "net_listening";
431
- params?: undefined;
432
- }): Promise<boolean>;
433
- (args: {
434
- method: "net_peerCount";
435
- params?: undefined;
436
- }): Promise<`0x${string}`>;
437
- (args: {
438
- method: "net_version";
439
- params?: undefined;
440
- }): Promise<`0x${string}`>;
441
- (args: {
442
- method: "eth_blockNumber";
443
- params?: undefined;
444
- }): Promise<`0x${string}`>;
445
- (args: {
446
- method: "eth_call";
447
- params: [request: Partial<viem.RpcTransactionRequest>, block?: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier | undefined];
448
- }): Promise<`0x${string}`>;
449
- (args: {
450
- method: "eth_chainId";
451
- params?: undefined;
452
- }): Promise<`0x${string}`>;
453
- (args: {
454
- method: "eth_coinbase";
455
- params?: undefined;
456
- }): Promise<`0x${string}`>;
457
- (args: {
458
- method: "eth_estimateGas";
459
- params: [parameters: viem.RpcTransactionRequest, block?: `0x${string}` | viem.BlockTag | undefined];
460
- }): Promise<`0x${string}`>;
461
- (args: {
462
- method: "eth_feeHistory";
463
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
464
- }): Promise<viem.RpcFeeHistory>;
465
- (args: {
466
- method: "eth_gasPrice";
467
- params?: undefined;
468
- }): Promise<`0x${string}`>;
469
- (args: {
470
- method: "eth_getBalance";
471
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
472
- }): Promise<`0x${string}`>;
473
- (args: {
474
- method: "eth_getBlockByHash";
475
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
476
- }): Promise<viem.RpcBlock | null>;
477
- (args: {
478
- method: "eth_getBlockByNumber";
479
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
480
- }): Promise<viem.RpcBlock | null>;
481
- (args: {
482
- method: "eth_getBlockTransactionCountByHash";
483
- params: [hash: `0x${string}`];
484
- }): Promise<`0x${string}`>;
485
- (args: {
486
- method: "eth_getBlockTransactionCountByNumber";
487
- params: [block: `0x${string}` | viem.BlockTag];
488
- }): Promise<`0x${string}`>;
489
- (args: {
490
- method: "eth_getCode";
491
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
492
- }): Promise<`0x${string}`>;
493
- (args: {
494
- method: "eth_getFilterChanges";
495
- params: [filterId: `0x${string}`];
496
- }): Promise<viem.RpcLog[] | `0x${string}`[]>;
497
- (args: {
498
- method: "eth_getFilterLogs";
499
- params: [filterId: `0x${string}`];
500
- }): Promise<viem.RpcLog[]>;
501
- (args: {
502
- method: "eth_getLogs";
503
- params: [parameters: {
504
- address?: `0x${string}` | `0x${string}`[] | undefined;
505
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
506
- } & ({
507
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
508
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
509
- blockHash?: undefined;
510
- } | {
511
- fromBlock?: undefined;
512
- toBlock?: undefined;
513
- blockHash?: `0x${string}` | undefined;
514
- })];
515
- }): Promise<viem.RpcLog[]>;
516
- (args: {
517
- method: "eth_getStorageAt";
518
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
519
- }): Promise<`0x${string}`>;
520
- (args: {
521
- method: "eth_getTransactionByBlockHashAndIndex";
522
- params: [hash: `0x${string}`, index: `0x${string}`];
523
- }): Promise<viem.RpcTransaction | null>;
524
- (args: {
525
- method: "eth_getTransactionByBlockNumberAndIndex";
526
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
527
- }): Promise<viem.RpcTransaction | null>;
528
- (args: {
529
- method: "eth_getTransactionByHash";
530
- params: [hash: `0x${string}`];
531
- }): Promise<viem.RpcTransaction | null>;
532
- (args: {
533
- method: "eth_getTransactionCount";
534
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
535
- }): Promise<`0x${string}`>;
536
- (args: {
537
- method: "eth_getTransactionReceipt";
538
- params: [hash: `0x${string}`];
539
- }): Promise<viem.RpcTransactionReceipt | null>;
540
- (args: {
541
- method: "eth_getUncleByBlockHashAndIndex";
542
- params: [hash: `0x${string}`, index: `0x${string}`];
543
- }): Promise<viem.RpcUncle | null>;
544
- (args: {
545
- method: "eth_getUncleByBlockNumberAndIndex";
546
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
547
- }): Promise<viem.RpcUncle | null>;
548
- (args: {
549
- method: "eth_getUncleCountByBlockHash";
550
- params: [hash: `0x${string}`];
551
- }): Promise<`0x${string}`>;
552
- (args: {
553
- method: "eth_getUncleCountByBlockNumber";
554
- params: [block: `0x${string}` | viem.BlockTag];
555
- }): Promise<`0x${string}`>;
556
- (args: {
557
- method: "eth_newBlockFilter";
558
- params?: undefined;
559
- }): Promise<`0x${string}`>;
560
- (args: {
561
- method: "eth_newFilter";
562
- params: [filter: {
563
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
564
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
565
- address?: `0x${string}` | `0x${string}`[] | undefined;
566
- topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
567
- }];
568
- }): Promise<`0x${string}`>;
569
- (args: {
570
- method: "eth_newPendingTransactionFilter";
571
- params?: undefined;
572
- }): Promise<`0x${string}`>;
573
- (args: {
574
- method: "eth_protocolVersion";
575
- params?: undefined;
576
- }): Promise<string>;
577
- (args: {
578
- method: "eth_sendRawTransaction";
579
- params: [signedTransaction: `0x${string}`];
580
- }): Promise<`0x${string}`>;
581
- (args: {
582
- method: "eth_uninstallFilter";
583
- params: [filterId: `0x${string}`];
584
- }): Promise<boolean>;
585
- } & {
586
- (args: {
587
- method: "eth_sendTransaction";
588
- params: [request: viem.RpcTransactionRequest];
589
- }): Promise<`0x${string}`>;
590
- (args: {
591
- method: "eth_sign";
592
- params: [address: `0x${string}`, data: `0x${string}`];
593
- }): Promise<`0x${string}`>;
594
- (args: {
595
- method: "eth_signTransaction";
596
- params: [request: viem.RpcTransactionRequest];
597
- }): Promise<`0x${string}`>;
598
- (args: {
599
- method: "eth_signTypedData_v4";
600
- params: [address: `0x${string}`, message: string];
601
- }): Promise<`0x${string}`>;
602
- (args: {
603
- method: "eth_syncing";
604
- params?: undefined;
605
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
606
- (args: {
607
- method: "personal_sign";
608
- params: [data: `0x${string}`, address: `0x${string}`];
609
- }): Promise<`0x${string}`>;
610
- } & {
611
- (args: {
612
- method: "eth_accounts";
613
- params?: undefined;
614
- }): Promise<`0x${string}`[]>;
615
- (args: {
616
- method: "eth_chainId";
617
- params?: undefined;
618
- }): Promise<`0x${string}`>;
619
- (args: {
620
- method: "eth_requestAccounts";
621
- params?: undefined;
622
- }): Promise<`0x${string}`[]>;
623
- (args: {
624
- method: "wallet_requestPermissions";
625
- params: [permissions: {
626
- eth_accounts: Record<string, any>;
627
- }];
628
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
629
- (args: {
630
- method: "wallet_getPermissions";
631
- params?: undefined;
632
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
633
- (args: {
634
- method: "wallet_addEthereumChain";
635
- params: [chain: viem_dist_types_types_eip1193.Chain];
636
- }): Promise<null>;
637
- (args: {
638
- method: "wallet_switchEthereumChain";
639
- params: [chain: {
640
- chainId: string;
641
- }];
642
- }): Promise<null>;
643
- (args: {
644
- method: "wallet_watchAsset";
645
- params: viem_dist_types_types_eip1193.WatchAssetParams;
646
- }): Promise<boolean>;
647
- }> & ((...args: any) => Promise<any>);
190
+ request: viem.EIP1193RequestFn<viem.WalletRpcSchema>;
191
+ transport: viem.TransportConfig<"custom", viem.EIP1193RequestFn> & ((...args: any) => Promise<any>);
648
192
  type: string;
649
193
  uid: string;
650
194
  addChain: (args: viem.AddChainParameters) => Promise<void>;
651
- deployContract: <TAbi extends abitype.Abi | readonly unknown[], TChainOverride extends viem.Chain | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
195
+ deployContract: <TAbi extends abitype.Abi | readonly unknown[], TChainOverride extends Chain | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
652
196
  address: `0x${string}`;
653
197
  type: "json-rpc";
654
198
  }, TChainOverride>) => Promise<`0x${string}`>;
@@ -660,7 +204,7 @@ declare function getWalletClients(): {
660
204
  [x: string]: Record<string, any>;
661
205
  eth_accounts: Record<string, any>;
662
206
  }) => Promise<viem.RequestPermissionsReturnType>;
663
- sendTransaction: <TChainOverride_1 extends viem.Chain | undefined>(args: viem.SendTransactionParameters<Chain, {
207
+ sendTransaction: <TChainOverride_1 extends Chain | undefined>(args: viem.SendTransactionParameters<Chain, {
664
208
  address: `0x${string}`;
665
209
  type: "json-rpc";
666
210
  }, TChainOverride_1>) => Promise<`0x${string}`>;
@@ -675,48 +219,46 @@ declare function getWalletClients(): {
675
219
  [x: `address[${string}]`]: undefined;
676
220
  [x: `bool[${string}]`]: undefined;
677
221
  [x: `bytes[${string}]`]: undefined;
678
- [x: `bytes18[${string}]`]: undefined;
222
+ [x: `bytes16[${string}]`]: undefined;
223
+ [x: `bytes32[${string}]`]: undefined;
679
224
  [x: `bytes1[${string}]`]: undefined;
225
+ [x: `bytes31[${string}]`]: undefined;
226
+ [x: `bytes30[${string}]`]: undefined;
227
+ [x: `bytes29[${string}]`]: undefined;
228
+ [x: `bytes28[${string}]`]: undefined;
229
+ [x: `bytes27[${string}]`]: undefined;
230
+ [x: `bytes26[${string}]`]: undefined;
680
231
  [x: `bytes25[${string}]`]: undefined;
681
- [x: `bytes14[${string}]`]: undefined;
682
- [x: `bytes5[${string}]`]: undefined;
683
- [x: `bytes10[${string}]`]: undefined;
232
+ [x: `bytes24[${string}]`]: undefined;
233
+ [x: `bytes23[${string}]`]: undefined;
234
+ [x: `bytes22[${string}]`]: undefined;
235
+ [x: `bytes21[${string}]`]: undefined;
236
+ [x: `bytes20[${string}]`]: undefined;
684
237
  [x: `bytes19[${string}]`]: undefined;
685
- [x: `bytes16[${string}]`]: undefined;
238
+ [x: `bytes18[${string}]`]: undefined;
239
+ [x: `bytes17[${string}]`]: undefined;
686
240
  [x: `bytes2[${string}]`]: undefined;
687
- [x: `bytes32[${string}]`]: undefined;
688
- [x: `bytes3[${string}]`]: undefined;
689
- [x: `bytes4[${string}]`]: undefined;
690
- [x: `bytes6[${string}]`]: undefined;
691
- [x: `bytes7[${string}]`]: undefined;
692
- [x: `bytes8[${string}]`]: undefined;
693
- [x: `bytes9[${string}]`]: undefined;
694
- [x: `bytes11[${string}]`]: undefined;
695
- [x: `bytes12[${string}]`]: undefined;
696
- [x: `bytes13[${string}]`]: undefined;
697
241
  [x: `bytes15[${string}]`]: undefined;
698
- [x: `bytes17[${string}]`]: undefined;
699
- [x: `bytes20[${string}]`]: undefined;
700
- [x: `bytes21[${string}]`]: undefined;
701
- [x: `bytes22[${string}]`]: undefined;
702
- [x: `bytes23[${string}]`]: undefined;
703
- [x: `bytes24[${string}]`]: undefined;
704
- [x: `bytes26[${string}]`]: undefined;
705
- [x: `bytes27[${string}]`]: undefined;
706
- [x: `bytes28[${string}]`]: undefined;
707
- [x: `bytes29[${string}]`]: undefined;
708
- [x: `bytes30[${string}]`]: undefined;
709
- [x: `bytes31[${string}]`]: undefined;
242
+ [x: `bytes14[${string}]`]: undefined;
243
+ [x: `bytes13[${string}]`]: undefined;
244
+ [x: `bytes12[${string}]`]: undefined;
245
+ [x: `bytes11[${string}]`]: undefined;
246
+ [x: `bytes10[${string}]`]: undefined;
247
+ [x: `bytes9[${string}]`]: undefined;
248
+ [x: `bytes8[${string}]`]: undefined;
249
+ [x: `bytes7[${string}]`]: undefined;
250
+ [x: `bytes6[${string}]`]: undefined;
251
+ [x: `bytes5[${string}]`]: undefined;
252
+ [x: `bytes4[${string}]`]: undefined;
253
+ [x: `bytes3[${string}]`]: undefined;
710
254
  [x: `int[${string}]`]: undefined;
711
- [x: `int56[${string}]`]: undefined;
712
- [x: `int240[${string}]`]: undefined;
713
- [x: `int248[${string}]`]: undefined;
714
255
  [x: `int16[${string}]`]: undefined;
715
- [x: `int40[${string}]`]: undefined;
716
256
  [x: `int32[${string}]`]: undefined;
717
- [x: `int8[${string}]`]: undefined;
718
257
  [x: `int24[${string}]`]: undefined;
258
+ [x: `int8[${string}]`]: undefined;
259
+ [x: `int40[${string}]`]: undefined;
719
260
  [x: `int48[${string}]`]: undefined;
261
+ [x: `int56[${string}]`]: undefined;
720
262
  [x: `int64[${string}]`]: undefined;
721
263
  [x: `int72[${string}]`]: undefined;
722
264
  [x: `int80[${string}]`]: undefined;
@@ -739,17 +281,17 @@ declare function getWalletClients(): {
739
281
  [x: `int216[${string}]`]: undefined;
740
282
  [x: `int224[${string}]`]: undefined;
741
283
  [x: `int232[${string}]`]: undefined;
284
+ [x: `int240[${string}]`]: undefined;
285
+ [x: `int248[${string}]`]: undefined;
742
286
  [x: `int256[${string}]`]: undefined;
743
287
  [x: `uint[${string}]`]: undefined;
744
- [x: `uint56[${string}]`]: undefined;
745
- [x: `uint240[${string}]`]: undefined;
746
- [x: `uint248[${string}]`]: undefined;
747
288
  [x: `uint16[${string}]`]: undefined;
748
- [x: `uint40[${string}]`]: undefined;
749
289
  [x: `uint32[${string}]`]: undefined;
750
- [x: `uint8[${string}]`]: undefined;
751
290
  [x: `uint24[${string}]`]: undefined;
291
+ [x: `uint8[${string}]`]: undefined;
292
+ [x: `uint40[${string}]`]: undefined;
752
293
  [x: `uint48[${string}]`]: undefined;
294
+ [x: `uint56[${string}]`]: undefined;
753
295
  [x: `uint64[${string}]`]: undefined;
754
296
  [x: `uint72[${string}]`]: undefined;
755
297
  [x: `uint80[${string}]`]: undefined;
@@ -772,52 +314,52 @@ declare function getWalletClients(): {
772
314
  [x: `uint216[${string}]`]: undefined;
773
315
  [x: `uint224[${string}]`]: undefined;
774
316
  [x: `uint232[${string}]`]: undefined;
317
+ [x: `uint240[${string}]`]: undefined;
318
+ [x: `uint248[${string}]`]: undefined;
775
319
  [x: `uint256[${string}]`]: undefined;
776
320
  string?: undefined;
777
321
  address?: undefined;
778
322
  bool?: undefined;
779
323
  bytes?: undefined;
780
- bytes18?: undefined;
324
+ bytes16?: undefined;
325
+ bytes32?: undefined;
781
326
  bytes1?: undefined;
327
+ bytes31?: undefined;
328
+ bytes30?: undefined;
329
+ bytes29?: undefined;
330
+ bytes28?: undefined;
331
+ bytes27?: undefined;
332
+ bytes26?: undefined;
782
333
  bytes25?: undefined;
783
- bytes14?: undefined;
784
- bytes5?: undefined;
785
- bytes10?: undefined;
334
+ bytes24?: undefined;
335
+ bytes23?: undefined;
336
+ bytes22?: undefined;
337
+ bytes21?: undefined;
338
+ bytes20?: undefined;
786
339
  bytes19?: undefined;
787
- bytes16?: undefined;
340
+ bytes18?: undefined;
341
+ bytes17?: undefined;
788
342
  bytes2?: undefined;
789
- bytes32?: undefined;
790
- bytes3?: undefined;
791
- bytes4?: undefined;
792
- bytes6?: undefined;
793
- bytes7?: undefined;
794
- bytes8?: undefined;
795
- bytes9?: undefined;
796
- bytes11?: undefined;
797
- bytes12?: undefined;
798
- bytes13?: undefined;
799
343
  bytes15?: undefined;
800
- bytes17?: undefined;
801
- bytes20?: undefined;
802
- bytes21?: undefined;
803
- bytes22?: undefined;
804
- bytes23?: undefined;
805
- bytes24?: undefined;
806
- bytes26?: undefined;
807
- bytes27?: undefined;
808
- bytes28?: undefined;
809
- bytes29?: undefined;
810
- bytes30?: undefined;
811
- bytes31?: undefined;
812
- int56?: undefined;
813
- int240?: undefined;
814
- int248?: undefined;
344
+ bytes14?: undefined;
345
+ bytes13?: undefined;
346
+ bytes12?: undefined;
347
+ bytes11?: undefined;
348
+ bytes10?: undefined;
349
+ bytes9?: undefined;
350
+ bytes8?: undefined;
351
+ bytes7?: undefined;
352
+ bytes6?: undefined;
353
+ bytes5?: undefined;
354
+ bytes4?: undefined;
355
+ bytes3?: undefined;
815
356
  int16?: undefined;
816
- int40?: undefined;
817
357
  int32?: undefined;
818
- int8?: undefined;
819
358
  int24?: undefined;
359
+ int8?: undefined;
360
+ int40?: undefined;
820
361
  int48?: undefined;
362
+ int56?: undefined;
821
363
  int64?: undefined;
822
364
  int72?: undefined;
823
365
  int80?: undefined;
@@ -840,16 +382,16 @@ declare function getWalletClients(): {
840
382
  int216?: undefined;
841
383
  int224?: undefined;
842
384
  int232?: undefined;
385
+ int240?: undefined;
386
+ int248?: undefined;
843
387
  int256?: undefined;
844
- uint56?: undefined;
845
- uint240?: undefined;
846
- uint248?: undefined;
847
388
  uint16?: undefined;
848
- uint40?: undefined;
849
389
  uint32?: undefined;
850
- uint8?: undefined;
851
390
  uint24?: undefined;
391
+ uint8?: undefined;
392
+ uint40?: undefined;
852
393
  uint48?: undefined;
394
+ uint56?: undefined;
853
395
  uint64?: undefined;
854
396
  uint72?: undefined;
855
397
  uint80?: undefined;
@@ -872,6 +414,8 @@ declare function getWalletClients(): {
872
414
  uint216?: undefined;
873
415
  uint224?: undefined;
874
416
  uint232?: undefined;
417
+ uint240?: undefined;
418
+ uint248?: undefined;
875
419
  uint256?: undefined;
876
420
  } | {
877
421
  [key: string]: unknown;
@@ -880,8 +424,8 @@ declare function getWalletClients(): {
880
424
  type: "json-rpc";
881
425
  }>) => Promise<`0x${string}`>;
882
426
  switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
883
- watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
884
- writeContract: <TAbi_1 extends abitype.Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
427
+ watchAsset: (args: viem.WatchAssetParams) => Promise<boolean>;
428
+ writeContract: <TAbi_1 extends abitype.Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends Chain | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
885
429
  address: `0x${string}`;
886
430
  type: "json-rpc";
887
431
  }, TChainOverride_2>) => Promise<`0x${string}`>;