@metamask-previews/keyring-controller 23.0.0-preview-0684712d → 23.0.0-preview-f3f2e8c8

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 CHANGED
@@ -7,17 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Added
11
-
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))
14
-
15
- ### Changed
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
-
21
10
  ## [23.0.0]
22
11
 
23
12
  ### Changed
@@ -65,6 +65,7 @@ var KeyringTypes;
65
65
  KeyringTypes["oneKey"] = "OneKey Hardware";
66
66
  KeyringTypes["ledger"] = "Ledger Hardware";
67
67
  KeyringTypes["lattice"] = "Lattice Hardware";
68
+ KeyringTypes["keystone"] = "Keystone Hardware";
68
69
  KeyringTypes["snap"] = "Snap Keyring";
69
70
  })(KeyringTypes || (exports.KeyringTypes = KeyringTypes = {}));
70
71
  /**
@@ -264,36 +265,11 @@ class KeyringController extends base_controller_1.BaseController {
264
265
  super({
265
266
  name,
266
267
  metadata: {
267
- vault: {
268
- includeInStateLogs: false,
269
- persist: true,
270
- anonymous: false,
271
- usedInUi: false,
272
- },
273
- isUnlocked: {
274
- includeInStateLogs: true,
275
- persist: false,
276
- anonymous: true,
277
- usedInUi: true,
278
- },
279
- keyrings: {
280
- includeInStateLogs: true,
281
- persist: false,
282
- anonymous: false,
283
- usedInUi: true,
284
- },
285
- encryptionKey: {
286
- includeInStateLogs: false,
287
- persist: false,
288
- anonymous: false,
289
- usedInUi: false,
290
- },
291
- encryptionSalt: {
292
- includeInStateLogs: false,
293
- persist: false,
294
- anonymous: false,
295
- usedInUi: false,
296
- },
268
+ vault: { persist: true, anonymous: false },
269
+ isUnlocked: { persist: false, anonymous: true },
270
+ keyrings: { persist: false, anonymous: false },
271
+ encryptionKey: { persist: false, anonymous: false },
272
+ encryptionSalt: { persist: false, anonymous: false },
297
273
  },
298
274
  messenger,
299
275
  state: {
@@ -1032,7 +1008,6 @@ _KeyringController_controllerOperationMutex = new WeakMap(), _KeyringController_
1032
1008
  this.messagingSystem.registerActionHandler(`${name}:signUserOperation`, this.signUserOperation.bind(this));
1033
1009
  this.messagingSystem.registerActionHandler(`${name}:addNewAccount`, this.addNewAccount.bind(this));
1034
1010
  this.messagingSystem.registerActionHandler(`${name}:withKeyring`, this.withKeyring.bind(this));
1035
- this.messagingSystem.registerActionHandler(`${name}:addNewKeyring`, this.addNewKeyring.bind(this));
1036
1011
  }, _KeyringController_getKeyringById = function _KeyringController_getKeyringById(keyringId) {
1037
1012
  return __classPrivateFieldGet(this, _KeyringController_keyrings, "f").find(({ metadata }) => metadata.id === keyringId)
1038
1013
  ?.keyring;