@metamask-previews/keyring-controller 14.0.1-preview-f04be62f → 15.0.0-preview-fb52b9eb

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,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - **BREAKING**: Change various `KeyringController` methods so they no longer return the controller state ([#4199](https://github.com/MetaMask/core/pull/4199))
13
+ - Changed `addNewAccount` return type to `Promise<string>`
14
+ - Changed `addNewAccountWithoutUpdate` return type to `Promise<string>`
15
+ - Changed `createNewVaultAndKeychain` return type to `Promise<void>`
16
+ - Changed `createNewVaultAndRestore` return type to `Promise<void>`
17
+ - Changed `importAccountWithStrategy` return type to `Promise<string>`
18
+ - Changed `removeAccount` return type to `Promise<void>`
19
+ - Changed `setLocked` return type to `Promise<void>`
20
+ - Changed `submitEncryptionKey` return type to `Promise<void>`
21
+ - Changed `submitPassword` return type to `Promise<void>`
22
+
23
+ ## [15.0.0]
24
+
25
+ ### Changed
26
+
27
+ - **BREAKING** use getAccounts on HD Keyring when calling addNewAccount ([#4158](https://github.com/MetaMask/core/pull/4158))
28
+ - Pass CAIP-2 scope to execution context ([#4090](https://github.com/MetaMask/core/pull/4090))
29
+ - Allow gas limits to be changed during #addPaymasterData ([#3942](https://github.com/MetaMask/core/pull/3942))
30
+
10
31
  ## [14.0.1]
11
32
 
12
33
  ### Fixed
@@ -400,7 +421,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
400
421
 
401
422
  All changes listed after this point were applied to this package following the monorepo conversion.
402
423
 
403
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@14.0.1...HEAD
424
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@15.0.0...HEAD
425
+ [15.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@14.0.1...@metamask/keyring-controller@15.0.0
404
426
  [14.0.1]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@14.0.0...@metamask/keyring-controller@14.0.1
405
427
  [14.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@13.0.0...@metamask/keyring-controller@14.0.0
406
428
  [13.0.0]: https://github.com/MetaMask/core/compare/@metamask/keyring-controller@12.2.0...@metamask/keyring-controller@13.0.0
@@ -7,8 +7,8 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkBVSGYW4Djs = require('./chunk-BVSGYW4D.js');
11
- require('./chunk-CHLPTPMZ.js');
10
+ var _chunkISACMNF3js = require('./chunk-ISACMNF3.js');
11
+ require('./chunk-QDPHKQON.js');
12
12
 
13
13
 
14
14
 
@@ -18,5 +18,5 @@ require('./chunk-CHLPTPMZ.js');
18
18
 
19
19
 
20
20
 
21
- exports.AccountImportStrategy = _chunkBVSGYW4Djs.AccountImportStrategy; exports.KeyringController = _chunkBVSGYW4Djs.KeyringController; exports.KeyringTypes = _chunkBVSGYW4Djs.KeyringTypes; exports.SignTypedDataVersion = _chunkBVSGYW4Djs.SignTypedDataVersion; exports.default = _chunkBVSGYW4Djs.KeyringController_default; exports.getDefaultKeyringState = _chunkBVSGYW4Djs.getDefaultKeyringState; exports.isCustodyKeyring = _chunkBVSGYW4Djs.isCustodyKeyring; exports.keyringBuilderFactory = _chunkBVSGYW4Djs.keyringBuilderFactory;
21
+ exports.AccountImportStrategy = _chunkISACMNF3js.AccountImportStrategy; exports.KeyringController = _chunkISACMNF3js.KeyringController; exports.KeyringTypes = _chunkISACMNF3js.KeyringTypes; exports.SignTypedDataVersion = _chunkISACMNF3js.SignTypedDataVersion; exports.default = _chunkISACMNF3js.KeyringController_default; exports.getDefaultKeyringState = _chunkISACMNF3js.getDefaultKeyringState; exports.isCustodyKeyring = _chunkISACMNF3js.isCustodyKeyring; exports.keyringBuilderFactory = _chunkISACMNF3js.keyringBuilderFactory;
22
22
  //# sourceMappingURL=KeyringController.js.map
@@ -7,8 +7,8 @@ import {
7
7
  getDefaultKeyringState,
8
8
  isCustodyKeyring,
9
9
  keyringBuilderFactory
10
- } from "./chunk-6HZWCYLD.mjs";
11
- import "./chunk-NAAWD7HX.mjs";
10
+ } from "./chunk-RVCG63UG.mjs";
11
+ import "./chunk-HT7WOORD.mjs";
12
12
  export {
13
13
  AccountImportStrategy,
14
14
  KeyringController,
@@ -50,6 +50,8 @@ var KeyringControllerError = /* @__PURE__ */ ((KeyringControllerError2) => {
50
50
  KeyringControllerError2["ExpiredCredentials"] = "KeyringController - Encryption key and salt provided are expired";
51
51
  KeyringControllerError2["NoKeyringBuilder"] = "KeyringController - No keyringBuilder found for keyring";
52
52
  KeyringControllerError2["DataType"] = "KeyringController - Incorrect data type provided";
53
+ KeyringControllerError2["NoHdKeyring"] = "KeyringController - No HD Keyring found";
54
+ KeyringControllerError2["ControllerLockRequired"] = "KeyringController - attempt to update vault during a non mutually exclusive operation";
53
55
  return KeyringControllerError2;
54
56
  })(KeyringControllerError || {});
55
57
 
@@ -60,4 +62,4 @@ export {
60
62
  __privateMethod,
61
63
  KeyringControllerError
62
64
  };
63
- //# sourceMappingURL=chunk-NAAWD7HX.mjs.map
65
+ //# sourceMappingURL=chunk-HT7WOORD.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export enum KeyringControllerError {\n NoKeyring = 'KeyringController - No keyring found',\n WrongPasswordType = 'KeyringController - Password must be of type string.',\n NoFirstAccount = 'KeyringController - First Account not found.',\n DuplicatedAccount = 'KeyringController - The account you are trying to import is a duplicate',\n VaultError = 'KeyringController - Cannot unlock without a previous vault.',\n VaultDataError = 'KeyringController - The decrypted vault has an unexpected shape.',\n UnsupportedEncryptionKeyExport = 'KeyringController - The encryptor does not support encryption key export.',\n UnsupportedGenerateRandomMnemonic = 'KeyringController - The current keyring does not support the method generateRandomMnemonic.',\n UnsupportedExportAccount = '`KeyringController - The keyring for the current address does not support the method exportAccount',\n UnsupportedRemoveAccount = '`KeyringController - The keyring for the current address does not support the method removeAccount',\n UnsupportedSignTransaction = 'KeyringController - The keyring for the current address does not support the method signTransaction.',\n UnsupportedSignMessage = 'KeyringController - The keyring for the current address does not support the method signMessage.',\n UnsupportedSignPersonalMessage = 'KeyringController - The keyring for the current address does not support the method signPersonalMessage.',\n UnsupportedGetEncryptionPublicKey = 'KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.',\n UnsupportedDecryptMessage = 'KeyringController - The keyring for the current address does not support the method decryptMessage.',\n UnsupportedSignTypedMessage = 'KeyringController - The keyring for the current address does not support the method signTypedMessage.',\n UnsupportedGetAppKeyAddress = 'KeyringController - The keyring for the current address does not support the method getAppKeyAddress.',\n UnsupportedExportAppKeyForAddress = 'KeyringController - The keyring for the current address does not support the method exportAppKeyForAddress.',\n UnsupportedPrepareUserOperation = 'KeyringController - The keyring for the current address does not support the method prepareUserOperation.',\n UnsupportedPatchUserOperation = 'KeyringController - The keyring for the current address does not support the method patchUserOperation.',\n UnsupportedSignUserOperation = 'KeyringController - The keyring for the current address does not support the method signUserOperation.',\n NoAccountOnKeychain = \"KeyringController - The keychain doesn't have accounts.\",\n MissingCredentials = 'KeyringController - Cannot persist vault without password and encryption key',\n MissingVaultData = 'KeyringController - Cannot persist vault without vault information',\n ExpiredCredentials = 'KeyringController - Encryption key and salt provided are expired',\n NoKeyringBuilder = 'KeyringController - No keyringBuilder found for keyring',\n DataType = 'KeyringController - Incorrect data type provided',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAK,yBAAL,kBAAKA,4BAAL;AACL,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,uBAAoB;AACpB,EAAAA,wBAAA,oBAAiB;AACjB,EAAAA,wBAAA,uBAAoB;AACpB,EAAAA,wBAAA,gBAAa;AACb,EAAAA,wBAAA,oBAAiB;AACjB,EAAAA,wBAAA,oCAAiC;AACjC,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gCAA6B;AAC7B,EAAAA,wBAAA,4BAAyB;AACzB,EAAAA,wBAAA,oCAAiC;AACjC,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,+BAA4B;AAC5B,EAAAA,wBAAA,iCAA8B;AAC9B,EAAAA,wBAAA,iCAA8B;AAC9B,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,qCAAkC;AAClC,EAAAA,wBAAA,mCAAgC;AAChC,EAAAA,wBAAA,kCAA+B;AAC/B,EAAAA,wBAAA,yBAAsB;AACtB,EAAAA,wBAAA,wBAAqB;AACrB,EAAAA,wBAAA,sBAAmB;AACnB,EAAAA,wBAAA,wBAAqB;AACrB,EAAAA,wBAAA,sBAAmB;AACnB,EAAAA,wBAAA,cAAW;AA3BD,SAAAA;AAAA,GAAA;","names":["KeyringControllerError"]}
1
+ {"version":3,"sources":["../src/constants.ts"],"sourcesContent":["export enum KeyringControllerError {\n NoKeyring = 'KeyringController - No keyring found',\n WrongPasswordType = 'KeyringController - Password must be of type string.',\n NoFirstAccount = 'KeyringController - First Account not found.',\n DuplicatedAccount = 'KeyringController - The account you are trying to import is a duplicate',\n VaultError = 'KeyringController - Cannot unlock without a previous vault.',\n VaultDataError = 'KeyringController - The decrypted vault has an unexpected shape.',\n UnsupportedEncryptionKeyExport = 'KeyringController - The encryptor does not support encryption key export.',\n UnsupportedGenerateRandomMnemonic = 'KeyringController - The current keyring does not support the method generateRandomMnemonic.',\n UnsupportedExportAccount = '`KeyringController - The keyring for the current address does not support the method exportAccount',\n UnsupportedRemoveAccount = '`KeyringController - The keyring for the current address does not support the method removeAccount',\n UnsupportedSignTransaction = 'KeyringController - The keyring for the current address does not support the method signTransaction.',\n UnsupportedSignMessage = 'KeyringController - The keyring for the current address does not support the method signMessage.',\n UnsupportedSignPersonalMessage = 'KeyringController - The keyring for the current address does not support the method signPersonalMessage.',\n UnsupportedGetEncryptionPublicKey = 'KeyringController - The keyring for the current address does not support the method getEncryptionPublicKey.',\n UnsupportedDecryptMessage = 'KeyringController - The keyring for the current address does not support the method decryptMessage.',\n UnsupportedSignTypedMessage = 'KeyringController - The keyring for the current address does not support the method signTypedMessage.',\n UnsupportedGetAppKeyAddress = 'KeyringController - The keyring for the current address does not support the method getAppKeyAddress.',\n UnsupportedExportAppKeyForAddress = 'KeyringController - The keyring for the current address does not support the method exportAppKeyForAddress.',\n UnsupportedPrepareUserOperation = 'KeyringController - The keyring for the current address does not support the method prepareUserOperation.',\n UnsupportedPatchUserOperation = 'KeyringController - The keyring for the current address does not support the method patchUserOperation.',\n UnsupportedSignUserOperation = 'KeyringController - The keyring for the current address does not support the method signUserOperation.',\n NoAccountOnKeychain = \"KeyringController - The keychain doesn't have accounts.\",\n MissingCredentials = 'KeyringController - Cannot persist vault without password and encryption key',\n MissingVaultData = 'KeyringController - Cannot persist vault without vault information',\n ExpiredCredentials = 'KeyringController - Encryption key and salt provided are expired',\n NoKeyringBuilder = 'KeyringController - No keyringBuilder found for keyring',\n DataType = 'KeyringController - Incorrect data type provided',\n NoHdKeyring = 'KeyringController - No HD Keyring found',\n ControllerLockRequired = 'KeyringController - attempt to update vault during a non mutually exclusive operation',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAK,yBAAL,kBAAKA,4BAAL;AACL,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,uBAAoB;AACpB,EAAAA,wBAAA,oBAAiB;AACjB,EAAAA,wBAAA,uBAAoB;AACpB,EAAAA,wBAAA,gBAAa;AACb,EAAAA,wBAAA,oBAAiB;AACjB,EAAAA,wBAAA,oCAAiC;AACjC,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,8BAA2B;AAC3B,EAAAA,wBAAA,gCAA6B;AAC7B,EAAAA,wBAAA,4BAAyB;AACzB,EAAAA,wBAAA,oCAAiC;AACjC,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,+BAA4B;AAC5B,EAAAA,wBAAA,iCAA8B;AAC9B,EAAAA,wBAAA,iCAA8B;AAC9B,EAAAA,wBAAA,uCAAoC;AACpC,EAAAA,wBAAA,qCAAkC;AAClC,EAAAA,wBAAA,mCAAgC;AAChC,EAAAA,wBAAA,kCAA+B;AAC/B,EAAAA,wBAAA,yBAAsB;AACtB,EAAAA,wBAAA,wBAAqB;AACrB,EAAAA,wBAAA,sBAAmB;AACnB,EAAAA,wBAAA,wBAAqB;AACrB,EAAAA,wBAAA,sBAAmB;AACnB,EAAAA,wBAAA,cAAW;AACX,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,4BAAyB;AA7Bf,SAAAA;AAAA,GAAA;","names":["KeyringControllerError"]}