@metamask-previews/keyring-internal-api 6.2.0-e86c8ec → 6.2.0-f024bb4
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/types.d.cts +16 -176
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +16 -176
- package/dist/types.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.cts
CHANGED
|
@@ -54,17 +54,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
54
54
|
export declare const InternalEthEoaAccountStruct: Struct<{
|
|
55
55
|
type: "eip155:eoa";
|
|
56
56
|
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
|
-
exportable?: boolean;
|
|
67
|
-
};
|
|
57
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
68
58
|
metadata: {
|
|
69
59
|
name: string;
|
|
70
60
|
importTime: number;
|
|
@@ -128,32 +118,12 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
128
118
|
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
129
119
|
}>>;
|
|
130
120
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
131
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
132
|
-
entropy?: {
|
|
133
|
-
type: "mnemonic";
|
|
134
|
-
id: string;
|
|
135
|
-
derivationPath: string;
|
|
136
|
-
groupIndex: number;
|
|
137
|
-
} | {
|
|
138
|
-
type: "private-key";
|
|
139
|
-
};
|
|
140
|
-
exportable?: boolean;
|
|
141
|
-
}, null>;
|
|
121
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
142
122
|
}>;
|
|
143
123
|
export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
144
124
|
type: "eip155:erc4337";
|
|
145
125
|
id: string;
|
|
146
|
-
options: Record<string, import("@metamask/utils").Json
|
|
147
|
-
entropy?: {
|
|
148
|
-
type: "mnemonic";
|
|
149
|
-
id: string;
|
|
150
|
-
derivationPath: string;
|
|
151
|
-
groupIndex: number;
|
|
152
|
-
} | {
|
|
153
|
-
type: "private-key";
|
|
154
|
-
};
|
|
155
|
-
exportable?: boolean;
|
|
156
|
-
};
|
|
126
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
157
127
|
metadata: {
|
|
158
128
|
name: string;
|
|
159
129
|
importTime: number;
|
|
@@ -219,32 +189,12 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
219
189
|
eth_signUserOperation: "eth_signUserOperation";
|
|
220
190
|
}>>;
|
|
221
191
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
222
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
223
|
-
entropy?: {
|
|
224
|
-
type: "mnemonic";
|
|
225
|
-
id: string;
|
|
226
|
-
derivationPath: string;
|
|
227
|
-
groupIndex: number;
|
|
228
|
-
} | {
|
|
229
|
-
type: "private-key";
|
|
230
|
-
};
|
|
231
|
-
exportable?: boolean;
|
|
232
|
-
}, null>;
|
|
192
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
233
193
|
}>;
|
|
234
194
|
export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
235
195
|
type: "bip122:p2pkh";
|
|
236
196
|
id: string;
|
|
237
|
-
options: Record<string, import("@metamask/utils").Json
|
|
238
|
-
entropy?: {
|
|
239
|
-
type: "mnemonic";
|
|
240
|
-
id: string;
|
|
241
|
-
derivationPath: string;
|
|
242
|
-
groupIndex: number;
|
|
243
|
-
} | {
|
|
244
|
-
type: "private-key";
|
|
245
|
-
};
|
|
246
|
-
exportable?: boolean;
|
|
247
|
-
};
|
|
197
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
248
198
|
metadata: {
|
|
249
199
|
name: string;
|
|
250
200
|
importTime: number;
|
|
@@ -303,32 +253,12 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
303
253
|
sendBitcoin: "sendBitcoin";
|
|
304
254
|
}>>;
|
|
305
255
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
306
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
307
|
-
entropy?: {
|
|
308
|
-
type: "mnemonic";
|
|
309
|
-
id: string;
|
|
310
|
-
derivationPath: string;
|
|
311
|
-
groupIndex: number;
|
|
312
|
-
} | {
|
|
313
|
-
type: "private-key";
|
|
314
|
-
};
|
|
315
|
-
exportable?: boolean;
|
|
316
|
-
}, null>;
|
|
256
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
317
257
|
}>;
|
|
318
258
|
export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
319
259
|
type: "bip122:p2sh";
|
|
320
260
|
id: string;
|
|
321
|
-
options: Record<string, import("@metamask/utils").Json
|
|
322
|
-
entropy?: {
|
|
323
|
-
type: "mnemonic";
|
|
324
|
-
id: string;
|
|
325
|
-
derivationPath: string;
|
|
326
|
-
groupIndex: number;
|
|
327
|
-
} | {
|
|
328
|
-
type: "private-key";
|
|
329
|
-
};
|
|
330
|
-
exportable?: boolean;
|
|
331
|
-
};
|
|
261
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
332
262
|
metadata: {
|
|
333
263
|
name: string;
|
|
334
264
|
importTime: number;
|
|
@@ -387,32 +317,12 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
387
317
|
sendBitcoin: "sendBitcoin";
|
|
388
318
|
}>>;
|
|
389
319
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
390
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
391
|
-
entropy?: {
|
|
392
|
-
type: "mnemonic";
|
|
393
|
-
id: string;
|
|
394
|
-
derivationPath: string;
|
|
395
|
-
groupIndex: number;
|
|
396
|
-
} | {
|
|
397
|
-
type: "private-key";
|
|
398
|
-
};
|
|
399
|
-
exportable?: boolean;
|
|
400
|
-
}, null>;
|
|
320
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
401
321
|
}>;
|
|
402
322
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
403
323
|
type: "bip122:p2wpkh";
|
|
404
324
|
id: string;
|
|
405
|
-
options: Record<string, import("@metamask/utils").Json
|
|
406
|
-
entropy?: {
|
|
407
|
-
type: "mnemonic";
|
|
408
|
-
id: string;
|
|
409
|
-
derivationPath: string;
|
|
410
|
-
groupIndex: number;
|
|
411
|
-
} | {
|
|
412
|
-
type: "private-key";
|
|
413
|
-
};
|
|
414
|
-
exportable?: boolean;
|
|
415
|
-
};
|
|
325
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
416
326
|
metadata: {
|
|
417
327
|
name: string;
|
|
418
328
|
importTime: number;
|
|
@@ -471,32 +381,12 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
471
381
|
sendBitcoin: "sendBitcoin";
|
|
472
382
|
}>>;
|
|
473
383
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
474
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
475
|
-
entropy?: {
|
|
476
|
-
type: "mnemonic";
|
|
477
|
-
id: string;
|
|
478
|
-
derivationPath: string;
|
|
479
|
-
groupIndex: number;
|
|
480
|
-
} | {
|
|
481
|
-
type: "private-key";
|
|
482
|
-
};
|
|
483
|
-
exportable?: boolean;
|
|
484
|
-
}, null>;
|
|
384
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
485
385
|
}>;
|
|
486
386
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
487
387
|
type: "bip122:p2tr";
|
|
488
388
|
id: string;
|
|
489
|
-
options: Record<string, import("@metamask/utils").Json
|
|
490
|
-
entropy?: {
|
|
491
|
-
type: "mnemonic";
|
|
492
|
-
id: string;
|
|
493
|
-
derivationPath: string;
|
|
494
|
-
groupIndex: number;
|
|
495
|
-
} | {
|
|
496
|
-
type: "private-key";
|
|
497
|
-
};
|
|
498
|
-
exportable?: boolean;
|
|
499
|
-
};
|
|
389
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
500
390
|
metadata: {
|
|
501
391
|
name: string;
|
|
502
392
|
importTime: number;
|
|
@@ -555,32 +445,12 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
555
445
|
sendBitcoin: "sendBitcoin";
|
|
556
446
|
}>>;
|
|
557
447
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
558
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
559
|
-
entropy?: {
|
|
560
|
-
type: "mnemonic";
|
|
561
|
-
id: string;
|
|
562
|
-
derivationPath: string;
|
|
563
|
-
groupIndex: number;
|
|
564
|
-
} | {
|
|
565
|
-
type: "private-key";
|
|
566
|
-
};
|
|
567
|
-
exportable?: boolean;
|
|
568
|
-
}, null>;
|
|
448
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
569
449
|
}>;
|
|
570
450
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
571
451
|
type: "solana:data-account";
|
|
572
452
|
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
|
-
exportable?: boolean;
|
|
583
|
-
};
|
|
453
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
584
454
|
metadata: {
|
|
585
455
|
name: string;
|
|
586
456
|
importTime: number;
|
|
@@ -643,17 +513,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
643
513
|
signIn: import("@metamask/keyring-api").SolMethod.SignIn;
|
|
644
514
|
}>>;
|
|
645
515
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
646
|
-
options: import("@metamask/superstruct").Struct<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
|
-
exportable?: boolean;
|
|
656
|
-
}, null>;
|
|
516
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
657
517
|
}>;
|
|
658
518
|
export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
|
|
659
519
|
export type InternalEthErc4337Account = Infer<typeof InternalEthErc4337AccountStruct>;
|
|
@@ -667,17 +527,7 @@ export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Acc
|
|
|
667
527
|
export declare const InternalAccountStruct: Struct<{
|
|
668
528
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
669
529
|
id: string;
|
|
670
|
-
options: Record<string, import("@metamask/utils").Json
|
|
671
|
-
entropy?: {
|
|
672
|
-
type: "mnemonic";
|
|
673
|
-
id: string;
|
|
674
|
-
derivationPath: string;
|
|
675
|
-
groupIndex: number;
|
|
676
|
-
} | {
|
|
677
|
-
type: "private-key";
|
|
678
|
-
};
|
|
679
|
-
exportable?: boolean;
|
|
680
|
-
};
|
|
530
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
681
531
|
metadata: {
|
|
682
532
|
name: string;
|
|
683
533
|
importTime: number;
|
|
@@ -741,17 +591,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
741
591
|
}>;
|
|
742
592
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
743
593
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
744
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
745
|
-
entropy?: {
|
|
746
|
-
type: "mnemonic";
|
|
747
|
-
id: string;
|
|
748
|
-
derivationPath: string;
|
|
749
|
-
groupIndex: number;
|
|
750
|
-
} | {
|
|
751
|
-
type: "private-key";
|
|
752
|
-
};
|
|
753
|
-
exportable?: boolean;
|
|
754
|
-
}, null>;
|
|
594
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
755
595
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
756
596
|
}>;
|
|
757
597
|
/**
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8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AsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAC1C,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACJ,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,yBAAyB,CAAC,GACjC,MAAM,CAAC,uBAAuB,CAAC,GAC/B,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,GAC9B,MAAM,CAAC,sBAAsB,CAAC,CASjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/types.d.mts
CHANGED
|
@@ -54,17 +54,7 @@ export declare const InternalAccountMetadataStruct: Struct<{
|
|
|
54
54
|
export declare const InternalEthEoaAccountStruct: Struct<{
|
|
55
55
|
type: "eip155:eoa";
|
|
56
56
|
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
|
-
exportable?: boolean;
|
|
67
|
-
};
|
|
57
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
68
58
|
metadata: {
|
|
69
59
|
name: string;
|
|
70
60
|
importTime: number;
|
|
@@ -128,32 +118,12 @@ export declare const InternalEthEoaAccountStruct: Struct<{
|
|
|
128
118
|
eth_signTypedData_v4: "eth_signTypedData_v4";
|
|
129
119
|
}>>;
|
|
130
120
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
131
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
132
|
-
entropy?: {
|
|
133
|
-
type: "mnemonic";
|
|
134
|
-
id: string;
|
|
135
|
-
derivationPath: string;
|
|
136
|
-
groupIndex: number;
|
|
137
|
-
} | {
|
|
138
|
-
type: "private-key";
|
|
139
|
-
};
|
|
140
|
-
exportable?: boolean;
|
|
141
|
-
}, null>;
|
|
121
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
142
122
|
}>;
|
|
143
123
|
export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
144
124
|
type: "eip155:erc4337";
|
|
145
125
|
id: string;
|
|
146
|
-
options: Record<string, import("@metamask/utils").Json
|
|
147
|
-
entropy?: {
|
|
148
|
-
type: "mnemonic";
|
|
149
|
-
id: string;
|
|
150
|
-
derivationPath: string;
|
|
151
|
-
groupIndex: number;
|
|
152
|
-
} | {
|
|
153
|
-
type: "private-key";
|
|
154
|
-
};
|
|
155
|
-
exportable?: boolean;
|
|
156
|
-
};
|
|
126
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
157
127
|
metadata: {
|
|
158
128
|
name: string;
|
|
159
129
|
importTime: number;
|
|
@@ -219,32 +189,12 @@ export declare const InternalEthErc4337AccountStruct: Struct<{
|
|
|
219
189
|
eth_signUserOperation: "eth_signUserOperation";
|
|
220
190
|
}>>;
|
|
221
191
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
222
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
223
|
-
entropy?: {
|
|
224
|
-
type: "mnemonic";
|
|
225
|
-
id: string;
|
|
226
|
-
derivationPath: string;
|
|
227
|
-
groupIndex: number;
|
|
228
|
-
} | {
|
|
229
|
-
type: "private-key";
|
|
230
|
-
};
|
|
231
|
-
exportable?: boolean;
|
|
232
|
-
}, null>;
|
|
192
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
233
193
|
}>;
|
|
234
194
|
export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
235
195
|
type: "bip122:p2pkh";
|
|
236
196
|
id: string;
|
|
237
|
-
options: Record<string, import("@metamask/utils").Json
|
|
238
|
-
entropy?: {
|
|
239
|
-
type: "mnemonic";
|
|
240
|
-
id: string;
|
|
241
|
-
derivationPath: string;
|
|
242
|
-
groupIndex: number;
|
|
243
|
-
} | {
|
|
244
|
-
type: "private-key";
|
|
245
|
-
};
|
|
246
|
-
exportable?: boolean;
|
|
247
|
-
};
|
|
197
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
248
198
|
metadata: {
|
|
249
199
|
name: string;
|
|
250
200
|
importTime: number;
|
|
@@ -303,32 +253,12 @@ export declare const InternalBtcP2pkhAccountStruct: Struct<{
|
|
|
303
253
|
sendBitcoin: "sendBitcoin";
|
|
304
254
|
}>>;
|
|
305
255
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
306
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
307
|
-
entropy?: {
|
|
308
|
-
type: "mnemonic";
|
|
309
|
-
id: string;
|
|
310
|
-
derivationPath: string;
|
|
311
|
-
groupIndex: number;
|
|
312
|
-
} | {
|
|
313
|
-
type: "private-key";
|
|
314
|
-
};
|
|
315
|
-
exportable?: boolean;
|
|
316
|
-
}, null>;
|
|
256
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
317
257
|
}>;
|
|
318
258
|
export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
319
259
|
type: "bip122:p2sh";
|
|
320
260
|
id: string;
|
|
321
|
-
options: Record<string, import("@metamask/utils").Json
|
|
322
|
-
entropy?: {
|
|
323
|
-
type: "mnemonic";
|
|
324
|
-
id: string;
|
|
325
|
-
derivationPath: string;
|
|
326
|
-
groupIndex: number;
|
|
327
|
-
} | {
|
|
328
|
-
type: "private-key";
|
|
329
|
-
};
|
|
330
|
-
exportable?: boolean;
|
|
331
|
-
};
|
|
261
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
332
262
|
metadata: {
|
|
333
263
|
name: string;
|
|
334
264
|
importTime: number;
|
|
@@ -387,32 +317,12 @@ export declare const InternalBtcP2shAccountStruct: Struct<{
|
|
|
387
317
|
sendBitcoin: "sendBitcoin";
|
|
388
318
|
}>>;
|
|
389
319
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
390
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
391
|
-
entropy?: {
|
|
392
|
-
type: "mnemonic";
|
|
393
|
-
id: string;
|
|
394
|
-
derivationPath: string;
|
|
395
|
-
groupIndex: number;
|
|
396
|
-
} | {
|
|
397
|
-
type: "private-key";
|
|
398
|
-
};
|
|
399
|
-
exportable?: boolean;
|
|
400
|
-
}, null>;
|
|
320
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
401
321
|
}>;
|
|
402
322
|
export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
403
323
|
type: "bip122:p2wpkh";
|
|
404
324
|
id: string;
|
|
405
|
-
options: Record<string, import("@metamask/utils").Json
|
|
406
|
-
entropy?: {
|
|
407
|
-
type: "mnemonic";
|
|
408
|
-
id: string;
|
|
409
|
-
derivationPath: string;
|
|
410
|
-
groupIndex: number;
|
|
411
|
-
} | {
|
|
412
|
-
type: "private-key";
|
|
413
|
-
};
|
|
414
|
-
exportable?: boolean;
|
|
415
|
-
};
|
|
325
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
416
326
|
metadata: {
|
|
417
327
|
name: string;
|
|
418
328
|
importTime: number;
|
|
@@ -471,32 +381,12 @@ export declare const InternalBtcP2wpkhAccountStruct: Struct<{
|
|
|
471
381
|
sendBitcoin: "sendBitcoin";
|
|
472
382
|
}>>;
|
|
473
383
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
474
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
475
|
-
entropy?: {
|
|
476
|
-
type: "mnemonic";
|
|
477
|
-
id: string;
|
|
478
|
-
derivationPath: string;
|
|
479
|
-
groupIndex: number;
|
|
480
|
-
} | {
|
|
481
|
-
type: "private-key";
|
|
482
|
-
};
|
|
483
|
-
exportable?: boolean;
|
|
484
|
-
}, null>;
|
|
384
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
485
385
|
}>;
|
|
486
386
|
export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
487
387
|
type: "bip122:p2tr";
|
|
488
388
|
id: string;
|
|
489
|
-
options: Record<string, import("@metamask/utils").Json
|
|
490
|
-
entropy?: {
|
|
491
|
-
type: "mnemonic";
|
|
492
|
-
id: string;
|
|
493
|
-
derivationPath: string;
|
|
494
|
-
groupIndex: number;
|
|
495
|
-
} | {
|
|
496
|
-
type: "private-key";
|
|
497
|
-
};
|
|
498
|
-
exportable?: boolean;
|
|
499
|
-
};
|
|
389
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
500
390
|
metadata: {
|
|
501
391
|
name: string;
|
|
502
392
|
importTime: number;
|
|
@@ -555,32 +445,12 @@ export declare const InternalBtcP2trAccountStruct: Struct<{
|
|
|
555
445
|
sendBitcoin: "sendBitcoin";
|
|
556
446
|
}>>;
|
|
557
447
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
558
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
559
|
-
entropy?: {
|
|
560
|
-
type: "mnemonic";
|
|
561
|
-
id: string;
|
|
562
|
-
derivationPath: string;
|
|
563
|
-
groupIndex: number;
|
|
564
|
-
} | {
|
|
565
|
-
type: "private-key";
|
|
566
|
-
};
|
|
567
|
-
exportable?: boolean;
|
|
568
|
-
}, null>;
|
|
448
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
569
449
|
}>;
|
|
570
450
|
export declare const InternalSolDataAccountStruct: Struct<{
|
|
571
451
|
type: "solana:data-account";
|
|
572
452
|
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
|
-
exportable?: boolean;
|
|
583
|
-
};
|
|
453
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
584
454
|
metadata: {
|
|
585
455
|
name: string;
|
|
586
456
|
importTime: number;
|
|
@@ -643,17 +513,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
|
|
|
643
513
|
signIn: import("@metamask/keyring-api").SolMethod.SignIn;
|
|
644
514
|
}>>;
|
|
645
515
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
646
|
-
options: import("@metamask/superstruct").Struct<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
|
-
exportable?: boolean;
|
|
656
|
-
}, null>;
|
|
516
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
657
517
|
}>;
|
|
658
518
|
export type InternalEthEoaAccount = Infer<typeof InternalEthEoaAccountStruct>;
|
|
659
519
|
export type InternalEthErc4337Account = Infer<typeof InternalEthErc4337AccountStruct>;
|
|
@@ -667,17 +527,7 @@ export type InternalAccountTypes = InternalEthEoaAccount | InternalEthErc4337Acc
|
|
|
667
527
|
export declare const InternalAccountStruct: Struct<{
|
|
668
528
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
|
669
529
|
id: string;
|
|
670
|
-
options: Record<string, import("@metamask/utils").Json
|
|
671
|
-
entropy?: {
|
|
672
|
-
type: "mnemonic";
|
|
673
|
-
id: string;
|
|
674
|
-
derivationPath: string;
|
|
675
|
-
groupIndex: number;
|
|
676
|
-
} | {
|
|
677
|
-
type: "private-key";
|
|
678
|
-
};
|
|
679
|
-
exportable?: boolean;
|
|
680
|
-
};
|
|
530
|
+
options: Record<string, import("@metamask/utils").Json>;
|
|
681
531
|
metadata: {
|
|
682
532
|
name: string;
|
|
683
533
|
importTime: number;
|
|
@@ -741,17 +591,7 @@ export declare const InternalAccountStruct: Struct<{
|
|
|
741
591
|
}>;
|
|
742
592
|
address: import("@metamask/superstruct").Struct<string, null>;
|
|
743
593
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
|
744
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
|
745
|
-
entropy?: {
|
|
746
|
-
type: "mnemonic";
|
|
747
|
-
id: string;
|
|
748
|
-
derivationPath: string;
|
|
749
|
-
groupIndex: number;
|
|
750
|
-
} | {
|
|
751
|
-
type: "private-key";
|
|
752
|
-
};
|
|
753
|
-
exportable?: boolean;
|
|
754
|
-
}, null>;
|
|
594
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
755
595
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
756
596
|
}>;
|
|
757
597
|
/**
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAQf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;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