@metamask-previews/eth-snap-keyring 24.1.0-b143371 → 24.1.1-13dc8e8
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 +10 -1
- package/dist/account.d.cts +4 -0
- package/dist/account.d.cts.map +1 -1
- package/dist/account.d.mts +4 -0
- package/dist/account.d.mts.map +1 -1
- package/dist/events.d.cts +24 -0
- package/dist/events.d.cts.map +1 -1
- package/dist/events.d.mts +24 -0
- package/dist/events.d.mts.map +1 -1
- package/dist/v2/SnapKeyring.d.cts +10 -8
- package/dist/v2/SnapKeyring.d.cts.map +1 -1
- package/dist/v2/SnapKeyring.d.mts +10 -8
- package/dist/v2/SnapKeyring.d.mts.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -7,9 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [24.1.1]
|
|
11
|
+
|
|
10
12
|
### Changed
|
|
11
13
|
|
|
14
|
+
- Bump `@metamask/messenger` from `^1.1.1` to `^2.0.0` ([#595](https://github.com/MetaMask/accounts/pull/595))
|
|
12
15
|
- Bump `@metamask/eth-sig-util` from `^8.2.0` to `^9.0.0` ([#626](https://github.com/MetaMask/accounts/pull/626))
|
|
16
|
+
- Bump `@metamask/snaps-sdk` from `^11.0.0` to `^11.2.0` ([#596](https://github.com/MetaMask/accounts/pull/596))
|
|
17
|
+
- Bump `@metamask/keyring-internal-api` from `^12.1.0` to `^12.1.1` ([#664](https://github.com/MetaMask/accounts/pull/664))
|
|
18
|
+
- Bump `@metamask/keyring-internal-snap-client` from `^11.1.0` to `^11.1.1` ([#664](https://github.com/MetaMask/accounts/pull/664))
|
|
19
|
+
- Bump `@metamask/keyring-sdk` from `^3.1.0` to `^4.0.0` ([#664](https://github.com/MetaMask/accounts/pull/664))
|
|
20
|
+
- Bump `@metamask/keyring-snap-sdk` from `^10.0.0` to `^10.0.1` ([#664](https://github.com/MetaMask/accounts/pull/664))
|
|
13
21
|
|
|
14
22
|
## [24.1.0]
|
|
15
23
|
|
|
@@ -819,7 +827,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
819
827
|
|
|
820
828
|
- Initial release.
|
|
821
829
|
|
|
822
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@24.1.
|
|
830
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@24.1.1...HEAD
|
|
831
|
+
[24.1.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@24.1.0...@metamask/eth-snap-keyring@24.1.1
|
|
823
832
|
[24.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@24.0.0...@metamask/eth-snap-keyring@24.1.0
|
|
824
833
|
[24.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@23.0.2...@metamask/eth-snap-keyring@24.0.0
|
|
825
834
|
[23.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-snap-keyring@23.0.1...@metamask/eth-snap-keyring@23.0.2
|
package/dist/account.d.cts
CHANGED
|
@@ -18,6 +18,8 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
|
|
|
18
18
|
type: "private-key";
|
|
19
19
|
} | {
|
|
20
20
|
type: "custom";
|
|
21
|
+
} | {
|
|
22
|
+
type: "mpc";
|
|
21
23
|
};
|
|
22
24
|
exportable?: boolean;
|
|
23
25
|
};
|
|
@@ -48,6 +50,8 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
|
|
|
48
50
|
type: "private-key";
|
|
49
51
|
} | {
|
|
50
52
|
type: "custom";
|
|
53
|
+
} | {
|
|
54
|
+
type: "mpc";
|
|
51
55
|
};
|
|
52
56
|
exportable?: boolean;
|
|
53
57
|
}, null>;
|
package/dist/account.d.cts.map
CHANGED
|
@@ -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;AAqBhF,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAGnD;;;GAGG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"account.d.cts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAqBhF,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAGnD;;;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,CAmDlC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAIvE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAOxE"}
|
package/dist/account.d.mts
CHANGED
|
@@ -18,6 +18,8 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
|
|
|
18
18
|
type: "private-key";
|
|
19
19
|
} | {
|
|
20
20
|
type: "custom";
|
|
21
|
+
} | {
|
|
22
|
+
type: "mpc";
|
|
21
23
|
};
|
|
22
24
|
exportable?: boolean;
|
|
23
25
|
};
|
|
@@ -48,6 +50,8 @@ export declare const KeyringAccountV1Struct: import("@metamask/superstruct").Str
|
|
|
48
50
|
type: "private-key";
|
|
49
51
|
} | {
|
|
50
52
|
type: "custom";
|
|
53
|
+
} | {
|
|
54
|
+
type: "mpc";
|
|
51
55
|
};
|
|
52
56
|
exportable?: boolean;
|
|
53
57
|
}, null>;
|
package/dist/account.d.mts.map
CHANGED
|
@@ -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;AAqBhF,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAGnD;;;GAGG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"account.d.mts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,8BAA8B;AAqBhF,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAGnD;;;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,CAmDlC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,GACpD,cAAc,CAShB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAIvE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,CAOxE"}
|
package/dist/events.d.cts
CHANGED
|
@@ -14,6 +14,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
14
14
|
type: "private-key";
|
|
15
15
|
} | {
|
|
16
16
|
type: "custom";
|
|
17
|
+
} | {
|
|
18
|
+
type: "mpc";
|
|
17
19
|
};
|
|
18
20
|
exportable?: boolean;
|
|
19
21
|
};
|
|
@@ -34,6 +36,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
34
36
|
type: "private-key";
|
|
35
37
|
} | {
|
|
36
38
|
type: "custom";
|
|
39
|
+
} | {
|
|
40
|
+
type: "mpc";
|
|
37
41
|
};
|
|
38
42
|
exportable?: boolean;
|
|
39
43
|
};
|
|
@@ -62,6 +66,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
62
66
|
type: "private-key";
|
|
63
67
|
} | {
|
|
64
68
|
type: "custom";
|
|
69
|
+
} | {
|
|
70
|
+
type: "mpc";
|
|
65
71
|
};
|
|
66
72
|
exportable?: boolean;
|
|
67
73
|
};
|
|
@@ -82,6 +88,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
82
88
|
type: "private-key";
|
|
83
89
|
} | {
|
|
84
90
|
type: "custom";
|
|
91
|
+
} | {
|
|
92
|
+
type: "mpc";
|
|
85
93
|
};
|
|
86
94
|
exportable?: boolean;
|
|
87
95
|
};
|
|
@@ -107,6 +115,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
107
115
|
type: "private-key";
|
|
108
116
|
} | {
|
|
109
117
|
type: "custom";
|
|
118
|
+
} | {
|
|
119
|
+
type: "mpc";
|
|
110
120
|
};
|
|
111
121
|
exportable?: boolean;
|
|
112
122
|
};
|
|
@@ -127,6 +137,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
127
137
|
type: "private-key";
|
|
128
138
|
} | {
|
|
129
139
|
type: "custom";
|
|
140
|
+
} | {
|
|
141
|
+
type: "mpc";
|
|
130
142
|
};
|
|
131
143
|
exportable?: boolean;
|
|
132
144
|
};
|
|
@@ -158,6 +170,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
158
170
|
type: "private-key";
|
|
159
171
|
} | {
|
|
160
172
|
type: "custom";
|
|
173
|
+
} | {
|
|
174
|
+
type: "mpc";
|
|
161
175
|
};
|
|
162
176
|
exportable?: boolean;
|
|
163
177
|
};
|
|
@@ -178,6 +192,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
178
192
|
type: "private-key";
|
|
179
193
|
} | {
|
|
180
194
|
type: "custom";
|
|
195
|
+
} | {
|
|
196
|
+
type: "mpc";
|
|
181
197
|
};
|
|
182
198
|
exportable?: boolean;
|
|
183
199
|
};
|
|
@@ -200,6 +216,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
200
216
|
type: "private-key";
|
|
201
217
|
} | {
|
|
202
218
|
type: "custom";
|
|
219
|
+
} | {
|
|
220
|
+
type: "mpc";
|
|
203
221
|
};
|
|
204
222
|
exportable?: boolean;
|
|
205
223
|
};
|
|
@@ -220,6 +238,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
220
238
|
type: "private-key";
|
|
221
239
|
} | {
|
|
222
240
|
type: "custom";
|
|
241
|
+
} | {
|
|
242
|
+
type: "mpc";
|
|
223
243
|
};
|
|
224
244
|
exportable?: boolean;
|
|
225
245
|
};
|
|
@@ -239,6 +259,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
239
259
|
type: "private-key";
|
|
240
260
|
} | {
|
|
241
261
|
type: "custom";
|
|
262
|
+
} | {
|
|
263
|
+
type: "mpc";
|
|
242
264
|
};
|
|
243
265
|
exportable?: boolean;
|
|
244
266
|
};
|
|
@@ -259,6 +281,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
259
281
|
type: "private-key";
|
|
260
282
|
} | {
|
|
261
283
|
type: "custom";
|
|
284
|
+
} | {
|
|
285
|
+
type: "mpc";
|
|
262
286
|
};
|
|
263
287
|
exportable?: boolean;
|
|
264
288
|
};
|
package/dist/events.d.cts.map
CHANGED
|
@@ -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;AAK/B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"events.d.cts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAK/B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
|
package/dist/events.d.mts
CHANGED
|
@@ -14,6 +14,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
14
14
|
type: "private-key";
|
|
15
15
|
} | {
|
|
16
16
|
type: "custom";
|
|
17
|
+
} | {
|
|
18
|
+
type: "mpc";
|
|
17
19
|
};
|
|
18
20
|
exportable?: boolean;
|
|
19
21
|
};
|
|
@@ -34,6 +36,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
34
36
|
type: "private-key";
|
|
35
37
|
} | {
|
|
36
38
|
type: "custom";
|
|
39
|
+
} | {
|
|
40
|
+
type: "mpc";
|
|
37
41
|
};
|
|
38
42
|
exportable?: boolean;
|
|
39
43
|
};
|
|
@@ -62,6 +66,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
62
66
|
type: "private-key";
|
|
63
67
|
} | {
|
|
64
68
|
type: "custom";
|
|
69
|
+
} | {
|
|
70
|
+
type: "mpc";
|
|
65
71
|
};
|
|
66
72
|
exportable?: boolean;
|
|
67
73
|
};
|
|
@@ -82,6 +88,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
82
88
|
type: "private-key";
|
|
83
89
|
} | {
|
|
84
90
|
type: "custom";
|
|
91
|
+
} | {
|
|
92
|
+
type: "mpc";
|
|
85
93
|
};
|
|
86
94
|
exportable?: boolean;
|
|
87
95
|
};
|
|
@@ -107,6 +115,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
107
115
|
type: "private-key";
|
|
108
116
|
} | {
|
|
109
117
|
type: "custom";
|
|
118
|
+
} | {
|
|
119
|
+
type: "mpc";
|
|
110
120
|
};
|
|
111
121
|
exportable?: boolean;
|
|
112
122
|
};
|
|
@@ -127,6 +137,8 @@ export declare const AccountCreatedEventStruct: import("@metamask/superstruct").
|
|
|
127
137
|
type: "private-key";
|
|
128
138
|
} | {
|
|
129
139
|
type: "custom";
|
|
140
|
+
} | {
|
|
141
|
+
type: "mpc";
|
|
130
142
|
};
|
|
131
143
|
exportable?: boolean;
|
|
132
144
|
};
|
|
@@ -158,6 +170,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
158
170
|
type: "private-key";
|
|
159
171
|
} | {
|
|
160
172
|
type: "custom";
|
|
173
|
+
} | {
|
|
174
|
+
type: "mpc";
|
|
161
175
|
};
|
|
162
176
|
exportable?: boolean;
|
|
163
177
|
};
|
|
@@ -178,6 +192,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
178
192
|
type: "private-key";
|
|
179
193
|
} | {
|
|
180
194
|
type: "custom";
|
|
195
|
+
} | {
|
|
196
|
+
type: "mpc";
|
|
181
197
|
};
|
|
182
198
|
exportable?: boolean;
|
|
183
199
|
};
|
|
@@ -200,6 +216,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
200
216
|
type: "private-key";
|
|
201
217
|
} | {
|
|
202
218
|
type: "custom";
|
|
219
|
+
} | {
|
|
220
|
+
type: "mpc";
|
|
203
221
|
};
|
|
204
222
|
exportable?: boolean;
|
|
205
223
|
};
|
|
@@ -220,6 +238,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
220
238
|
type: "private-key";
|
|
221
239
|
} | {
|
|
222
240
|
type: "custom";
|
|
241
|
+
} | {
|
|
242
|
+
type: "mpc";
|
|
223
243
|
};
|
|
224
244
|
exportable?: boolean;
|
|
225
245
|
};
|
|
@@ -239,6 +259,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
239
259
|
type: "private-key";
|
|
240
260
|
} | {
|
|
241
261
|
type: "custom";
|
|
262
|
+
} | {
|
|
263
|
+
type: "mpc";
|
|
242
264
|
};
|
|
243
265
|
exportable?: boolean;
|
|
244
266
|
};
|
|
@@ -259,6 +281,8 @@ export declare const AccountUpdatedEventStruct: import("@metamask/superstruct").
|
|
|
259
281
|
type: "private-key";
|
|
260
282
|
} | {
|
|
261
283
|
type: "custom";
|
|
284
|
+
} | {
|
|
285
|
+
type: "mpc";
|
|
262
286
|
};
|
|
263
287
|
exportable?: boolean;
|
|
264
288
|
};
|
package/dist/events.d.mts.map
CHANGED
|
@@ -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;AAK/B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAE3B,8BAA8B;AAK/B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AAIH,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,CAAC"}
|
|
@@ -34,15 +34,14 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
34
34
|
type: "private-key";
|
|
35
35
|
} | {
|
|
36
36
|
type: "custom";
|
|
37
|
+
} | {
|
|
38
|
+
type: "mpc";
|
|
37
39
|
};
|
|
38
40
|
exportable?: boolean;
|
|
39
41
|
};
|
|
40
42
|
address: string;
|
|
41
43
|
scopes: `${string}:${string}`[];
|
|
42
|
-
methods: string[];
|
|
43
|
-
* Holds the v2 snap client once a {@link SnapKeyring} instance has been bound
|
|
44
|
-
* via {@link SnapKeyring.bindSnapId}.
|
|
45
|
-
*/
|
|
44
|
+
methods: string[];
|
|
46
45
|
} | {
|
|
47
46
|
id: string;
|
|
48
47
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
@@ -57,6 +56,8 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
57
56
|
type: "private-key";
|
|
58
57
|
} | {
|
|
59
58
|
type: "custom";
|
|
59
|
+
} | {
|
|
60
|
+
type: "mpc";
|
|
60
61
|
};
|
|
61
62
|
exportable?: boolean;
|
|
62
63
|
};
|
|
@@ -77,15 +78,14 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
77
78
|
type: "private-key";
|
|
78
79
|
} | {
|
|
79
80
|
type: "custom";
|
|
81
|
+
} | {
|
|
82
|
+
type: "mpc";
|
|
80
83
|
};
|
|
81
84
|
exportable?: boolean;
|
|
82
85
|
};
|
|
83
86
|
address: string;
|
|
84
87
|
scopes: `${string}:${string}`[];
|
|
85
|
-
methods: string[];
|
|
86
|
-
* Holds the v2 snap client once a {@link SnapKeyring} instance has been bound
|
|
87
|
-
* via {@link SnapKeyring.bindSnapId}.
|
|
88
|
-
*/
|
|
88
|
+
methods: string[];
|
|
89
89
|
} | {
|
|
90
90
|
id: string;
|
|
91
91
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
@@ -100,6 +100,8 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
100
100
|
type: "private-key";
|
|
101
101
|
} | {
|
|
102
102
|
type: "custom";
|
|
103
|
+
} | {
|
|
104
|
+
type: "mpc";
|
|
103
105
|
};
|
|
104
106
|
exportable?: boolean;
|
|
105
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapKeyring.d.cts","sourceRoot":"","sources":["../../src/v2/SnapKeyring.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15 +34,14 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
34
34
|
type: "private-key";
|
|
35
35
|
} | {
|
|
36
36
|
type: "custom";
|
|
37
|
+
} | {
|
|
38
|
+
type: "mpc";
|
|
37
39
|
};
|
|
38
40
|
exportable?: boolean;
|
|
39
41
|
};
|
|
40
42
|
address: string;
|
|
41
43
|
scopes: `${string}:${string}`[];
|
|
42
|
-
methods: string[];
|
|
43
|
-
* Holds the v2 snap client once a {@link SnapKeyring} instance has been bound
|
|
44
|
-
* via {@link SnapKeyring.bindSnapId}.
|
|
45
|
-
*/
|
|
44
|
+
methods: string[];
|
|
46
45
|
} | {
|
|
47
46
|
id: string;
|
|
48
47
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
@@ -57,6 +56,8 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
57
56
|
type: "private-key";
|
|
58
57
|
} | {
|
|
59
58
|
type: "custom";
|
|
59
|
+
} | {
|
|
60
|
+
type: "mpc";
|
|
60
61
|
};
|
|
61
62
|
exportable?: boolean;
|
|
62
63
|
};
|
|
@@ -77,15 +78,14 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
77
78
|
type: "private-key";
|
|
78
79
|
} | {
|
|
79
80
|
type: "custom";
|
|
81
|
+
} | {
|
|
82
|
+
type: "mpc";
|
|
80
83
|
};
|
|
81
84
|
exportable?: boolean;
|
|
82
85
|
};
|
|
83
86
|
address: string;
|
|
84
87
|
scopes: `${string}:${string}`[];
|
|
85
|
-
methods: string[];
|
|
86
|
-
* Holds the v2 snap client once a {@link SnapKeyring} instance has been bound
|
|
87
|
-
* via {@link SnapKeyring.bindSnapId}.
|
|
88
|
-
*/
|
|
88
|
+
methods: string[];
|
|
89
89
|
} | {
|
|
90
90
|
id: string;
|
|
91
91
|
type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "stellar:account" | "any:account";
|
|
@@ -100,6 +100,8 @@ export declare const SnapKeyringStateStruct: import("@metamask/superstruct").Str
|
|
|
100
100
|
type: "private-key";
|
|
101
101
|
} | {
|
|
102
102
|
type: "custom";
|
|
103
|
+
} | {
|
|
104
|
+
type: "mpc";
|
|
103
105
|
};
|
|
104
106
|
exportable?: boolean;
|
|
105
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnapKeyring.d.mts","sourceRoot":"","sources":["../../src/v2/SnapKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,8BAA8B;AAE5E,OAAO,KAAK,EACV,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACpB,iCAAiC;AAIlC,OAAO,KAAK,EAAE,SAAS,EAAE,gCAAgC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,4BAA4B;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAEnD,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAW5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,oCAAgC;AACpE,OAAO,EAAE,aAAa,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAiB,sBAAsB,EAAE,6BAAyB;AAG9E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,mBAE/B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"SnapKeyring.d.mts","sourceRoot":"","sources":["../../src/v2/SnapKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,8BAA8B;AAE5E,OAAO,KAAK,EACV,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACpB,iCAAiC;AAIlC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OAKG;IACH,UAAU,CAAC,EAAE,EAAE,SAAS,GAAG,OAAO;IAIlC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,SAAS,GAAG,cAAc,GAAG,SAAS;IAIxD;;;;;;;;OAQG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAc5D;;;;;;;;OAQG;IACH,QAAQ,IAAI,cAAc,EAAE;IAI5B;;;;;;;;OAQG;IACG,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAY5C;;;;;;;;;;;OAWG;IACG,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CA0G9C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/eth-snap-keyring",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.1-13dc8e8",
|
|
4
4
|
"description": "Snaps keyring bridge",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"keyring",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@ethereumjs/tx": "^5.4.0",
|
|
71
71
|
"@metamask/eth-sig-util": "^9.0.0",
|
|
72
|
-
"@metamask/keyring-api": "24.
|
|
73
|
-
"@metamask/keyring-internal-api": "12.1.
|
|
74
|
-
"@metamask/keyring-internal-snap-client": "11.1.
|
|
75
|
-
"@metamask/keyring-sdk": "
|
|
76
|
-
"@metamask/keyring-snap-sdk": "10.0.
|
|
72
|
+
"@metamask/keyring-api": "24.2.0",
|
|
73
|
+
"@metamask/keyring-internal-api": "12.1.1",
|
|
74
|
+
"@metamask/keyring-internal-snap-client": "11.1.1",
|
|
75
|
+
"@metamask/keyring-sdk": "4.0.0",
|
|
76
|
+
"@metamask/keyring-snap-sdk": "10.0.1",
|
|
77
77
|
"@metamask/keyring-utils": "5.0.0",
|
|
78
|
-
"@metamask/messenger": "^
|
|
78
|
+
"@metamask/messenger": "^2.0.0",
|
|
79
79
|
"@metamask/snaps-controllers": "^19.0.1",
|
|
80
|
-
"@metamask/snaps-sdk": "^11.
|
|
80
|
+
"@metamask/snaps-sdk": "^11.2.0",
|
|
81
81
|
"@metamask/snaps-utils": "^12.2.1",
|
|
82
82
|
"@metamask/superstruct": "^3.4.1",
|
|
83
83
|
"@metamask/utils": "^11.11.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@lavamoat/allow-scripts": "^3.2.1",
|
|
90
90
|
"@lavamoat/preinstall-always-fail": "^2.1.0",
|
|
91
91
|
"@metamask/auto-changelog": "^6.1.0",
|
|
92
|
-
"@metamask/keyring-api": "24.
|
|
92
|
+
"@metamask/keyring-api": "24.2.0",
|
|
93
93
|
"@ts-bridge/cli": "^0.6.3",
|
|
94
94
|
"@types/jest": "^29.5.12",
|
|
95
95
|
"@types/node": "^20.12.12",
|