@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 +23 -1
- package/dist/KeyringController.js +3 -3
- package/dist/KeyringController.mjs +2 -2
- package/dist/{chunk-NAAWD7HX.mjs → chunk-HT7WOORD.mjs} +3 -1
- package/dist/{chunk-NAAWD7HX.mjs.map → chunk-HT7WOORD.mjs.map} +1 -1
- package/dist/{chunk-BVSGYW4D.js → chunk-ISACMNF3.js} +517 -401
- package/dist/chunk-ISACMNF3.js.map +1 -0
- package/dist/{chunk-CHLPTPMZ.js → chunk-QDPHKQON.js} +3 -1
- package/dist/chunk-QDPHKQON.js.map +1 -0
- package/dist/{chunk-6HZWCYLD.mjs → chunk-RVCG63UG.mjs} +457 -341
- package/dist/chunk-RVCG63UG.mjs.map +1 -0
- package/dist/constants.js +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/KeyringController.d.ts +27 -33
- package/dist/types/KeyringController.d.ts.map +1 -1
- package/dist/types/constants.d.ts +3 -1
- package/dist/types/constants.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-6HZWCYLD.mjs.map +0 -1
- package/dist/chunk-BVSGYW4D.js.map +0 -1
- package/dist/chunk-CHLPTPMZ.js.map +0 -1
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@
|
|
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
|
|
11
|
-
require('./chunk-
|
|
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 =
|
|
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-
|
|
11
|
-
import "./chunk-
|
|
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-
|
|
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;
|
|
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"]}
|