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