@metamask-previews/keyring-internal-api 10.0.0-25e4b24 → 10.0.0-cd75414
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 +5 -5
- package/dist/compatibility/keyring-request.d.mts +5 -5
- package/dist/types.d.cts +176 -176
- package/dist/types.d.mts +176 -176
- package/package.json +1 -1
package/dist/types.d.cts
CHANGED
|
@@ -8,12 +8,12 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
8
8
|
keyring: {
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
+
nameLastUpdatedAt?: number;
|
|
11
12
|
snap?: {
|
|
12
|
-
name: string;
|
|
13
13
|
id: string;
|
|
14
14
|
enabled: boolean;
|
|
15
|
+
name: string;
|
|
15
16
|
};
|
|
16
|
-
nameLastUpdatedAt?: number;
|
|
17
17
|
lastSelected?: number;
|
|
18
18
|
};
|
|
19
19
|
}, {
|
|
@@ -23,20 +23,20 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
23
23
|
keyring: {
|
|
24
24
|
type: string;
|
|
25
25
|
};
|
|
26
|
+
nameLastUpdatedAt?: number;
|
|
26
27
|
snap?: {
|
|
27
|
-
name: string;
|
|
28
28
|
id: string;
|
|
29
29
|
enabled: boolean;
|
|
30
|
+
name: string;
|
|
30
31
|
};
|
|
31
|
-
nameLastUpdatedAt?: number;
|
|
32
32
|
lastSelected?: number;
|
|
33
33
|
}, {
|
|
34
34
|
name: Struct<string, null>;
|
|
35
35
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
36
36
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
37
|
-
name: string;
|
|
38
37
|
id: string;
|
|
39
38
|
enabled: boolean;
|
|
39
|
+
name: string;
|
|
40
40
|
}, {
|
|
41
41
|
id: Struct<string, null>;
|
|
42
42
|
enabled: Struct<boolean, null>;
|
|
@@ -52,38 +52,38 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
52
52
|
}>;
|
|
53
53
|
}>;
|
|
54
54
|
export declare const InternalEthEoaAccountStruct: Struct<{
|
|
55
|
-
type: "eip155:eoa";
|
|
56
55
|
id: string;
|
|
57
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
58
|
-
entropy?: {
|
|
59
|
-
type: "mnemonic";
|
|
60
|
-
id: string;
|
|
61
|
-
derivationPath: string;
|
|
62
|
-
groupIndex: number;
|
|
63
|
-
} | {
|
|
64
|
-
type: "private-key";
|
|
65
|
-
} | {
|
|
66
|
-
type: "custom";
|
|
67
|
-
};
|
|
68
|
-
exportable?: boolean;
|
|
69
|
-
};
|
|
70
56
|
metadata: {
|
|
71
57
|
name: string;
|
|
72
58
|
importTime: number;
|
|
73
59
|
keyring: {
|
|
74
60
|
type: string;
|
|
75
61
|
};
|
|
62
|
+
nameLastUpdatedAt?: number;
|
|
76
63
|
snap?: {
|
|
77
|
-
name: string;
|
|
78
64
|
id: string;
|
|
79
65
|
enabled: boolean;
|
|
66
|
+
name: string;
|
|
80
67
|
};
|
|
81
|
-
nameLastUpdatedAt?: number;
|
|
82
68
|
lastSelected?: number;
|
|
83
69
|
};
|
|
70
|
+
type: "eip155:eoa";
|
|
84
71
|
address: string;
|
|
85
72
|
scopes: import("@metamask/keyring-api").EthScope.Eoa[];
|
|
86
73
|
methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
|
|
74
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
75
|
+
entropy?: {
|
|
76
|
+
type: "mnemonic";
|
|
77
|
+
id: string;
|
|
78
|
+
derivationPath: string;
|
|
79
|
+
groupIndex: number;
|
|
80
|
+
} | {
|
|
81
|
+
type: "private-key";
|
|
82
|
+
} | {
|
|
83
|
+
type: "custom";
|
|
84
|
+
};
|
|
85
|
+
exportable?: boolean;
|
|
86
|
+
};
|
|
87
87
|
}, {
|
|
88
88
|
metadata: Struct<{
|
|
89
89
|
name: string;
|
|
@@ -91,20 +91,20 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
91
91
|
keyring: {
|
|
92
92
|
type: string;
|
|
93
93
|
};
|
|
94
|
+
nameLastUpdatedAt?: number;
|
|
94
95
|
snap?: {
|
|
95
|
-
name: string;
|
|
96
96
|
id: string;
|
|
97
97
|
enabled: boolean;
|
|
98
|
+
name: string;
|
|
98
99
|
};
|
|
99
|
-
nameLastUpdatedAt?: number;
|
|
100
100
|
lastSelected?: number;
|
|
101
101
|
}, {
|
|
102
102
|
name: Struct<string, null>;
|
|
103
103
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
104
104
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
105
|
-
name: string;
|
|
106
105
|
id: string;
|
|
107
106
|
enabled: boolean;
|
|
107
|
+
name: string;
|
|
108
108
|
}, {
|
|
109
109
|
id: Struct<string, null>;
|
|
110
110
|
enabled: Struct<boolean, null>;
|
|
@@ -145,38 +145,38 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
145
145
|
}, null>;
|
|
146
146
|
}>;
|
|
147
147
|
export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
148
|
-
type: "eip155:erc4337";
|
|
149
148
|
id: string;
|
|
150
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
151
|
-
entropy?: {
|
|
152
|
-
type: "mnemonic";
|
|
153
|
-
id: string;
|
|
154
|
-
derivationPath: string;
|
|
155
|
-
groupIndex: number;
|
|
156
|
-
} | {
|
|
157
|
-
type: "private-key";
|
|
158
|
-
} | {
|
|
159
|
-
type: "custom";
|
|
160
|
-
};
|
|
161
|
-
exportable?: boolean;
|
|
162
|
-
};
|
|
163
149
|
metadata: {
|
|
164
150
|
name: string;
|
|
165
151
|
importTime: number;
|
|
166
152
|
keyring: {
|
|
167
153
|
type: string;
|
|
168
154
|
};
|
|
155
|
+
nameLastUpdatedAt?: number;
|
|
169
156
|
snap?: {
|
|
170
|
-
name: string;
|
|
171
157
|
id: string;
|
|
172
158
|
enabled: boolean;
|
|
159
|
+
name: string;
|
|
173
160
|
};
|
|
174
|
-
nameLastUpdatedAt?: number;
|
|
175
161
|
lastSelected?: number;
|
|
176
162
|
};
|
|
163
|
+
type: "eip155:erc4337";
|
|
177
164
|
address: string;
|
|
178
165
|
scopes: `${string}:${string}`[];
|
|
179
166
|
methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
|
|
167
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
168
|
+
entropy?: {
|
|
169
|
+
type: "mnemonic";
|
|
170
|
+
id: string;
|
|
171
|
+
derivationPath: string;
|
|
172
|
+
groupIndex: number;
|
|
173
|
+
} | {
|
|
174
|
+
type: "private-key";
|
|
175
|
+
} | {
|
|
176
|
+
type: "custom";
|
|
177
|
+
};
|
|
178
|
+
exportable?: boolean;
|
|
179
|
+
};
|
|
180
180
|
}, {
|
|
181
181
|
metadata: Struct<{
|
|
182
182
|
name: string;
|
|
@@ -184,20 +184,20 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
184
184
|
keyring: {
|
|
185
185
|
type: string;
|
|
186
186
|
};
|
|
187
|
+
nameLastUpdatedAt?: number;
|
|
187
188
|
snap?: {
|
|
188
|
-
name: string;
|
|
189
189
|
id: string;
|
|
190
190
|
enabled: boolean;
|
|
191
|
+
name: string;
|
|
191
192
|
};
|
|
192
|
-
nameLastUpdatedAt?: number;
|
|
193
193
|
lastSelected?: number;
|
|
194
194
|
}, {
|
|
195
195
|
name: Struct<string, null>;
|
|
196
196
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
197
197
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
198
|
-
name: string;
|
|
199
198
|
id: string;
|
|
200
199
|
enabled: boolean;
|
|
200
|
+
name: string;
|
|
201
201
|
}, {
|
|
202
202
|
id: Struct<string, null>;
|
|
203
203
|
enabled: Struct<boolean, null>;
|
|
@@ -240,38 +240,38 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
240
240
|
}, null>;
|
|
241
241
|
}>;
|
|
242
242
|
export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
243
|
-
type: "bip122:p2pkh";
|
|
244
243
|
id: string;
|
|
245
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
246
|
-
entropy?: {
|
|
247
|
-
type: "mnemonic";
|
|
248
|
-
id: string;
|
|
249
|
-
derivationPath: string;
|
|
250
|
-
groupIndex: number;
|
|
251
|
-
} | {
|
|
252
|
-
type: "private-key";
|
|
253
|
-
} | {
|
|
254
|
-
type: "custom";
|
|
255
|
-
};
|
|
256
|
-
exportable?: boolean;
|
|
257
|
-
};
|
|
258
244
|
metadata: {
|
|
259
245
|
name: string;
|
|
260
246
|
importTime: number;
|
|
261
247
|
keyring: {
|
|
262
248
|
type: string;
|
|
263
249
|
};
|
|
250
|
+
nameLastUpdatedAt?: number;
|
|
264
251
|
snap?: {
|
|
265
|
-
name: string;
|
|
266
252
|
id: string;
|
|
267
253
|
enabled: boolean;
|
|
254
|
+
name: string;
|
|
268
255
|
};
|
|
269
|
-
nameLastUpdatedAt?: number;
|
|
270
256
|
lastSelected?: number;
|
|
271
257
|
};
|
|
258
|
+
type: "bip122:p2pkh";
|
|
272
259
|
address: string;
|
|
273
260
|
scopes: `${string}:${string}`[];
|
|
274
261
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
262
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
263
|
+
entropy?: {
|
|
264
|
+
type: "mnemonic";
|
|
265
|
+
id: string;
|
|
266
|
+
derivationPath: string;
|
|
267
|
+
groupIndex: number;
|
|
268
|
+
} | {
|
|
269
|
+
type: "private-key";
|
|
270
|
+
} | {
|
|
271
|
+
type: "custom";
|
|
272
|
+
};
|
|
273
|
+
exportable?: boolean;
|
|
274
|
+
};
|
|
275
275
|
}, {
|
|
276
276
|
metadata: Struct<{
|
|
277
277
|
name: string;
|
|
@@ -279,20 +279,20 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
279
279
|
keyring: {
|
|
280
280
|
type: string;
|
|
281
281
|
};
|
|
282
|
+
nameLastUpdatedAt?: number;
|
|
282
283
|
snap?: {
|
|
283
|
-
name: string;
|
|
284
284
|
id: string;
|
|
285
285
|
enabled: boolean;
|
|
286
|
+
name: string;
|
|
286
287
|
};
|
|
287
|
-
nameLastUpdatedAt?: number;
|
|
288
288
|
lastSelected?: number;
|
|
289
289
|
}, {
|
|
290
290
|
name: Struct<string, null>;
|
|
291
291
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
292
292
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
293
|
-
name: string;
|
|
294
293
|
id: string;
|
|
295
294
|
enabled: boolean;
|
|
295
|
+
name: string;
|
|
296
296
|
}, {
|
|
297
297
|
id: Struct<string, null>;
|
|
298
298
|
enabled: Struct<boolean, null>;
|
|
@@ -336,38 +336,38 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
336
336
|
}, null>;
|
|
337
337
|
}>;
|
|
338
338
|
export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
339
|
-
type: "bip122:p2sh";
|
|
340
339
|
id: string;
|
|
341
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
342
|
-
entropy?: {
|
|
343
|
-
type: "mnemonic";
|
|
344
|
-
id: string;
|
|
345
|
-
derivationPath: string;
|
|
346
|
-
groupIndex: number;
|
|
347
|
-
} | {
|
|
348
|
-
type: "private-key";
|
|
349
|
-
} | {
|
|
350
|
-
type: "custom";
|
|
351
|
-
};
|
|
352
|
-
exportable?: boolean;
|
|
353
|
-
};
|
|
354
340
|
metadata: {
|
|
355
341
|
name: string;
|
|
356
342
|
importTime: number;
|
|
357
343
|
keyring: {
|
|
358
344
|
type: string;
|
|
359
345
|
};
|
|
346
|
+
nameLastUpdatedAt?: number;
|
|
360
347
|
snap?: {
|
|
361
|
-
name: string;
|
|
362
348
|
id: string;
|
|
363
349
|
enabled: boolean;
|
|
350
|
+
name: string;
|
|
364
351
|
};
|
|
365
|
-
nameLastUpdatedAt?: number;
|
|
366
352
|
lastSelected?: number;
|
|
367
353
|
};
|
|
354
|
+
type: "bip122:p2sh";
|
|
368
355
|
address: string;
|
|
369
356
|
scopes: `${string}:${string}`[];
|
|
370
357
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
358
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
359
|
+
entropy?: {
|
|
360
|
+
type: "mnemonic";
|
|
361
|
+
id: string;
|
|
362
|
+
derivationPath: string;
|
|
363
|
+
groupIndex: number;
|
|
364
|
+
} | {
|
|
365
|
+
type: "private-key";
|
|
366
|
+
} | {
|
|
367
|
+
type: "custom";
|
|
368
|
+
};
|
|
369
|
+
exportable?: boolean;
|
|
370
|
+
};
|
|
371
371
|
}, {
|
|
372
372
|
metadata: Struct<{
|
|
373
373
|
name: string;
|
|
@@ -375,20 +375,20 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
375
375
|
keyring: {
|
|
376
376
|
type: string;
|
|
377
377
|
};
|
|
378
|
+
nameLastUpdatedAt?: number;
|
|
378
379
|
snap?: {
|
|
379
|
-
name: string;
|
|
380
380
|
id: string;
|
|
381
381
|
enabled: boolean;
|
|
382
|
+
name: string;
|
|
382
383
|
};
|
|
383
|
-
nameLastUpdatedAt?: number;
|
|
384
384
|
lastSelected?: number;
|
|
385
385
|
}, {
|
|
386
386
|
name: Struct<string, null>;
|
|
387
387
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
388
388
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
389
|
-
name: string;
|
|
390
389
|
id: string;
|
|
391
390
|
enabled: boolean;
|
|
391
|
+
name: string;
|
|
392
392
|
}, {
|
|
393
393
|
id: Struct<string, null>;
|
|
394
394
|
enabled: Struct<boolean, null>;
|
|
@@ -432,38 +432,38 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
432
432
|
}, null>;
|
|
433
433
|
}>;
|
|
434
434
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
435
|
-
type: "bip122:p2wpkh";
|
|
436
435
|
id: string;
|
|
437
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
438
|
-
entropy?: {
|
|
439
|
-
type: "mnemonic";
|
|
440
|
-
id: string;
|
|
441
|
-
derivationPath: string;
|
|
442
|
-
groupIndex: number;
|
|
443
|
-
} | {
|
|
444
|
-
type: "private-key";
|
|
445
|
-
} | {
|
|
446
|
-
type: "custom";
|
|
447
|
-
};
|
|
448
|
-
exportable?: boolean;
|
|
449
|
-
};
|
|
450
436
|
metadata: {
|
|
451
437
|
name: string;
|
|
452
438
|
importTime: number;
|
|
453
439
|
keyring: {
|
|
454
440
|
type: string;
|
|
455
441
|
};
|
|
442
|
+
nameLastUpdatedAt?: number;
|
|
456
443
|
snap?: {
|
|
457
|
-
name: string;
|
|
458
444
|
id: string;
|
|
459
445
|
enabled: boolean;
|
|
446
|
+
name: string;
|
|
460
447
|
};
|
|
461
|
-
nameLastUpdatedAt?: number;
|
|
462
448
|
lastSelected?: number;
|
|
463
449
|
};
|
|
450
|
+
type: "bip122:p2wpkh";
|
|
464
451
|
address: string;
|
|
465
452
|
scopes: `${string}:${string}`[];
|
|
466
453
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
454
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
455
|
+
entropy?: {
|
|
456
|
+
type: "mnemonic";
|
|
457
|
+
id: string;
|
|
458
|
+
derivationPath: string;
|
|
459
|
+
groupIndex: number;
|
|
460
|
+
} | {
|
|
461
|
+
type: "private-key";
|
|
462
|
+
} | {
|
|
463
|
+
type: "custom";
|
|
464
|
+
};
|
|
465
|
+
exportable?: boolean;
|
|
466
|
+
};
|
|
467
467
|
}, {
|
|
468
468
|
metadata: Struct<{
|
|
469
469
|
name: string;
|
|
@@ -471,20 +471,20 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
471
471
|
keyring: {
|
|
472
472
|
type: string;
|
|
473
473
|
};
|
|
474
|
+
nameLastUpdatedAt?: number;
|
|
474
475
|
snap?: {
|
|
475
|
-
name: string;
|
|
476
476
|
id: string;
|
|
477
477
|
enabled: boolean;
|
|
478
|
+
name: string;
|
|
478
479
|
};
|
|
479
|
-
nameLastUpdatedAt?: number;
|
|
480
480
|
lastSelected?: number;
|
|
481
481
|
}, {
|
|
482
482
|
name: Struct<string, null>;
|
|
483
483
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
484
484
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
485
|
-
name: string;
|
|
486
485
|
id: string;
|
|
487
486
|
enabled: boolean;
|
|
487
|
+
name: string;
|
|
488
488
|
}, {
|
|
489
489
|
id: Struct<string, null>;
|
|
490
490
|
enabled: Struct<boolean, null>;
|
|
@@ -528,38 +528,38 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
528
528
|
}, null>;
|
|
529
529
|
}>;
|
|
530
530
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
531
|
-
type: "bip122:p2tr";
|
|
532
531
|
id: string;
|
|
533
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
534
|
-
entropy?: {
|
|
535
|
-
type: "mnemonic";
|
|
536
|
-
id: string;
|
|
537
|
-
derivationPath: string;
|
|
538
|
-
groupIndex: number;
|
|
539
|
-
} | {
|
|
540
|
-
type: "private-key";
|
|
541
|
-
} | {
|
|
542
|
-
type: "custom";
|
|
543
|
-
};
|
|
544
|
-
exportable?: boolean;
|
|
545
|
-
};
|
|
546
532
|
metadata: {
|
|
547
533
|
name: string;
|
|
548
534
|
importTime: number;
|
|
549
535
|
keyring: {
|
|
550
536
|
type: string;
|
|
551
537
|
};
|
|
538
|
+
nameLastUpdatedAt?: number;
|
|
552
539
|
snap?: {
|
|
553
|
-
name: string;
|
|
554
540
|
id: string;
|
|
555
541
|
enabled: boolean;
|
|
542
|
+
name: string;
|
|
556
543
|
};
|
|
557
|
-
nameLastUpdatedAt?: number;
|
|
558
544
|
lastSelected?: number;
|
|
559
545
|
};
|
|
546
|
+
type: "bip122:p2tr";
|
|
560
547
|
address: string;
|
|
561
548
|
scopes: `${string}:${string}`[];
|
|
562
549
|
methods: import("@metamask/keyring-api").BtcMethod[];
|
|
550
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
551
|
+
entropy?: {
|
|
552
|
+
type: "mnemonic";
|
|
553
|
+
id: string;
|
|
554
|
+
derivationPath: string;
|
|
555
|
+
groupIndex: number;
|
|
556
|
+
} | {
|
|
557
|
+
type: "private-key";
|
|
558
|
+
} | {
|
|
559
|
+
type: "custom";
|
|
560
|
+
};
|
|
561
|
+
exportable?: boolean;
|
|
562
|
+
};
|
|
563
563
|
}, {
|
|
564
564
|
metadata: Struct<{
|
|
565
565
|
name: string;
|
|
@@ -567,20 +567,20 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
567
567
|
keyring: {
|
|
568
568
|
type: string;
|
|
569
569
|
};
|
|
570
|
+
nameLastUpdatedAt?: number;
|
|
570
571
|
snap?: {
|
|
571
|
-
name: string;
|
|
572
572
|
id: string;
|
|
573
573
|
enabled: boolean;
|
|
574
|
+
name: string;
|
|
574
575
|
};
|
|
575
|
-
nameLastUpdatedAt?: number;
|
|
576
576
|
lastSelected?: number;
|
|
577
577
|
}, {
|
|
578
578
|
name: Struct<string, null>;
|
|
579
579
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
580
580
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
581
|
-
name: string;
|
|
582
581
|
id: string;
|
|
583
582
|
enabled: boolean;
|
|
583
|
+
name: string;
|
|
584
584
|
}, {
|
|
585
585
|
id: Struct<string, null>;
|
|
586
586
|
enabled: Struct<boolean, null>;
|
|
@@ -624,38 +624,38 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
624
624
|
}, null>;
|
|
625
625
|
}>;
|
|
626
626
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
627
|
-
type: "solana:data-account";
|
|
628
627
|
id: string;
|
|
629
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
630
|
-
entropy?: {
|
|
631
|
-
type: "mnemonic";
|
|
632
|
-
id: string;
|
|
633
|
-
derivationPath: string;
|
|
634
|
-
groupIndex: number;
|
|
635
|
-
} | {
|
|
636
|
-
type: "private-key";
|
|
637
|
-
} | {
|
|
638
|
-
type: "custom";
|
|
639
|
-
};
|
|
640
|
-
exportable?: boolean;
|
|
641
|
-
};
|
|
642
628
|
metadata: {
|
|
643
629
|
name: string;
|
|
644
630
|
importTime: number;
|
|
645
631
|
keyring: {
|
|
646
632
|
type: string;
|
|
647
633
|
};
|
|
634
|
+
nameLastUpdatedAt?: number;
|
|
648
635
|
snap?: {
|
|
649
|
-
name: string;
|
|
650
636
|
id: string;
|
|
651
637
|
enabled: boolean;
|
|
638
|
+
name: string;
|
|
652
639
|
};
|
|
653
|
-
nameLastUpdatedAt?: number;
|
|
654
640
|
lastSelected?: number;
|
|
655
641
|
};
|
|
642
|
+
type: "solana:data-account";
|
|
656
643
|
address: string;
|
|
657
644
|
scopes: `${string}:${string}`[];
|
|
658
645
|
methods: import("@metamask/keyring-api").SolMethod[];
|
|
646
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
647
|
+
entropy?: {
|
|
648
|
+
type: "mnemonic";
|
|
649
|
+
id: string;
|
|
650
|
+
derivationPath: string;
|
|
651
|
+
groupIndex: number;
|
|
652
|
+
} | {
|
|
653
|
+
type: "private-key";
|
|
654
|
+
} | {
|
|
655
|
+
type: "custom";
|
|
656
|
+
};
|
|
657
|
+
exportable?: boolean;
|
|
658
|
+
};
|
|
659
659
|
}, {
|
|
660
660
|
metadata: Struct<{
|
|
661
661
|
name: string;
|
|
@@ -663,20 +663,20 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
663
663
|
keyring: {
|
|
664
664
|
type: string;
|
|
665
665
|
};
|
|
666
|
+
nameLastUpdatedAt?: number;
|
|
666
667
|
snap?: {
|
|
667
|
-
name: string;
|
|
668
668
|
id: string;
|
|
669
669
|
enabled: boolean;
|
|
670
|
+
name: string;
|
|
670
671
|
};
|
|
671
|
-
nameLastUpdatedAt?: number;
|
|
672
672
|
lastSelected?: number;
|
|
673
673
|
}, {
|
|
674
674
|
name: Struct<string, null>;
|
|
675
675
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
676
676
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
677
|
-
name: string;
|
|
678
677
|
id: string;
|
|
679
678
|
enabled: boolean;
|
|
679
|
+
name: string;
|
|
680
680
|
}, {
|
|
681
681
|
id: Struct<string, null>;
|
|
682
682
|
enabled: Struct<boolean, null>;
|
|
@@ -716,38 +716,38 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
716
716
|
}, null>;
|
|
717
717
|
}>;
|
|
718
718
|
export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
719
|
-
type: "tron:eoa";
|
|
720
719
|
id: string;
|
|
721
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
722
|
-
entropy?: {
|
|
723
|
-
type: "mnemonic";
|
|
724
|
-
id: string;
|
|
725
|
-
derivationPath: string;
|
|
726
|
-
groupIndex: number;
|
|
727
|
-
} | {
|
|
728
|
-
type: "private-key";
|
|
729
|
-
} | {
|
|
730
|
-
type: "custom";
|
|
731
|
-
};
|
|
732
|
-
exportable?: boolean;
|
|
733
|
-
};
|
|
734
720
|
metadata: {
|
|
735
721
|
name: string;
|
|
736
722
|
importTime: number;
|
|
737
723
|
keyring: {
|
|
738
724
|
type: string;
|
|
739
725
|
};
|
|
726
|
+
nameLastUpdatedAt?: number;
|
|
740
727
|
snap?: {
|
|
741
|
-
name: string;
|
|
742
728
|
id: string;
|
|
743
729
|
enabled: boolean;
|
|
730
|
+
name: string;
|
|
744
731
|
};
|
|
745
|
-
nameLastUpdatedAt?: number;
|
|
746
732
|
lastSelected?: number;
|
|
747
733
|
};
|
|
734
|
+
type: "tron:eoa";
|
|
748
735
|
address: string;
|
|
749
736
|
scopes: `${string}:${string}`[];
|
|
750
737
|
methods: import("@metamask/keyring-api").TrxMethod[];
|
|
738
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
739
|
+
entropy?: {
|
|
740
|
+
type: "mnemonic";
|
|
741
|
+
id: string;
|
|
742
|
+
derivationPath: string;
|
|
743
|
+
groupIndex: number;
|
|
744
|
+
} | {
|
|
745
|
+
type: "private-key";
|
|
746
|
+
} | {
|
|
747
|
+
type: "custom";
|
|
748
|
+
};
|
|
749
|
+
exportable?: boolean;
|
|
750
|
+
};
|
|
751
751
|
}, {
|
|
752
752
|
metadata: Struct<{
|
|
753
753
|
name: string;
|
|
@@ -755,20 +755,20 @@ export declare const InternalTrxEoaAccountStruct: Struct<{
|
|
|
755
755
|
keyring: {
|
|
756
756
|
type: string;
|
|
757
757
|
};
|
|
758
|
+
nameLastUpdatedAt?: number;
|
|
758
759
|
snap?: {
|
|
759
|
-
name: string;
|
|
760
760
|
id: string;
|
|
761
761
|
enabled: boolean;
|
|
762
|
+
name: string;
|
|
762
763
|
};
|
|
763
|
-
nameLastUpdatedAt?: number;
|
|
764
764
|
lastSelected?: number;
|
|
765
765
|
}, {
|
|
766
766
|
name: Struct<string, null>;
|
|
767
767
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
768
768
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
769
|
-
name: string;
|
|
770
769
|
id: string;
|
|
771
770
|
enabled: boolean;
|
|
771
|
+
name: string;
|
|
772
772
|
}, {
|
|
773
773
|
id: Struct<string, null>;
|
|
774
774
|
enabled: Struct<boolean, null>;
|
|
@@ -817,38 +817,38 @@ export type InternalTrxEoaAccount = Infer<typeof InternalTrxEoaAccountStruct>;
|
|
|
817
817
|
export declare const InternalAccountStructs: Record<string, Struct<InternalEthEoaAccount> | Struct<InternalEthErc4337Account> | Struct<InternalBtcP2pkhAccount> | Struct<InternalBtcP2shAccount> | Struct<InternalBtcP2wpkhAccount> | Struct<InternalBtcP2trAccount> | Struct<InternalSolDataAccount> | Struct<InternalTrxEoaAccount>>;
|
|
818
818
|
export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Account | InternalBtcP2pkhAccount | InternalBtcP2shAccount | InternalBtcP2wpkhAccount | InternalBtcP2trAccount | InternalSolDataAccount | InternalTrxEoaAccount;
|
|
819
819
|
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";
|
|
821
820
|
id: string;
|
|
822
|
-
options: Record<string, import("@metamask/utils").Json> & {
|
|
823
|
-
entropy?: {
|
|
824
|
-
type: "mnemonic";
|
|
825
|
-
id: string;
|
|
826
|
-
derivationPath: string;
|
|
827
|
-
groupIndex: number;
|
|
828
|
-
} | {
|
|
829
|
-
type: "private-key";
|
|
830
|
-
} | {
|
|
831
|
-
type: "custom";
|
|
832
|
-
};
|
|
833
|
-
exportable?: boolean;
|
|
834
|
-
};
|
|
835
821
|
metadata: {
|
|
836
822
|
name: string;
|
|
837
823
|
importTime: number;
|
|
838
824
|
keyring: {
|
|
839
825
|
type: string;
|
|
840
826
|
};
|
|
827
|
+
nameLastUpdatedAt?: number;
|
|
841
828
|
snap?: {
|
|
842
|
-
name: string;
|
|
843
829
|
id: string;
|
|
844
830
|
enabled: boolean;
|
|
831
|
+
name: string;
|
|
845
832
|
};
|
|
846
|
-
nameLastUpdatedAt?: number;
|
|
847
833
|
lastSelected?: number;
|
|
848
834
|
};
|
|
835
|
+
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account";
|
|
849
836
|
address: string;
|
|
850
837
|
scopes: `${string}:${string}`[];
|
|
851
838
|
methods: string[];
|
|
839
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
|
840
|
+
entropy?: {
|
|
841
|
+
type: "mnemonic";
|
|
842
|
+
id: string;
|
|
843
|
+
derivationPath: string;
|
|
844
|
+
groupIndex: number;
|
|
845
|
+
} | {
|
|
846
|
+
type: "private-key";
|
|
847
|
+
} | {
|
|
848
|
+
type: "custom";
|
|
849
|
+
};
|
|
850
|
+
exportable?: boolean;
|
|
851
|
+
};
|
|
852
852
|
}, {
|
|
853
853
|
metadata: Struct<{
|
|
854
854
|
name: string;
|
|
@@ -856,20 +856,20 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
856
856
|
keyring: {
|
|
857
857
|
type: string;
|
|
858
858
|
};
|
|
859
|
+
nameLastUpdatedAt?: number;
|
|
859
860
|
snap?: {
|
|
860
|
-
name: string;
|
|
861
861
|
id: string;
|
|
862
862
|
enabled: boolean;
|
|
863
|
+
name: string;
|
|
863
864
|
};
|
|
864
|
-
nameLastUpdatedAt?: number;
|
|
865
865
|
lastSelected?: number;
|
|
866
866
|
}, {
|
|
867
867
|
name: Struct<string, null>;
|
|
868
868
|
nameLastUpdatedAt: Struct<number | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
869
869
|
snap: Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
|
|
870
|
-
name: string;
|
|
871
870
|
id: string;
|
|
872
871
|
enabled: boolean;
|
|
872
|
+
name: string;
|
|
873
873
|
}, {
|
|
874
874
|
id: Struct<string, null>;
|
|
875
875
|
enabled: Struct<boolean, null>;
|