@metamask-previews/keyring-controller 23.0.0-preview-ea6406b3 → 23.0.0-preview-9a5f096
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 +4 -0
- package/dist/KeyringController.cjs +30 -6
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +30 -6
- package/dist/KeyringController.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,10 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
12
|
- Add `KeyringController:addNewKeyring` action ([#6439](https://github.com/MetaMask/core/pull/6439))
|
|
13
|
+
- Add two new controller state metadata properties: `includeInStateLogs` and `usedInUi` ([#6525](https://github.com/MetaMask/core/pull/6525))
|
|
13
14
|
|
|
14
15
|
### Changed
|
|
15
16
|
|
|
16
17
|
- Bump `@metamask/base-controller` from `^8.1.0` to `^8.3.0` ([#6355](https://github.com/MetaMask/core/pull/6355), [#6465](https://github.com/MetaMask/core/pull/6465))
|
|
18
|
+
- Bump `@metamask/keyring-api` from `^20.1.0` to `^21.0.0` ([#6560](https://github.com/MetaMask/core/pull/6560))
|
|
19
|
+
- Bump `@metamask/keyring-internal-api` from `^8.1.0` to `^9.0.0` ([#6560](https://github.com/MetaMask/core/pull/6560))
|
|
20
|
+
- Bump `@metamask/eth-hd-keyring` from `^12.0.0` to `13.0.0` ([#6566](https://github.com/MetaMask/core/pull/6566))
|
|
17
21
|
|
|
18
22
|
## [23.0.0]
|
|
19
23
|
|
|
@@ -115,7 +115,6 @@ const defaultKeyringBuilders = [
|
|
|
115
115
|
// todo: keyring types are mismatched, this should be fixed in they keyrings themselves
|
|
116
116
|
// @ts-expect-error keyring types are mismatched
|
|
117
117
|
keyringBuilderFactory(eth_simple_keyring_1.default),
|
|
118
|
-
// @ts-expect-error keyring types are mismatched
|
|
119
118
|
keyringBuilderFactory(eth_hd_keyring_1.HdKeyring),
|
|
120
119
|
];
|
|
121
120
|
const getDefaultKeyringState = () => {
|
|
@@ -264,11 +263,36 @@ class KeyringController extends base_controller_1.BaseController {
|
|
|
264
263
|
super({
|
|
265
264
|
name,
|
|
266
265
|
metadata: {
|
|
267
|
-
vault: {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
266
|
+
vault: {
|
|
267
|
+
includeInStateLogs: false,
|
|
268
|
+
persist: true,
|
|
269
|
+
anonymous: false,
|
|
270
|
+
usedInUi: false,
|
|
271
|
+
},
|
|
272
|
+
isUnlocked: {
|
|
273
|
+
includeInStateLogs: true,
|
|
274
|
+
persist: false,
|
|
275
|
+
anonymous: true,
|
|
276
|
+
usedInUi: true,
|
|
277
|
+
},
|
|
278
|
+
keyrings: {
|
|
279
|
+
includeInStateLogs: true,
|
|
280
|
+
persist: false,
|
|
281
|
+
anonymous: false,
|
|
282
|
+
usedInUi: true,
|
|
283
|
+
},
|
|
284
|
+
encryptionKey: {
|
|
285
|
+
includeInStateLogs: false,
|
|
286
|
+
persist: false,
|
|
287
|
+
anonymous: false,
|
|
288
|
+
usedInUi: false,
|
|
289
|
+
},
|
|
290
|
+
encryptionSalt: {
|
|
291
|
+
includeInStateLogs: false,
|
|
292
|
+
persist: false,
|
|
293
|
+
anonymous: false,
|
|
294
|
+
usedInUi: false,
|
|
295
|
+
},
|
|
272
296
|
},
|
|
273
297
|
messenger,
|
|
274
298
|
state: {
|