@metamask-previews/keyring-internal-api 11.0.1-023fc63 → 11.0.1-1fa477f
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 +1 -1
- package/dist/compatibility/keyring-request.d.cts +5 -5
- package/dist/compatibility/keyring-request.d.mts +5 -5
- package/dist/types.cjs +16 -17
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +201 -196
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +201 -196
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +1 -2
- package/dist/types.mjs.map +1 -1
- package/package.json +3 -3
package/dist/types.d.cts
CHANGED
|
@@ -8,10 +8,10 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
8
8
|
keyring: {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
nameLastUpdatedAt?: number;
|
|
12
11
|
snap?: {
|
|
13
12
|
id: string;
|
|
14
13
|
};
|
|
14
|
+
nameLastUpdatedAt?: number;
|
|
15
15
|
lastSelected?: number;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
@@ -21,20 +21,20 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
21
21
|
keyring: {
|
|
22
22
|
type: string;
|
|
23
23
|
};
|
|
24
|
-
nameLastUpdatedAt?: number;
|
|
25
24
|
snap?: {
|
|
26
25
|
id: string;
|
|
27
26
|
};
|
|
27
|
+
nameLastUpdatedAt?: number;
|
|
28
28
|
lastSelected?: number;
|
|
29
29
|
}, {
|
|
30
30
|
name: Struct<string, null>;
|
|
31
|
-
nameLastUpdatedAt:
|
|
32
|
-
snap:
|
|
31
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
32
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
33
33
|
id: string;
|
|
34
34
|
}, {
|
|
35
35
|
id: Struct<string, null>;
|
|
36
36
|
}>;
|
|
37
|
-
lastSelected:
|
|
37
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
38
38
|
importTime: Struct<number, null>;
|
|
39
39
|
keyring: Struct<{
|
|
40
40
|
type: string;
|
|
@@ -44,36 +44,36 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
44
44
|
}>;
|
|
45
45
|
}>;
|
|
46
46
|
export declare const InternalEthEoaAccountStruct: Struct<{
|
|
47
|
+
type: "eip155:eoa";
|
|
47
48
|
id: string;
|
|
49
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
50
|
+
entropy?: {
|
|
51
|
+
type: "mnemonic";
|
|
52
|
+
id: string;
|
|
53
|
+
derivationPath: string;
|
|
54
|
+
groupIndex: number;
|
|
55
|
+
} | {
|
|
56
|
+
type: "private-key";
|
|
57
|
+
} | {
|
|
58
|
+
type: "custom";
|
|
59
|
+
};
|
|
60
|
+
exportable?: boolean;
|
|
61
|
+
};
|
|
48
62
|
metadata: {
|
|
49
63
|
name: string;
|
|
50
64
|
importTime: number;
|
|
51
65
|
keyring: {
|
|
52
66
|
type: string;
|
|
53
67
|
};
|
|
54
|
-
nameLastUpdatedAt?: number;
|
|
55
68
|
snap?: {
|
|
56
69
|
id: string;
|
|
57
70
|
};
|
|
71
|
+
nameLastUpdatedAt?: number;
|
|
58
72
|
lastSelected?: number;
|
|
59
73
|
};
|
|
60
|
-
type: "eip155:eoa";
|
|
61
74
|
address: string;
|
|
62
75
|
scopes: import("@metamask/keyring-api").EthScope.Eoa[];
|
|
63
76
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
64
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
65
|
-
entropy?: {
|
|
66
|
-
type: "mnemonic";
|
|
67
|
-
id: string;
|
|
68
|
-
derivationPath: string;
|
|
69
|
-
groupIndex: number;
|
|
70
|
-
} | {
|
|
71
|
-
type: "private-key";
|
|
72
|
-
} | {
|
|
73
|
-
type: "custom";
|
|
74
|
-
};
|
|
75
|
-
exportable?: boolean;
|
|
76
|
-
};
|
|
77
77
|
}, {
|
|
78
78
|
metadata: Struct<{
|
|
79
79
|
name: string;
|
|
@@ -81,20 +81,20 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
81
81
|
keyring: {
|
|
82
82
|
type: string;
|
|
83
83
|
};
|
|
84
|
-
nameLastUpdatedAt?: number;
|
|
85
84
|
snap?: {
|
|
86
85
|
id: string;
|
|
87
86
|
};
|
|
87
|
+
nameLastUpdatedAt?: number;
|
|
88
88
|
lastSelected?: number;
|
|
89
89
|
}, {
|
|
90
90
|
name: Struct<string, null>;
|
|
91
|
-
nameLastUpdatedAt:
|
|
92
|
-
snap:
|
|
91
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
92
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
93
93
|
id: string;
|
|
94
94
|
}, {
|
|
95
95
|
id: Struct<string, null>;
|
|
96
96
|
}>;
|
|
97
|
-
lastSelected:
|
|
97
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
98
98
|
importTime: Struct<number, null>;
|
|
99
99
|
keyring: Struct<{
|
|
100
100
|
type: string;
|
|
@@ -129,36 +129,36 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
129
129
|
}, null>;
|
|
130
130
|
}>;
|
|
131
131
|
export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
132
|
+
type: "eip155:erc4337";
|
|
132
133
|
id: string;
|
|
134
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
135
|
+
entropy?: {
|
|
136
|
+
type: "mnemonic";
|
|
137
|
+
id: string;
|
|
138
|
+
derivationPath: string;
|
|
139
|
+
groupIndex: number;
|
|
140
|
+
} | {
|
|
141
|
+
type: "private-key";
|
|
142
|
+
} | {
|
|
143
|
+
type: "custom";
|
|
144
|
+
};
|
|
145
|
+
exportable?: boolean;
|
|
146
|
+
};
|
|
133
147
|
metadata: {
|
|
134
148
|
name: string;
|
|
135
149
|
importTime: number;
|
|
136
150
|
keyring: {
|
|
137
151
|
type: string;
|
|
138
152
|
};
|
|
139
|
-
nameLastUpdatedAt?: number;
|
|
140
153
|
snap?: {
|
|
141
154
|
id: string;
|
|
142
155
|
};
|
|
156
|
+
nameLastUpdatedAt?: number;
|
|
143
157
|
lastSelected?: number;
|
|
144
158
|
};
|
|
145
|
-
type: "eip155:erc4337";
|
|
146
159
|
address: string;
|
|
147
160
|
scopes: `${string}:${string}`[];
|
|
148
161
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
149
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
150
|
-
entropy?: {
|
|
151
|
-
type: "mnemonic";
|
|
152
|
-
id: string;
|
|
153
|
-
derivationPath: string;
|
|
154
|
-
groupIndex: number;
|
|
155
|
-
} | {
|
|
156
|
-
type: "private-key";
|
|
157
|
-
} | {
|
|
158
|
-
type: "custom";
|
|
159
|
-
};
|
|
160
|
-
exportable?: boolean;
|
|
161
|
-
};
|
|
162
162
|
}, {
|
|
163
163
|
metadata: Struct<{
|
|
164
164
|
name: string;
|
|
@@ -166,20 +166,20 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
166
166
|
keyring: {
|
|
167
167
|
type: string;
|
|
168
168
|
};
|
|
169
|
-
nameLastUpdatedAt?: number;
|
|
170
169
|
snap?: {
|
|
171
170
|
id: string;
|
|
172
171
|
};
|
|
172
|
+
nameLastUpdatedAt?: number;
|
|
173
173
|
lastSelected?: number;
|
|
174
174
|
}, {
|
|
175
175
|
name: Struct<string, null>;
|
|
176
|
-
nameLastUpdatedAt:
|
|
177
|
-
snap:
|
|
176
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
177
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
178
178
|
id: string;
|
|
179
179
|
}, {
|
|
180
180
|
id: Struct<string, null>;
|
|
181
181
|
}>;
|
|
182
|
-
lastSelected:
|
|
182
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
183
183
|
importTime: Struct<number, null>;
|
|
184
184
|
keyring: Struct<{
|
|
185
185
|
type: string;
|
|
@@ -216,36 +216,36 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
216
216
|
}, null>;
|
|
217
217
|
}>;
|
|
218
218
|
export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
219
|
+
type: "bip122:p2pkh";
|
|
219
220
|
id: string;
|
|
221
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
222
|
+
entropy?: {
|
|
223
|
+
type: "mnemonic";
|
|
224
|
+
id: string;
|
|
225
|
+
derivationPath: string;
|
|
226
|
+
groupIndex: number;
|
|
227
|
+
} | {
|
|
228
|
+
type: "private-key";
|
|
229
|
+
} | {
|
|
230
|
+
type: "custom";
|
|
231
|
+
};
|
|
232
|
+
exportable?: boolean;
|
|
233
|
+
};
|
|
220
234
|
metadata: {
|
|
221
235
|
name: string;
|
|
222
236
|
importTime: number;
|
|
223
237
|
keyring: {
|
|
224
238
|
type: string;
|
|
225
239
|
};
|
|
226
|
-
nameLastUpdatedAt?: number;
|
|
227
240
|
snap?: {
|
|
228
241
|
id: string;
|
|
229
242
|
};
|
|
243
|
+
nameLastUpdatedAt?: number;
|
|
230
244
|
lastSelected?: number;
|
|
231
245
|
};
|
|
232
|
-
type: "bip122:p2pkh";
|
|
233
246
|
address: string;
|
|
234
247
|
scopes: `${string}:${string}`[];
|
|
235
248
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
236
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
237
|
-
entropy?: {
|
|
238
|
-
type: "mnemonic";
|
|
239
|
-
id: string;
|
|
240
|
-
derivationPath: string;
|
|
241
|
-
groupIndex: number;
|
|
242
|
-
} | {
|
|
243
|
-
type: "private-key";
|
|
244
|
-
} | {
|
|
245
|
-
type: "custom";
|
|
246
|
-
};
|
|
247
|
-
exportable?: boolean;
|
|
248
|
-
};
|
|
249
249
|
}, {
|
|
250
250
|
metadata: Struct<{
|
|
251
251
|
name: string;
|
|
@@ -253,20 +253,20 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
253
253
|
keyring: {
|
|
254
254
|
type: string;
|
|
255
255
|
};
|
|
256
|
-
nameLastUpdatedAt?: number;
|
|
257
256
|
snap?: {
|
|
258
257
|
id: string;
|
|
259
258
|
};
|
|
259
|
+
nameLastUpdatedAt?: number;
|
|
260
260
|
lastSelected?: number;
|
|
261
261
|
}, {
|
|
262
262
|
name: Struct<string, null>;
|
|
263
|
-
nameLastUpdatedAt:
|
|
264
|
-
snap:
|
|
263
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
264
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
265
265
|
id: string;
|
|
266
266
|
}, {
|
|
267
267
|
id: Struct<string, null>;
|
|
268
268
|
}>;
|
|
269
|
-
lastSelected:
|
|
269
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
270
270
|
importTime: Struct<number, null>;
|
|
271
271
|
keyring: Struct<{
|
|
272
272
|
type: string;
|
|
@@ -304,36 +304,36 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
304
304
|
}, null>;
|
|
305
305
|
}>;
|
|
306
306
|
export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
307
|
+
type: "bip122:p2sh";
|
|
307
308
|
id: string;
|
|
309
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
310
|
+
entropy?: {
|
|
311
|
+
type: "mnemonic";
|
|
312
|
+
id: string;
|
|
313
|
+
derivationPath: string;
|
|
314
|
+
groupIndex: number;
|
|
315
|
+
} | {
|
|
316
|
+
type: "private-key";
|
|
317
|
+
} | {
|
|
318
|
+
type: "custom";
|
|
319
|
+
};
|
|
320
|
+
exportable?: boolean;
|
|
321
|
+
};
|
|
308
322
|
metadata: {
|
|
309
323
|
name: string;
|
|
310
324
|
importTime: number;
|
|
311
325
|
keyring: {
|
|
312
326
|
type: string;
|
|
313
327
|
};
|
|
314
|
-
nameLastUpdatedAt?: number;
|
|
315
328
|
snap?: {
|
|
316
329
|
id: string;
|
|
317
330
|
};
|
|
331
|
+
nameLastUpdatedAt?: number;
|
|
318
332
|
lastSelected?: number;
|
|
319
333
|
};
|
|
320
|
-
type: "bip122:p2sh";
|
|
321
334
|
address: string;
|
|
322
335
|
scopes: `${string}:${string}`[];
|
|
323
336
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
324
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
325
|
-
entropy?: {
|
|
326
|
-
type: "mnemonic";
|
|
327
|
-
id: string;
|
|
328
|
-
derivationPath: string;
|
|
329
|
-
groupIndex: number;
|
|
330
|
-
} | {
|
|
331
|
-
type: "private-key";
|
|
332
|
-
} | {
|
|
333
|
-
type: "custom";
|
|
334
|
-
};
|
|
335
|
-
exportable?: boolean;
|
|
336
|
-
};
|
|
337
337
|
}, {
|
|
338
338
|
metadata: Struct<{
|
|
339
339
|
name: string;
|
|
@@ -341,20 +341,20 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
341
341
|
keyring: {
|
|
342
342
|
type: string;
|
|
343
343
|
};
|
|
344
|
-
nameLastUpdatedAt?: number;
|
|
345
344
|
snap?: {
|
|
346
345
|
id: string;
|
|
347
346
|
};
|
|
347
|
+
nameLastUpdatedAt?: number;
|
|
348
348
|
lastSelected?: number;
|
|
349
349
|
}, {
|
|
350
350
|
name: Struct<string, null>;
|
|
351
|
-
nameLastUpdatedAt:
|
|
352
|
-
snap:
|
|
351
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
352
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
353
353
|
id: string;
|
|
354
354
|
}, {
|
|
355
355
|
id: Struct<string, null>;
|
|
356
356
|
}>;
|
|
357
|
-
lastSelected:
|
|
357
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
358
358
|
importTime: Struct<number, null>;
|
|
359
359
|
keyring: Struct<{
|
|
360
360
|
type: string;
|
|
@@ -376,7 +376,12 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
376
376
|
publicDescriptor: import("@metamask/keyring-api").BtcMethod.PublicDescriptor;
|
|
377
377
|
signMessage: import("@metamask/keyring-api").BtcMethod.SignMessage;
|
|
378
378
|
}>>;
|
|
379
|
-
id: Struct<string, null>;
|
|
379
|
+
id: Struct<string, null>; /**
|
|
380
|
+
* Internal account representation.
|
|
381
|
+
*
|
|
382
|
+
* This type is used internally by MetaMask to add additional metadata to the
|
|
383
|
+
* account object. It's should not be used by external applications.
|
|
384
|
+
*/
|
|
380
385
|
options: Struct<Record<string, import("@metamask/utils").Json> & {
|
|
381
386
|
entropy?: {
|
|
382
387
|
type: "mnemonic";
|
|
@@ -392,36 +397,36 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
392
397
|
}, null>;
|
|
393
398
|
}>;
|
|
394
399
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
400
|
+
type: "bip122:p2wpkh";
|
|
395
401
|
id: string;
|
|
402
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
403
|
+
entropy?: {
|
|
404
|
+
type: "mnemonic";
|
|
405
|
+
id: string;
|
|
406
|
+
derivationPath: string;
|
|
407
|
+
groupIndex: number;
|
|
408
|
+
} | {
|
|
409
|
+
type: "private-key";
|
|
410
|
+
} | {
|
|
411
|
+
type: "custom";
|
|
412
|
+
};
|
|
413
|
+
exportable?: boolean;
|
|
414
|
+
};
|
|
396
415
|
metadata: {
|
|
397
416
|
name: string;
|
|
398
417
|
importTime: number;
|
|
399
418
|
keyring: {
|
|
400
419
|
type: string;
|
|
401
420
|
};
|
|
402
|
-
nameLastUpdatedAt?: number;
|
|
403
421
|
snap?: {
|
|
404
422
|
id: string;
|
|
405
423
|
};
|
|
424
|
+
nameLastUpdatedAt?: number;
|
|
406
425
|
lastSelected?: number;
|
|
407
426
|
};
|
|
408
|
-
type: "bip122:p2wpkh";
|
|
409
427
|
address: string;
|
|
410
428
|
scopes: `${string}:${string}`[];
|
|
411
429
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
412
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
413
|
-
entropy?: {
|
|
414
|
-
type: "mnemonic";
|
|
415
|
-
id: string;
|
|
416
|
-
derivationPath: string;
|
|
417
|
-
groupIndex: number;
|
|
418
|
-
} | {
|
|
419
|
-
type: "private-key";
|
|
420
|
-
} | {
|
|
421
|
-
type: "custom";
|
|
422
|
-
};
|
|
423
|
-
exportable?: boolean;
|
|
424
|
-
};
|
|
425
430
|
}, {
|
|
426
431
|
metadata: Struct<{
|
|
427
432
|
name: string;
|
|
@@ -429,20 +434,20 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
429
434
|
keyring: {
|
|
430
435
|
type: string;
|
|
431
436
|
};
|
|
432
|
-
nameLastUpdatedAt?: number;
|
|
433
437
|
snap?: {
|
|
434
438
|
id: string;
|
|
435
439
|
};
|
|
440
|
+
nameLastUpdatedAt?: number;
|
|
436
441
|
lastSelected?: number;
|
|
437
442
|
}, {
|
|
438
443
|
name: Struct<string, null>;
|
|
439
|
-
nameLastUpdatedAt:
|
|
440
|
-
snap:
|
|
444
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
445
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
441
446
|
id: string;
|
|
442
447
|
}, {
|
|
443
448
|
id: Struct<string, null>;
|
|
444
449
|
}>;
|
|
445
|
-
lastSelected:
|
|
450
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
446
451
|
importTime: Struct<number, null>;
|
|
447
452
|
keyring: Struct<{
|
|
448
453
|
type: string;
|
|
@@ -480,36 +485,36 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
480
485
|
}, null>;
|
|
481
486
|
}>;
|
|
482
487
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
488
|
+
type: "bip122:p2tr";
|
|
483
489
|
id: string;
|
|
490
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
491
|
+
entropy?: {
|
|
492
|
+
type: "mnemonic";
|
|
493
|
+
id: string;
|
|
494
|
+
derivationPath: string;
|
|
495
|
+
groupIndex: number;
|
|
496
|
+
} | {
|
|
497
|
+
type: "private-key";
|
|
498
|
+
} | {
|
|
499
|
+
type: "custom";
|
|
500
|
+
};
|
|
501
|
+
exportable?: boolean;
|
|
502
|
+
};
|
|
484
503
|
metadata: {
|
|
485
504
|
name: string;
|
|
486
505
|
importTime: number;
|
|
487
506
|
keyring: {
|
|
488
507
|
type: string;
|
|
489
508
|
};
|
|
490
|
-
nameLastUpdatedAt?: number;
|
|
491
509
|
snap?: {
|
|
492
510
|
id: string;
|
|
493
511
|
};
|
|
512
|
+
nameLastUpdatedAt?: number;
|
|
494
513
|
lastSelected?: number;
|
|
495
514
|
};
|
|
496
|
-
type: "bip122:p2tr";
|
|
497
515
|
address: string;
|
|
498
516
|
scopes: `${string}:${string}`[];
|
|
499
517
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
500
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
501
|
-
entropy?: {
|
|
502
|
-
type: "mnemonic";
|
|
503
|
-
id: string;
|
|
504
|
-
derivationPath: string;
|
|
505
|
-
groupIndex: number;
|
|
506
|
-
} | {
|
|
507
|
-
type: "private-key";
|
|
508
|
-
} | {
|
|
509
|
-
type: "custom";
|
|
510
|
-
};
|
|
511
|
-
exportable?: boolean;
|
|
512
|
-
};
|
|
513
518
|
}, {
|
|
514
519
|
metadata: Struct<{
|
|
515
520
|
name: string;
|
|
@@ -517,20 +522,20 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
517
522
|
keyring: {
|
|
518
523
|
type: string;
|
|
519
524
|
};
|
|
520
|
-
nameLastUpdatedAt?: number;
|
|
521
525
|
snap?: {
|
|
522
526
|
id: string;
|
|
523
527
|
};
|
|
528
|
+
nameLastUpdatedAt?: number;
|
|
524
529
|
lastSelected?: number;
|
|
525
530
|
}, {
|
|
526
531
|
name: Struct<string, null>;
|
|
527
|
-
nameLastUpdatedAt:
|
|
528
|
-
snap:
|
|
532
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
533
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
529
534
|
id: string;
|
|
530
535
|
}, {
|
|
531
536
|
id: Struct<string, null>;
|
|
532
537
|
}>;
|
|
533
|
-
lastSelected:
|
|
538
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
534
539
|
importTime: Struct<number, null>;
|
|
535
540
|
keyring: Struct<{
|
|
536
541
|
type: string;
|
|
@@ -568,36 +573,36 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
568
573
|
}, null>;
|
|
569
574
|
}>;
|
|
570
575
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
576
|
+
type: "solana:data-account";
|
|
571
577
|
id: string;
|
|
578
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
579
|
+
entropy?: {
|
|
580
|
+
type: "mnemonic";
|
|
581
|
+
id: string;
|
|
582
|
+
derivationPath: string;
|
|
583
|
+
groupIndex: number;
|
|
584
|
+
} | {
|
|
585
|
+
type: "private-key";
|
|
586
|
+
} | {
|
|
587
|
+
type: "custom";
|
|
588
|
+
};
|
|
589
|
+
exportable?: boolean;
|
|
590
|
+
};
|
|
572
591
|
metadata: {
|
|
573
592
|
name: string;
|
|
574
593
|
importTime: number;
|
|
575
594
|
keyring: {
|
|
576
595
|
type: string;
|
|
577
596
|
};
|
|
578
|
-
nameLastUpdatedAt?: number;
|
|
579
597
|
snap?: {
|
|
580
598
|
id: string;
|
|
581
599
|
};
|
|
600
|
+
nameLastUpdatedAt?: number;
|
|
582
601
|
lastSelected?: number;
|
|
583
602
|
};
|
|
584
|
-
type: "solana:data-account";
|
|
585
603
|
address: string;
|
|
586
604
|
scopes: `${string}:${string}`[];
|
|
587
605
|
methods: import("@metamask/keyring-api").SolMethod[];
|
|
588
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
589
|
-
entropy?: {
|
|
590
|
-
type: "mnemonic";
|
|
591
|
-
id: string;
|
|
592
|
-
derivationPath: string;
|
|
593
|
-
groupIndex: number;
|
|
594
|
-
} | {
|
|
595
|
-
type: "private-key";
|
|
596
|
-
} | {
|
|
597
|
-
type: "custom";
|
|
598
|
-
};
|
|
599
|
-
exportable?: boolean;
|
|
600
|
-
};
|
|
601
606
|
}, {
|
|
602
607
|
metadata: Struct<{
|
|
603
608
|
name: string;
|
|
@@ -605,20 +610,20 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
605
610
|
keyring: {
|
|
606
611
|
type: string;
|
|
607
612
|
};
|
|
608
|
-
nameLastUpdatedAt?: number;
|
|
609
613
|
snap?: {
|
|
610
614
|
id: string;
|
|
611
615
|
};
|
|
616
|
+
nameLastUpdatedAt?: number;
|
|
612
617
|
lastSelected?: number;
|
|
613
618
|
}, {
|
|
614
619
|
name: Struct<string, null>;
|
|
615
|
-
nameLastUpdatedAt:
|
|
616
|
-
snap:
|
|
620
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
621
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
617
622
|
id: string;
|
|
618
623
|
}, {
|
|
619
624
|
id: Struct<string, null>;
|
|
620
625
|
}>;
|
|
621
|
-
lastSelected:
|
|
626
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
622
627
|
importTime: Struct<number, null>;
|
|
623
628
|
keyring: Struct<{
|
|
624
629
|
type: string;
|
|
@@ -652,36 +657,36 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
652
657
|
}, null>;
|
|
653
658
|
}>;
|
|
654
659
|
export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
660
|
+
type: "tron:eoa";
|
|
655
661
|
id: string;
|
|
662
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
663
|
+
entropy?: {
|
|
664
|
+
type: "mnemonic";
|
|
665
|
+
id: string;
|
|
666
|
+
derivationPath: string;
|
|
667
|
+
groupIndex: number;
|
|
668
|
+
} | {
|
|
669
|
+
type: "private-key";
|
|
670
|
+
} | {
|
|
671
|
+
type: "custom";
|
|
672
|
+
};
|
|
673
|
+
exportable?: boolean;
|
|
674
|
+
};
|
|
656
675
|
metadata: {
|
|
657
676
|
name: string;
|
|
658
677
|
importTime: number;
|
|
659
678
|
keyring: {
|
|
660
679
|
type: string;
|
|
661
680
|
};
|
|
662
|
-
nameLastUpdatedAt?: number;
|
|
663
681
|
snap?: {
|
|
664
682
|
id: string;
|
|
665
683
|
};
|
|
684
|
+
nameLastUpdatedAt?: number;
|
|
666
685
|
lastSelected?: number;
|
|
667
686
|
};
|
|
668
|
-
type: "tron:eoa";
|
|
669
687
|
address: string;
|
|
670
688
|
scopes: `${string}:${string}`[];
|
|
671
689
|
methods: import("@metamask/keyring-api").TrxMethod[];
|
|
672
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
673
|
-
entropy?: {
|
|
674
|
-
type: "mnemonic";
|
|
675
|
-
id: string;
|
|
676
|
-
derivationPath: string;
|
|
677
|
-
groupIndex: number;
|
|
678
|
-
} | {
|
|
679
|
-
type: "private-key";
|
|
680
|
-
} | {
|
|
681
|
-
type: "custom";
|
|
682
|
-
};
|
|
683
|
-
exportable?: boolean;
|
|
684
|
-
};
|
|
685
690
|
}, {
|
|
686
691
|
metadata: Struct<{
|
|
687
692
|
name: string;
|
|
@@ -689,20 +694,20 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
689
694
|
keyring: {
|
|
690
695
|
type: string;
|
|
691
696
|
};
|
|
692
|
-
nameLastUpdatedAt?: number;
|
|
693
697
|
snap?: {
|
|
694
698
|
id: string;
|
|
695
699
|
};
|
|
700
|
+
nameLastUpdatedAt?: number;
|
|
696
701
|
lastSelected?: number;
|
|
697
702
|
}, {
|
|
698
703
|
name: Struct<string, null>;
|
|
699
|
-
nameLastUpdatedAt:
|
|
700
|
-
snap:
|
|
704
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
705
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
701
706
|
id: string;
|
|
702
707
|
}, {
|
|
703
708
|
id: Struct<string, null>;
|
|
704
709
|
}>;
|
|
705
|
-
lastSelected:
|
|
710
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
706
711
|
importTime: Struct<number, null>;
|
|
707
712
|
keyring: Struct<{
|
|
708
713
|
type: string;
|
|
@@ -735,36 +740,36 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
735
740
|
}, null>;
|
|
736
741
|
}>;
|
|
737
742
|
export declare const InternalXlmAccountStruct: Struct<{
|
|
743
|
+
type: "stellar:account";
|
|
738
744
|
id: string;
|
|
745
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
746
|
+
entropy?: {
|
|
747
|
+
type: "mnemonic";
|
|
748
|
+
id: string;
|
|
749
|
+
derivationPath: string;
|
|
750
|
+
groupIndex: number;
|
|
751
|
+
} | {
|
|
752
|
+
type: "private-key";
|
|
753
|
+
} | {
|
|
754
|
+
type: "custom";
|
|
755
|
+
};
|
|
756
|
+
exportable?: boolean;
|
|
757
|
+
};
|
|
739
758
|
metadata: {
|
|
740
759
|
name: string;
|
|
741
760
|
importTime: number;
|
|
742
761
|
keyring: {
|
|
743
762
|
type: string;
|
|
744
763
|
};
|
|
745
|
-
nameLastUpdatedAt?: number;
|
|
746
764
|
snap?: {
|
|
747
765
|
id: string;
|
|
748
766
|
};
|
|
767
|
+
nameLastUpdatedAt?: number;
|
|
749
768
|
lastSelected?: number;
|
|
750
769
|
};
|
|
751
|
-
type: "stellar:account";
|
|
752
770
|
address: string;
|
|
753
771
|
scopes: `${string}:${string}`[];
|
|
754
772
|
methods: import("@metamask/keyring-api").XlmMethod[];
|
|
755
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
756
|
-
entropy?: {
|
|
757
|
-
type: "mnemonic";
|
|
758
|
-
id: string;
|
|
759
|
-
derivationPath: string;
|
|
760
|
-
groupIndex: number;
|
|
761
|
-
} | {
|
|
762
|
-
type: "private-key";
|
|
763
|
-
} | {
|
|
764
|
-
type: "custom";
|
|
765
|
-
};
|
|
766
|
-
exportable?: boolean;
|
|
767
|
-
};
|
|
768
773
|
}, {
|
|
769
774
|
metadata: Struct<{
|
|
770
775
|
name: string;
|
|
@@ -772,20 +777,20 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
772
777
|
keyring: {
|
|
773
778
|
type: string;
|
|
774
779
|
};
|
|
775
|
-
nameLastUpdatedAt?: number;
|
|
776
780
|
snap?: {
|
|
777
781
|
id: string;
|
|
778
782
|
};
|
|
783
|
+
nameLastUpdatedAt?: number;
|
|
779
784
|
lastSelected?: number;
|
|
780
785
|
}, {
|
|
781
786
|
name: Struct<string, null>;
|
|
782
|
-
nameLastUpdatedAt:
|
|
783
|
-
snap:
|
|
787
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
788
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
784
789
|
id: string;
|
|
785
790
|
}, {
|
|
786
791
|
id: Struct<string, null>;
|
|
787
792
|
}>;
|
|
788
|
-
lastSelected:
|
|
793
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
789
794
|
importTime: Struct<number, null>;
|
|
790
795
|
keyring: Struct<{
|
|
791
796
|
type: string;
|
|
@@ -828,36 +833,36 @@ export type InternalXlmAccount = Infer<typeof InternalXlmAccountStruct>;
|
|
|
828
833
|
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
834
|
export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount | InternalXlmAccount;
|
|
830
835
|
export declare const InternalAccountStruct: Struct<{
|
|
836
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
831
837
|
id: string;
|
|
838
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
839
|
+
entropy?: {
|
|
840
|
+
type: "mnemonic";
|
|
841
|
+
id: string;
|
|
842
|
+
derivationPath: string;
|
|
843
|
+
groupIndex: number;
|
|
844
|
+
} | {
|
|
845
|
+
type: "private-key";
|
|
846
|
+
} | {
|
|
847
|
+
type: "custom";
|
|
848
|
+
};
|
|
849
|
+
exportable?: boolean;
|
|
850
|
+
};
|
|
832
851
|
metadata: {
|
|
833
852
|
name: string;
|
|
834
853
|
importTime: number;
|
|
835
854
|
keyring: {
|
|
836
855
|
type: string;
|
|
837
856
|
};
|
|
838
|
-
nameLastUpdatedAt?: number;
|
|
839
857
|
snap?: {
|
|
840
858
|
id: string;
|
|
841
859
|
};
|
|
860
|
+
nameLastUpdatedAt?: number;
|
|
842
861
|
lastSelected?: number;
|
|
843
862
|
};
|
|
844
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
845
863
|
address: string;
|
|
846
864
|
scopes: `${string}:${string}`[];
|
|
847
865
|
methods: string[];
|
|
848
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
849
|
-
entropy?: {
|
|
850
|
-
type: "mnemonic";
|
|
851
|
-
id: string;
|
|
852
|
-
derivationPath: string;
|
|
853
|
-
groupIndex: number;
|
|
854
|
-
} | {
|
|
855
|
-
type: "private-key";
|
|
856
|
-
} | {
|
|
857
|
-
type: "custom";
|
|
858
|
-
};
|
|
859
|
-
exportable?: boolean;
|
|
860
|
-
};
|
|
861
866
|
}, {
|
|
862
867
|
metadata: Struct<{
|
|
863
868
|
name: string;
|
|
@@ -865,20 +870,20 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
865
870
|
keyring: {
|
|
866
871
|
type: string;
|
|
867
872
|
};
|
|
868
|
-
nameLastUpdatedAt?: number;
|
|
869
873
|
snap?: {
|
|
870
874
|
id: string;
|
|
871
875
|
};
|
|
876
|
+
nameLastUpdatedAt?: number;
|
|
872
877
|
lastSelected?: number;
|
|
873
878
|
}, {
|
|
874
879
|
name: Struct<string, null>;
|
|
875
|
-
nameLastUpdatedAt:
|
|
876
|
-
snap:
|
|
880
|
+
nameLastUpdatedAt: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
881
|
+
snap: import("@metamask/superstruct").ExactOptionalStruct<{
|
|
877
882
|
id: string;
|
|
878
883
|
}, {
|
|
879
884
|
id: Struct<string, null>;
|
|
880
885
|
}>;
|
|
881
|
-
lastSelected:
|
|
886
|
+
lastSelected: import("@metamask/superstruct").ExactOptionalStruct<number, null>;
|
|
882
887
|
importTime: Struct<number, null>;
|
|
883
888
|
keyring: Struct<{
|
|
884
889
|
type: string;
|