@metamask/keyring-api 18.0.0 → 19.0.0
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 +9 -1
- package/dist/api/account-options.cjs +122 -0
- package/dist/api/account-options.cjs.map +1 -0
- package/dist/api/account-options.d.cts +131 -0
- package/dist/api/account-options.d.cts.map +1 -0
- package/dist/api/account-options.d.mts +131 -0
- package/dist/api/account-options.d.mts.map +1 -0
- package/dist/api/account-options.mjs +119 -0
- package/dist/api/account-options.mjs.map +1 -0
- package/dist/api/account.cjs +2 -2
- package/dist/api/account.cjs.map +1 -1
- package/dist/api/account.d.cts +22 -2
- package/dist/api/account.d.cts.map +1 -1
- package/dist/api/account.d.mts +22 -2
- package/dist/api/account.d.mts.map +1 -1
- package/dist/api/account.mjs +3 -3
- package/dist/api/account.mjs.map +1 -1
- package/dist/api/discovery.d.cts +2 -2
- package/dist/api/discovery.d.mts +2 -2
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.cts.map +1 -1
- package/dist/api/index.d.mts +1 -0
- package/dist/api/index.d.mts.map +1 -1
- package/dist/api/index.mjs +1 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/btc/types.d.cts +88 -8
- package/dist/btc/types.d.cts.map +1 -1
- package/dist/btc/types.d.mts +88 -8
- package/dist/btc/types.d.mts.map +1 -1
- package/dist/eth/types.d.cts +44 -4
- package/dist/eth/types.d.cts.map +1 -1
- package/dist/eth/types.d.mts +44 -4
- package/dist/eth/types.d.mts.map +1 -1
- package/dist/events.d.cts +88 -8
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +88 -8
- package/dist/events.d.mts.map +1 -1
- package/dist/rpc.d.cts +125 -15
- package/dist/rpc.d.cts.map +1 -1
- package/dist/rpc.d.mts +125 -15
- package/dist/rpc.d.mts.map +1 -1
- package/dist/sol/types.d.cts +22 -2
- package/dist/sol/types.d.cts.map +1 -1
- package/dist/sol/types.d.mts +22 -2
- package/dist/sol/types.d.mts.map +1 -1
- package/package.json +3 -3
package/dist/rpc.d.mts
CHANGED
@@ -41,14 +41,34 @@ export type ListAccountsRequest = Infer<typeof ListAccountsRequestStruct>;
|
|
41
41
|
export declare const ListAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
42
42
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
43
43
|
id: string;
|
44
|
-
options: Record<string, import("@metamask/utils").Json
|
44
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
45
|
+
entropy?: {
|
46
|
+
type: "mnemonic";
|
47
|
+
id: string;
|
48
|
+
derivationPath: string;
|
49
|
+
groupIndex: number;
|
50
|
+
} | {
|
51
|
+
type: "private-key";
|
52
|
+
};
|
53
|
+
exportable?: boolean;
|
54
|
+
};
|
45
55
|
address: string;
|
46
56
|
scopes: `${string}:${string}`[];
|
47
57
|
methods: string[];
|
48
58
|
}[], import("@metamask/superstruct").Struct<{
|
49
59
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
50
60
|
id: string;
|
51
|
-
options: Record<string, import("@metamask/utils").Json
|
61
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
62
|
+
entropy?: {
|
63
|
+
type: "mnemonic";
|
64
|
+
id: string;
|
65
|
+
derivationPath: string;
|
66
|
+
groupIndex: number;
|
67
|
+
} | {
|
68
|
+
type: "private-key";
|
69
|
+
};
|
70
|
+
exportable?: boolean;
|
71
|
+
};
|
52
72
|
address: string;
|
53
73
|
scopes: `${string}:${string}`[];
|
54
74
|
methods: string[];
|
@@ -65,7 +85,17 @@ export declare const ListAccountsResponseStruct: import("@metamask/superstruct")
|
|
65
85
|
}>;
|
66
86
|
address: import("@metamask/superstruct").Struct<string, null>;
|
67
87
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
68
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
88
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
89
|
+
entropy?: {
|
90
|
+
type: "mnemonic";
|
91
|
+
id: string;
|
92
|
+
derivationPath: string;
|
93
|
+
groupIndex: number;
|
94
|
+
} | {
|
95
|
+
type: "private-key";
|
96
|
+
};
|
97
|
+
exportable?: boolean;
|
98
|
+
}, null>;
|
69
99
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
70
100
|
}>>;
|
71
101
|
export type ListAccountsResponse = Infer<typeof ListAccountsResponseStruct>;
|
@@ -90,7 +120,17 @@ export type GetAccountRequest = Infer<typeof GetAccountRequestStruct>;
|
|
90
120
|
export declare const GetAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
91
121
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
92
122
|
id: string;
|
93
|
-
options: Record<string, import("@metamask/utils").Json
|
123
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
124
|
+
entropy?: {
|
125
|
+
type: "mnemonic";
|
126
|
+
id: string;
|
127
|
+
derivationPath: string;
|
128
|
+
groupIndex: number;
|
129
|
+
} | {
|
130
|
+
type: "private-key";
|
131
|
+
};
|
132
|
+
exportable?: boolean;
|
133
|
+
};
|
94
134
|
address: string;
|
95
135
|
scopes: `${string}:${string}`[];
|
96
136
|
methods: string[];
|
@@ -107,7 +147,17 @@ export declare const GetAccountResponseStruct: import("@metamask/superstruct").S
|
|
107
147
|
}>;
|
108
148
|
address: import("@metamask/superstruct").Struct<string, null>;
|
109
149
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
110
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
150
|
+
options: import("@metamask/superstruct").Struct<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
|
+
exportable?: boolean;
|
160
|
+
}, null>;
|
111
161
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
112
162
|
}>;
|
113
163
|
export type GetAccountResponse = Infer<typeof GetAccountResponseStruct>;
|
@@ -132,7 +182,17 @@ export type CreateAccountRequest = Infer<typeof CreateAccountRequestStruct>;
|
|
132
182
|
export declare const CreateAccountResponseStruct: import("@metamask/superstruct").Struct<{
|
133
183
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
134
184
|
id: string;
|
135
|
-
options: Record<string, import("@metamask/utils").Json
|
185
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
186
|
+
entropy?: {
|
187
|
+
type: "mnemonic";
|
188
|
+
id: string;
|
189
|
+
derivationPath: string;
|
190
|
+
groupIndex: number;
|
191
|
+
} | {
|
192
|
+
type: "private-key";
|
193
|
+
};
|
194
|
+
exportable?: boolean;
|
195
|
+
};
|
136
196
|
address: string;
|
137
197
|
scopes: `${string}:${string}`[];
|
138
198
|
methods: string[];
|
@@ -149,7 +209,17 @@ export declare const CreateAccountResponseStruct: import("@metamask/superstruct"
|
|
149
209
|
}>;
|
150
210
|
address: import("@metamask/superstruct").Struct<string, null>;
|
151
211
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
152
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
212
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
213
|
+
entropy?: {
|
214
|
+
type: "mnemonic";
|
215
|
+
id: string;
|
216
|
+
derivationPath: string;
|
217
|
+
groupIndex: number;
|
218
|
+
} | {
|
219
|
+
type: "private-key";
|
220
|
+
};
|
221
|
+
exportable?: boolean;
|
222
|
+
}, null>;
|
153
223
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
154
224
|
}>;
|
155
225
|
export type CreateAccountResponse = Infer<typeof CreateAccountResponseStruct>;
|
@@ -158,16 +228,16 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
158
228
|
id: string | number | null;
|
159
229
|
jsonrpc: "2.0";
|
160
230
|
params: {
|
231
|
+
groupIndex: number;
|
161
232
|
scopes: `${string}:${string}`[];
|
162
233
|
entropySource: string;
|
163
|
-
groupIndex: number;
|
164
234
|
};
|
165
235
|
}, {
|
166
236
|
method: import("@metamask/superstruct").Struct<"keyring_discoverAccounts", "keyring_discoverAccounts">;
|
167
237
|
params: import("@metamask/superstruct").Struct<{
|
238
|
+
groupIndex: number;
|
168
239
|
scopes: `${string}:${string}`[];
|
169
240
|
entropySource: string;
|
170
|
-
groupIndex: number;
|
171
241
|
}, {
|
172
242
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
173
243
|
entropySource: import("@metamask/superstruct").Struct<string, null>;
|
@@ -179,12 +249,12 @@ export declare const DiscoverAccountsRequestStruct: import("@metamask/superstruc
|
|
179
249
|
export type DiscoverAccountsRequest = Infer<typeof DiscoverAccountsRequestStruct>;
|
180
250
|
export declare const DiscoverAccountsResponseStruct: import("@metamask/superstruct").Struct<{
|
181
251
|
type: "bip44";
|
182
|
-
scopes: `${string}:${string}`[];
|
183
252
|
derivationPath: `m/${string}`;
|
253
|
+
scopes: `${string}:${string}`[];
|
184
254
|
}[], import("@metamask/superstruct").Struct<{
|
185
255
|
type: "bip44";
|
186
|
-
scopes: `${string}:${string}`[];
|
187
256
|
derivationPath: `m/${string}`;
|
257
|
+
scopes: `${string}:${string}`[];
|
188
258
|
}, {
|
189
259
|
type: import("@metamask/superstruct").Struct<"bip44", "bip44">;
|
190
260
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
@@ -636,7 +706,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
636
706
|
account: {
|
637
707
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
638
708
|
id: string;
|
639
|
-
options: Record<string, import("@metamask/utils").Json
|
709
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
710
|
+
entropy?: {
|
711
|
+
type: "mnemonic";
|
712
|
+
id: string;
|
713
|
+
derivationPath: string;
|
714
|
+
groupIndex: number;
|
715
|
+
} | {
|
716
|
+
type: "private-key";
|
717
|
+
};
|
718
|
+
exportable?: boolean;
|
719
|
+
};
|
640
720
|
address: string;
|
641
721
|
scopes: `${string}:${string}`[];
|
642
722
|
methods: string[];
|
@@ -648,7 +728,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
648
728
|
account: {
|
649
729
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
650
730
|
id: string;
|
651
|
-
options: Record<string, import("@metamask/utils").Json
|
731
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
732
|
+
entropy?: {
|
733
|
+
type: "mnemonic";
|
734
|
+
id: string;
|
735
|
+
derivationPath: string;
|
736
|
+
groupIndex: number;
|
737
|
+
} | {
|
738
|
+
type: "private-key";
|
739
|
+
};
|
740
|
+
exportable?: boolean;
|
741
|
+
};
|
652
742
|
address: string;
|
653
743
|
scopes: `${string}:${string}`[];
|
654
744
|
methods: string[];
|
@@ -657,7 +747,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
657
747
|
account: import("@metamask/superstruct").Struct<{
|
658
748
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
|
659
749
|
id: string;
|
660
|
-
options: Record<string, import("@metamask/utils").Json
|
750
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
751
|
+
entropy?: {
|
752
|
+
type: "mnemonic";
|
753
|
+
id: string;
|
754
|
+
derivationPath: string;
|
755
|
+
groupIndex: number;
|
756
|
+
} | {
|
757
|
+
type: "private-key";
|
758
|
+
};
|
759
|
+
exportable?: boolean;
|
760
|
+
};
|
661
761
|
address: string;
|
662
762
|
scopes: `${string}:${string}`[];
|
663
763
|
methods: string[];
|
@@ -674,7 +774,17 @@ export declare const UpdateAccountRequestStruct: import("@metamask/superstruct")
|
|
674
774
|
}>;
|
675
775
|
address: import("@metamask/superstruct").Struct<string, null>;
|
676
776
|
scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
|
677
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
777
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
778
|
+
entropy?: {
|
779
|
+
type: "mnemonic";
|
780
|
+
id: string;
|
781
|
+
derivationPath: string;
|
782
|
+
groupIndex: number;
|
783
|
+
} | {
|
784
|
+
type: "private-key";
|
785
|
+
};
|
786
|
+
exportable?: boolean;
|
787
|
+
}, null>;
|
678
788
|
methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
679
789
|
}>;
|
680
790
|
}>;
|
package/dist/rpc.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0BAA0B;CACxC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAYD,eAAO,MAAM,yBAAyB;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B
|
1
|
+
{"version":3,"file":"rpc.d.mts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AA2BnD;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,gBAAgB,6BAA6B;IAC7C,iBAAiB,8BAA8B;IAC/C,uBAAuB,oCAAoC;IAC3D,kBAAkB,+BAA+B;IACjD,qBAAqB,kCAAkC;IACvD,mBAAmB,gCAAgC;IACnD,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,aAAa,0BAA0B;IACvC,YAAY,yBAAyB;IACrC,UAAU,uBAAuB;IACjC,aAAa,0BAA0B;IACvC,cAAc,2BAA2B;IACzC,aAAa,0B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,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/sol/types.d.cts
CHANGED
@@ -18,7 +18,17 @@ export declare enum SolMethod {
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
19
19
|
type: "solana:data-account";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: SolMethod[];
|
@@ -46,7 +56,17 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
46
56
|
signIn: SolMethod.SignIn;
|
47
57
|
}>>;
|
48
58
|
id: import("@metamask/superstruct").Struct<string, null>;
|
49
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
59
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
60
|
+
entropy?: {
|
61
|
+
type: "mnemonic";
|
62
|
+
id: string;
|
63
|
+
derivationPath: string;
|
64
|
+
groupIndex: number;
|
65
|
+
} | {
|
66
|
+
type: "private-key";
|
67
|
+
};
|
68
|
+
exportable?: boolean;
|
69
|
+
}, null>;
|
50
70
|
}>;
|
51
71
|
export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
|
52
72
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/sol/types.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB
|
1
|
+
{"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/sol/types.d.mts
CHANGED
@@ -18,7 +18,17 @@ export declare enum SolMethod {
|
|
18
18
|
export declare const SolDataAccountStruct: import("@metamask/superstruct").Struct<{
|
19
19
|
type: "solana:data-account";
|
20
20
|
id: string;
|
21
|
-
options: Record<string, import("@metamask/utils").Json
|
21
|
+
options: Record<string, import("@metamask/utils").Json> & {
|
22
|
+
entropy?: {
|
23
|
+
type: "mnemonic";
|
24
|
+
id: string;
|
25
|
+
derivationPath: string;
|
26
|
+
groupIndex: number;
|
27
|
+
} | {
|
28
|
+
type: "private-key";
|
29
|
+
};
|
30
|
+
exportable?: boolean;
|
31
|
+
};
|
22
32
|
address: string;
|
23
33
|
scopes: `${string}:${string}`[];
|
24
34
|
methods: SolMethod[];
|
@@ -46,7 +56,17 @@ export declare const SolDataAccountStruct: import("@metamask/superstruct").Struc
|
|
46
56
|
signIn: SolMethod.SignIn;
|
47
57
|
}>>;
|
48
58
|
id: import("@metamask/superstruct").Struct<string, null>;
|
49
|
-
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json
|
59
|
+
options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
|
60
|
+
entropy?: {
|
61
|
+
type: "mnemonic";
|
62
|
+
id: string;
|
63
|
+
derivationPath: string;
|
64
|
+
groupIndex: number;
|
65
|
+
} | {
|
66
|
+
type: "private-key";
|
67
|
+
};
|
68
|
+
exportable?: boolean;
|
69
|
+
}, null>;
|
50
70
|
}>;
|
51
71
|
export type SolDataAccount = Infer<typeof SolDataAccountStruct>;
|
52
72
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/sol/types.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../src/sol/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAUnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAKnB,yBAAyB,8BAA8B;IAEvD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;IAG/B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@metamask/keyring-api",
|
3
|
-
"version": "
|
3
|
+
"version": "19.0.0",
|
4
4
|
"description": "MetaMask Keyring API",
|
5
5
|
"keywords": [
|
6
6
|
"metamask",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"test:watch": "jest --watch"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@metamask/keyring-utils": "^3.
|
49
|
+
"@metamask/keyring-utils": "^3.1.0",
|
50
50
|
"@metamask/superstruct": "^3.1.0",
|
51
51
|
"@metamask/utils": "^11.1.0",
|
52
52
|
"bitcoin-address-validation": "^2.2.3"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"@lavamoat/allow-scripts": "^3.2.1",
|
56
56
|
"@lavamoat/preinstall-always-fail": "^2.1.0",
|
57
57
|
"@metamask/auto-changelog": "^3.4.4",
|
58
|
-
"@metamask/keyring-utils": "^3.
|
58
|
+
"@metamask/keyring-utils": "^3.1.0",
|
59
59
|
"@ts-bridge/cli": "^0.6.3",
|
60
60
|
"@types/jest": "^29.5.12",
|
61
61
|
"@types/node": "^20.12.12",
|