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

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,811 +1 @@
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';
5
- import { Chain } from '@wagmi/chains';
6
- import WalletConnectProvider from '@walletconnect/legacy-provider';
7
- import { C as Connector } from './base-335f54fd.js';
8
- import 'abitype';
9
- import 'eventemitter3';
10
-
11
- type WalletConnectOptions = ConstructorParameters<typeof WalletConnectProvider>[0];
12
- declare class WalletConnectLegacyConnector extends Connector<WalletConnectProvider, WalletConnectOptions> {
13
- #private;
14
- readonly id = "walletConnectLegacy";
15
- readonly name = "WalletConnectLegacy";
16
- readonly ready = true;
17
- constructor(config: {
18
- chains?: Chain[];
19
- options: WalletConnectOptions;
20
- });
21
- connect({ chainId }?: {
22
- chainId?: number;
23
- }): Promise<{
24
- account: `0x${string}`;
25
- chain: {
26
- id: number;
27
- unsupported: boolean;
28
- };
29
- }>;
30
- disconnect(): Promise<void>;
31
- getAccount(): Promise<`0x${string}`>;
32
- getChainId(): Promise<number>;
33
- getProvider({ chainId, create, }?: {
34
- chainId?: number;
35
- create?: boolean;
36
- }): Promise<WalletConnectProvider>;
37
- getWalletClient({ chainId }?: {
38
- chainId?: number;
39
- }): Promise<{
40
- chain: Chain;
41
- key: string;
42
- name: string;
43
- pollingInterval: number;
44
- request: {
45
- (args: {
46
- method: "web3_clientVersion";
47
- params?: undefined;
48
- }): Promise<string>;
49
- (args: {
50
- method: "web3_sha3";
51
- params: [data: `0x${string}`];
52
- }): Promise<string>;
53
- (args: {
54
- method: "net_listening";
55
- params?: undefined;
56
- }): Promise<boolean>;
57
- (args: {
58
- method: "net_peerCount";
59
- params?: undefined;
60
- }): Promise<`0x${string}`>;
61
- (args: {
62
- method: "net_version";
63
- params?: undefined;
64
- }): Promise<`0x${string}`>;
65
- (args: {
66
- method: "eth_blockNumber";
67
- params?: undefined;
68
- }): Promise<`0x${string}`>;
69
- (args: {
70
- method: "eth_call";
71
- params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
72
- }): Promise<`0x${string}`>;
73
- (args: {
74
- method: "eth_chainId";
75
- params?: undefined;
76
- }): Promise<`0x${string}`>;
77
- (args: {
78
- method: "eth_coinbase";
79
- params?: undefined;
80
- }): Promise<`0x${string}`>;
81
- (args: {
82
- method: "eth_estimateGas";
83
- params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
84
- }): Promise<`0x${string}`>;
85
- (args: {
86
- method: "eth_feeHistory";
87
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
88
- }): Promise<viem.RpcFeeHistory>;
89
- (args: {
90
- method: "eth_gasPrice";
91
- params?: undefined;
92
- }): Promise<`0x${string}`>;
93
- (args: {
94
- method: "eth_getBalance";
95
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
96
- }): Promise<`0x${string}`>;
97
- (args: {
98
- method: "eth_getBlockByHash";
99
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
100
- }): Promise<viem.RpcBlock | null>;
101
- (args: {
102
- method: "eth_getBlockByNumber";
103
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
104
- }): Promise<viem.RpcBlock | null>;
105
- (args: {
106
- method: "eth_getBlockTransactionCountByHash";
107
- params: [hash: `0x${string}`];
108
- }): Promise<`0x${string}`>;
109
- (args: {
110
- method: "eth_getBlockTransactionCountByNumber";
111
- params: [block: `0x${string}` | viem.BlockTag];
112
- }): Promise<`0x${string}`>;
113
- (args: {
114
- method: "eth_getCode";
115
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
116
- }): Promise<`0x${string}`>;
117
- (args: {
118
- method: "eth_getFilterChanges";
119
- params: [filterId: `0x${string}`];
120
- }): Promise<{
121
- address: `0x${string}`;
122
- blockHash: `0x${string}` | null;
123
- blockNumber: `0x${string}` | null;
124
- data: `0x${string}`;
125
- logIndex: `0x${string}` | null;
126
- transactionHash: `0x${string}` | null;
127
- transactionIndex: `0x${string}` | null;
128
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
129
- removed: boolean;
130
- }[] | `0x${string}`[]>;
131
- (args: {
132
- method: "eth_getFilterLogs";
133
- params: [filterId: `0x${string}`];
134
- }): Promise<{
135
- address: `0x${string}`;
136
- blockHash: `0x${string}` | null;
137
- blockNumber: `0x${string}` | null;
138
- data: `0x${string}`;
139
- logIndex: `0x${string}` | null;
140
- transactionHash: `0x${string}` | null;
141
- transactionIndex: `0x${string}` | null;
142
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
143
- removed: boolean;
144
- }[]>;
145
- (args: {
146
- method: "eth_getLogs";
147
- params: [parameters: {
148
- address?: `0x${string}` | `0x${string}`[] | undefined;
149
- topics?: viem_dist_types_types.LogTopic[] | undefined;
150
- } & ({
151
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
152
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
153
- blockHash?: undefined;
154
- } | {
155
- fromBlock?: undefined;
156
- toBlock?: undefined;
157
- blockHash?: `0x${string}` | undefined;
158
- })];
159
- }): Promise<{
160
- address: `0x${string}`;
161
- blockHash: `0x${string}` | null;
162
- blockNumber: `0x${string}` | null;
163
- data: `0x${string}`;
164
- logIndex: `0x${string}` | null;
165
- transactionHash: `0x${string}` | null;
166
- transactionIndex: `0x${string}` | null;
167
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
168
- removed: boolean;
169
- }[]>;
170
- (args: {
171
- method: "eth_getStorageAt";
172
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
173
- }): Promise<`0x${string}`>;
174
- (args: {
175
- method: "eth_getTransactionByBlockHashAndIndex";
176
- params: [hash: `0x${string}`, index: `0x${string}`];
177
- }): Promise<viem.RpcTransaction | null>;
178
- (args: {
179
- method: "eth_getTransactionByBlockNumberAndIndex";
180
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
181
- }): Promise<viem.RpcTransaction | null>;
182
- (args: {
183
- method: "eth_getTransactionByHash";
184
- params: [hash: `0x${string}`];
185
- }): Promise<viem.RpcTransaction | null>;
186
- (args: {
187
- method: "eth_getTransactionCount";
188
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
189
- }): Promise<`0x${string}`>;
190
- (args: {
191
- method: "eth_getTransactionReceipt";
192
- params: [hash: `0x${string}`];
193
- }): Promise<viem.RpcTransactionReceipt | null>;
194
- (args: {
195
- method: "eth_getUncleByBlockHashAndIndex";
196
- params: [hash: `0x${string}`, index: `0x${string}`];
197
- }): Promise<viem.RpcUncle | null>;
198
- (args: {
199
- method: "eth_getUncleByBlockNumberAndIndex";
200
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
201
- }): Promise<viem.RpcUncle | null>;
202
- (args: {
203
- method: "eth_getUncleCountByBlockHash";
204
- params: [hash: `0x${string}`];
205
- }): Promise<`0x${string}`>;
206
- (args: {
207
- method: "eth_getUncleCountByBlockNumber";
208
- params: [block: `0x${string}` | viem.BlockTag];
209
- }): Promise<`0x${string}`>;
210
- (args: {
211
- method: "eth_newBlockFilter";
212
- params?: undefined;
213
- }): Promise<`0x${string}`>;
214
- (args: {
215
- method: "eth_newFilter";
216
- params: [filter: {
217
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
218
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
219
- address?: `0x${string}` | `0x${string}`[] | undefined;
220
- topics?: viem_dist_types_types.LogTopic[] | undefined;
221
- }];
222
- }): Promise<`0x${string}`>;
223
- (args: {
224
- method: "eth_newPendingTransactionFilter";
225
- params?: undefined;
226
- }): Promise<`0x${string}`>;
227
- (args: {
228
- method: "eth_protocolVersion";
229
- params?: undefined;
230
- }): Promise<string>;
231
- (args: {
232
- method: "eth_sendRawTransaction";
233
- params: [signedTransaction: `0x${string}`];
234
- }): Promise<`0x${string}`>;
235
- (args: {
236
- method: "eth_uninstallFilter";
237
- params: [filterId: `0x${string}`];
238
- }): Promise<boolean>;
239
- } & {
240
- (args: {
241
- method: "eth_sendTransaction";
242
- params: [request: viem.RpcTransactionRequest];
243
- }): Promise<`0x${string}`>;
244
- (args: {
245
- method: "eth_sign";
246
- params: [address: `0x${string}`, data: `0x${string}`];
247
- }): Promise<`0x${string}`>;
248
- (args: {
249
- method: "eth_signTransaction";
250
- params: [request: viem.RpcTransactionRequest];
251
- }): Promise<`0x${string}`>;
252
- (args: {
253
- method: "eth_signTypedData_v4";
254
- params: [address: `0x${string}`, message: string];
255
- }): Promise<`0x${string}`>;
256
- (args: {
257
- method: "eth_syncing";
258
- params?: undefined;
259
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
260
- (args: {
261
- method: "personal_sign";
262
- params: [data: `0x${string}`, address: `0x${string}`];
263
- }): Promise<`0x${string}`>;
264
- } & {
265
- (args: {
266
- method: "eth_accounts";
267
- params?: undefined;
268
- }): Promise<`0x${string}`[]>;
269
- (args: {
270
- method: "eth_chainId";
271
- params?: undefined;
272
- }): Promise<`0x${string}`>;
273
- (args: {
274
- method: "eth_requestAccounts";
275
- params?: undefined;
276
- }): Promise<`0x${string}`[]>;
277
- (args: {
278
- method: "wallet_requestPermissions";
279
- params: [permissions: {
280
- eth_accounts: Record<string, any>;
281
- }];
282
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
283
- (args: {
284
- method: "wallet_getPermissions";
285
- params?: undefined;
286
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
287
- (args: {
288
- method: "wallet_addEthereumChain";
289
- params: [chain: viem_dist_types_types_eip1193.Chain];
290
- }): Promise<null>;
291
- (args: {
292
- method: "wallet_switchEthereumChain";
293
- params: [chain: {
294
- chainId: string;
295
- }];
296
- }): Promise<null>;
297
- (args: {
298
- method: "wallet_watchAsset";
299
- params: viem_dist_types_types_eip1193.WatchAssetParams;
300
- }): Promise<boolean>;
301
- };
302
- transport: viem.TransportConfig<"custom", {
303
- (args: {
304
- method: "web3_clientVersion";
305
- params?: undefined;
306
- }): Promise<string>;
307
- (args: {
308
- method: "web3_sha3";
309
- params: [data: `0x${string}`];
310
- }): Promise<string>;
311
- (args: {
312
- method: "net_listening";
313
- params?: undefined;
314
- }): Promise<boolean>;
315
- (args: {
316
- method: "net_peerCount";
317
- params?: undefined;
318
- }): Promise<`0x${string}`>;
319
- (args: {
320
- method: "net_version";
321
- params?: undefined;
322
- }): Promise<`0x${string}`>;
323
- (args: {
324
- method: "eth_blockNumber";
325
- params?: undefined;
326
- }): Promise<`0x${string}`>;
327
- (args: {
328
- method: "eth_call";
329
- params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
330
- }): Promise<`0x${string}`>;
331
- (args: {
332
- method: "eth_chainId";
333
- params?: undefined;
334
- }): Promise<`0x${string}`>;
335
- (args: {
336
- method: "eth_coinbase";
337
- params?: undefined;
338
- }): Promise<`0x${string}`>;
339
- (args: {
340
- method: "eth_estimateGas";
341
- params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
342
- }): Promise<`0x${string}`>;
343
- (args: {
344
- method: "eth_feeHistory";
345
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
346
- }): Promise<viem.RpcFeeHistory>;
347
- (args: {
348
- method: "eth_gasPrice";
349
- params?: undefined;
350
- }): Promise<`0x${string}`>;
351
- (args: {
352
- method: "eth_getBalance";
353
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
354
- }): Promise<`0x${string}`>;
355
- (args: {
356
- method: "eth_getBlockByHash";
357
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
358
- }): Promise<viem.RpcBlock | null>;
359
- (args: {
360
- method: "eth_getBlockByNumber";
361
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
362
- }): Promise<viem.RpcBlock | null>;
363
- (args: {
364
- method: "eth_getBlockTransactionCountByHash";
365
- params: [hash: `0x${string}`];
366
- }): Promise<`0x${string}`>;
367
- (args: {
368
- method: "eth_getBlockTransactionCountByNumber";
369
- params: [block: `0x${string}` | viem.BlockTag];
370
- }): Promise<`0x${string}`>;
371
- (args: {
372
- method: "eth_getCode";
373
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
374
- }): Promise<`0x${string}`>;
375
- (args: {
376
- method: "eth_getFilterChanges";
377
- params: [filterId: `0x${string}`];
378
- }): Promise<{
379
- address: `0x${string}`;
380
- blockHash: `0x${string}` | null;
381
- blockNumber: `0x${string}` | null;
382
- data: `0x${string}`;
383
- logIndex: `0x${string}` | null;
384
- transactionHash: `0x${string}` | null;
385
- transactionIndex: `0x${string}` | null;
386
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
387
- removed: boolean;
388
- }[] | `0x${string}`[]>;
389
- (args: {
390
- method: "eth_getFilterLogs";
391
- params: [filterId: `0x${string}`];
392
- }): Promise<{
393
- address: `0x${string}`;
394
- blockHash: `0x${string}` | null;
395
- blockNumber: `0x${string}` | null;
396
- data: `0x${string}`;
397
- logIndex: `0x${string}` | null;
398
- transactionHash: `0x${string}` | null;
399
- transactionIndex: `0x${string}` | null;
400
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
401
- removed: boolean;
402
- }[]>;
403
- (args: {
404
- method: "eth_getLogs";
405
- params: [parameters: {
406
- address?: `0x${string}` | `0x${string}`[] | undefined;
407
- topics?: viem_dist_types_types.LogTopic[] | undefined;
408
- } & ({
409
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
410
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
411
- blockHash?: undefined;
412
- } | {
413
- fromBlock?: undefined;
414
- toBlock?: undefined;
415
- blockHash?: `0x${string}` | undefined;
416
- })];
417
- }): Promise<{
418
- address: `0x${string}`;
419
- blockHash: `0x${string}` | null;
420
- blockNumber: `0x${string}` | null;
421
- data: `0x${string}`;
422
- logIndex: `0x${string}` | null;
423
- transactionHash: `0x${string}` | null;
424
- transactionIndex: `0x${string}` | null;
425
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
426
- removed: boolean;
427
- }[]>;
428
- (args: {
429
- method: "eth_getStorageAt";
430
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
431
- }): Promise<`0x${string}`>;
432
- (args: {
433
- method: "eth_getTransactionByBlockHashAndIndex";
434
- params: [hash: `0x${string}`, index: `0x${string}`];
435
- }): Promise<viem.RpcTransaction | null>;
436
- (args: {
437
- method: "eth_getTransactionByBlockNumberAndIndex";
438
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
439
- }): Promise<viem.RpcTransaction | null>;
440
- (args: {
441
- method: "eth_getTransactionByHash";
442
- params: [hash: `0x${string}`];
443
- }): Promise<viem.RpcTransaction | null>;
444
- (args: {
445
- method: "eth_getTransactionCount";
446
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
447
- }): Promise<`0x${string}`>;
448
- (args: {
449
- method: "eth_getTransactionReceipt";
450
- params: [hash: `0x${string}`];
451
- }): Promise<viem.RpcTransactionReceipt | null>;
452
- (args: {
453
- method: "eth_getUncleByBlockHashAndIndex";
454
- params: [hash: `0x${string}`, index: `0x${string}`];
455
- }): Promise<viem.RpcUncle | null>;
456
- (args: {
457
- method: "eth_getUncleByBlockNumberAndIndex";
458
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
459
- }): Promise<viem.RpcUncle | null>;
460
- (args: {
461
- method: "eth_getUncleCountByBlockHash";
462
- params: [hash: `0x${string}`];
463
- }): Promise<`0x${string}`>;
464
- (args: {
465
- method: "eth_getUncleCountByBlockNumber";
466
- params: [block: `0x${string}` | viem.BlockTag];
467
- }): Promise<`0x${string}`>;
468
- (args: {
469
- method: "eth_newBlockFilter";
470
- params?: undefined;
471
- }): Promise<`0x${string}`>;
472
- (args: {
473
- method: "eth_newFilter";
474
- params: [filter: {
475
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
476
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
477
- address?: `0x${string}` | `0x${string}`[] | undefined;
478
- topics?: viem_dist_types_types.LogTopic[] | undefined;
479
- }];
480
- }): Promise<`0x${string}`>;
481
- (args: {
482
- method: "eth_newPendingTransactionFilter";
483
- params?: undefined;
484
- }): Promise<`0x${string}`>;
485
- (args: {
486
- method: "eth_protocolVersion";
487
- params?: undefined;
488
- }): Promise<string>;
489
- (args: {
490
- method: "eth_sendRawTransaction";
491
- params: [signedTransaction: `0x${string}`];
492
- }): Promise<`0x${string}`>;
493
- (args: {
494
- method: "eth_uninstallFilter";
495
- params: [filterId: `0x${string}`];
496
- }): Promise<boolean>;
497
- } & {
498
- (args: {
499
- method: "eth_sendTransaction";
500
- params: [request: viem.RpcTransactionRequest];
501
- }): Promise<`0x${string}`>;
502
- (args: {
503
- method: "eth_sign";
504
- params: [address: `0x${string}`, data: `0x${string}`];
505
- }): Promise<`0x${string}`>;
506
- (args: {
507
- method: "eth_signTransaction";
508
- params: [request: viem.RpcTransactionRequest];
509
- }): Promise<`0x${string}`>;
510
- (args: {
511
- method: "eth_signTypedData_v4";
512
- params: [address: `0x${string}`, message: string];
513
- }): Promise<`0x${string}`>;
514
- (args: {
515
- method: "eth_syncing";
516
- params?: undefined;
517
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
518
- (args: {
519
- method: "personal_sign";
520
- params: [data: `0x${string}`, address: `0x${string}`];
521
- }): Promise<`0x${string}`>;
522
- } & {
523
- (args: {
524
- method: "eth_accounts";
525
- params?: undefined;
526
- }): Promise<`0x${string}`[]>;
527
- (args: {
528
- method: "eth_chainId";
529
- params?: undefined;
530
- }): Promise<`0x${string}`>;
531
- (args: {
532
- method: "eth_requestAccounts";
533
- params?: undefined;
534
- }): Promise<`0x${string}`[]>;
535
- (args: {
536
- method: "wallet_requestPermissions";
537
- params: [permissions: {
538
- eth_accounts: Record<string, any>;
539
- }];
540
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
541
- (args: {
542
- method: "wallet_getPermissions";
543
- params?: undefined;
544
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
545
- (args: {
546
- method: "wallet_addEthereumChain";
547
- params: [chain: viem_dist_types_types_eip1193.Chain];
548
- }): Promise<null>;
549
- (args: {
550
- method: "wallet_switchEthereumChain";
551
- params: [chain: {
552
- chainId: string;
553
- }];
554
- }): Promise<null>;
555
- (args: {
556
- method: "wallet_watchAsset";
557
- params: viem_dist_types_types_eip1193.WatchAssetParams;
558
- }): Promise<boolean>;
559
- }> & ((...args: any) => Promise<any>);
560
- type: string;
561
- uid: string;
562
- addChain: (args: viem.AddChainParameters) => Promise<void>;
563
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
564
- address: `0x${string}`;
565
- type: "json-rpc";
566
- }, TChainOverride>) => Promise<`0x${string}`>;
567
- getAddresses: () => Promise<viem.GetAddressesReturnType>;
568
- getChainId: () => Promise<number>;
569
- getPermissions: () => Promise<viem.GetPermissionsReturnType>;
570
- requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
571
- requestPermissions: (args: {
572
- [x: string]: Record<string, any>;
573
- eth_accounts: Record<string, any>;
574
- }) => Promise<viem.RequestPermissionsReturnType>;
575
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
576
- address: `0x${string}`;
577
- type: "json-rpc";
578
- }, TChainOverride_1>) => Promise<`0x${string}`>;
579
- signMessage: (args: viem.SignMessageParameters<{
580
- address: `0x${string}`;
581
- type: "json-rpc";
582
- }>) => Promise<`0x${string}`>;
583
- signTypedData: <TTypedData extends {
584
- [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
585
- [x: `string[${string}]`]: undefined;
586
- [x: `function[${string}]`]: undefined;
587
- [x: `address[${string}]`]: undefined;
588
- [x: `bool[${string}]`]: undefined;
589
- [x: `bytes[${string}]`]: undefined;
590
- [x: `bytes2[${string}]`]: undefined;
591
- [x: `bytes1[${string}]`]: undefined;
592
- [x: `bytes3[${string}]`]: undefined;
593
- [x: `bytes4[${string}]`]: undefined;
594
- [x: `bytes5[${string}]`]: undefined;
595
- [x: `bytes6[${string}]`]: undefined;
596
- [x: `bytes7[${string}]`]: undefined;
597
- [x: `bytes8[${string}]`]: undefined;
598
- [x: `bytes9[${string}]`]: undefined;
599
- [x: `bytes10[${string}]`]: undefined;
600
- [x: `bytes11[${string}]`]: undefined;
601
- [x: `bytes12[${string}]`]: undefined;
602
- [x: `bytes13[${string}]`]: undefined;
603
- [x: `bytes14[${string}]`]: undefined;
604
- [x: `bytes15[${string}]`]: undefined;
605
- [x: `bytes16[${string}]`]: undefined;
606
- [x: `bytes17[${string}]`]: undefined;
607
- [x: `bytes18[${string}]`]: undefined;
608
- [x: `bytes19[${string}]`]: undefined;
609
- [x: `bytes20[${string}]`]: undefined;
610
- [x: `bytes21[${string}]`]: undefined;
611
- [x: `bytes22[${string}]`]: undefined;
612
- [x: `bytes23[${string}]`]: undefined;
613
- [x: `bytes24[${string}]`]: undefined;
614
- [x: `bytes25[${string}]`]: undefined;
615
- [x: `bytes26[${string}]`]: undefined;
616
- [x: `bytes27[${string}]`]: undefined;
617
- [x: `bytes28[${string}]`]: undefined;
618
- [x: `bytes29[${string}]`]: undefined;
619
- [x: `bytes30[${string}]`]: undefined;
620
- [x: `bytes31[${string}]`]: undefined;
621
- [x: `bytes32[${string}]`]: undefined;
622
- [x: `int[${string}]`]: undefined;
623
- [x: `int8[${string}]`]: undefined;
624
- [x: `int16[${string}]`]: undefined;
625
- [x: `int24[${string}]`]: undefined;
626
- [x: `int32[${string}]`]: undefined;
627
- [x: `int40[${string}]`]: undefined;
628
- [x: `int48[${string}]`]: undefined;
629
- [x: `int56[${string}]`]: undefined;
630
- [x: `int64[${string}]`]: undefined;
631
- [x: `int72[${string}]`]: undefined;
632
- [x: `int80[${string}]`]: undefined;
633
- [x: `int88[${string}]`]: undefined;
634
- [x: `int96[${string}]`]: undefined;
635
- [x: `int104[${string}]`]: undefined;
636
- [x: `int112[${string}]`]: undefined;
637
- [x: `int120[${string}]`]: undefined;
638
- [x: `int128[${string}]`]: undefined;
639
- [x: `int136[${string}]`]: undefined;
640
- [x: `int144[${string}]`]: undefined;
641
- [x: `int152[${string}]`]: undefined;
642
- [x: `int160[${string}]`]: undefined;
643
- [x: `int168[${string}]`]: undefined;
644
- [x: `int176[${string}]`]: undefined;
645
- [x: `int184[${string}]`]: undefined;
646
- [x: `int192[${string}]`]: undefined;
647
- [x: `int200[${string}]`]: undefined;
648
- [x: `int208[${string}]`]: undefined;
649
- [x: `int216[${string}]`]: undefined;
650
- [x: `int224[${string}]`]: undefined;
651
- [x: `int232[${string}]`]: undefined;
652
- [x: `int240[${string}]`]: undefined;
653
- [x: `int248[${string}]`]: undefined;
654
- [x: `int256[${string}]`]: undefined;
655
- [x: `uint[${string}]`]: undefined;
656
- [x: `uint8[${string}]`]: undefined;
657
- [x: `uint16[${string}]`]: undefined;
658
- [x: `uint24[${string}]`]: undefined;
659
- [x: `uint32[${string}]`]: undefined;
660
- [x: `uint40[${string}]`]: undefined;
661
- [x: `uint48[${string}]`]: undefined;
662
- [x: `uint56[${string}]`]: undefined;
663
- [x: `uint64[${string}]`]: undefined;
664
- [x: `uint72[${string}]`]: undefined;
665
- [x: `uint80[${string}]`]: undefined;
666
- [x: `uint88[${string}]`]: undefined;
667
- [x: `uint96[${string}]`]: undefined;
668
- [x: `uint104[${string}]`]: undefined;
669
- [x: `uint112[${string}]`]: undefined;
670
- [x: `uint120[${string}]`]: undefined;
671
- [x: `uint128[${string}]`]: undefined;
672
- [x: `uint136[${string}]`]: undefined;
673
- [x: `uint144[${string}]`]: undefined;
674
- [x: `uint152[${string}]`]: undefined;
675
- [x: `uint160[${string}]`]: undefined;
676
- [x: `uint168[${string}]`]: undefined;
677
- [x: `uint176[${string}]`]: undefined;
678
- [x: `uint184[${string}]`]: undefined;
679
- [x: `uint192[${string}]`]: undefined;
680
- [x: `uint200[${string}]`]: undefined;
681
- [x: `uint208[${string}]`]: undefined;
682
- [x: `uint216[${string}]`]: undefined;
683
- [x: `uint224[${string}]`]: undefined;
684
- [x: `uint232[${string}]`]: undefined;
685
- [x: `uint240[${string}]`]: undefined;
686
- [x: `uint248[${string}]`]: undefined;
687
- [x: `uint256[${string}]`]: undefined;
688
- string?: undefined;
689
- address?: undefined;
690
- bool?: undefined;
691
- bytes?: undefined;
692
- bytes2?: undefined;
693
- bytes1?: undefined;
694
- bytes3?: undefined;
695
- bytes4?: undefined;
696
- bytes5?: undefined;
697
- bytes6?: undefined;
698
- bytes7?: undefined;
699
- bytes8?: undefined;
700
- bytes9?: undefined;
701
- bytes10?: undefined;
702
- bytes11?: undefined;
703
- bytes12?: undefined;
704
- bytes13?: undefined;
705
- bytes14?: undefined;
706
- bytes15?: undefined;
707
- bytes16?: undefined;
708
- bytes17?: undefined;
709
- bytes18?: undefined;
710
- bytes19?: undefined;
711
- bytes20?: undefined;
712
- bytes21?: undefined;
713
- bytes22?: undefined;
714
- bytes23?: undefined;
715
- bytes24?: undefined;
716
- bytes25?: undefined;
717
- bytes26?: undefined;
718
- bytes27?: undefined;
719
- bytes28?: undefined;
720
- bytes29?: undefined;
721
- bytes30?: undefined;
722
- bytes31?: undefined;
723
- bytes32?: undefined;
724
- int8?: undefined;
725
- int16?: undefined;
726
- int24?: undefined;
727
- int32?: undefined;
728
- int40?: undefined;
729
- int48?: undefined;
730
- int56?: undefined;
731
- int64?: undefined;
732
- int72?: undefined;
733
- int80?: undefined;
734
- int88?: undefined;
735
- int96?: undefined;
736
- int104?: undefined;
737
- int112?: undefined;
738
- int120?: undefined;
739
- int128?: undefined;
740
- int136?: undefined;
741
- int144?: undefined;
742
- int152?: undefined;
743
- int160?: undefined;
744
- int168?: undefined;
745
- int176?: undefined;
746
- int184?: undefined;
747
- int192?: undefined;
748
- int200?: undefined;
749
- int208?: undefined;
750
- int216?: undefined;
751
- int224?: undefined;
752
- int232?: undefined;
753
- int240?: undefined;
754
- int248?: undefined;
755
- int256?: undefined;
756
- uint8?: undefined;
757
- uint16?: undefined;
758
- uint24?: undefined;
759
- uint32?: undefined;
760
- uint40?: undefined;
761
- uint48?: undefined;
762
- uint56?: undefined;
763
- uint64?: undefined;
764
- uint72?: undefined;
765
- uint80?: undefined;
766
- uint88?: undefined;
767
- uint96?: undefined;
768
- uint104?: undefined;
769
- uint112?: undefined;
770
- uint120?: undefined;
771
- uint128?: undefined;
772
- uint136?: undefined;
773
- uint144?: undefined;
774
- uint152?: undefined;
775
- uint160?: undefined;
776
- uint168?: undefined;
777
- uint176?: undefined;
778
- uint184?: undefined;
779
- uint192?: undefined;
780
- uint200?: undefined;
781
- uint208?: undefined;
782
- uint216?: undefined;
783
- uint224?: undefined;
784
- uint232?: undefined;
785
- uint240?: undefined;
786
- uint248?: undefined;
787
- uint256?: undefined;
788
- } | {
789
- [key: string]: unknown;
790
- }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, {
791
- address: `0x${string}`;
792
- type: "json-rpc";
793
- }>) => Promise<`0x${string}`>;
794
- switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
795
- watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
796
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
797
- address: `0x${string}`;
798
- type: "json-rpc";
799
- }, TChainOverride_2>) => Promise<`0x${string}`>;
800
- account: {
801
- address: `0x${string}`;
802
- type: "json-rpc";
803
- };
804
- }>;
805
- isAuthorized(): Promise<boolean>;
806
- protected onAccountsChanged: (accounts: string[]) => void;
807
- protected onChainChanged: (chainId: number | string) => void;
808
- protected onDisconnect: () => void;
809
- }
810
-
811
- export { WalletConnectLegacyConnector };
1
+ export * from '../src/walletConnectLegacy'