@metamask-previews/keyring-internal-api 11.0.1-862665d → 11.0.1-de887b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compatibility/keyring-request.d.cts +4 -4
- package/dist/compatibility/keyring-request.d.mts +4 -4
- package/dist/types.d.cts +162 -162
- package/dist/types.d.mts +162 -162
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
-
scope: string;
|
|
9
|
-
account: string;
|
|
10
8
|
request: {
|
|
11
9
|
method: string;
|
|
12
10
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
13
11
|
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
pending: false;
|
|
39
38
|
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
pending: false;
|
|
50
49
|
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|
|
@@ -5,12 +5,12 @@ import type { Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
-
scope: string;
|
|
9
|
-
account: string;
|
|
10
8
|
request: {
|
|
11
9
|
method: string;
|
|
12
10
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
13
11
|
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
pending: false;
|
|
39
38
|
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
pending: false;
|
|
50
49
|
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|
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,10 +21,10 @@ 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>;
|
|
@@ -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,10 +81,10 @@ 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>;
|
|
@@ -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,10 +166,10 @@ 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>;
|
|
@@ -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,10 +253,10 @@ 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>;
|
|
@@ -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,10 +341,10 @@ 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>;
|
|
@@ -392,36 +392,36 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
392
392
|
}, null>;
|
|
393
393
|
}>;
|
|
394
394
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
395
|
+
type: "bip122:p2wpkh";
|
|
395
396
|
id: string;
|
|
397
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
398
|
+
entropy?: {
|
|
399
|
+
type: "mnemonic";
|
|
400
|
+
id: string;
|
|
401
|
+
derivationPath: string;
|
|
402
|
+
groupIndex: number;
|
|
403
|
+
} | {
|
|
404
|
+
type: "private-key";
|
|
405
|
+
} | {
|
|
406
|
+
type: "custom";
|
|
407
|
+
};
|
|
408
|
+
exportable?: boolean;
|
|
409
|
+
};
|
|
396
410
|
metadata: {
|
|
397
411
|
name: string;
|
|
398
412
|
importTime: number;
|
|
399
413
|
keyring: {
|
|
400
414
|
type: string;
|
|
401
415
|
};
|
|
402
|
-
nameLastUpdatedAt?: number;
|
|
403
416
|
snap?: {
|
|
404
417
|
id: string;
|
|
405
418
|
};
|
|
419
|
+
nameLastUpdatedAt?: number;
|
|
406
420
|
lastSelected?: number;
|
|
407
421
|
};
|
|
408
|
-
type: "bip122:p2wpkh";
|
|
409
422
|
address: string;
|
|
410
423
|
scopes: `${string}:${string}`[];
|
|
411
424
|
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
425
|
}, {
|
|
426
426
|
metadata: Struct<{
|
|
427
427
|
name: string;
|
|
@@ -429,10 +429,10 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
429
429
|
keyring: {
|
|
430
430
|
type: string;
|
|
431
431
|
};
|
|
432
|
-
nameLastUpdatedAt?: number;
|
|
433
432
|
snap?: {
|
|
434
433
|
id: string;
|
|
435
434
|
};
|
|
435
|
+
nameLastUpdatedAt?: number;
|
|
436
436
|
lastSelected?: number;
|
|
437
437
|
}, {
|
|
438
438
|
name: Struct<string, null>;
|
|
@@ -480,36 +480,36 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
480
480
|
}, null>;
|
|
481
481
|
}>;
|
|
482
482
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
483
|
+
type: "bip122:p2tr";
|
|
483
484
|
id: string;
|
|
485
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
486
|
+
entropy?: {
|
|
487
|
+
type: "mnemonic";
|
|
488
|
+
id: string;
|
|
489
|
+
derivationPath: string;
|
|
490
|
+
groupIndex: number;
|
|
491
|
+
} | {
|
|
492
|
+
type: "private-key";
|
|
493
|
+
} | {
|
|
494
|
+
type: "custom";
|
|
495
|
+
};
|
|
496
|
+
exportable?: boolean;
|
|
497
|
+
};
|
|
484
498
|
metadata: {
|
|
485
499
|
name: string;
|
|
486
500
|
importTime: number;
|
|
487
501
|
keyring: {
|
|
488
502
|
type: string;
|
|
489
503
|
};
|
|
490
|
-
nameLastUpdatedAt?: number;
|
|
491
504
|
snap?: {
|
|
492
505
|
id: string;
|
|
493
506
|
};
|
|
507
|
+
nameLastUpdatedAt?: number;
|
|
494
508
|
lastSelected?: number;
|
|
495
509
|
};
|
|
496
|
-
type: "bip122:p2tr";
|
|
497
510
|
address: string;
|
|
498
511
|
scopes: `${string}:${string}`[];
|
|
499
512
|
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
513
|
}, {
|
|
514
514
|
metadata: Struct<{
|
|
515
515
|
name: string;
|
|
@@ -517,10 +517,10 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
517
517
|
keyring: {
|
|
518
518
|
type: string;
|
|
519
519
|
};
|
|
520
|
-
nameLastUpdatedAt?: number;
|
|
521
520
|
snap?: {
|
|
522
521
|
id: string;
|
|
523
522
|
};
|
|
523
|
+
nameLastUpdatedAt?: number;
|
|
524
524
|
lastSelected?: number;
|
|
525
525
|
}, {
|
|
526
526
|
name: Struct<string, null>;
|
|
@@ -568,36 +568,36 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
568
568
|
}, null>;
|
|
569
569
|
}>;
|
|
570
570
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
571
|
+
type: "solana:data-account";
|
|
571
572
|
id: string;
|
|
573
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
574
|
+
entropy?: {
|
|
575
|
+
type: "mnemonic";
|
|
576
|
+
id: string;
|
|
577
|
+
derivationPath: string;
|
|
578
|
+
groupIndex: number;
|
|
579
|
+
} | {
|
|
580
|
+
type: "private-key";
|
|
581
|
+
} | {
|
|
582
|
+
type: "custom";
|
|
583
|
+
};
|
|
584
|
+
exportable?: boolean;
|
|
585
|
+
};
|
|
572
586
|
metadata: {
|
|
573
587
|
name: string;
|
|
574
588
|
importTime: number;
|
|
575
589
|
keyring: {
|
|
576
590
|
type: string;
|
|
577
591
|
};
|
|
578
|
-
nameLastUpdatedAt?: number;
|
|
579
592
|
snap?: {
|
|
580
593
|
id: string;
|
|
581
594
|
};
|
|
595
|
+
nameLastUpdatedAt?: number;
|
|
582
596
|
lastSelected?: number;
|
|
583
597
|
};
|
|
584
|
-
type: "solana:data-account";
|
|
585
598
|
address: string;
|
|
586
599
|
scopes: `${string}:${string}`[];
|
|
587
600
|
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
601
|
}, {
|
|
602
602
|
metadata: Struct<{
|
|
603
603
|
name: string;
|
|
@@ -605,10 +605,10 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
605
605
|
keyring: {
|
|
606
606
|
type: string;
|
|
607
607
|
};
|
|
608
|
-
nameLastUpdatedAt?: number;
|
|
609
608
|
snap?: {
|
|
610
609
|
id: string;
|
|
611
610
|
};
|
|
611
|
+
nameLastUpdatedAt?: number;
|
|
612
612
|
lastSelected?: number;
|
|
613
613
|
}, {
|
|
614
614
|
name: Struct<string, null>;
|
|
@@ -652,36 +652,36 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
652
652
|
}, null>;
|
|
653
653
|
}>;
|
|
654
654
|
export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
655
|
+
type: "tron:eoa";
|
|
655
656
|
id: string;
|
|
657
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
658
|
+
entropy?: {
|
|
659
|
+
type: "mnemonic";
|
|
660
|
+
id: string;
|
|
661
|
+
derivationPath: string;
|
|
662
|
+
groupIndex: number;
|
|
663
|
+
} | {
|
|
664
|
+
type: "private-key";
|
|
665
|
+
} | {
|
|
666
|
+
type: "custom";
|
|
667
|
+
};
|
|
668
|
+
exportable?: boolean;
|
|
669
|
+
};
|
|
656
670
|
metadata: {
|
|
657
671
|
name: string;
|
|
658
672
|
importTime: number;
|
|
659
673
|
keyring: {
|
|
660
674
|
type: string;
|
|
661
675
|
};
|
|
662
|
-
nameLastUpdatedAt?: number;
|
|
663
676
|
snap?: {
|
|
664
677
|
id: string;
|
|
665
678
|
};
|
|
679
|
+
nameLastUpdatedAt?: number;
|
|
666
680
|
lastSelected?: number;
|
|
667
681
|
};
|
|
668
|
-
type: "tron:eoa";
|
|
669
682
|
address: string;
|
|
670
683
|
scopes: `${string}:${string}`[];
|
|
671
684
|
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
685
|
}, {
|
|
686
686
|
metadata: Struct<{
|
|
687
687
|
name: string;
|
|
@@ -689,10 +689,10 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
689
689
|
keyring: {
|
|
690
690
|
type: string;
|
|
691
691
|
};
|
|
692
|
-
nameLastUpdatedAt?: number;
|
|
693
692
|
snap?: {
|
|
694
693
|
id: string;
|
|
695
694
|
};
|
|
695
|
+
nameLastUpdatedAt?: number;
|
|
696
696
|
lastSelected?: number;
|
|
697
697
|
}, {
|
|
698
698
|
name: Struct<string, null>;
|
|
@@ -735,36 +735,36 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
735
735
|
}, null>;
|
|
736
736
|
}>;
|
|
737
737
|
export declare const InternalXlmAccountStruct: Struct<{
|
|
738
|
+
type: "stellar:account";
|
|
738
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
|
+
};
|
|
739
753
|
metadata: {
|
|
740
754
|
name: string;
|
|
741
755
|
importTime: number;
|
|
742
756
|
keyring: {
|
|
743
757
|
type: string;
|
|
744
758
|
};
|
|
745
|
-
nameLastUpdatedAt?: number;
|
|
746
759
|
snap?: {
|
|
747
760
|
id: string;
|
|
748
761
|
};
|
|
762
|
+
nameLastUpdatedAt?: number;
|
|
749
763
|
lastSelected?: number;
|
|
750
764
|
};
|
|
751
|
-
type: "stellar:account";
|
|
752
765
|
address: string;
|
|
753
766
|
scopes: `${string}:${string}`[];
|
|
754
767
|
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
768
|
}, {
|
|
769
769
|
metadata: Struct<{
|
|
770
770
|
name: string;
|
|
@@ -772,10 +772,10 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
772
772
|
keyring: {
|
|
773
773
|
type: string;
|
|
774
774
|
};
|
|
775
|
-
nameLastUpdatedAt?: number;
|
|
776
775
|
snap?: {
|
|
777
776
|
id: string;
|
|
778
777
|
};
|
|
778
|
+
nameLastUpdatedAt?: number;
|
|
779
779
|
lastSelected?: number;
|
|
780
780
|
}, {
|
|
781
781
|
name: Struct<string, null>;
|
|
@@ -828,36 +828,36 @@ export type InternalXlmAccount = Infer<typeof InternalXlmAccountStruct>;
|
|
|
828
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
829
|
export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount | InternalXlmAccount;
|
|
830
830
|
export declare const InternalAccountStruct: Struct<{
|
|
831
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
831
832
|
id: string;
|
|
833
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
834
|
+
entropy?: {
|
|
835
|
+
type: "mnemonic";
|
|
836
|
+
id: string;
|
|
837
|
+
derivationPath: string;
|
|
838
|
+
groupIndex: number;
|
|
839
|
+
} | {
|
|
840
|
+
type: "private-key";
|
|
841
|
+
} | {
|
|
842
|
+
type: "custom";
|
|
843
|
+
};
|
|
844
|
+
exportable?: boolean;
|
|
845
|
+
};
|
|
832
846
|
metadata: {
|
|
833
847
|
name: string;
|
|
834
848
|
importTime: number;
|
|
835
849
|
keyring: {
|
|
836
850
|
type: string;
|
|
837
851
|
};
|
|
838
|
-
nameLastUpdatedAt?: number;
|
|
839
852
|
snap?: {
|
|
840
853
|
id: string;
|
|
841
854
|
};
|
|
855
|
+
nameLastUpdatedAt?: number;
|
|
842
856
|
lastSelected?: number;
|
|
843
857
|
};
|
|
844
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
845
858
|
address: string;
|
|
846
859
|
scopes: `${string}:${string}`[];
|
|
847
860
|
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
861
|
}, {
|
|
862
862
|
metadata: Struct<{
|
|
863
863
|
name: string;
|
|
@@ -865,10 +865,10 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
865
865
|
keyring: {
|
|
866
866
|
type: string;
|
|
867
867
|
};
|
|
868
|
-
nameLastUpdatedAt?: number;
|
|
869
868
|
snap?: {
|
|
870
869
|
id: string;
|
|
871
870
|
};
|
|
871
|
+
nameLastUpdatedAt?: number;
|
|
872
872
|
lastSelected?: number;
|
|
873
873
|
}, {
|
|
874
874
|
name: Struct<string, null>;
|
package/dist/types.d.mts
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,10 +21,10 @@ 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>;
|
|
@@ -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,10 +81,10 @@ 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>;
|
|
@@ -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,10 +166,10 @@ 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>;
|
|
@@ -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,10 +253,10 @@ 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>;
|
|
@@ -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,10 +341,10 @@ 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>;
|
|
@@ -392,36 +392,36 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
392
392
|
}, null>;
|
|
393
393
|
}>;
|
|
394
394
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
395
|
+
type: "bip122:p2wpkh";
|
|
395
396
|
id: string;
|
|
397
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
398
|
+
entropy?: {
|
|
399
|
+
type: "mnemonic";
|
|
400
|
+
id: string;
|
|
401
|
+
derivationPath: string;
|
|
402
|
+
groupIndex: number;
|
|
403
|
+
} | {
|
|
404
|
+
type: "private-key";
|
|
405
|
+
} | {
|
|
406
|
+
type: "custom";
|
|
407
|
+
};
|
|
408
|
+
exportable?: boolean;
|
|
409
|
+
};
|
|
396
410
|
metadata: {
|
|
397
411
|
name: string;
|
|
398
412
|
importTime: number;
|
|
399
413
|
keyring: {
|
|
400
414
|
type: string;
|
|
401
415
|
};
|
|
402
|
-
nameLastUpdatedAt?: number;
|
|
403
416
|
snap?: {
|
|
404
417
|
id: string;
|
|
405
418
|
};
|
|
419
|
+
nameLastUpdatedAt?: number;
|
|
406
420
|
lastSelected?: number;
|
|
407
421
|
};
|
|
408
|
-
type: "bip122:p2wpkh";
|
|
409
422
|
address: string;
|
|
410
423
|
scopes: `${string}:${string}`[];
|
|
411
424
|
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
425
|
}, {
|
|
426
426
|
metadata: Struct<{
|
|
427
427
|
name: string;
|
|
@@ -429,10 +429,10 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
429
429
|
keyring: {
|
|
430
430
|
type: string;
|
|
431
431
|
};
|
|
432
|
-
nameLastUpdatedAt?: number;
|
|
433
432
|
snap?: {
|
|
434
433
|
id: string;
|
|
435
434
|
};
|
|
435
|
+
nameLastUpdatedAt?: number;
|
|
436
436
|
lastSelected?: number;
|
|
437
437
|
}, {
|
|
438
438
|
name: Struct<string, null>;
|
|
@@ -480,36 +480,36 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
480
480
|
}, null>;
|
|
481
481
|
}>;
|
|
482
482
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
483
|
+
type: "bip122:p2tr";
|
|
483
484
|
id: string;
|
|
485
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
486
|
+
entropy?: {
|
|
487
|
+
type: "mnemonic";
|
|
488
|
+
id: string;
|
|
489
|
+
derivationPath: string;
|
|
490
|
+
groupIndex: number;
|
|
491
|
+
} | {
|
|
492
|
+
type: "private-key";
|
|
493
|
+
} | {
|
|
494
|
+
type: "custom";
|
|
495
|
+
};
|
|
496
|
+
exportable?: boolean;
|
|
497
|
+
};
|
|
484
498
|
metadata: {
|
|
485
499
|
name: string;
|
|
486
500
|
importTime: number;
|
|
487
501
|
keyring: {
|
|
488
502
|
type: string;
|
|
489
503
|
};
|
|
490
|
-
nameLastUpdatedAt?: number;
|
|
491
504
|
snap?: {
|
|
492
505
|
id: string;
|
|
493
506
|
};
|
|
507
|
+
nameLastUpdatedAt?: number;
|
|
494
508
|
lastSelected?: number;
|
|
495
509
|
};
|
|
496
|
-
type: "bip122:p2tr";
|
|
497
510
|
address: string;
|
|
498
511
|
scopes: `${string}:${string}`[];
|
|
499
512
|
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
513
|
}, {
|
|
514
514
|
metadata: Struct<{
|
|
515
515
|
name: string;
|
|
@@ -517,10 +517,10 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
517
517
|
keyring: {
|
|
518
518
|
type: string;
|
|
519
519
|
};
|
|
520
|
-
nameLastUpdatedAt?: number;
|
|
521
520
|
snap?: {
|
|
522
521
|
id: string;
|
|
523
522
|
};
|
|
523
|
+
nameLastUpdatedAt?: number;
|
|
524
524
|
lastSelected?: number;
|
|
525
525
|
}, {
|
|
526
526
|
name: Struct<string, null>;
|
|
@@ -568,36 +568,36 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
568
568
|
}, null>;
|
|
569
569
|
}>;
|
|
570
570
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
571
|
+
type: "solana:data-account";
|
|
571
572
|
id: string;
|
|
573
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
574
|
+
entropy?: {
|
|
575
|
+
type: "mnemonic";
|
|
576
|
+
id: string;
|
|
577
|
+
derivationPath: string;
|
|
578
|
+
groupIndex: number;
|
|
579
|
+
} | {
|
|
580
|
+
type: "private-key";
|
|
581
|
+
} | {
|
|
582
|
+
type: "custom";
|
|
583
|
+
};
|
|
584
|
+
exportable?: boolean;
|
|
585
|
+
};
|
|
572
586
|
metadata: {
|
|
573
587
|
name: string;
|
|
574
588
|
importTime: number;
|
|
575
589
|
keyring: {
|
|
576
590
|
type: string;
|
|
577
591
|
};
|
|
578
|
-
nameLastUpdatedAt?: number;
|
|
579
592
|
snap?: {
|
|
580
593
|
id: string;
|
|
581
594
|
};
|
|
595
|
+
nameLastUpdatedAt?: number;
|
|
582
596
|
lastSelected?: number;
|
|
583
597
|
};
|
|
584
|
-
type: "solana:data-account";
|
|
585
598
|
address: string;
|
|
586
599
|
scopes: `${string}:${string}`[];
|
|
587
600
|
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
601
|
}, {
|
|
602
602
|
metadata: Struct<{
|
|
603
603
|
name: string;
|
|
@@ -605,10 +605,10 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
605
605
|
keyring: {
|
|
606
606
|
type: string;
|
|
607
607
|
};
|
|
608
|
-
nameLastUpdatedAt?: number;
|
|
609
608
|
snap?: {
|
|
610
609
|
id: string;
|
|
611
610
|
};
|
|
611
|
+
nameLastUpdatedAt?: number;
|
|
612
612
|
lastSelected?: number;
|
|
613
613
|
}, {
|
|
614
614
|
name: Struct<string, null>;
|
|
@@ -652,36 +652,36 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
652
652
|
}, null>;
|
|
653
653
|
}>;
|
|
654
654
|
export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
655
|
+
type: "tron:eoa";
|
|
655
656
|
id: string;
|
|
657
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
658
|
+
entropy?: {
|
|
659
|
+
type: "mnemonic";
|
|
660
|
+
id: string;
|
|
661
|
+
derivationPath: string;
|
|
662
|
+
groupIndex: number;
|
|
663
|
+
} | {
|
|
664
|
+
type: "private-key";
|
|
665
|
+
} | {
|
|
666
|
+
type: "custom";
|
|
667
|
+
};
|
|
668
|
+
exportable?: boolean;
|
|
669
|
+
};
|
|
656
670
|
metadata: {
|
|
657
671
|
name: string;
|
|
658
672
|
importTime: number;
|
|
659
673
|
keyring: {
|
|
660
674
|
type: string;
|
|
661
675
|
};
|
|
662
|
-
nameLastUpdatedAt?: number;
|
|
663
676
|
snap?: {
|
|
664
677
|
id: string;
|
|
665
678
|
};
|
|
679
|
+
nameLastUpdatedAt?: number;
|
|
666
680
|
lastSelected?: number;
|
|
667
681
|
};
|
|
668
|
-
type: "tron:eoa";
|
|
669
682
|
address: string;
|
|
670
683
|
scopes: `${string}:${string}`[];
|
|
671
684
|
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
685
|
}, {
|
|
686
686
|
metadata: Struct<{
|
|
687
687
|
name: string;
|
|
@@ -689,10 +689,10 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
689
689
|
keyring: {
|
|
690
690
|
type: string;
|
|
691
691
|
};
|
|
692
|
-
nameLastUpdatedAt?: number;
|
|
693
692
|
snap?: {
|
|
694
693
|
id: string;
|
|
695
694
|
};
|
|
695
|
+
nameLastUpdatedAt?: number;
|
|
696
696
|
lastSelected?: number;
|
|
697
697
|
}, {
|
|
698
698
|
name: Struct<string, null>;
|
|
@@ -735,36 +735,36 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
735
735
|
}, null>;
|
|
736
736
|
}>;
|
|
737
737
|
export declare const InternalXlmAccountStruct: Struct<{
|
|
738
|
+
type: "stellar:account";
|
|
738
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
|
+
};
|
|
739
753
|
metadata: {
|
|
740
754
|
name: string;
|
|
741
755
|
importTime: number;
|
|
742
756
|
keyring: {
|
|
743
757
|
type: string;
|
|
744
758
|
};
|
|
745
|
-
nameLastUpdatedAt?: number;
|
|
746
759
|
snap?: {
|
|
747
760
|
id: string;
|
|
748
761
|
};
|
|
762
|
+
nameLastUpdatedAt?: number;
|
|
749
763
|
lastSelected?: number;
|
|
750
764
|
};
|
|
751
|
-
type: "stellar:account";
|
|
752
765
|
address: string;
|
|
753
766
|
scopes: `${string}:${string}`[];
|
|
754
767
|
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
768
|
}, {
|
|
769
769
|
metadata: Struct<{
|
|
770
770
|
name: string;
|
|
@@ -772,10 +772,10 @@ export declare const InternalXlmAccountStruct: Struct<{
|
|
|
772
772
|
keyring: {
|
|
773
773
|
type: string;
|
|
774
774
|
};
|
|
775
|
-
nameLastUpdatedAt?: number;
|
|
776
775
|
snap?: {
|
|
777
776
|
id: string;
|
|
778
777
|
};
|
|
778
|
+
nameLastUpdatedAt?: number;
|
|
779
779
|
lastSelected?: number;
|
|
780
780
|
}, {
|
|
781
781
|
name: Struct<string, null>;
|
|
@@ -828,36 +828,36 @@ export type InternalXlmAccount = Infer<typeof InternalXlmAccountStruct>;
|
|
|
828
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
829
|
export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount | InternalXlmAccount;
|
|
830
830
|
export declare const InternalAccountStruct: Struct<{
|
|
831
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
831
832
|
id: string;
|
|
833
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
834
|
+
entropy?: {
|
|
835
|
+
type: "mnemonic";
|
|
836
|
+
id: string;
|
|
837
|
+
derivationPath: string;
|
|
838
|
+
groupIndex: number;
|
|
839
|
+
} | {
|
|
840
|
+
type: "private-key";
|
|
841
|
+
} | {
|
|
842
|
+
type: "custom";
|
|
843
|
+
};
|
|
844
|
+
exportable?: boolean;
|
|
845
|
+
};
|
|
832
846
|
metadata: {
|
|
833
847
|
name: string;
|
|
834
848
|
importTime: number;
|
|
835
849
|
keyring: {
|
|
836
850
|
type: string;
|
|
837
851
|
};
|
|
838
|
-
nameLastUpdatedAt?: number;
|
|
839
852
|
snap?: {
|
|
840
853
|
id: string;
|
|
841
854
|
};
|
|
855
|
+
nameLastUpdatedAt?: number;
|
|
842
856
|
lastSelected?: number;
|
|
843
857
|
};
|
|
844
|
-
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
845
858
|
address: string;
|
|
846
859
|
scopes: `${string}:${string}`[];
|
|
847
860
|
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
861
|
}, {
|
|
862
862
|
metadata: Struct<{
|
|
863
863
|
name: string;
|
|
@@ -865,10 +865,10 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
865
865
|
keyring: {
|
|
866
866
|
type: string;
|
|
867
867
|
};
|
|
868
|
-
nameLastUpdatedAt?: number;
|
|
869
868
|
snap?: {
|
|
870
869
|
id: string;
|
|
871
870
|
};
|
|
871
|
+
nameLastUpdatedAt?: number;
|
|
872
872
|
lastSelected?: number;
|
|
873
873
|
}, {
|
|
874
874
|
name: Struct<string, null>;
|