@metamask-previews/keyring-controller 25.0.0-preview-fe83443 → 25.0.0-preview-4a05a524

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,6 +7,11 @@ 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
+ - Added `KeyringController:newVault` event ([#7196](https://github.com/MetaMask/core/pull/7196))
13
+ - This event is emitted whenever a new vault is created via `createNewVaultAndKeychain` or `createNewVaultAndRestore` methods.
14
+
10
15
  ## [25.0.0]
11
16
 
12
17
  ### Added
@@ -1051,6 +1051,7 @@ async function _KeyringController_createNewVaultWithKeyring(password, keyring) {
1051
1051
  });
1052
1052
  await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_clearKeyrings).call(this);
1053
1053
  await __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_createKeyringWithFirstAccount).call(this, keyring.type, keyring.opts);
1054
+ this.messenger.publish(`${name}:newVault`);
1054
1055
  __classPrivateFieldGet(this, _KeyringController_instances, "m", _KeyringController_setUnlocked).call(this);
1055
1056
  }, _KeyringController_deriveAndSetEncryptionKey =
1056
1057
  /**