@metamask-previews/keyring-controller 25.2.0-preview-b284401cb → 25.2.0-preview-d363b2d74
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 +8 -3
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +2 -1
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +2 -1
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +4 -2
- package/dist/KeyringController.mjs.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,10 @@ 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.1` ([#8464](https://github.com/MetaMask/core/pull/8464))
|
|
31
|
+
- Bump `@metamask/eth-simple-keyring` from `^11.1.2` to `^12.0.1` ([#8464](https://github.com/MetaMask/core/pull/8464))
|
|
32
|
+
- Bump `@metamask/keyring-api` from `^21.6.0` to `^23.0.1` ([#8464](https://github.com/MetaMask/core/pull/8464))
|
|
33
|
+
- Bump `@metamask/keyring-internal-api` from `^10.0.0` to `^10.1.1` ([#8464](https://github.com/MetaMask/core/pull/8464))
|
|
30
34
|
|
|
31
35
|
## [25.2.0]
|
|
32
36
|
|
|
@@ -33,14 +33,19 @@ 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
|
+
};
|
|
36
39
|
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;
|
|
37
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
41
|
exports.KeyringController = exports.getDefaultKeyringState = exports.keyringBuilderFactory = exports.SignTypedDataVersion = exports.AccountImportStrategy = exports.isCustodyKeyring = exports.KeyringTypes = void 0;
|
|
39
42
|
const util_1 = require("@ethereumjs/util");
|
|
40
43
|
const base_controller_1 = require("@metamask/base-controller");
|
|
41
44
|
const eth_hd_keyring_1 = require("@metamask/eth-hd-keyring");
|
|
45
|
+
const v2_1 = require("@metamask/eth-hd-keyring/v2");
|
|
42
46
|
const eth_sig_util_1 = require("@metamask/eth-sig-util");
|
|
43
|
-
const eth_simple_keyring_1 =
|
|
47
|
+
const eth_simple_keyring_1 = __importDefault(require("@metamask/eth-simple-keyring"));
|
|
48
|
+
const v2_2 = require("@metamask/eth-simple-keyring/v2");
|
|
44
49
|
const utils_1 = require("@metamask/utils");
|
|
45
50
|
const async_mutex_1 = require("async-mutex");
|
|
46
51
|
const ethereumjs_wallet_1 = __importStar(require("ethereumjs-wallet"));
|
|
@@ -148,11 +153,11 @@ const defaultKeyringBuilders = [
|
|
|
148
153
|
keyringBuilderFactory(eth_simple_keyring_1.default),
|
|
149
154
|
keyringBuilderFactory(eth_hd_keyring_1.HdKeyring),
|
|
150
155
|
];
|
|
151
|
-
const hdKeyringV2Builder = Object.assign((keyring, metadata) => new
|
|
156
|
+
const hdKeyringV2Builder = Object.assign((keyring, metadata) => new v2_1.HdKeyring({
|
|
152
157
|
legacyKeyring: keyring,
|
|
153
158
|
entropySource: metadata.id,
|
|
154
159
|
}), { type: KeyringTypes.hd });
|
|
155
|
-
const simpleKeyringV2Builder = Object.assign((keyring) => new
|
|
160
|
+
const simpleKeyringV2Builder = Object.assign((keyring) => new v2_2.SimpleKeyring({
|
|
156
161
|
legacyKeyring: keyring,
|
|
157
162
|
}), { type: KeyringTypes.simple });
|
|
158
163
|
const defaultKeyringV2Builders = [
|