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