@metamask-previews/keyring-internal-api 10.0.1-ea8175e → 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 +38 -1
- package/LICENSE +21 -0
- package/dist/compatibility/keyring-request.cjs +2 -2
- package/dist/compatibility/keyring-request.cjs.map +1 -1
- package/dist/compatibility/keyring-request.d.cts +1 -1
- package/dist/compatibility/keyring-request.d.cts.map +1 -1
- package/dist/compatibility/keyring-request.d.mts +1 -1
- package/dist/compatibility/keyring-request.d.mts.map +1 -1
- package/dist/compatibility/keyring-request.mjs.map +1 -1
- package/dist/types.cjs +6 -4
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +143 -139
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +143 -139
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +7 -5
- package/dist/types.mjs.map +1 -1
- package/package.json +33 -27
package/dist/types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BtcAccountType, EthAccountType, SolAccountType, TrxAccountType } from "@metamask/keyring-api";
|
|
1
|
+
import { BtcAccountType, EthAccountType, SolAccountType, TrxAccountType, XlmAccountType } from "@metamask/keyring-api";
|
|
2
2
|
import type { Infer, Struct } from "@metamask/superstruct";
|
|
3
|
-
export type InternalAccountType = EthAccountType | BtcAccountType | SolAccountType | TrxAccountType;
|
|
3
|
+
export type InternalAccountType = EthAccountType | BtcAccountType | SolAccountType | TrxAccountType | XlmAccountType;
|
|
4
4
|
export declare const InternalAccountMetadataStruct: Struct<{
|
|
5
5
|
metadata: {
|
|
6
6
|
name: string;
|
|
@@ -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,99 @@ 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> & {
|
|
724
|
+
entropy?: {
|
|
725
|
+
type: "mnemonic";
|
|
726
|
+
id: string;
|
|
727
|
+
derivationPath: string;
|
|
728
|
+
groupIndex: number;
|
|
729
|
+
} | {
|
|
730
|
+
type: "private-key";
|
|
731
|
+
} | {
|
|
732
|
+
type: "custom";
|
|
733
|
+
};
|
|
734
|
+
exportable?: boolean;
|
|
735
|
+
}, null>;
|
|
736
|
+
}>;
|
|
737
|
+
export declare const InternalXlmAccountStruct: Struct<{
|
|
738
|
+
type: "stellar:account";
|
|
739
|
+
id: string;
|
|
740
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
741
|
+
entropy?: {
|
|
742
|
+
type: "mnemonic";
|
|
743
|
+
id: string;
|
|
744
|
+
derivationPath: string;
|
|
745
|
+
groupIndex: number;
|
|
746
|
+
} | {
|
|
747
|
+
type: "private-key";
|
|
748
|
+
} | {
|
|
749
|
+
type: "custom";
|
|
750
|
+
};
|
|
751
|
+
exportable?: boolean;
|
|
752
|
+
};
|
|
753
|
+
metadata: {
|
|
754
|
+
name: string;
|
|
755
|
+
importTime: number;
|
|
756
|
+
keyring: {
|
|
757
|
+
type: string;
|
|
758
|
+
};
|
|
759
|
+
snap?: {
|
|
760
|
+
id: string;
|
|
761
|
+
};
|
|
762
|
+
nameLastUpdatedAt?: number;
|
|
763
|
+
lastSelected?: number;
|
|
764
|
+
};
|
|
765
|
+
address: string;
|
|
766
|
+
scopes: `${string}:${string}`[];
|
|
767
|
+
methods: import("@metamask/keyring-api").XlmMethod[];
|
|
768
|
+
}, {
|
|
769
|
+
metadata: Struct<{
|
|
770
|
+
name: string;
|
|
771
|
+
importTime: number;
|
|
772
|
+
keyring: {
|
|
773
|
+
type: string;
|
|
774
|
+
};
|
|
775
|
+
snap?: {
|
|
776
|
+
id: string;
|
|
777
|
+
};
|
|
778
|
+
nameLastUpdatedAt?: number;
|
|
779
|
+
lastSelected?: number;
|
|
780
|
+
}, {
|
|
781
|
+
name: Struct<string, null>;
|
|
782
|
+
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
783
|
+
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
784
|
+
id: string;
|
|
785
|
+
}, {
|
|
786
|
+
id: Struct<string, null>;
|
|
787
|
+
}>;
|
|
788
|
+
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
789
|
+
importTime: Struct<number, null>;
|
|
790
|
+
keyring: Struct<{
|
|
791
|
+
type: string;
|
|
792
|
+
}, {
|
|
793
|
+
type: Struct<string, null>;
|
|
794
|
+
}>;
|
|
795
|
+
}>;
|
|
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, {
|
|
800
|
+
signMessage: import("@metamask/keyring-api").XlmMethod.SignMessage;
|
|
801
|
+
signTransaction: import("@metamask/keyring-api").XlmMethod.SignTransaction;
|
|
802
|
+
signAuthEntry: import("@metamask/keyring-api").XlmMethod.SignAuthEntry;
|
|
803
|
+
}>>;
|
|
804
|
+
id: Struct<string, null>;
|
|
805
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
796
806
|
entropy?: {
|
|
797
807
|
type: "mnemonic";
|
|
798
808
|
id: string;
|
|
@@ -814,10 +824,11 @@ export type InternalBtcP2wpkhAccount = Infer<typeof InternalBtcP2wpkhAccountStru
|
|
|
814
824
|
export type InternalBtcP2trAccount = Infer<typeof InternalBtcP2trAccountStruct>;
|
|
815
825
|
export type InternalSolDataAccount = Infer<typeof InternalSolDataAccountStruct>;
|
|
816
826
|
export type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;
|
|
817
|
-
export
|
|
818
|
-
export
|
|
827
|
+
export type InternalXlmAccount = Infer<typeof InternalXlmAccountStruct>;
|
|
828
|
+
export declare const InternalAccountStructs: Record<string, Struct<InternalEthEoaAccount> | Struct<InternalEthErc4337Account> | Struct<InternalBtcP2pkhAccount> | Struct<InternalBtcP2shAccount> | Struct<InternalBtcP2wpkhAccount> | Struct<InternalBtcP2trAccount> | Struct<InternalSolDataAccount> | Struct<InternalTrxEoaAccount> | Struct<InternalXlmAccount>>;
|
|
829
|
+
export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount | InternalXlmAccount;
|
|
819
830
|
export declare const InternalAccountStruct: Struct<{
|
|
820
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
831
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
821
832
|
id: string;
|
|
822
833
|
options: Record<string, import("@metamask/utils").Json> & {
|
|
823
834
|
entropy?: {
|
|
@@ -839,9 +850,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
839
850
|
type: string;
|
|
840
851
|
};
|
|
841
852
|
snap?: {
|
|
842
|
-
name: string;
|
|
843
853
|
id: string;
|
|
844
|
-
enabled: boolean;
|
|
845
854
|
};
|
|
846
855
|
nameLastUpdatedAt?: number;
|
|
847
856
|
lastSelected?: number;
|
|
@@ -857,9 +866,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
857
866
|
type: string;
|
|
858
867
|
};
|
|
859
868
|
snap?: {
|
|
860
|
-
name: string;
|
|
861
869
|
id: string;
|
|
862
|
-
enabled: boolean;
|
|
863
870
|
};
|
|
864
871
|
nameLastUpdatedAt?: number;
|
|
865
872
|
lastSelected?: number;
|
|
@@ -867,13 +874,9 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
867
874
|
name: Struct<string, null>;
|
|
868
875
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
869
876
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
870
|
-
name: string;
|
|
871
877
|
id: string;
|
|
872
|
-
enabled: boolean;
|
|
873
878
|
}, {
|
|
874
879
|
id: Struct<string, null>;
|
|
875
|
-
enabled: Struct<boolean, null>;
|
|
876
|
-
name: Struct<string, null>;
|
|
877
880
|
}>;
|
|
878
881
|
lastSelected: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
879
882
|
importTime: Struct<number, null>;
|
|
@@ -883,8 +886,8 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
883
886
|
type: Struct<string, null>;
|
|
884
887
|
}>;
|
|
885
888
|
}>;
|
|
886
|
-
id:
|
|
887
|
-
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", {
|
|
888
891
|
"eip155:eoa": "eip155:eoa";
|
|
889
892
|
"eip155:erc4337": "eip155:erc4337";
|
|
890
893
|
"bip122:p2pkh": "bip122:p2pkh";
|
|
@@ -893,11 +896,12 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
893
896
|
"bip122:p2tr": "bip122:p2tr";
|
|
894
897
|
"solana:data-account": "solana:data-account";
|
|
895
898
|
"tron:eoa": "tron:eoa";
|
|
899
|
+
"stellar:account": "stellar:account";
|
|
896
900
|
"any:account": "any:account";
|
|
897
901
|
}>;
|
|
898
|
-
address:
|
|
899
|
-
scopes:
|
|
900
|
-
options:
|
|
902
|
+
address: Struct<string, null>;
|
|
903
|
+
scopes: Struct<`${string}:${string}`[], Struct<`${string}:${string}`, null>>;
|
|
904
|
+
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
901
905
|
entropy?: {
|
|
902
906
|
type: "mnemonic";
|
|
903
907
|
id: string;
|
|
@@ -910,7 +914,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
910
914
|
};
|
|
911
915
|
exportable?: boolean;
|
|
912
916
|
}, null>;
|
|
913
|
-
methods:
|
|
917
|
+
methods: Struct<string[], Struct<string, null>>;
|
|
914
918
|
}>;
|
|
915
919
|
/**
|
|
916
920
|
* Internal account representation.
|