@metamask-previews/keyring-api 12.0.0-ac29af4 → 13.0.0-3847d8e

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,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [13.0.0]
11
+
12
+ ### Added
13
+
14
+ - New scope constant values added for Ethereum, Bitcoin, and Solana ([#101](https://github.com/MetaMask/accounts/pull/101))
15
+
16
+ ### Changed
17
+
18
+ - **BREAKING:** Add `scopes` field to `KeyringAccount` ([#101](https://github.com/MetaMask/accounts/pull/101))
19
+
10
20
  ## [12.0.0]
11
21
 
12
22
  ### Changed
@@ -456,7 +466,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
456
466
  - SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
457
467
  - Helper functions to create keyring handler in the snap.
458
468
 
459
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@12.0.0...HEAD
469
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@13.0.0...HEAD
470
+ [13.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@12.0.0...@metamask/keyring-api@13.0.0
460
471
  [12.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@11.1.0...@metamask/keyring-api@12.0.0
461
472
  [11.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@11.0.0...@metamask/keyring-api@11.1.0
462
473
  [11.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-api@10.1.0...@metamask/keyring-api@11.0.0
@@ -10,5 +10,8 @@ var BtcScopes;
10
10
  BtcScopes["Namespace"] = "bip122";
11
11
  BtcScopes["Mainnet"] = "bip122:000000000019d6689c085ae165831e93";
12
12
  BtcScopes["Testnet"] = "bip122:000000000933ea01ad0ee984209779ba";
13
+ BtcScopes["Testnet4"] = "bip122:00000000da84f2bafbbc53dee25a72ae";
14
+ BtcScopes["Signet"] = "bip122:00000008819873e925422c1ff0f99f7c";
15
+ BtcScopes["Regtest"] = "bip122:regtest";
13
16
  })(BtcScopes || (exports.BtcScopes = BtcScopes = {}));
14
17
  //# sourceMappingURL=constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;AACrD,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScopes {\n Namespace = 'bip122',\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n}\n"]}
1
+ {"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B;;GAEG;AACH,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;IACnD,iEAAoD,CAAA;IACpD,+DAAkD,CAAA;IAClD,uCAA0B,CAAA;AAC5B,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScopes {\n Namespace = 'bip122',\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n Testnet4 = 'bip122:00000000da84f2bafbbc53dee25a72ae',\n Signet = 'bip122:00000008819873e925422c1ff0f99f7c',\n Regtest = 'bip122:regtest',\n}\n"]}
@@ -4,6 +4,9 @@
4
4
  export declare enum BtcScopes {
5
5
  Namespace = "bip122",
6
6
  Mainnet = "bip122:000000000019d6689c085ae165831e93",
7
- Testnet = "bip122:000000000933ea01ad0ee984209779ba"
7
+ Testnet = "bip122:000000000933ea01ad0ee984209779ba",
8
+ Testnet4 = "bip122:00000000da84f2bafbbc53dee25a72ae",
9
+ Signet = "bip122:00000008819873e925422c1ff0f99f7c",
10
+ Regtest = "bip122:regtest"
8
11
  }
9
12
  //# sourceMappingURL=constants.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;CACpD"}
1
+ {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;IACnD,QAAQ,4CAA4C;IACpD,MAAM,4CAA4C;IAClD,OAAO,mBAAmB;CAC3B"}
@@ -4,6 +4,9 @@
4
4
  export declare enum BtcScopes {
5
5
  Namespace = "bip122",
6
6
  Mainnet = "bip122:000000000019d6689c085ae165831e93",
7
- Testnet = "bip122:000000000933ea01ad0ee984209779ba"
7
+ Testnet = "bip122:000000000933ea01ad0ee984209779ba",
8
+ Testnet4 = "bip122:00000000da84f2bafbbc53dee25a72ae",
9
+ Signet = "bip122:00000008819873e925422c1ff0f99f7c",
10
+ Regtest = "bip122:regtest"
8
11
  }
9
12
  //# sourceMappingURL=constants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;CACpD"}
1
+ {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,4CAA4C;IACnD,OAAO,4CAA4C;IACnD,QAAQ,4CAA4C;IACpD,MAAM,4CAA4C;IAClD,OAAO,mBAAmB;CAC3B"}
@@ -7,5 +7,8 @@ export var BtcScopes;
7
7
  BtcScopes["Namespace"] = "bip122";
8
8
  BtcScopes["Mainnet"] = "bip122:000000000019d6689c085ae165831e93";
9
9
  BtcScopes["Testnet"] = "bip122:000000000933ea01ad0ee984209779ba";
10
+ BtcScopes["Testnet4"] = "bip122:00000000da84f2bafbbc53dee25a72ae";
11
+ BtcScopes["Signet"] = "bip122:00000008819873e925422c1ff0f99f7c";
12
+ BtcScopes["Regtest"] = "bip122:regtest";
10
13
  })(BtcScopes || (BtcScopes = {}));
11
14
  //# sourceMappingURL=constants.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;AACrD,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScopes {\n Namespace = 'bip122',\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n}\n"]}
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/btc/constants.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B;;GAEG;AACH,MAAM,CAAN,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,gEAAmD,CAAA;IACnD,gEAAmD,CAAA;IACnD,iEAAoD,CAAA;IACpD,+DAAkD,CAAA;IAClD,uCAA0B,CAAA;AAC5B,CAAC,EAPW,SAAS,KAAT,SAAS,QAOpB","sourcesContent":["/* istanbul ignore file */\n\n/**\n * Scopes for Bitcoin account type. See {@link KeyringAccount.scopes}.\n */\nexport enum BtcScopes {\n Namespace = 'bip122',\n Mainnet = 'bip122:000000000019d6689c085ae165831e93',\n Testnet = 'bip122:000000000933ea01ad0ee984209779ba',\n Testnet4 = 'bip122:00000000da84f2bafbbc53dee25a72ae',\n Signet = 'bip122:00000008819873e925422c1ff0f99f7c',\n Regtest = 'bip122:regtest',\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-api",
3
- "version": "12.0.0-ac29af4",
3
+ "version": "13.0.0-3847d8e",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@metamask/keyring-utils": "1.0.0",
50
50
  "@metamask/superstruct": "^3.1.0",
51
- "@metamask/utils": "^9.3.0",
51
+ "@metamask/utils": "^11.0.1",
52
52
  "bech32": "^2.0.0"
53
53
  },
54
54
  "devDependencies": {