@metamask-previews/eth-snap-keyring 13.0.0-e4f6caa → 13.0.0-e86c8ec

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.
@@ -8,7 +8,17 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
8
8
  id: string;
9
9
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
10
10
  address: string;
11
- options: Record<string, import("@metamask/utils").Json>;
11
+ options: Record<string, import("@metamask/utils").Json> & {
12
+ entropy?: {
13
+ type: "mnemonic";
14
+ id: string;
15
+ derivationPath: string;
16
+ groupIndex: number;
17
+ } | {
18
+ type: "private-key";
19
+ };
20
+ exportable?: boolean;
21
+ };
12
22
  methods: string[];
13
23
  }, Omit<{
14
24
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -23,7 +33,17 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
23
33
  }>;
24
34
  address: import("@metamask/superstruct").Struct<string, null>;
25
35
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
26
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
36
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
37
+ entropy?: {
38
+ type: "mnemonic";
39
+ id: string;
40
+ derivationPath: string;
41
+ groupIndex: number;
42
+ } | {
43
+ type: "private-key";
44
+ };
45
+ exportable?: boolean;
46
+ }, null>;
27
47
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
28
48
  }, "scopes">>;
29
49
  export type KeyringAccountV1 = Infer<typeof KeyringAccountV1Struct>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.cts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAchF,OAAO,EAAgB,KAAK,KAAK,EAAE,8BAA8B;AAIjE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;aAAyC,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,SAAS;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,EAC5C,OAAO,EAAE,OAAO,GAAG,cAAc,CAuClC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAE9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB"}
1
+ {"version":3,"file":"account.d.cts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAchF,OAAO,EAAgB,KAAK,KAAK,EAAE,8BAA8B;AAIjE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+DlB,CAAC;;;;;;;;kBAE6B,CAAC;;;aAjE4B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,SAAS;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,EAC5C,OAAO,EAAE,OAAO,GAAG,cAAc,CAuClC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAE9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB"}
@@ -8,7 +8,17 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
8
8
  id: string;
9
9
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
10
10
  address: string;
11
- options: Record<string, import("@metamask/utils").Json>;
11
+ options: Record<string, import("@metamask/utils").Json> & {
12
+ entropy?: {
13
+ type: "mnemonic";
14
+ id: string;
15
+ derivationPath: string;
16
+ groupIndex: number;
17
+ } | {
18
+ type: "private-key";
19
+ };
20
+ exportable?: boolean;
21
+ };
12
22
  methods: string[];
13
23
  }, Omit<{
14
24
  id: import("@metamask/superstruct").Struct<string, null>;
@@ -23,7 +33,17 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
23
33
  }>;
24
34
  address: import("@metamask/superstruct").Struct<string, null>;
25
35
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
26
- options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
36
+ options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> & {
37
+ entropy?: {
38
+ type: "mnemonic";
39
+ id: string;
40
+ derivationPath: string;
41
+ groupIndex: number;
42
+ } | {
43
+ type: "private-key";
44
+ };
45
+ exportable?: boolean;
46
+ }, null>;
27
47
  methods: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
28
48
  }, "scopes">>;
29
49
  export type KeyringAccountV1 = Infer<typeof KeyringAccountV1Struct>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAchF,OAAO,EAAgB,KAAK,KAAK,EAAE,8BAA8B;AAIjE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;aAAyC,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,SAAS;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,EAC5C,OAAO,EAAE,OAAO,GAAG,cAAc,CAuClC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAE9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB"}
1
+ {"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAchF,OAAO,EAAgB,KAAK,KAAK,EAAE,8BAA8B;AAIjE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+DlB,CAAC;;;;;;;;kBAE6B,CAAC;;;aAjE4B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,SAAS;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,EAC5C,OAAO,EAAE,OAAO,GAAG,cAAc,CAuClC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAE9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB"}
package/dist/events.d.cts CHANGED
@@ -4,7 +4,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
4
4
  account: {
5
5
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
6
6
  id: string;
7
- options: Record<string, import("@metamask/utils").Json>;
7
+ options: Record<string, import("@metamask/utils").Json> & {
8
+ entropy?: {
9
+ type: "mnemonic";
10
+ id: string;
11
+ derivationPath: string;
12
+ groupIndex: number;
13
+ } | {
14
+ type: "private-key";
15
+ };
16
+ exportable?: boolean;
17
+ };
8
18
  address: string;
9
19
  scopes: `${string}:${string}`[];
10
20
  methods: string[];
@@ -12,7 +22,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
12
22
  id: string;
13
23
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
14
24
  address: string;
15
- options: Record<string, import("@metamask/utils").Json>;
25
+ options: Record<string, import("@metamask/utils").Json> & {
26
+ entropy?: {
27
+ type: "mnemonic";
28
+ id: string;
29
+ derivationPath: string;
30
+ groupIndex: number;
31
+ } | {
32
+ type: "private-key";
33
+ };
34
+ exportable?: boolean;
35
+ };
16
36
  methods: string[];
17
37
  };
18
38
  metamask?: {
@@ -28,7 +48,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
28
48
  account: {
29
49
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
30
50
  id: string;
31
- options: Record<string, import("@metamask/utils").Json>;
51
+ options: Record<string, import("@metamask/utils").Json> & {
52
+ entropy?: {
53
+ type: "mnemonic";
54
+ id: string;
55
+ derivationPath: string;
56
+ groupIndex: number;
57
+ } | {
58
+ type: "private-key";
59
+ };
60
+ exportable?: boolean;
61
+ };
32
62
  address: string;
33
63
  scopes: `${string}:${string}`[];
34
64
  methods: string[];
@@ -36,7 +66,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
36
66
  id: string;
37
67
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
38
68
  address: string;
39
- options: Record<string, import("@metamask/utils").Json>;
69
+ options: Record<string, import("@metamask/utils").Json> & {
70
+ entropy?: {
71
+ type: "mnemonic";
72
+ id: string;
73
+ derivationPath: string;
74
+ groupIndex: number;
75
+ } | {
76
+ type: "private-key";
77
+ };
78
+ exportable?: boolean;
79
+ };
40
80
  methods: string[];
41
81
  };
42
82
  metamask?: {
@@ -49,7 +89,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
49
89
  account: import("@metamask/superstruct").Struct<{
50
90
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
51
91
  id: string;
52
- options: Record<string, import("@metamask/utils").Json>;
92
+ options: Record<string, import("@metamask/utils").Json> & {
93
+ entropy?: {
94
+ type: "mnemonic";
95
+ id: string;
96
+ derivationPath: string;
97
+ groupIndex: number;
98
+ } | {
99
+ type: "private-key";
100
+ };
101
+ exportable?: boolean;
102
+ };
53
103
  address: string;
54
104
  scopes: `${string}:${string}`[];
55
105
  methods: string[];
@@ -57,7 +107,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
57
107
  id: string;
58
108
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
59
109
  address: string;
60
- options: Record<string, import("@metamask/utils").Json>;
110
+ options: Record<string, import("@metamask/utils").Json> & {
111
+ entropy?: {
112
+ type: "mnemonic";
113
+ id: string;
114
+ derivationPath: string;
115
+ groupIndex: number;
116
+ } | {
117
+ type: "private-key";
118
+ };
119
+ exportable?: boolean;
120
+ };
61
121
  methods: string[];
62
122
  }, null>;
63
123
  metamask: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
@@ -76,7 +136,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
76
136
  account: {
77
137
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
78
138
  id: string;
79
- options: Record<string, import("@metamask/utils").Json>;
139
+ options: Record<string, import("@metamask/utils").Json> & {
140
+ entropy?: {
141
+ type: "mnemonic";
142
+ id: string;
143
+ derivationPath: string;
144
+ groupIndex: number;
145
+ } | {
146
+ type: "private-key";
147
+ };
148
+ exportable?: boolean;
149
+ };
80
150
  address: string;
81
151
  scopes: `${string}:${string}`[];
82
152
  methods: string[];
@@ -84,7 +154,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
84
154
  id: string;
85
155
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
86
156
  address: string;
87
- options: Record<string, import("@metamask/utils").Json>;
157
+ options: Record<string, import("@metamask/utils").Json> & {
158
+ entropy?: {
159
+ type: "mnemonic";
160
+ id: string;
161
+ derivationPath: string;
162
+ groupIndex: number;
163
+ } | {
164
+ type: "private-key";
165
+ };
166
+ exportable?: boolean;
167
+ };
88
168
  methods: string[];
89
169
  };
90
170
  };
@@ -94,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
94
174
  account: {
95
175
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
96
176
  id: string;
97
- options: Record<string, import("@metamask/utils").Json>;
177
+ options: Record<string, import("@metamask/utils").Json> & {
178
+ entropy?: {
179
+ type: "mnemonic";
180
+ id: string;
181
+ derivationPath: string;
182
+ groupIndex: number;
183
+ } | {
184
+ type: "private-key";
185
+ };
186
+ exportable?: boolean;
187
+ };
98
188
  address: string;
99
189
  scopes: `${string}:${string}`[];
100
190
  methods: string[];
@@ -102,14 +192,34 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
102
192
  id: string;
103
193
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
104
194
  address: string;
105
- options: Record<string, import("@metamask/utils").Json>;
195
+ options: Record<string, import("@metamask/utils").Json> & {
196
+ entropy?: {
197
+ type: "mnemonic";
198
+ id: string;
199
+ derivationPath: string;
200
+ groupIndex: number;
201
+ } | {
202
+ type: "private-key";
203
+ };
204
+ exportable?: boolean;
205
+ };
106
206
  methods: string[];
107
207
  };
108
208
  }, {
109
209
  account: import("@metamask/superstruct").Struct<{
110
210
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
111
211
  id: string;
112
- options: Record<string, import("@metamask/utils").Json>;
212
+ options: 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
+ };
113
223
  address: string;
114
224
  scopes: `${string}:${string}`[];
115
225
  methods: string[];
@@ -117,7 +227,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
117
227
  id: string;
118
228
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
119
229
  address: string;
120
- options: Record<string, import("@metamask/utils").Json>;
230
+ options: Record<string, import("@metamask/utils").Json> & {
231
+ entropy?: {
232
+ type: "mnemonic";
233
+ id: string;
234
+ derivationPath: string;
235
+ groupIndex: number;
236
+ } | {
237
+ type: "private-key";
238
+ };
239
+ exportable?: boolean;
240
+ };
121
241
  methods: string[];
122
242
  }, null>;
123
243
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAM/B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
1
+ {"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAM/B,eAAO,MAAM,yBAAyB;;;;;;uBAyB4E,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAlB5T,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;uBAgB4E,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;EAT5T,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
package/dist/events.d.mts CHANGED
@@ -4,7 +4,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
4
4
  account: {
5
5
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
6
6
  id: string;
7
- options: Record<string, import("@metamask/utils").Json>;
7
+ options: Record<string, import("@metamask/utils").Json> & {
8
+ entropy?: {
9
+ type: "mnemonic";
10
+ id: string;
11
+ derivationPath: string;
12
+ groupIndex: number;
13
+ } | {
14
+ type: "private-key";
15
+ };
16
+ exportable?: boolean;
17
+ };
8
18
  address: string;
9
19
  scopes: `${string}:${string}`[];
10
20
  methods: string[];
@@ -12,7 +22,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
12
22
  id: string;
13
23
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
14
24
  address: string;
15
- options: Record<string, import("@metamask/utils").Json>;
25
+ options: Record<string, import("@metamask/utils").Json> & {
26
+ entropy?: {
27
+ type: "mnemonic";
28
+ id: string;
29
+ derivationPath: string;
30
+ groupIndex: number;
31
+ } | {
32
+ type: "private-key";
33
+ };
34
+ exportable?: boolean;
35
+ };
16
36
  methods: string[];
17
37
  };
18
38
  metamask?: {
@@ -28,7 +48,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
28
48
  account: {
29
49
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
30
50
  id: string;
31
- options: Record<string, import("@metamask/utils").Json>;
51
+ options: Record<string, import("@metamask/utils").Json> & {
52
+ entropy?: {
53
+ type: "mnemonic";
54
+ id: string;
55
+ derivationPath: string;
56
+ groupIndex: number;
57
+ } | {
58
+ type: "private-key";
59
+ };
60
+ exportable?: boolean;
61
+ };
32
62
  address: string;
33
63
  scopes: `${string}:${string}`[];
34
64
  methods: string[];
@@ -36,7 +66,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
36
66
  id: string;
37
67
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
38
68
  address: string;
39
- options: Record<string, import("@metamask/utils").Json>;
69
+ options: Record<string, import("@metamask/utils").Json> & {
70
+ entropy?: {
71
+ type: "mnemonic";
72
+ id: string;
73
+ derivationPath: string;
74
+ groupIndex: number;
75
+ } | {
76
+ type: "private-key";
77
+ };
78
+ exportable?: boolean;
79
+ };
40
80
  methods: string[];
41
81
  };
42
82
  metamask?: {
@@ -49,7 +89,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
49
89
  account: import("@metamask/superstruct").Struct<{
50
90
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
51
91
  id: string;
52
- options: Record<string, import("@metamask/utils").Json>;
92
+ options: Record<string, import("@metamask/utils").Json> & {
93
+ entropy?: {
94
+ type: "mnemonic";
95
+ id: string;
96
+ derivationPath: string;
97
+ groupIndex: number;
98
+ } | {
99
+ type: "private-key";
100
+ };
101
+ exportable?: boolean;
102
+ };
53
103
  address: string;
54
104
  scopes: `${string}:${string}`[];
55
105
  methods: string[];
@@ -57,7 +107,17 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
57
107
  id: string;
58
108
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
59
109
  address: string;
60
- options: Record<string, import("@metamask/utils").Json>;
110
+ options: Record<string, import("@metamask/utils").Json> & {
111
+ entropy?: {
112
+ type: "mnemonic";
113
+ id: string;
114
+ derivationPath: string;
115
+ groupIndex: number;
116
+ } | {
117
+ type: "private-key";
118
+ };
119
+ exportable?: boolean;
120
+ };
61
121
  methods: string[];
62
122
  }, null>;
63
123
  metamask: import("@metamask/superstruct").Struct<import("@metamask/keyring-utils").ExactOptionalTag | {
@@ -76,7 +136,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
76
136
  account: {
77
137
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
78
138
  id: string;
79
- options: Record<string, import("@metamask/utils").Json>;
139
+ options: Record<string, import("@metamask/utils").Json> & {
140
+ entropy?: {
141
+ type: "mnemonic";
142
+ id: string;
143
+ derivationPath: string;
144
+ groupIndex: number;
145
+ } | {
146
+ type: "private-key";
147
+ };
148
+ exportable?: boolean;
149
+ };
80
150
  address: string;
81
151
  scopes: `${string}:${string}`[];
82
152
  methods: string[];
@@ -84,7 +154,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
84
154
  id: string;
85
155
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
86
156
  address: string;
87
- options: Record<string, import("@metamask/utils").Json>;
157
+ options: Record<string, import("@metamask/utils").Json> & {
158
+ entropy?: {
159
+ type: "mnemonic";
160
+ id: string;
161
+ derivationPath: string;
162
+ groupIndex: number;
163
+ } | {
164
+ type: "private-key";
165
+ };
166
+ exportable?: boolean;
167
+ };
88
168
  methods: string[];
89
169
  };
90
170
  };
@@ -94,7 +174,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
94
174
  account: {
95
175
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
96
176
  id: string;
97
- options: Record<string, import("@metamask/utils").Json>;
177
+ options: Record<string, import("@metamask/utils").Json> & {
178
+ entropy?: {
179
+ type: "mnemonic";
180
+ id: string;
181
+ derivationPath: string;
182
+ groupIndex: number;
183
+ } | {
184
+ type: "private-key";
185
+ };
186
+ exportable?: boolean;
187
+ };
98
188
  address: string;
99
189
  scopes: `${string}:${string}`[];
100
190
  methods: string[];
@@ -102,14 +192,34 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
102
192
  id: string;
103
193
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
104
194
  address: string;
105
- options: Record<string, import("@metamask/utils").Json>;
195
+ options: Record<string, import("@metamask/utils").Json> & {
196
+ entropy?: {
197
+ type: "mnemonic";
198
+ id: string;
199
+ derivationPath: string;
200
+ groupIndex: number;
201
+ } | {
202
+ type: "private-key";
203
+ };
204
+ exportable?: boolean;
205
+ };
106
206
  methods: string[];
107
207
  };
108
208
  }, {
109
209
  account: import("@metamask/superstruct").Struct<{
110
210
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
111
211
  id: string;
112
- options: Record<string, import("@metamask/utils").Json>;
212
+ options: 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
+ };
113
223
  address: string;
114
224
  scopes: `${string}:${string}`[];
115
225
  methods: string[];
@@ -117,7 +227,17 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
117
227
  id: string;
118
228
  type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account";
119
229
  address: string;
120
- options: Record<string, import("@metamask/utils").Json>;
230
+ options: Record<string, import("@metamask/utils").Json> & {
231
+ entropy?: {
232
+ type: "mnemonic";
233
+ id: string;
234
+ derivationPath: string;
235
+ groupIndex: number;
236
+ } | {
237
+ type: "private-key";
238
+ };
239
+ exportable?: boolean;
240
+ };
121
241
  methods: string[];
122
242
  }, null>;
123
243
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAM/B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
1
+ {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAM/B,eAAO,MAAM,yBAAyB;;;;;;uBAyB4E,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAlB5T,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;uBAgB4E,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA5M,CAAC;;;;;;;;0BAA0M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;EAT5T,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/eth-snap-keyring",
3
- "version": "13.0.0-e4f6caa",
3
+ "version": "13.0.0-e86c8ec",
4
4
  "description": "Snaps keyring bridge.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,9 +53,9 @@
53
53
  "@lavamoat/allow-scripts": "^3.2.1",
54
54
  "@lavamoat/preinstall-always-fail": "^2.1.0",
55
55
  "@metamask/auto-changelog": "^3.4.4",
56
- "@metamask/snaps-controllers": "^12.2.0",
57
- "@metamask/snaps-sdk": "^7.0.0",
58
- "@metamask/snaps-utils": "^9.3.0",
56
+ "@metamask/snaps-controllers": "^14.0.1",
57
+ "@metamask/snaps-sdk": "^9.0.0",
58
+ "@metamask/snaps-utils": "^11.0.0",
59
59
  "@ts-bridge/cli": "^0.6.3",
60
60
  "@types/jest": "^29.5.12",
61
61
  "@types/node": "^20.12.12",