diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 54659cd66695..974e43dcf59e 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -613,14 +613,50 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, "@metamask/accounts-controller>@metamask/utils": true, "@metamask/base-controller": true, - "@metamask/eth-snap-keyring": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "uuid": true } }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": { + "globals": { + "URL": true, + "console.error": true + }, + "packages": { + "@ethereumjs/tx": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/eth-sig-util": true, + "@metamask/utils>@metamask/superstruct": true, + "webpack>events": true + } + }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": { + "globals": { + "crypto": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/accounts-controller>@metamask/keyring-api>uuid": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/keyring-api>bech32": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/accounts-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1113,7 +1149,7 @@ }, "packages": { "@ethereumjs/tx": true, - "@metamask/eth-sig-util": true, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "@metamask/eth-snap-keyring>@metamask/utils": true, "@metamask/eth-snap-keyring>uuid": true, "@metamask/keyring-api": true, @@ -1121,6 +1157,17 @@ "webpack>events": true } }, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { + "packages": { + "@ethereumjs/tx>@ethereumjs/util": true, + "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/abi-utils": true, + "@metamask/eth-sig-util>tweetnacl": true, + "@metamask/eth-snap-keyring>@metamask/utils": true, + "@metamask/utils>@scure/base": true, + "browserify>buffer": true + } + }, "@metamask/eth-snap-keyring>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2448,15 +2495,46 @@ }, "packages": { "@metamask/base-controller": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/keyring-api>bech32": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/utils>@metamask/superstruct": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "@noble/hashes": true, + "browserify>buffer": true, + "nock>debug": true, + "semver": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 54659cd66695..974e43dcf59e 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -613,14 +613,50 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, "@metamask/accounts-controller>@metamask/utils": true, "@metamask/base-controller": true, - "@metamask/eth-snap-keyring": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "uuid": true } }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": { + "globals": { + "URL": true, + "console.error": true + }, + "packages": { + "@ethereumjs/tx": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/eth-sig-util": true, + "@metamask/utils>@metamask/superstruct": true, + "webpack>events": true + } + }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": { + "globals": { + "crypto": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/accounts-controller>@metamask/keyring-api>uuid": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/keyring-api>bech32": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/accounts-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1113,7 +1149,7 @@ }, "packages": { "@ethereumjs/tx": true, - "@metamask/eth-sig-util": true, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "@metamask/eth-snap-keyring>@metamask/utils": true, "@metamask/eth-snap-keyring>uuid": true, "@metamask/keyring-api": true, @@ -1121,6 +1157,17 @@ "webpack>events": true } }, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { + "packages": { + "@ethereumjs/tx>@ethereumjs/util": true, + "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/abi-utils": true, + "@metamask/eth-sig-util>tweetnacl": true, + "@metamask/eth-snap-keyring>@metamask/utils": true, + "@metamask/utils>@scure/base": true, + "browserify>buffer": true + } + }, "@metamask/eth-snap-keyring>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2448,15 +2495,46 @@ }, "packages": { "@metamask/base-controller": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/keyring-api>bech32": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/utils>@metamask/superstruct": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "@noble/hashes": true, + "browserify>buffer": true, + "nock>debug": true, + "semver": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 54659cd66695..974e43dcf59e 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -613,14 +613,50 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, "@metamask/accounts-controller>@metamask/utils": true, "@metamask/base-controller": true, - "@metamask/eth-snap-keyring": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "uuid": true } }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": { + "globals": { + "URL": true, + "console.error": true + }, + "packages": { + "@ethereumjs/tx": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/eth-sig-util": true, + "@metamask/utils>@metamask/superstruct": true, + "webpack>events": true + } + }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": { + "globals": { + "crypto": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/accounts-controller>@metamask/keyring-api>uuid": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/keyring-api>bech32": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/accounts-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1113,7 +1149,7 @@ }, "packages": { "@ethereumjs/tx": true, - "@metamask/eth-sig-util": true, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": true, "@metamask/eth-snap-keyring>@metamask/utils": true, "@metamask/eth-snap-keyring>uuid": true, "@metamask/keyring-api": true, @@ -1121,6 +1157,17 @@ "webpack>events": true } }, + "@metamask/eth-snap-keyring>@metamask/eth-sig-util": { + "packages": { + "@ethereumjs/tx>@ethereumjs/util": true, + "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/abi-utils": true, + "@metamask/eth-sig-util>tweetnacl": true, + "@metamask/eth-snap-keyring>@metamask/utils": true, + "@metamask/utils>@scure/base": true, + "browserify>buffer": true + } + }, "@metamask/eth-snap-keyring>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2448,15 +2495,46 @@ }, "packages": { "@metamask/base-controller": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/keyring-api>bech32": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/utils>@metamask/superstruct": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "@noble/hashes": true, + "browserify>buffer": true, + "nock>debug": true, + "semver": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index 38442fe5eb85..6aad02e185df 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -705,14 +705,50 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, "@metamask/accounts-controller>@metamask/utils": true, "@metamask/base-controller": true, - "@metamask/eth-snap-keyring": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "uuid": true } }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring": { + "globals": { + "URL": true, + "console.error": true + }, + "packages": { + "@ethereumjs/tx": true, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": true, + "@metamask/accounts-controller>@metamask/keyring-api": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/eth-sig-util": true, + "@metamask/utils>@metamask/superstruct": true, + "webpack>events": true + } + }, + "@metamask/accounts-controller>@metamask/eth-snap-keyring>uuid": { + "globals": { + "crypto": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/accounts-controller>@metamask/keyring-api>uuid": true, + "@metamask/accounts-controller>@metamask/utils": true, + "@metamask/keyring-api>bech32": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/accounts-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/accounts-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1198,41 +1234,6 @@ "browserify>browser-resolve": true } }, - "@metamask/eth-snap-keyring": { - "globals": { - "URL": true, - "console.error": true - }, - "packages": { - "@ethereumjs/tx": true, - "@metamask/eth-sig-util": true, - "@metamask/eth-snap-keyring>@metamask/utils": true, - "@metamask/eth-snap-keyring>uuid": true, - "@metamask/keyring-api": true, - "@metamask/utils>@metamask/superstruct": true, - "webpack>events": true - } - }, - "@metamask/eth-snap-keyring>@metamask/utils": { - "globals": { - "TextDecoder": true, - "TextEncoder": true - }, - "packages": { - "@metamask/utils>@metamask/superstruct": true, - "@metamask/utils>@scure/base": true, - "@metamask/utils>pony-cause": true, - "@noble/hashes": true, - "browserify>buffer": true, - "nock>debug": true, - "semver": true - } - }, - "@metamask/eth-snap-keyring>uuid": { - "globals": { - "crypto": true - } - }, "@metamask/eth-token-tracker": { "globals": { "console.warn": true @@ -2540,15 +2541,46 @@ }, "packages": { "@metamask/base-controller": true, - "@metamask/keyring-api": true, "@metamask/keyring-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/keyring-api": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/keyring-api": { + "globals": { + "URL": true + }, + "packages": { + "@metamask/keyring-api>bech32": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": true, + "@metamask/utils>@metamask/superstruct": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/utils>@metamask/superstruct": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "@noble/hashes": true, + "browserify>buffer": true, + "nock>debug": true, + "semver": true + } + }, + "@metamask/profile-sync-controller>@metamask/keyring-api>uuid": { + "globals": { + "crypto": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, diff --git a/package.json b/package.json index a04f6e9b3bc7..e00943ecc774 100644 --- a/package.json +++ b/package.json @@ -307,7 +307,7 @@ "@metamask/eth-ledger-bridge-keyring": "^5.0.1", "@metamask/eth-query": "^4.0.0", "@metamask/eth-sig-util": "^7.0.1", - "@metamask/eth-snap-keyring": "^4.4.0", + "@metamask/eth-snap-keyring": "^5.0.1", "@metamask/eth-token-tracker": "^8.0.0", "@metamask/eth-trezor-keyring": "^3.1.3", "@metamask/etherscan-link": "^3.0.0", @@ -318,7 +318,7 @@ "@metamask/jazzicon": "^2.0.0", "@metamask/json-rpc-engine": "^10.0.0", "@metamask/json-rpc-middleware-stream": "^8.0.4", - "@metamask/keyring-api": "^8.1.3", + "@metamask/keyring-api": "^9.0.0", "@metamask/keyring-controller": "^17.2.2", "@metamask/logging-controller": "^6.0.0", "@metamask/logo": "^3.1.2", diff --git a/yarn.lock b/yarn.lock index 4e745717f247..2cbfd6021fe0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5480,7 +5480,7 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-snap-keyring@npm:^4.3.1, @metamask/eth-snap-keyring@npm:^4.3.6, @metamask/eth-snap-keyring@npm:^4.4.0": +"@metamask/eth-snap-keyring@npm:^4.3.1, @metamask/eth-snap-keyring@npm:^4.3.6": version: 4.4.0 resolution: "@metamask/eth-snap-keyring@npm:4.4.0" dependencies: @@ -5499,6 +5499,25 @@ __metadata: languageName: node linkType: hard +"@metamask/eth-snap-keyring@npm:^5.0.1": + version: 5.0.1 + resolution: "@metamask/eth-snap-keyring@npm:5.0.1" + dependencies: + "@ethereumjs/tx": "npm:^4.2.0" + "@metamask/eth-sig-util": "npm:^8.0.0" + "@metamask/snaps-controllers": "npm:^9.10.0" + "@metamask/snaps-sdk": "npm:^6.7.0" + "@metamask/snaps-utils": "npm:^8.3.0" + "@metamask/superstruct": "npm:^3.1.0" + "@metamask/utils": "npm:^9.2.1" + "@types/uuid": "npm:^9.0.8" + uuid: "npm:^9.0.1" + peerDependencies: + "@metamask/keyring-api": ^10.1.0 + checksum: 10/4d9d700b7c2ecc1b17e92f716f7aeb04bbd03836601b5d37f639bed7fba4d5f00bafadf5359d2416c319cdf18eb2f9417c7353654737af87a6e8579d5e5bab79 + languageName: node + linkType: hard + "@metamask/eth-token-tracker@npm:^8.0.0": version: 8.0.0 resolution: "@metamask/eth-token-tracker@npm:8.0.0" @@ -26741,7 +26760,7 @@ __metadata: "@metamask/eth-ledger-bridge-keyring": "npm:^5.0.1" "@metamask/eth-query": "npm:^4.0.0" "@metamask/eth-sig-util": "npm:^7.0.1" - "@metamask/eth-snap-keyring": "npm:^4.4.0" + "@metamask/eth-snap-keyring": "npm:^5.0.1" "@metamask/eth-token-tracker": "npm:^8.0.0" "@metamask/eth-trezor-keyring": "npm:^3.1.3" "@metamask/etherscan-link": "npm:^3.0.0" @@ -26753,7 +26772,7 @@ __metadata: "@metamask/jazzicon": "npm:^2.0.0" "@metamask/json-rpc-engine": "npm:^10.0.0" "@metamask/json-rpc-middleware-stream": "npm:^8.0.4" - "@metamask/keyring-api": "npm:^8.1.3" + "@metamask/keyring-api": "npm:^9.0.0" "@metamask/keyring-controller": "npm:^17.2.2" "@metamask/logging-controller": "npm:^6.0.0" "@metamask/logo": "npm:^3.1.2"