@metamask/accounts-controller 27.0.0 → 29.0.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 +32 -1
- package/dist/AccountsController.cjs +249 -180
- package/dist/AccountsController.cjs.map +1 -1
- package/dist/AccountsController.d.cts +13 -1
- package/dist/AccountsController.d.cts.map +1 -1
- package/dist/AccountsController.d.mts +13 -1
- package/dist/AccountsController.d.mts.map +1 -1
- package/dist/AccountsController.mjs +250 -181
- package/dist/AccountsController.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/tests/mocks.cjs +13 -3
- package/dist/tests/mocks.cjs.map +1 -1
- package/dist/tests/mocks.d.cts +3 -1
- package/dist/tests/mocks.d.cts.map +1 -1
- package/dist/tests/mocks.d.mts +3 -1
- package/dist/tests/mocks.d.mts.map +1 -1
- package/dist/tests/mocks.mjs +11 -2
- package/dist/tests/mocks.mjs.map +1 -1
- package/dist/utils.cjs +21 -6
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +14 -0
- package/dist/utils.d.cts.map +1 -1
- package/dist/utils.d.mts +14 -0
- package/dist/utils.d.mts.map +1 -1
- package/dist/utils.mjs +19 -6
- package/dist/utils.mjs.map +1 -1
- package/package.json +14 -14
package/dist/utils.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.cjs","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"utils.cjs","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,qEAA4D;AAC5D,2CAA6C;AAC7C,yDAAsD;AAEtD,+BAAkC;AAElC;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,WAAmB;IACnD,QAAQ,WAAW,EAAE;QACnB,KAAK,iCAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,iCAAY,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,iCAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,iCAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,iCAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,iCAAY,CAAC,OAAO,CAAC,CAAC;YACzB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,iCAAY,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,IAAI,CAAC;SACb;QACD,KAAK,iCAAY,CAAC,IAAI,CAAC,CAAC;YACtB,OAAO,cAAc,CAAC;SACvB;QACD,OAAO,CAAC,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,mBAAmB,WAAW,EAAE,CAAC,CAAC;SACnD;KACF;AACH,CAAC;AA9BD,8CA8BC;AAED;;;;;GAKG;AACH,SAAgB,wCAAwC,CACtD,OAAe;IAEf,MAAM,SAAS,GAAG;QAChB,MAAM,EAAE,IAAA,eAAM,EAAC,IAAA,kBAAU,EAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;KACjD,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AARD,4FAQC;AAED;;;;;GAKG;AACH,SAAgB,iCAAiC,CAAC,OAAe;IAC/D,OAAO,IAAA,SAAI,EAAC,wCAAwC,CAAC,OAAO,CAAC,CAAC,CAAC;AACjE,CAAC;AAFD,8EAEC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,WAAyB;IAC3D,gFAAgF;IAChF,oDAAoD;IACpD,OAAO,WAAW,KAAK,iCAAY,CAAC,IAAI,CAAC;AAC3C,CAAC;AAJD,kDAIC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,WAAyB;IACvD,OAAO,WAAW,KAAK,iCAAY,CAAC,EAAE,CAAC;AACzC,CAAC;AAFD,0CAEC;AAED;;;;;GAKG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACrD,OAAO,kBAAkB,KAAK,EAAE,CAAC;AACnC,CAAC;AAFD,8DAEC","sourcesContent":["import { KeyringTypes } from '@metamask/keyring-controller';\nimport { hexToBytes } from '@metamask/utils';\nimport { sha256 } from 'ethereum-cryptography/sha256';\nimport type { V4Options } from 'uuid';\nimport { v4 as uuid } from 'uuid';\n\n/**\n * Returns the name of the keyring type.\n *\n * @param keyringType - The type of the keyring.\n * @returns The name of the keyring type.\n */\nexport function keyringTypeToName(keyringType: string): string {\n switch (keyringType) {\n case KeyringTypes.simple: {\n return 'Account';\n }\n case KeyringTypes.hd: {\n return 'Account';\n }\n case KeyringTypes.trezor: {\n return 'Trezor';\n }\n case KeyringTypes.oneKey: {\n return 'OneKey';\n }\n case KeyringTypes.ledger: {\n return 'Ledger';\n }\n case KeyringTypes.lattice: {\n return 'Lattice';\n }\n case KeyringTypes.qr: {\n return 'QR';\n }\n case KeyringTypes.snap: {\n return 'Snap Account';\n }\n default: {\n throw new Error(`Unknown keyring ${keyringType}`);\n }\n }\n}\n\n/**\n * Generates a UUID v4 options from a given Ethereum address.\n *\n * @param address - The Ethereum address to generate the UUID from.\n * @returns The UUID v4 options.\n */\nexport function getUUIDOptionsFromAddressOfNormalAccount(\n address: string,\n): V4Options {\n const v4options = {\n random: sha256(hexToBytes(address)).slice(0, 16),\n };\n\n return v4options;\n}\n\n/**\n * Generates a UUID from a given Ethereum address.\n *\n * @param address - The Ethereum address to generate the UUID from.\n * @returns The generated UUID.\n */\nexport function getUUIDFromAddressOfNormalAccount(address: string): string {\n return uuid(getUUIDOptionsFromAddressOfNormalAccount(address));\n}\n\n/**\n * Check if a keyring type is considered a \"normal\" keyring.\n *\n * @param keyringType - The account's keyring type.\n * @returns True if the keyring type is considered a \"normal\" keyring, false otherwise.\n */\nexport function isNormalKeyringType(keyringType: KeyringTypes): boolean {\n // Right now, we only have to \"exclude\" Snap accounts, but this might need to be\n // adapted later on if we have new kind of keyrings!\n return keyringType !== KeyringTypes.snap;\n}\n\n/**\n * Check if a keyring is a HD keyring.\n *\n * @param keyringType - The account's keyring type.\n * @returns True if the keyring is a HD keyring, false otherwise.\n */\nexport function isHdKeyringType(keyringType: KeyringTypes): boolean {\n return keyringType === KeyringTypes.hd;\n}\n\n/**\n * Get the derivation path for the index of an account within a HD keyring.\n *\n * @param index - The account index.\n * @returns The derivation path.\n */\nexport function getDerivationPathForIndex(index: number): string {\n return `m/44'/60'/0'/0/${index}`;\n}\n"]}
|
package/dist/utils.d.cts
CHANGED
@@ -28,4 +28,18 @@ export declare function getUUIDFromAddressOfNormalAccount(address: string): stri
|
|
28
28
|
* @returns True if the keyring type is considered a "normal" keyring, false otherwise.
|
29
29
|
*/
|
30
30
|
export declare function isNormalKeyringType(keyringType: KeyringTypes): boolean;
|
31
|
+
/**
|
32
|
+
* Check if a keyring is a HD keyring.
|
33
|
+
*
|
34
|
+
* @param keyringType - The account's keyring type.
|
35
|
+
* @returns True if the keyring is a HD keyring, false otherwise.
|
36
|
+
*/
|
37
|
+
export declare function isHdKeyringType(keyringType: KeyringTypes): boolean;
|
38
|
+
/**
|
39
|
+
* Get the derivation path for the index of an account within a HD keyring.
|
40
|
+
*
|
41
|
+
* @param index - The account index.
|
42
|
+
* @returns The derivation path.
|
43
|
+
*/
|
44
|
+
export declare function getDerivationPathForIndex(index: number): string;
|
31
45
|
//# sourceMappingURL=utils.d.cts.map
|
package/dist/utils.d.cts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.cts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"utils.d.cts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qCAAqC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa;AAGtC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA8B7D;AAED;;;;;GAKG;AACH,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,GACd,SAAS,CAMX;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAItE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
package/dist/utils.d.mts
CHANGED
@@ -28,4 +28,18 @@ export declare function getUUIDFromAddressOfNormalAccount(address: string): stri
|
|
28
28
|
* @returns True if the keyring type is considered a "normal" keyring, false otherwise.
|
29
29
|
*/
|
30
30
|
export declare function isNormalKeyringType(keyringType: KeyringTypes): boolean;
|
31
|
+
/**
|
32
|
+
* Check if a keyring is a HD keyring.
|
33
|
+
*
|
34
|
+
* @param keyringType - The account's keyring type.
|
35
|
+
* @returns True if the keyring is a HD keyring, false otherwise.
|
36
|
+
*/
|
37
|
+
export declare function isHdKeyringType(keyringType: KeyringTypes): boolean;
|
38
|
+
/**
|
39
|
+
* Get the derivation path for the index of an account within a HD keyring.
|
40
|
+
*
|
41
|
+
* @param index - The account index.
|
42
|
+
* @returns The derivation path.
|
43
|
+
*/
|
44
|
+
export declare function getDerivationPathForIndex(index: number): string;
|
31
45
|
//# sourceMappingURL=utils.d.mts.map
|
package/dist/utils.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qCAAqC;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa;AAGtC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA8B7D;AAED;;;;;GAKG;AACH,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,GACd,SAAS,CAMX;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAItE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
package/dist/utils.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { KeyringTypes } from "@metamask/keyring-controller";
|
2
2
|
import { hexToBytes } from "@metamask/utils";
|
3
3
|
import { sha256 } from "ethereum-cryptography/sha256";
|
4
4
|
import { v4 as uuid } from "uuid";
|
@@ -9,11 +9,6 @@ import { v4 as uuid } from "uuid";
|
|
9
9
|
* @returns The name of the keyring type.
|
10
10
|
*/
|
11
11
|
export function keyringTypeToName(keyringType) {
|
12
|
-
// Custody keyrings are a special case, as they are not a single type
|
13
|
-
// they just start with the prefix `Custody`
|
14
|
-
if (isCustodyKeyring(keyringType)) {
|
15
|
-
return 'Custody';
|
16
|
-
}
|
17
12
|
switch (keyringType) {
|
18
13
|
case KeyringTypes.simple: {
|
19
14
|
return 'Account';
|
@@ -76,4 +71,22 @@ export function isNormalKeyringType(keyringType) {
|
|
76
71
|
// adapted later on if we have new kind of keyrings!
|
77
72
|
return keyringType !== KeyringTypes.snap;
|
78
73
|
}
|
74
|
+
/**
|
75
|
+
* Check if a keyring is a HD keyring.
|
76
|
+
*
|
77
|
+
* @param keyringType - The account's keyring type.
|
78
|
+
* @returns True if the keyring is a HD keyring, false otherwise.
|
79
|
+
*/
|
80
|
+
export function isHdKeyringType(keyringType) {
|
81
|
+
return keyringType === KeyringTypes.hd;
|
82
|
+
}
|
83
|
+
/**
|
84
|
+
* Get the derivation path for the index of an account within a HD keyring.
|
85
|
+
*
|
86
|
+
* @param index - The account index.
|
87
|
+
* @returns The derivation path.
|
88
|
+
*/
|
89
|
+
export function getDerivationPathForIndex(index) {
|
90
|
+
return `m/44'/60'/0'/0/${index}`;
|
91
|
+
}
|
79
92
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/utils.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qCAAqC;AAC5D,OAAO,EAAE,UAAU,EAAE,wBAAwB;AAC7C,OAAO,EAAE,MAAM,EAAE,qCAAqC;AAEtD,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,aAAa;AAElC;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,QAAQ,WAAW,EAAE;QACnB,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,YAAY,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,YAAY,CAAC,MAAM,CAAC,CAAC;YACxB,OAAO,QAAQ,CAAC;SACjB;QACD,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;YACzB,OAAO,SAAS,CAAC;SAClB;QACD,KAAK,YAAY,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,IAAI,CAAC;SACb;QACD,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;YACtB,OAAO,cAAc,CAAC;SACvB;QACD,OAAO,CAAC,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,mBAAmB,WAAW,EAAE,CAAC,CAAC;SACnD;KACF;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wCAAwC,CACtD,OAAe;IAEf,MAAM,SAAS,GAAG;QAChB,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;KACjD,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAAC,OAAe;IAC/D,OAAO,IAAI,CAAC,wCAAwC,CAAC,OAAO,CAAC,CAAC,CAAC;AACjE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAAyB;IAC3D,gFAAgF;IAChF,oDAAoD;IACpD,OAAO,WAAW,KAAK,YAAY,CAAC,IAAI,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,WAAyB;IACvD,OAAO,WAAW,KAAK,YAAY,CAAC,EAAE,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,OAAO,kBAAkB,KAAK,EAAE,CAAC;AACnC,CAAC","sourcesContent":["import { KeyringTypes } from '@metamask/keyring-controller';\nimport { hexToBytes } from '@metamask/utils';\nimport { sha256 } from 'ethereum-cryptography/sha256';\nimport type { V4Options } from 'uuid';\nimport { v4 as uuid } from 'uuid';\n\n/**\n * Returns the name of the keyring type.\n *\n * @param keyringType - The type of the keyring.\n * @returns The name of the keyring type.\n */\nexport function keyringTypeToName(keyringType: string): string {\n switch (keyringType) {\n case KeyringTypes.simple: {\n return 'Account';\n }\n case KeyringTypes.hd: {\n return 'Account';\n }\n case KeyringTypes.trezor: {\n return 'Trezor';\n }\n case KeyringTypes.oneKey: {\n return 'OneKey';\n }\n case KeyringTypes.ledger: {\n return 'Ledger';\n }\n case KeyringTypes.lattice: {\n return 'Lattice';\n }\n case KeyringTypes.qr: {\n return 'QR';\n }\n case KeyringTypes.snap: {\n return 'Snap Account';\n }\n default: {\n throw new Error(`Unknown keyring ${keyringType}`);\n }\n }\n}\n\n/**\n * Generates a UUID v4 options from a given Ethereum address.\n *\n * @param address - The Ethereum address to generate the UUID from.\n * @returns The UUID v4 options.\n */\nexport function getUUIDOptionsFromAddressOfNormalAccount(\n address: string,\n): V4Options {\n const v4options = {\n random: sha256(hexToBytes(address)).slice(0, 16),\n };\n\n return v4options;\n}\n\n/**\n * Generates a UUID from a given Ethereum address.\n *\n * @param address - The Ethereum address to generate the UUID from.\n * @returns The generated UUID.\n */\nexport function getUUIDFromAddressOfNormalAccount(address: string): string {\n return uuid(getUUIDOptionsFromAddressOfNormalAccount(address));\n}\n\n/**\n * Check if a keyring type is considered a \"normal\" keyring.\n *\n * @param keyringType - The account's keyring type.\n * @returns True if the keyring type is considered a \"normal\" keyring, false otherwise.\n */\nexport function isNormalKeyringType(keyringType: KeyringTypes): boolean {\n // Right now, we only have to \"exclude\" Snap accounts, but this might need to be\n // adapted later on if we have new kind of keyrings!\n return keyringType !== KeyringTypes.snap;\n}\n\n/**\n * Check if a keyring is a HD keyring.\n *\n * @param keyringType - The account's keyring type.\n * @returns True if the keyring is a HD keyring, false otherwise.\n */\nexport function isHdKeyringType(keyringType: KeyringTypes): boolean {\n return keyringType === KeyringTypes.hd;\n}\n\n/**\n * Get the derivation path for the index of an account within a HD keyring.\n *\n * @param index - The account index.\n * @returns The derivation path.\n */\nexport function getDerivationPathForIndex(index: number): string {\n return `m/44'/60'/0'/0/${index}`;\n}\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@metamask/accounts-controller",
|
3
|
-
"version": "
|
3
|
+
"version": "29.0.0",
|
4
4
|
"description": "Manages internal accounts",
|
5
5
|
"keywords": [
|
6
6
|
"MetaMask",
|
@@ -48,13 +48,13 @@
|
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"@ethereumjs/util": "^9.1.0",
|
51
|
-
"@metamask/base-controller": "^8.0.
|
52
|
-
"@metamask/eth-snap-keyring": "^12.
|
53
|
-
"@metamask/keyring-api": "^17.
|
54
|
-
"@metamask/keyring-internal-api": "^6.0.
|
51
|
+
"@metamask/base-controller": "^8.0.1",
|
52
|
+
"@metamask/eth-snap-keyring": "^12.1.1",
|
53
|
+
"@metamask/keyring-api": "^17.4.0",
|
54
|
+
"@metamask/keyring-internal-api": "^6.0.1",
|
55
55
|
"@metamask/keyring-utils": "^3.0.0",
|
56
|
-
"@metamask/snaps-sdk": "^6.
|
57
|
-
"@metamask/snaps-utils": "^
|
56
|
+
"@metamask/snaps-sdk": "^6.22.0",
|
57
|
+
"@metamask/snaps-utils": "^9.2.0",
|
58
58
|
"@metamask/utils": "^11.2.0",
|
59
59
|
"deepmerge": "^4.2.2",
|
60
60
|
"ethereum-cryptography": "^2.1.2",
|
@@ -63,10 +63,10 @@
|
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
65
65
|
"@metamask/auto-changelog": "^3.4.4",
|
66
|
-
"@metamask/keyring-controller": "^
|
67
|
-
"@metamask/network-controller": "^23.
|
68
|
-
"@metamask/providers": "^
|
69
|
-
"@metamask/snaps-controllers": "^
|
66
|
+
"@metamask/keyring-controller": "^22.0.0",
|
67
|
+
"@metamask/network-controller": "^23.4.0",
|
68
|
+
"@metamask/providers": "^21.0.0",
|
69
|
+
"@metamask/snaps-controllers": "^11.2.1",
|
70
70
|
"@types/jest": "^27.4.1",
|
71
71
|
"@types/readable-stream": "^2.3.0",
|
72
72
|
"jest": "^27.5.1",
|
@@ -77,10 +77,10 @@
|
|
77
77
|
"webextension-polyfill": "^0.12.0"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
|
-
"@metamask/keyring-controller": "^
|
80
|
+
"@metamask/keyring-controller": "^22.0.0",
|
81
81
|
"@metamask/network-controller": "^23.0.0",
|
82
|
-
"@metamask/providers": "^
|
83
|
-
"@metamask/snaps-controllers": "^
|
82
|
+
"@metamask/providers": "^21.0.0",
|
83
|
+
"@metamask/snaps-controllers": "^11.0.0",
|
84
84
|
"webextension-polyfill": "^0.10.0 || ^0.11.0 || ^0.12.0"
|
85
85
|
},
|
86
86
|
"engines": {
|