@metamask/keyring-api 24.2.0 → 24.3.0
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 +8 -1
- package/dist/v2/api/keyring-type.cjs +5 -0
- package/dist/v2/api/keyring-type.cjs.map +1 -1
- package/dist/v2/api/keyring-type.d.cts +5 -0
- package/dist/v2/api/keyring-type.d.cts.map +1 -1
- package/dist/v2/api/keyring-type.d.mts +5 -0
- package/dist/v2/api/keyring-type.d.mts.map +1 -1
- package/dist/v2/api/keyring-type.mjs +5 -0
- package/dist/v2/api/keyring-type.mjs.map +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [24.3.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `KeyringType.MpcMoney` keyring type ([#671](https://github.com/MetaMask/accounts/pull/671))
|
|
15
|
+
|
|
10
16
|
## [24.2.0]
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -840,7 +846,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
840
846
|
- SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
|
|
841
847
|
- Helper functions to create keyring handler in the snap.
|
|
842
848
|
|
|
843
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@24.
|
|
849
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@24.3.0...HEAD
|
|
850
|
+
[24.3.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@24.2.0...@metamask/keyring-api@24.3.0
|
|
844
851
|
[24.2.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@24.1.0...@metamask/keyring-api@24.2.0
|
|
845
852
|
[24.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@24.0.0...@metamask/keyring-api@24.1.0
|
|
846
853
|
[24.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@23.7.0...@metamask/keyring-api@24.0.0
|
|
@@ -44,6 +44,11 @@ var KeyringType;
|
|
|
44
44
|
* Represents keyring for money accounts.
|
|
45
45
|
*/
|
|
46
46
|
KeyringType["Money"] = "money";
|
|
47
|
+
/**
|
|
48
|
+
* Represents a keyring that uses Multi-Party Computation (MPC) for key
|
|
49
|
+
* management and signing, dedicated to money accounts.
|
|
50
|
+
*/
|
|
51
|
+
KeyringType["MpcMoney"] = "mpc-money";
|
|
47
52
|
/**
|
|
48
53
|
* Represents a watch-only keyring that holds accounts imported by address,
|
|
49
54
|
* without any signing capability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyring-type.cjs","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"keyring-type.cjs","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,WAiEX;AAjED,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,8BAAe,CAAA;IAEf;;;OAGG;IACH,qCAAsB,CAAA;IAEtB;;;OAGG;IACH,uCAAwB,CAAA;IAExB;;;OAGG;IACH,0BAAW,CAAA;AACb,CAAC,EAjEW,WAAW,2BAAX,WAAW,QAiEtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n\n /**\n * Represents keyring for money accounts.\n */\n Money = 'money',\n\n /**\n * Represents a keyring that uses Multi-Party Computation (MPC) for key\n * management and signing, dedicated to money accounts.\n */\n MpcMoney = 'mpc-money',\n\n /**\n * Represents a watch-only keyring that holds accounts imported by address,\n * without any signing capability.\n */\n WatchOnly = 'watch-only',\n\n /**\n * Represents a keyring that uses Multi-Party Computation (MPC) for key\n * management and signing.\n */\n Mpc = 'mpc',\n}\n"]}
|
|
@@ -40,6 +40,11 @@ export declare enum KeyringType {
|
|
|
40
40
|
* Represents keyring for money accounts.
|
|
41
41
|
*/
|
|
42
42
|
Money = "money",
|
|
43
|
+
/**
|
|
44
|
+
* Represents a keyring that uses Multi-Party Computation (MPC) for key
|
|
45
|
+
* management and signing, dedicated to money accounts.
|
|
46
|
+
*/
|
|
47
|
+
MpcMoney = "mpc-money",
|
|
43
48
|
/**
|
|
44
49
|
* Represents a watch-only keyring that holds accounts imported by address,
|
|
45
50
|
* without any signing capability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyring-type.d.cts","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;IAEf;;;OAGG;IACH,SAAS,eAAe;IAExB;;;OAGG;IACH,GAAG,QAAQ;CACZ"}
|
|
1
|
+
{"version":3,"file":"keyring-type.d.cts","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;IAEf;;;OAGG;IACH,QAAQ,cAAc;IAEtB;;;OAGG;IACH,SAAS,eAAe;IAExB;;;OAGG;IACH,GAAG,QAAQ;CACZ"}
|
|
@@ -40,6 +40,11 @@ export declare enum KeyringType {
|
|
|
40
40
|
* Represents keyring for money accounts.
|
|
41
41
|
*/
|
|
42
42
|
Money = "money",
|
|
43
|
+
/**
|
|
44
|
+
* Represents a keyring that uses Multi-Party Computation (MPC) for key
|
|
45
|
+
* management and signing, dedicated to money accounts.
|
|
46
|
+
*/
|
|
47
|
+
MpcMoney = "mpc-money",
|
|
43
48
|
/**
|
|
44
49
|
* Represents a watch-only keyring that holds accounts imported by address,
|
|
45
50
|
* without any signing capability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyring-type.d.mts","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;IAEf;;;OAGG;IACH,SAAS,eAAe;IAExB;;;OAGG;IACH,GAAG,QAAQ;CACZ"}
|
|
1
|
+
{"version":3,"file":"keyring-type.d.mts","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,UAAU,gBAAgB;IAE1B;;;;OAIG;IACH,EAAE,OAAO;IAET;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,KAAK,UAAU;IAEf;;;OAGG;IACH,QAAQ,cAAc;IAEtB;;;OAGG;IACH,SAAS,eAAe;IAExB;;;OAGG;IACH,GAAG,QAAQ;CACZ"}
|
|
@@ -41,6 +41,11 @@ export var KeyringType;
|
|
|
41
41
|
* Represents keyring for money accounts.
|
|
42
42
|
*/
|
|
43
43
|
KeyringType["Money"] = "money";
|
|
44
|
+
/**
|
|
45
|
+
* Represents a keyring that uses Multi-Party Computation (MPC) for key
|
|
46
|
+
* management and signing, dedicated to money accounts.
|
|
47
|
+
*/
|
|
48
|
+
KeyringType["MpcMoney"] = "mpc-money";
|
|
44
49
|
/**
|
|
45
50
|
* Represents a watch-only keyring that holds accounts imported by address,
|
|
46
51
|
* without any signing capability.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyring-type.mjs","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"keyring-type.mjs","sourceRoot":"","sources":["../../../src/v2/api/keyring-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,WAiEX;AAjED,WAAY,WAAW;IACrB;;OAEG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,yCAA0B,CAAA;IAE1B;;;;OAIG;IACH,wBAAS,CAAA;IAET;;OAEG;IACH,4BAAa,CAAA;IAEb;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,kCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,gCAAiB,CAAA;IAEjB;;OAEG;IACH,8BAAe,CAAA;IAEf;;;OAGG;IACH,qCAAsB,CAAA;IAEtB;;;OAGG;IACH,uCAAwB,CAAA;IAExB;;;OAGG;IACH,0BAAW,CAAA;AACb,CAAC,EAjEW,WAAW,KAAX,WAAW,QAiEtB","sourcesContent":["/**\n * Enum representing the different types of keyrings supported.\n */\nexport enum KeyringType {\n /**\n * Represents a hierarchical deterministic (HD) keyring.\n */\n Hd = 'hd',\n\n /**\n * Represents a keyring that directly stores private keys.\n */\n PrivateKey = 'private-key',\n\n /**\n * Represents a keyring that implements the QR protocol.\n *\n * See: https://eips.ethereum.org/EIPS/eip-4527\n */\n Qr = 'qr',\n\n /**\n * Represents keyring backed by a Snap.\n */\n Snap = 'snap',\n\n /**\n * Represents keyring backed by a Ledger hardware wallet.\n */\n Ledger = 'ledger',\n\n /**\n * Represents keyring backed by a Lattice hardware wallet.\n */\n Lattice = 'lattice',\n\n /**\n * Represents keyring backed by a Trezor hardware wallet.\n */\n Trezor = 'trezor',\n\n /**\n * Represents keyring backed by a OneKey hardware wallet.\n */\n OneKey = 'onekey',\n\n /**\n * Represents keyring for money accounts.\n */\n Money = 'money',\n\n /**\n * Represents a keyring that uses Multi-Party Computation (MPC) for key\n * management and signing, dedicated to money accounts.\n */\n MpcMoney = 'mpc-money',\n\n /**\n * Represents a watch-only keyring that holds accounts imported by address,\n * without any signing capability.\n */\n WatchOnly = 'watch-only',\n\n /**\n * Represents a keyring that uses Multi-Party Computation (MPC) for key\n * management and signing.\n */\n Mpc = 'mpc',\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/keyring-api",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"description": "MetaMask Keyring API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"keyring",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"build:docs": "typedoc",
|
|
58
58
|
"changelog:update": "../../scripts/update-changelog.sh @metamask/keyring-api",
|
|
59
59
|
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/keyring-api",
|
|
60
|
-
"publish:preview": "yarn npm publish --tag preview",
|
|
61
60
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
62
61
|
"test": "yarn test:source && yarn test:types",
|
|
63
62
|
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
|