@metamask-previews/keyring-controller 25.2.0-preview-548bdd1d9 → 25.2.0-preview-b800567ef

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
@@ -27,10 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
27
 
28
28
  - Bump `@metamask/messenger` from `^1.0.0` to `^1.1.1` ([#8364](https://github.com/MetaMask/core/pull/8364), [#8373](https://github.com/MetaMask/core/pull/8373))
29
29
  - Bump `@metamask/base-controller` from `^9.0.1` to `^9.1.0` ([#8457](https://github.com/MetaMask/core/pull/8457))
30
- - Bump `@metamask/eth-hd-keyring` from `^13.1.1` to `^14.0.0` ([#8464](https://github.com/MetaMask/core/pull/8464))
31
- - Bump `@metamask/eth-simple-keyring` from `^11.1.2` to `^12.0.0` ([#8464](https://github.com/MetaMask/core/pull/8464))
32
- - Bump `@metamask/keyring-api` from `^21.6.0` to `^23.0.0` ([#8464](https://github.com/MetaMask/core/pull/8464))
33
- - Bump `@metamask/keyring-internal-api` from `^10.0.0` to `^10.1.0` ([#8464](https://github.com/MetaMask/core/pull/8464))
34
30
 
35
31
  ## [25.2.0]
36
32
 
@@ -33,19 +33,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
33
33
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
34
34
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
35
35
  };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
36
  var _KeyringController_instances, _KeyringController_controllerOperationMutex, _KeyringController_vaultOperationMutex, _KeyringController_keyringBuilders, _KeyringController_keyringV2Builders, _KeyringController_encryptor, _KeyringController_keyrings, _KeyringController_unsupportedKeyrings, _KeyringController_encryptionKey, _KeyringController_getKeyringForAccount, _KeyringController_getKeyringEntryForAccount, _KeyringController_findKeyringIndexForAccount, _KeyringController_getKeyringEntriesByType, _KeyringController_assertNoUnsafeDirectKeyringAccess, _KeyringController_registerMessageHandlers, _KeyringController_selectKeyringEntry, _KeyringController_getKeyringById, _KeyringController_getKeyringEntryById, _KeyringController_getKeyringByIdOrDefault, _KeyringController_getKeyringMetadata, _KeyringController_getKeyringBuilderForType, _KeyringController_getKeyringV2BuilderForType, _KeyringController_createNewVaultWithKeyring, _KeyringController_deriveAndSetEncryptionKey, _KeyringController_setEncryptionKey, _KeyringController_verifySeedPhrase, _KeyringController_getUpdatedKeyrings, _KeyringController_getSerializedKeyrings, _KeyringController_getSessionState, _KeyringController_restoreSerializedKeyrings, _KeyringController_unlockKeyrings, _KeyringController_updateVault, _KeyringController_isNewEncryptionAvailable, _KeyringController_getAccountsFromKeyrings, _KeyringController_createKeyringWithFirstAccount, _KeyringController_newKeyring, _KeyringController_createKeyring, _KeyringController_clearKeyrings, _KeyringController_restoreKeyring, _KeyringController_destroyKeyring, _KeyringController_assertNoDuplicateAccounts, _KeyringController_setUnlocked, _KeyringController_assertIsUnlocked, _KeyringController_persistOrRollback, _KeyringController_withRollback, _KeyringController_assertControllerMutexIsLocked, _KeyringController_withControllerLock, _KeyringController_withVaultLock;
40
37
  Object.defineProperty(exports, "__esModule", { value: true });
41
38
  exports.KeyringController = exports.getDefaultKeyringState = exports.keyringBuilderFactory = exports.SignTypedDataVersion = exports.AccountImportStrategy = exports.isCustodyKeyring = exports.KeyringTypes = void 0;
42
39
  const util_1 = require("@ethereumjs/util");
43
40
  const base_controller_1 = require("@metamask/base-controller");
44
41
  const eth_hd_keyring_1 = require("@metamask/eth-hd-keyring");
45
- const v2_1 = require("@metamask/eth-hd-keyring/v2");
46
42
  const eth_sig_util_1 = require("@metamask/eth-sig-util");
47
- const eth_simple_keyring_1 = __importDefault(require("@metamask/eth-simple-keyring"));
48
- const v2_2 = require("@metamask/eth-simple-keyring/v2");
43
+ const eth_simple_keyring_1 = __importStar(require("@metamask/eth-simple-keyring"));
49
44
  const utils_1 = require("@metamask/utils");
50
45
  const async_mutex_1 = require("async-mutex");
51
46
  const ethereumjs_wallet_1 = __importStar(require("ethereumjs-wallet"));
@@ -153,11 +148,11 @@ const defaultKeyringBuilders = [
153
148
  keyringBuilderFactory(eth_simple_keyring_1.default),
154
149
  keyringBuilderFactory(eth_hd_keyring_1.HdKeyring),
155
150
  ];
156
- const hdKeyringV2Builder = Object.assign((keyring, metadata) => new v2_1.HdKeyring({
151
+ const hdKeyringV2Builder = Object.assign((keyring, metadata) => new eth_hd_keyring_1.HdKeyringV2({
157
152
  legacyKeyring: keyring,
158
153
  entropySource: metadata.id,
159
154
  }), { type: KeyringTypes.hd });
160
- const simpleKeyringV2Builder = Object.assign((keyring) => new v2_2.SimpleKeyring({
155
+ const simpleKeyringV2Builder = Object.assign((keyring) => new eth_simple_keyring_1.SimpleKeyringV2({
161
156
  legacyKeyring: keyring,
162
157
  }), { type: KeyringTypes.simple });
163
158
  const defaultKeyringV2Builders = [