@metamask-previews/keyring-internal-api 10.1.1-7275dbc → 11.0.1-4bf3baf
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/CHANGELOG.md +20 -1
- package/dist/compatibility/keyring-request.cjs +2 -2
- package/dist/compatibility/keyring-request.cjs.map +1 -1
- package/dist/compatibility/keyring-request.d.cts.map +1 -1
- package/dist/compatibility/keyring-request.d.mts.map +1 -1
- package/dist/types.cjs +0 -2
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +61 -148
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +61 -148
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +1 -3
- package/dist/types.mjs.map +1 -1
- package/package.json +4 -4
package/dist/types.d.cts
CHANGED
|
@@ -9,9 +9,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
11
|
snap?: {
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
14
|
-
enabled: boolean;
|
|
15
13
|
};
|
|
16
14
|
nameLastUpdatedAt?: number;
|
|
17
15
|
lastSelected?: number;
|
|
@@ -24,9 +22,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
24
22
|
type: string;
|
|
25
23
|
};
|
|
26
24
|
snap?: {
|
|
27
|
-
name: string;
|
|
28
25
|
id: string;
|
|
29
|
-
enabled: boolean;
|
|
30
26
|
};
|
|
31
27
|
nameLastUpdatedAt?: number;
|
|
32
28
|
lastSelected?: number;
|
|
@@ -34,13 +30,9 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
34
30
|
name: Struct<string, null>;
|
|
35
31
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
36
32
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
37
|
-
name: string;
|
|
38
33
|
id: string;
|
|
39
|
-
enabled: boolean;
|
|
40
34
|
}, {
|
|
41
35
|
id: Struct<string, null>;
|
|
42
|
-
enabled: Struct<boolean, null>;
|
|
43
|
-
name: Struct<string, null>;
|
|
44
36
|
}>;
|
|
45
37
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
46
38
|
importTime: Struct<number, null>;
|
|
@@ -74,9 +66,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
74
66
|
type: string;
|
|
75
67
|
};
|
|
76
68
|
snap?: {
|
|
77
|
-
name: string;
|
|
78
69
|
id: string;
|
|
79
|
-
enabled: boolean;
|
|
80
70
|
};
|
|
81
71
|
nameLastUpdatedAt?: number;
|
|
82
72
|
lastSelected?: number;
|
|
@@ -92,9 +82,7 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
92
82
|
type: string;
|
|
93
83
|
};
|
|
94
84
|
snap?: {
|
|
95
|
-
name: string;
|
|
96
85
|
id: string;
|
|
97
|
-
enabled: boolean;
|
|
98
86
|
};
|
|
99
87
|
nameLastUpdatedAt?: number;
|
|
100
88
|
lastSelected?: number;
|
|
@@ -102,13 +90,9 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
102
90
|
name: Struct<string, null>;
|
|
103
91
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
104
92
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
105
|
-
name: string;
|
|
106
93
|
id: string;
|
|
107
|
-
enabled: boolean;
|
|
108
94
|
}, {
|
|
109
95
|
id: Struct<string, null>;
|
|
110
|
-
enabled: Struct<boolean, null>;
|
|
111
|
-
name: Struct<string, null>;
|
|
112
96
|
}>;
|
|
113
97
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
114
98
|
importTime: Struct<number, null>;
|
|
@@ -118,10 +102,10 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
118
102
|
type: Struct<string, null>;
|
|
119
103
|
}>;
|
|
120
104
|
}>;
|
|
121
|
-
address:
|
|
122
|
-
type:
|
|
123
|
-
scopes:
|
|
124
|
-
methods:
|
|
105
|
+
address: Struct<string, null>;
|
|
106
|
+
type: Struct<"eip155:eoa", "eip155:eoa">;
|
|
107
|
+
scopes: Struct<import("@metamask/keyring-api").EthScope.Eoa[], Struct<import("@metamask/keyring-api").EthScope.Eoa, import("@metamask/keyring-api").EthScope.Eoa>>;
|
|
108
|
+
methods: Struct<("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[], Struct<"personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4", {
|
|
125
109
|
personal_sign: "personal_sign";
|
|
126
110
|
eth_sign: "eth_sign";
|
|
127
111
|
eth_signTransaction: "eth_signTransaction";
|
|
@@ -129,8 +113,8 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
129
113
|
eth_signTypedData_v3: "eth_signTypedData_v3";
|
|
130
114
|
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
131
115
|
}>>;
|
|
132
|
-
id:
|
|
133
|
-
options:
|
|
116
|
+
id: Struct<string, null>;
|
|
117
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
134
118
|
entropy?: {
|
|
135
119
|
type: "mnemonic";
|
|
136
120
|
id: string;
|
|
@@ -167,9 +151,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
167
151
|
type: string;
|
|
168
152
|
};
|
|
169
153
|
snap?: {
|
|
170
|
-
name: string;
|
|
171
154
|
id: string;
|
|
172
|
-
enabled: boolean;
|
|
173
155
|
};
|
|
174
156
|
nameLastUpdatedAt?: number;
|
|
175
157
|
lastSelected?: number;
|
|
@@ -185,9 +167,7 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
185
167
|
type: string;
|
|
186
168
|
};
|
|
187
169
|
snap?: {
|
|
188
|
-
name: string;
|
|
189
170
|
id: string;
|
|
190
|
-
enabled: boolean;
|
|
191
171
|
};
|
|
192
172
|
nameLastUpdatedAt?: number;
|
|
193
173
|
lastSelected?: number;
|
|
@@ -195,13 +175,9 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
195
175
|
name: Struct<string, null>;
|
|
196
176
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
197
177
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
198
|
-
name: string;
|
|
199
178
|
id: string;
|
|
200
|
-
enabled: boolean;
|
|
201
179
|
}, {
|
|
202
180
|
id: Struct<string, null>;
|
|
203
|
-
enabled: Struct<boolean, null>;
|
|
204
|
-
name: Struct<string, null>;
|
|
205
181
|
}>;
|
|
206
182
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
207
183
|
importTime: Struct<number, null>;
|
|
@@ -211,10 +187,10 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
211
187
|
type: Struct<string, null>;
|
|
212
188
|
}>;
|
|
213
189
|
}>;
|
|
214
|
-
address:
|
|
215
|
-
type:
|
|
216
|
-
scopes:
|
|
217
|
-
methods:
|
|
190
|
+
address: Struct<string, null>;
|
|
191
|
+
type: Struct<"eip155:erc4337", "eip155:erc4337">;
|
|
192
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
193
|
+
methods: Struct<("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[], Struct<"personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation", {
|
|
218
194
|
personal_sign: "personal_sign";
|
|
219
195
|
eth_sign: "eth_sign";
|
|
220
196
|
eth_signTypedData_v1: "eth_signTypedData_v1";
|
|
@@ -224,8 +200,8 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
224
200
|
eth_patchUserOperation: "eth_patchUserOperation";
|
|
225
201
|
eth_signUserOperation: "eth_signUserOperation";
|
|
226
202
|
}>>;
|
|
227
|
-
id:
|
|
228
|
-
options:
|
|
203
|
+
id: Struct<string, null>;
|
|
204
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
229
205
|
entropy?: {
|
|
230
206
|
type: "mnemonic";
|
|
231
207
|
id: string;
|
|
@@ -262,9 +238,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
262
238
|
type: string;
|
|
263
239
|
};
|
|
264
240
|
snap?: {
|
|
265
|
-
name: string;
|
|
266
241
|
id: string;
|
|
267
|
-
enabled: boolean;
|
|
268
242
|
};
|
|
269
243
|
nameLastUpdatedAt?: number;
|
|
270
244
|
lastSelected?: number;
|
|
@@ -280,9 +254,7 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
280
254
|
type: string;
|
|
281
255
|
};
|
|
282
256
|
snap?: {
|
|
283
|
-
name: string;
|
|
284
257
|
id: string;
|
|
285
|
-
enabled: boolean;
|
|
286
258
|
};
|
|
287
259
|
nameLastUpdatedAt?: number;
|
|
288
260
|
lastSelected?: number;
|
|
@@ -290,13 +262,9 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
290
262
|
name: Struct<string, null>;
|
|
291
263
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
292
264
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
293
|
-
name: string;
|
|
294
265
|
id: string;
|
|
295
|
-
enabled: boolean;
|
|
296
266
|
}, {
|
|
297
267
|
id: Struct<string, null>;
|
|
298
|
-
enabled: Struct<boolean, null>;
|
|
299
|
-
name: Struct<string, null>;
|
|
300
268
|
}>;
|
|
301
269
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
302
270
|
importTime: Struct<number, null>;
|
|
@@ -306,10 +274,10 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
306
274
|
type: Struct<string, null>;
|
|
307
275
|
}>;
|
|
308
276
|
}>;
|
|
309
|
-
address:
|
|
310
|
-
type:
|
|
311
|
-
scopes:
|
|
312
|
-
methods:
|
|
277
|
+
address: Struct<string, null>;
|
|
278
|
+
type: Struct<"bip122:p2pkh", "bip122:p2pkh">;
|
|
279
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
280
|
+
methods: Struct<import("@metamask/keyring-api").BtcMethod[], Struct<import("@metamask/keyring-api").BtcMethod, {
|
|
313
281
|
signPsbt: import("@metamask/keyring-api").BtcMethod.SignPsbt;
|
|
314
282
|
computeFee: import("@metamask/keyring-api").BtcMethod.ComputeFee;
|
|
315
283
|
fillPsbt: import("@metamask/keyring-api").BtcMethod.FillPsbt;
|
|
@@ -320,8 +288,8 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
320
288
|
publicDescriptor: import("@metamask/keyring-api").BtcMethod.PublicDescriptor;
|
|
321
289
|
signMessage: import("@metamask/keyring-api").BtcMethod.SignMessage;
|
|
322
290
|
}>>;
|
|
323
|
-
id:
|
|
324
|
-
options:
|
|
291
|
+
id: Struct<string, null>;
|
|
292
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
325
293
|
entropy?: {
|
|
326
294
|
type: "mnemonic";
|
|
327
295
|
id: string;
|
|
@@ -358,9 +326,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
358
326
|
type: string;
|
|
359
327
|
};
|
|
360
328
|
snap?: {
|
|
361
|
-
name: string;
|
|
362
329
|
id: string;
|
|
363
|
-
enabled: boolean;
|
|
364
330
|
};
|
|
365
331
|
nameLastUpdatedAt?: number;
|
|
366
332
|
lastSelected?: number;
|
|
@@ -376,9 +342,7 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
376
342
|
type: string;
|
|
377
343
|
};
|
|
378
344
|
snap?: {
|
|
379
|
-
name: string;
|
|
380
345
|
id: string;
|
|
381
|
-
enabled: boolean;
|
|
382
346
|
};
|
|
383
347
|
nameLastUpdatedAt?: number;
|
|
384
348
|
lastSelected?: number;
|
|
@@ -386,13 +350,9 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
386
350
|
name: Struct<string, null>;
|
|
387
351
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
388
352
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
389
|
-
name: string;
|
|
390
353
|
id: string;
|
|
391
|
-
enabled: boolean;
|
|
392
354
|
}, {
|
|
393
355
|
id: Struct<string, null>;
|
|
394
|
-
enabled: Struct<boolean, null>;
|
|
395
|
-
name: Struct<string, null>;
|
|
396
356
|
}>;
|
|
397
357
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
398
358
|
importTime: Struct<number, null>;
|
|
@@ -402,10 +362,10 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
402
362
|
type: Struct<string, null>;
|
|
403
363
|
}>;
|
|
404
364
|
}>;
|
|
405
|
-
address:
|
|
406
|
-
type:
|
|
407
|
-
scopes:
|
|
408
|
-
methods:
|
|
365
|
+
address: Struct<string, null>;
|
|
366
|
+
type: Struct<"bip122:p2sh", "bip122:p2sh">;
|
|
367
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
368
|
+
methods: Struct<import("@metamask/keyring-api").BtcMethod[], Struct<import("@metamask/keyring-api").BtcMethod, {
|
|
409
369
|
signPsbt: import("@metamask/keyring-api").BtcMethod.SignPsbt;
|
|
410
370
|
computeFee: import("@metamask/keyring-api").BtcMethod.ComputeFee;
|
|
411
371
|
fillPsbt: import("@metamask/keyring-api").BtcMethod.FillPsbt;
|
|
@@ -416,8 +376,8 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
416
376
|
publicDescriptor: import("@metamask/keyring-api").BtcMethod.PublicDescriptor;
|
|
417
377
|
signMessage: import("@metamask/keyring-api").BtcMethod.SignMessage;
|
|
418
378
|
}>>;
|
|
419
|
-
id:
|
|
420
|
-
options:
|
|
379
|
+
id: Struct<string, null>;
|
|
380
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
421
381
|
entropy?: {
|
|
422
382
|
type: "mnemonic";
|
|
423
383
|
id: string;
|
|
@@ -454,9 +414,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
454
414
|
type: string;
|
|
455
415
|
};
|
|
456
416
|
snap?: {
|
|
457
|
-
name: string;
|
|
458
417
|
id: string;
|
|
459
|
-
enabled: boolean;
|
|
460
418
|
};
|
|
461
419
|
nameLastUpdatedAt?: number;
|
|
462
420
|
lastSelected?: number;
|
|
@@ -472,9 +430,7 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
472
430
|
type: string;
|
|
473
431
|
};
|
|
474
432
|
snap?: {
|
|
475
|
-
name: string;
|
|
476
433
|
id: string;
|
|
477
|
-
enabled: boolean;
|
|
478
434
|
};
|
|
479
435
|
nameLastUpdatedAt?: number;
|
|
480
436
|
lastSelected?: number;
|
|
@@ -482,13 +438,9 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
482
438
|
name: Struct<string, null>;
|
|
483
439
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
484
440
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
485
|
-
name: string;
|
|
486
441
|
id: string;
|
|
487
|
-
enabled: boolean;
|
|
488
442
|
}, {
|
|
489
443
|
id: Struct<string, null>;
|
|
490
|
-
enabled: Struct<boolean, null>;
|
|
491
|
-
name: Struct<string, null>;
|
|
492
444
|
}>;
|
|
493
445
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
494
446
|
importTime: Struct<number, null>;
|
|
@@ -498,10 +450,10 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
498
450
|
type: Struct<string, null>;
|
|
499
451
|
}>;
|
|
500
452
|
}>;
|
|
501
|
-
address:
|
|
502
|
-
type:
|
|
503
|
-
scopes:
|
|
504
|
-
methods:
|
|
453
|
+
address: Struct<string, null>;
|
|
454
|
+
type: Struct<"bip122:p2wpkh", "bip122:p2wpkh">;
|
|
455
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
456
|
+
methods: Struct<import("@metamask/keyring-api").BtcMethod[], Struct<import("@metamask/keyring-api").BtcMethod, {
|
|
505
457
|
signPsbt: import("@metamask/keyring-api").BtcMethod.SignPsbt;
|
|
506
458
|
computeFee: import("@metamask/keyring-api").BtcMethod.ComputeFee;
|
|
507
459
|
fillPsbt: import("@metamask/keyring-api").BtcMethod.FillPsbt;
|
|
@@ -512,8 +464,8 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
512
464
|
publicDescriptor: import("@metamask/keyring-api").BtcMethod.PublicDescriptor;
|
|
513
465
|
signMessage: import("@metamask/keyring-api").BtcMethod.SignMessage;
|
|
514
466
|
}>>;
|
|
515
|
-
id:
|
|
516
|
-
options:
|
|
467
|
+
id: Struct<string, null>;
|
|
468
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
517
469
|
entropy?: {
|
|
518
470
|
type: "mnemonic";
|
|
519
471
|
id: string;
|
|
@@ -550,9 +502,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
550
502
|
type: string;
|
|
551
503
|
};
|
|
552
504
|
snap?: {
|
|
553
|
-
name: string;
|
|
554
505
|
id: string;
|
|
555
|
-
enabled: boolean;
|
|
556
506
|
};
|
|
557
507
|
nameLastUpdatedAt?: number;
|
|
558
508
|
lastSelected?: number;
|
|
@@ -568,9 +518,7 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
568
518
|
type: string;
|
|
569
519
|
};
|
|
570
520
|
snap?: {
|
|
571
|
-
name: string;
|
|
572
521
|
id: string;
|
|
573
|
-
enabled: boolean;
|
|
574
522
|
};
|
|
575
523
|
nameLastUpdatedAt?: number;
|
|
576
524
|
lastSelected?: number;
|
|
@@ -578,13 +526,9 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
578
526
|
name: Struct<string, null>;
|
|
579
527
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
580
528
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
581
|
-
name: string;
|
|
582
529
|
id: string;
|
|
583
|
-
enabled: boolean;
|
|
584
530
|
}, {
|
|
585
531
|
id: Struct<string, null>;
|
|
586
|
-
enabled: Struct<boolean, null>;
|
|
587
|
-
name: Struct<string, null>;
|
|
588
532
|
}>;
|
|
589
533
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
590
534
|
importTime: Struct<number, null>;
|
|
@@ -594,10 +538,10 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
594
538
|
type: Struct<string, null>;
|
|
595
539
|
}>;
|
|
596
540
|
}>;
|
|
597
|
-
address:
|
|
598
|
-
type:
|
|
599
|
-
scopes:
|
|
600
|
-
methods:
|
|
541
|
+
address: Struct<string, null>;
|
|
542
|
+
type: Struct<"bip122:p2tr", "bip122:p2tr">;
|
|
543
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
544
|
+
methods: Struct<import("@metamask/keyring-api").BtcMethod[], Struct<import("@metamask/keyring-api").BtcMethod, {
|
|
601
545
|
signPsbt: import("@metamask/keyring-api").BtcMethod.SignPsbt;
|
|
602
546
|
computeFee: import("@metamask/keyring-api").BtcMethod.ComputeFee;
|
|
603
547
|
fillPsbt: import("@metamask/keyring-api").BtcMethod.FillPsbt;
|
|
@@ -608,8 +552,8 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
608
552
|
publicDescriptor: import("@metamask/keyring-api").BtcMethod.PublicDescriptor;
|
|
609
553
|
signMessage: import("@metamask/keyring-api").BtcMethod.SignMessage;
|
|
610
554
|
}>>;
|
|
611
|
-
id:
|
|
612
|
-
options:
|
|
555
|
+
id: Struct<string, null>;
|
|
556
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
613
557
|
entropy?: {
|
|
614
558
|
type: "mnemonic";
|
|
615
559
|
id: string;
|
|
@@ -646,9 +590,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
646
590
|
type: string;
|
|
647
591
|
};
|
|
648
592
|
snap?: {
|
|
649
|
-
name: string;
|
|
650
593
|
id: string;
|
|
651
|
-
enabled: boolean;
|
|
652
594
|
};
|
|
653
595
|
nameLastUpdatedAt?: number;
|
|
654
596
|
lastSelected?: number;
|
|
@@ -664,9 +606,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
664
606
|
type: string;
|
|
665
607
|
};
|
|
666
608
|
snap?: {
|
|
667
|
-
name: string;
|
|
668
609
|
id: string;
|
|
669
|
-
enabled: boolean;
|
|
670
610
|
};
|
|
671
611
|
nameLastUpdatedAt?: number;
|
|
672
612
|
lastSelected?: number;
|
|
@@ -674,13 +614,9 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
674
614
|
name: Struct<string, null>;
|
|
675
615
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
676
616
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
677
|
-
name: string;
|
|
678
617
|
id: string;
|
|
679
|
-
enabled: boolean;
|
|
680
618
|
}, {
|
|
681
619
|
id: Struct<string, null>;
|
|
682
|
-
enabled: Struct<boolean, null>;
|
|
683
|
-
name: Struct<string, null>;
|
|
684
620
|
}>;
|
|
685
621
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
686
622
|
importTime: Struct<number, null>;
|
|
@@ -690,18 +626,18 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
690
626
|
type: Struct<string, null>;
|
|
691
627
|
}>;
|
|
692
628
|
}>;
|
|
693
|
-
address:
|
|
694
|
-
type:
|
|
695
|
-
scopes:
|
|
696
|
-
methods:
|
|
629
|
+
address: Struct<string, null>;
|
|
630
|
+
type: Struct<"solana:data-account", "solana:data-account">;
|
|
631
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
632
|
+
methods: Struct<import("@metamask/keyring-api").SolMethod[], Struct<import("@metamask/keyring-api").SolMethod, {
|
|
697
633
|
sendAndConfirmTransaction: import("@metamask/keyring-api").SolMethod.SendAndConfirmTransaction;
|
|
698
634
|
signAndSendTransaction: import("@metamask/keyring-api").SolMethod.SignAndSendTransaction;
|
|
699
635
|
signTransaction: import("@metamask/keyring-api").SolMethod.SignTransaction;
|
|
700
636
|
signMessage: import("@metamask/keyring-api").SolMethod.SignMessage;
|
|
701
637
|
signIn: import("@metamask/keyring-api").SolMethod.SignIn;
|
|
702
638
|
}>>;
|
|
703
|
-
id:
|
|
704
|
-
options:
|
|
639
|
+
id: Struct<string, null>;
|
|
640
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
705
641
|
entropy?: {
|
|
706
642
|
type: "mnemonic";
|
|
707
643
|
id: string;
|
|
@@ -738,9 +674,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
738
674
|
type: string;
|
|
739
675
|
};
|
|
740
676
|
snap?: {
|
|
741
|
-
name: string;
|
|
742
677
|
id: string;
|
|
743
|
-
enabled: boolean;
|
|
744
678
|
};
|
|
745
679
|
nameLastUpdatedAt?: number;
|
|
746
680
|
lastSelected?: number;
|
|
@@ -756,9 +690,7 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
756
690
|
type: string;
|
|
757
691
|
};
|
|
758
692
|
snap?: {
|
|
759
|
-
name: string;
|
|
760
693
|
id: string;
|
|
761
|
-
enabled: boolean;
|
|
762
694
|
};
|
|
763
695
|
nameLastUpdatedAt?: number;
|
|
764
696
|
lastSelected?: number;
|
|
@@ -766,13 +698,9 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
766
698
|
name: Struct<string, null>;
|
|
767
699
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
768
700
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
769
|
-
name: string;
|
|
770
701
|
id: string;
|
|
771
|
-
enabled: boolean;
|
|
772
702
|
}, {
|
|
773
703
|
id: Struct<string, null>;
|
|
774
|
-
enabled: Struct<boolean, null>;
|
|
775
|
-
name: Struct<string, null>;
|
|
776
704
|
}>;
|
|
777
705
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
778
706
|
importTime: Struct<number, null>;
|
|
@@ -782,17 +710,17 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
782
710
|
type: Struct<string, null>;
|
|
783
711
|
}>;
|
|
784
712
|
}>;
|
|
785
|
-
address:
|
|
786
|
-
type:
|
|
787
|
-
scopes:
|
|
788
|
-
methods:
|
|
713
|
+
address: Struct<string, null>;
|
|
714
|
+
type: Struct<"tron:eoa", "tron:eoa">;
|
|
715
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
716
|
+
methods: Struct<import("@metamask/keyring-api").TrxMethod[], Struct<import("@metamask/keyring-api").TrxMethod, {
|
|
789
717
|
signMessage: import("@metamask/keyring-api").TrxMethod.SignMessage;
|
|
790
718
|
signTransaction: import("@metamask/keyring-api").TrxMethod.SignTransaction;
|
|
791
719
|
signMessageV2: import("@metamask/keyring-api").TrxMethod.SignMessageV2;
|
|
792
720
|
verifyMessageV2: import("@metamask/keyring-api").TrxMethod.VerifyMessageV2;
|
|
793
721
|
}>>;
|
|
794
|
-
id:
|
|
795
|
-
options:
|
|
722
|
+
id: Struct<string, null>;
|
|
723
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
796
724
|
entropy?: {
|
|
797
725
|
type: "mnemonic";
|
|
798
726
|
id: string;
|
|
@@ -829,9 +757,7 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
829
757
|
type: string;
|
|
830
758
|
};
|
|
831
759
|
snap?: {
|
|
832
|
-
name: string;
|
|
833
760
|
id: string;
|
|
834
|
-
enabled: boolean;
|
|
835
761
|
};
|
|
836
762
|
nameLastUpdatedAt?: number;
|
|
837
763
|
lastSelected?: number;
|
|
@@ -847,9 +773,7 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
847
773
|
type: string;
|
|
848
774
|
};
|
|
849
775
|
snap?: {
|
|
850
|
-
name: string;
|
|
851
776
|
id: string;
|
|
852
|
-
enabled: boolean;
|
|
853
777
|
};
|
|
854
778
|
nameLastUpdatedAt?: number;
|
|
855
779
|
lastSelected?: number;
|
|
@@ -857,13 +781,9 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
857
781
|
name: Struct<string, null>;
|
|
858
782
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
859
783
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
860
|
-
name: string;
|
|
861
784
|
id: string;
|
|
862
|
-
enabled: boolean;
|
|
863
785
|
}, {
|
|
864
786
|
id: Struct<string, null>;
|
|
865
|
-
enabled: Struct<boolean, null>;
|
|
866
|
-
name: Struct<string, null>;
|
|
867
787
|
}>;
|
|
868
788
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
869
789
|
importTime: Struct<number, null>;
|
|
@@ -873,15 +793,16 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
873
793
|
type: Struct<string, null>;
|
|
874
794
|
}>;
|
|
875
795
|
}>;
|
|
876
|
-
address:
|
|
877
|
-
type:
|
|
878
|
-
scopes:
|
|
879
|
-
methods:
|
|
796
|
+
address: Struct<string, null>;
|
|
797
|
+
type: Struct<"stellar:account", "stellar:account">;
|
|
798
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
799
|
+
methods: Struct<import("@metamask/keyring-api").XlmMethod[], Struct<import("@metamask/keyring-api").XlmMethod, {
|
|
880
800
|
signMessage: import("@metamask/keyring-api").XlmMethod.SignMessage;
|
|
881
801
|
signTransaction: import("@metamask/keyring-api").XlmMethod.SignTransaction;
|
|
802
|
+
signAuthEntry: import("@metamask/keyring-api").XlmMethod.SignAuthEntry;
|
|
882
803
|
}>>;
|
|
883
|
-
id:
|
|
884
|
-
options:
|
|
804
|
+
id: Struct<string, null>;
|
|
805
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
885
806
|
entropy?: {
|
|
886
807
|
type: "mnemonic";
|
|
887
808
|
id: string;
|
|
@@ -929,9 +850,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
929
850
|
type: string;
|
|
930
851
|
};
|
|
931
852
|
snap?: {
|
|
932
|
-
name: string;
|
|
933
853
|
id: string;
|
|
934
|
-
enabled: boolean;
|
|
935
854
|
};
|
|
936
855
|
nameLastUpdatedAt?: number;
|
|
937
856
|
lastSelected?: number;
|
|
@@ -947,9 +866,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
947
866
|
type: string;
|
|
948
867
|
};
|
|
949
868
|
snap?: {
|
|
950
|
-
name: string;
|
|
951
869
|
id: string;
|
|
952
|
-
enabled: boolean;
|
|
953
870
|
};
|
|
954
871
|
nameLastUpdatedAt?: number;
|
|
955
872
|
lastSelected?: number;
|
|
@@ -957,13 +874,9 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
957
874
|
name: Struct<string, null>;
|
|
958
875
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
959
876
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
960
|
-
name: string;
|
|
961
877
|
id: string;
|
|
962
|
-
enabled: boolean;
|
|
963
878
|
}, {
|
|
964
879
|
id: Struct<string, null>;
|
|
965
|
-
enabled: Struct<boolean, null>;
|
|
966
|
-
name: Struct<string, null>;
|
|
967
880
|
}>;
|
|
968
881
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
969
882
|
importTime: Struct<number, null>;
|
|
@@ -973,8 +886,8 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
973
886
|
type: Struct<string, null>;
|
|
974
887
|
}>;
|
|
975
888
|
}>;
|
|
976
|
-
id:
|
|
977
|
-
type:
|
|
889
|
+
id: Struct<string, null>;
|
|
890
|
+
type: Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account", {
|
|
978
891
|
"eip155:eoa": "eip155:eoa";
|
|
979
892
|
"eip155:erc4337": "eip155:erc4337";
|
|
980
893
|
"bip122:p2pkh": "bip122:p2pkh";
|
|
@@ -986,9 +899,9 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
986
899
|
"stellar:account": "stellar:account";
|
|
987
900
|
"any:account": "any:account";
|
|
988
901
|
}>;
|
|
989
|
-
address:
|
|
990
|
-
scopes:
|
|
991
|
-
options:
|
|
902
|
+
address: Struct<string, null>;
|
|
903
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
904
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
992
905
|
entropy?: {
|
|
993
906
|
type: "mnemonic";
|
|
994
907
|
id: string;
|
|
@@ -1001,7 +914,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
1001
914
|
};
|
|
1002
915
|
exportable?: boolean;
|
|
1003
916
|
}, null>;
|
|
1004
|
-
methods:
|
|
917
|
+
methods: Struct<string[], Struct<string, null>>;
|
|
1005
918
|
}>;
|
|
1006
919
|
/**
|
|
1007
920
|
* Internal account representation.
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQd,cAAc,EAEd,cAAc,EAEf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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