diff --git a/app/scripts/lib/snap-keyring/utils/isBlockedUrl.test.ts b/app/scripts/lib/snap-keyring/utils/isBlockedUrl.test.ts index 6f1c2b9c8386..ddf219250e7d 100644 --- a/app/scripts/lib/snap-keyring/utils/isBlockedUrl.test.ts +++ b/app/scripts/lib/snap-keyring/utils/isBlockedUrl.test.ts @@ -10,7 +10,6 @@ describe('isBlockedUrl', () => { allowedEvents: [], }); const phishingController = new PhishingController({ - // @ts-expect-error TODO: Resolve mismatch between base-controller versions. messenger: phishingControllerMessenger, state: { phishingLists: [ diff --git a/app/scripts/lib/transaction/smart-transactions.test.ts b/app/scripts/lib/transaction/smart-transactions.test.ts index 4c752404512c..b3ff3aa8fa7c 100644 --- a/app/scripts/lib/transaction/smart-transactions.test.ts +++ b/app/scripts/lib/transaction/smart-transactions.test.ts @@ -107,6 +107,7 @@ function withRequest( }); const smartTransactionsController = new SmartTransactionsController({ + // @ts-expect-error TODO: Resolve mismatch between base-controller versions. messenger, getNonceLock: jest.fn(), confirmExternalTransaction: jest.fn(), @@ -176,6 +177,7 @@ function withRequest( return fn({ request, + // @ts-expect-error TODO: Resolve mismatch between base-controller versions. messenger, startFlowSpy, addRequestSpy, diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 69e5c441536a..de4fafac732e 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -774,7 +774,7 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, - "@metamask/base-controller": true, + "@metamask/accounts-controller>@metamask/base-controller": true, "@metamask/eth-snap-keyring": true, "@metamask/keyring-api": true, "@metamask/keyring-controller": true, @@ -782,15 +782,31 @@ "uuid": true } }, + "@metamask/accounts-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/address-book-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/controller-utils": true } }, + "@metamask/address-book-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/announcement-controller": { "packages": { - "@metamask/base-controller": true + "@metamask/announcement-controller>@metamask/base-controller": true } }, "@metamask/announcement-controller>@metamask/base-controller": { @@ -806,11 +822,19 @@ "console.info": true }, "packages": { + "@metamask/approval-controller>@metamask/base-controller": true, "@metamask/approval-controller>nanoid": true, - "@metamask/base-controller": true, "@metamask/rpc-errors": true } }, + "@metamask/approval-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/approval-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -835,10 +859,10 @@ "@ethersproject/contracts": true, "@ethersproject/providers": true, "@metamask/abi-utils": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/polling-controller": true, "@metamask/assets-controllers>cockatiel": true, "@metamask/assets-controllers>multiformats": true, - "@metamask/base-controller": true, "@metamask/contract-metadata": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, @@ -852,6 +876,14 @@ "uuid": true } }, + "@metamask/assets-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/assets-controllers>@metamask/polling-controller": { "globals": { "clearTimeout": true, @@ -859,7 +891,7 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } @@ -975,12 +1007,20 @@ "@metamask/ens-controller": { "packages": { "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/ens-controller>@metamask/base-controller": true, "@metamask/utils": true, "punycode": true } }, + "@metamask/ens-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/eth-json-rpc-filters": { "globals": { "console.error": true @@ -1426,11 +1466,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } }, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/jazzicon": { "globals": { "document.createElement": true, @@ -1482,9 +1530,9 @@ "@metamask/keyring-controller": { "packages": { "@ethereumjs/tx>@ethereumjs/util": true, - "@metamask/base-controller": true, "@metamask/browser-passworder": true, "@metamask/eth-sig-util": true, + "@metamask/keyring-controller>@metamask/base-controller": true, "@metamask/keyring-controller>@metamask/eth-hd-keyring": true, "@metamask/keyring-controller>@metamask/eth-simple-keyring": true, "@metamask/keyring-controller>ethereumjs-wallet": true, @@ -1492,6 +1540,14 @@ "@metamask/utils": true } }, + "@metamask/keyring-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/keyring-controller>@metamask/eth-hd-keyring": { "globals": { "TextEncoder": true @@ -1585,10 +1641,18 @@ }, "@metamask/logging-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/logging-controller>@metamask/base-controller": true, "uuid": true } }, + "@metamask/logging-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/logo": { "globals": { "addEventListener": true, @@ -1605,9 +1669,9 @@ }, "@metamask/message-manager": { "packages": { + "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-sig-util": true, - "@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>jsonschema": true, "@metamask/utils": true, "browserify>buffer": true, @@ -1615,14 +1679,6 @@ "webpack>events": true } }, - "@metamask/message-manager>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/message-manager>jsonschema": { "packages": { "browserify>url": true @@ -1648,12 +1704,20 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/name-controller>@metamask/base-controller": true, "@metamask/name-controller>@metamask/utils": true, "@metamask/name-controller>async-mutex": true } }, + "@metamask/name-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/name-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1686,10 +1750,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/eth-token-tracker>@metamask/eth-block-tracker": true, + "@metamask/network-controller>@metamask/base-controller": true, "@metamask/network-controller>@metamask/eth-json-rpc-infura": true, "@metamask/network-controller>@metamask/eth-json-rpc-middleware": true, "@metamask/network-controller>@metamask/eth-json-rpc-provider": true, @@ -1701,6 +1765,14 @@ "uuid": true } }, + "@metamask/network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/network-controller>@metamask/eth-json-rpc-infura": { "globals": { "setTimeout": true @@ -1789,11 +1861,19 @@ }, "@metamask/notification-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/utils": true, "@metamask/notification-controller>nanoid": true } }, + "@metamask/notification-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1823,9 +1903,9 @@ "removeEventListener": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, + "@metamask/notification-services-controller>@metamask/base-controller": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, "bignumber.js": true, @@ -1838,6 +1918,14 @@ "SuppressedError": true } }, + "@metamask/notification-services-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-services-controller>firebase": { "packages": { "@metamask/notification-services-controller>firebase>@firebase/app": true, @@ -1978,8 +2066,8 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/utils": true, "@metamask/permission-controller>nanoid": true, "@metamask/rpc-errors": true, @@ -1988,6 +2076,14 @@ "immer": true } }, + "@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/permission-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2045,21 +2141,13 @@ }, "packages": { "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/base-controller": true, "@metamask/controller-utils": true, - "@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>fastest-levenshtein": true, "@noble/hashes": true, "punycode": true } }, - "@metamask/phishing-controller>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/post-message-stream": { "globals": { "MessageEvent.prototype": true, @@ -2098,8 +2186,8 @@ "crypto": true }, "packages": { - "@metamask/base-controller": true, "@metamask/eth-query>json-rpc-random-id": true, + "@metamask/ppom-validator>@metamask/base-controller": true, "@metamask/ppom-validator>@metamask/controller-utils": true, "@metamask/ppom-validator>crypto-js": true, "@metamask/ppom-validator>elliptic": true, @@ -2108,6 +2196,14 @@ "browserify>buffer": true } }, + "@metamask/ppom-validator>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/ppom-validator>@metamask/controller-utils": { "globals": { "URL": true, @@ -2193,14 +2289,22 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/base-controller": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, @@ -2241,13 +2345,21 @@ }, "@metamask/queued-request-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/queued-request-controller>@metamask/base-controller": true, "@metamask/queued-request-controller>@metamask/utils": true, "@metamask/rpc-errors": true, "@metamask/selected-network-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true } }, + "@metamask/queued-request-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/queued-request-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2268,11 +2380,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/rate-limit-controller>@metamask/base-controller": true, "@metamask/rate-limit-controller>@metamask/utils": true, "@metamask/rpc-errors": true } }, + "@metamask/rate-limit-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/rate-limit-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2329,8 +2449,16 @@ }, "@metamask/selected-network-controller": { "packages": { - "@metamask/base-controller": true, - "@metamask/network-controller>@metamask/swappable-obj-proxy": true + "@metamask/network-controller>@metamask/swappable-obj-proxy": true, + "@metamask/selected-network-controller>@metamask/base-controller": true + } + }, + "@metamask/selected-network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true } }, "@metamask/signature-controller": { @@ -2338,14 +2466,22 @@ "console.info": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/logging-controller": true, "@metamask/message-manager": true, + "@metamask/signature-controller>@metamask/base-controller": true, "lodash": true, "webpack>events": true } }, + "@metamask/signature-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller": { "globals": { "URLSearchParams": true, @@ -2409,6 +2545,14 @@ "TextEncoder": true } }, + "@metamask/smart-transactions-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller>@metamask/controllers>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2426,7 +2570,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2434,6 +2577,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/smart-transactions-controller>@metamask/base-controller": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": true, @@ -2569,10 +2713,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/object-multiplex": true, "@metamask/post-message-stream": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true, "@metamask/snaps-controllers>@metamask/permission-controller": true, @@ -2597,6 +2741,14 @@ "crypto.getRandomValues": true } }, + "@metamask/snaps-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-controllers>@metamask/json-rpc-engine": { "packages": { "@metamask/rpc-errors": true, @@ -2620,9 +2772,9 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>nanoid": true, "@metamask/utils": true, @@ -2721,15 +2873,23 @@ "semver": true } }, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-execution-environments>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2758,16 +2918,24 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, "immer": true } }, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2827,15 +2995,23 @@ "semver": true } }, + "@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-utils>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2959,7 +3135,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2967,6 +3142,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/transaction-controller>@metamask/base-controller": true, "@metamask/transaction-controller>@metamask/nonce-tracker": true, "@metamask/utils": true, "bn.js": true, @@ -2978,6 +3154,14 @@ "webpack>events": true } }, + "@metamask/transaction-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/transaction-controller>@metamask/nonce-tracker": { "packages": { "@ethersproject/providers": true, @@ -2999,13 +3183,13 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, "@metamask/gas-fee-controller>@metamask/polling-controller": true, "@metamask/rpc-errors": true, "@metamask/transaction-controller": true, + "@metamask/user-operation-controller>@metamask/base-controller": true, "@metamask/user-operation-controller>@metamask/utils": true, "bn.js": true, "lodash": true, @@ -3014,6 +3198,14 @@ "webpack>events": true } }, + "@metamask/user-operation-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/user-operation-controller>@metamask/utils": { "globals": { "TextDecoder": true, diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 69e5c441536a..de4fafac732e 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -774,7 +774,7 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, - "@metamask/base-controller": true, + "@metamask/accounts-controller>@metamask/base-controller": true, "@metamask/eth-snap-keyring": true, "@metamask/keyring-api": true, "@metamask/keyring-controller": true, @@ -782,15 +782,31 @@ "uuid": true } }, + "@metamask/accounts-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/address-book-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/controller-utils": true } }, + "@metamask/address-book-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/announcement-controller": { "packages": { - "@metamask/base-controller": true + "@metamask/announcement-controller>@metamask/base-controller": true } }, "@metamask/announcement-controller>@metamask/base-controller": { @@ -806,11 +822,19 @@ "console.info": true }, "packages": { + "@metamask/approval-controller>@metamask/base-controller": true, "@metamask/approval-controller>nanoid": true, - "@metamask/base-controller": true, "@metamask/rpc-errors": true } }, + "@metamask/approval-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/approval-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -835,10 +859,10 @@ "@ethersproject/contracts": true, "@ethersproject/providers": true, "@metamask/abi-utils": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/polling-controller": true, "@metamask/assets-controllers>cockatiel": true, "@metamask/assets-controllers>multiformats": true, - "@metamask/base-controller": true, "@metamask/contract-metadata": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, @@ -852,6 +876,14 @@ "uuid": true } }, + "@metamask/assets-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/assets-controllers>@metamask/polling-controller": { "globals": { "clearTimeout": true, @@ -859,7 +891,7 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } @@ -975,12 +1007,20 @@ "@metamask/ens-controller": { "packages": { "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/ens-controller>@metamask/base-controller": true, "@metamask/utils": true, "punycode": true } }, + "@metamask/ens-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/eth-json-rpc-filters": { "globals": { "console.error": true @@ -1426,11 +1466,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } }, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/jazzicon": { "globals": { "document.createElement": true, @@ -1482,9 +1530,9 @@ "@metamask/keyring-controller": { "packages": { "@ethereumjs/tx>@ethereumjs/util": true, - "@metamask/base-controller": true, "@metamask/browser-passworder": true, "@metamask/eth-sig-util": true, + "@metamask/keyring-controller>@metamask/base-controller": true, "@metamask/keyring-controller>@metamask/eth-hd-keyring": true, "@metamask/keyring-controller>@metamask/eth-simple-keyring": true, "@metamask/keyring-controller>ethereumjs-wallet": true, @@ -1492,6 +1540,14 @@ "@metamask/utils": true } }, + "@metamask/keyring-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/keyring-controller>@metamask/eth-hd-keyring": { "globals": { "TextEncoder": true @@ -1585,10 +1641,18 @@ }, "@metamask/logging-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/logging-controller>@metamask/base-controller": true, "uuid": true } }, + "@metamask/logging-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/logo": { "globals": { "addEventListener": true, @@ -1605,9 +1669,9 @@ }, "@metamask/message-manager": { "packages": { + "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-sig-util": true, - "@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>jsonschema": true, "@metamask/utils": true, "browserify>buffer": true, @@ -1615,14 +1679,6 @@ "webpack>events": true } }, - "@metamask/message-manager>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/message-manager>jsonschema": { "packages": { "browserify>url": true @@ -1648,12 +1704,20 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/name-controller>@metamask/base-controller": true, "@metamask/name-controller>@metamask/utils": true, "@metamask/name-controller>async-mutex": true } }, + "@metamask/name-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/name-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1686,10 +1750,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/eth-token-tracker>@metamask/eth-block-tracker": true, + "@metamask/network-controller>@metamask/base-controller": true, "@metamask/network-controller>@metamask/eth-json-rpc-infura": true, "@metamask/network-controller>@metamask/eth-json-rpc-middleware": true, "@metamask/network-controller>@metamask/eth-json-rpc-provider": true, @@ -1701,6 +1765,14 @@ "uuid": true } }, + "@metamask/network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/network-controller>@metamask/eth-json-rpc-infura": { "globals": { "setTimeout": true @@ -1789,11 +1861,19 @@ }, "@metamask/notification-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/utils": true, "@metamask/notification-controller>nanoid": true } }, + "@metamask/notification-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1823,9 +1903,9 @@ "removeEventListener": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, + "@metamask/notification-services-controller>@metamask/base-controller": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, "bignumber.js": true, @@ -1838,6 +1918,14 @@ "SuppressedError": true } }, + "@metamask/notification-services-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-services-controller>firebase": { "packages": { "@metamask/notification-services-controller>firebase>@firebase/app": true, @@ -1978,8 +2066,8 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/utils": true, "@metamask/permission-controller>nanoid": true, "@metamask/rpc-errors": true, @@ -1988,6 +2076,14 @@ "immer": true } }, + "@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/permission-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2045,21 +2141,13 @@ }, "packages": { "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/base-controller": true, "@metamask/controller-utils": true, - "@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>fastest-levenshtein": true, "@noble/hashes": true, "punycode": true } }, - "@metamask/phishing-controller>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/post-message-stream": { "globals": { "MessageEvent.prototype": true, @@ -2098,8 +2186,8 @@ "crypto": true }, "packages": { - "@metamask/base-controller": true, "@metamask/eth-query>json-rpc-random-id": true, + "@metamask/ppom-validator>@metamask/base-controller": true, "@metamask/ppom-validator>@metamask/controller-utils": true, "@metamask/ppom-validator>crypto-js": true, "@metamask/ppom-validator>elliptic": true, @@ -2108,6 +2196,14 @@ "browserify>buffer": true } }, + "@metamask/ppom-validator>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/ppom-validator>@metamask/controller-utils": { "globals": { "URL": true, @@ -2193,14 +2289,22 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/base-controller": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, @@ -2241,13 +2345,21 @@ }, "@metamask/queued-request-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/queued-request-controller>@metamask/base-controller": true, "@metamask/queued-request-controller>@metamask/utils": true, "@metamask/rpc-errors": true, "@metamask/selected-network-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true } }, + "@metamask/queued-request-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/queued-request-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2268,11 +2380,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/rate-limit-controller>@metamask/base-controller": true, "@metamask/rate-limit-controller>@metamask/utils": true, "@metamask/rpc-errors": true } }, + "@metamask/rate-limit-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/rate-limit-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2329,8 +2449,16 @@ }, "@metamask/selected-network-controller": { "packages": { - "@metamask/base-controller": true, - "@metamask/network-controller>@metamask/swappable-obj-proxy": true + "@metamask/network-controller>@metamask/swappable-obj-proxy": true, + "@metamask/selected-network-controller>@metamask/base-controller": true + } + }, + "@metamask/selected-network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true } }, "@metamask/signature-controller": { @@ -2338,14 +2466,22 @@ "console.info": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/logging-controller": true, "@metamask/message-manager": true, + "@metamask/signature-controller>@metamask/base-controller": true, "lodash": true, "webpack>events": true } }, + "@metamask/signature-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller": { "globals": { "URLSearchParams": true, @@ -2409,6 +2545,14 @@ "TextEncoder": true } }, + "@metamask/smart-transactions-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller>@metamask/controllers>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2426,7 +2570,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2434,6 +2577,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/smart-transactions-controller>@metamask/base-controller": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": true, @@ -2569,10 +2713,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/object-multiplex": true, "@metamask/post-message-stream": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true, "@metamask/snaps-controllers>@metamask/permission-controller": true, @@ -2597,6 +2741,14 @@ "crypto.getRandomValues": true } }, + "@metamask/snaps-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-controllers>@metamask/json-rpc-engine": { "packages": { "@metamask/rpc-errors": true, @@ -2620,9 +2772,9 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>nanoid": true, "@metamask/utils": true, @@ -2721,15 +2873,23 @@ "semver": true } }, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-execution-environments>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2758,16 +2918,24 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, "immer": true } }, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2827,15 +2995,23 @@ "semver": true } }, + "@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-utils>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2959,7 +3135,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2967,6 +3142,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/transaction-controller>@metamask/base-controller": true, "@metamask/transaction-controller>@metamask/nonce-tracker": true, "@metamask/utils": true, "bn.js": true, @@ -2978,6 +3154,14 @@ "webpack>events": true } }, + "@metamask/transaction-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/transaction-controller>@metamask/nonce-tracker": { "packages": { "@ethersproject/providers": true, @@ -2999,13 +3183,13 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, "@metamask/gas-fee-controller>@metamask/polling-controller": true, "@metamask/rpc-errors": true, "@metamask/transaction-controller": true, + "@metamask/user-operation-controller>@metamask/base-controller": true, "@metamask/user-operation-controller>@metamask/utils": true, "bn.js": true, "lodash": true, @@ -3014,6 +3198,14 @@ "webpack>events": true } }, + "@metamask/user-operation-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/user-operation-controller>@metamask/utils": { "globals": { "TextDecoder": true, diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 69e5c441536a..de4fafac732e 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -774,7 +774,7 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, - "@metamask/base-controller": true, + "@metamask/accounts-controller>@metamask/base-controller": true, "@metamask/eth-snap-keyring": true, "@metamask/keyring-api": true, "@metamask/keyring-controller": true, @@ -782,15 +782,31 @@ "uuid": true } }, + "@metamask/accounts-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/address-book-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/controller-utils": true } }, + "@metamask/address-book-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/announcement-controller": { "packages": { - "@metamask/base-controller": true + "@metamask/announcement-controller>@metamask/base-controller": true } }, "@metamask/announcement-controller>@metamask/base-controller": { @@ -806,11 +822,19 @@ "console.info": true }, "packages": { + "@metamask/approval-controller>@metamask/base-controller": true, "@metamask/approval-controller>nanoid": true, - "@metamask/base-controller": true, "@metamask/rpc-errors": true } }, + "@metamask/approval-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/approval-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -835,10 +859,10 @@ "@ethersproject/contracts": true, "@ethersproject/providers": true, "@metamask/abi-utils": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/polling-controller": true, "@metamask/assets-controllers>cockatiel": true, "@metamask/assets-controllers>multiformats": true, - "@metamask/base-controller": true, "@metamask/contract-metadata": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, @@ -852,6 +876,14 @@ "uuid": true } }, + "@metamask/assets-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/assets-controllers>@metamask/polling-controller": { "globals": { "clearTimeout": true, @@ -859,7 +891,7 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } @@ -975,12 +1007,20 @@ "@metamask/ens-controller": { "packages": { "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/ens-controller>@metamask/base-controller": true, "@metamask/utils": true, "punycode": true } }, + "@metamask/ens-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/eth-json-rpc-filters": { "globals": { "console.error": true @@ -1426,11 +1466,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } }, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/jazzicon": { "globals": { "document.createElement": true, @@ -1482,9 +1530,9 @@ "@metamask/keyring-controller": { "packages": { "@ethereumjs/tx>@ethereumjs/util": true, - "@metamask/base-controller": true, "@metamask/browser-passworder": true, "@metamask/eth-sig-util": true, + "@metamask/keyring-controller>@metamask/base-controller": true, "@metamask/keyring-controller>@metamask/eth-hd-keyring": true, "@metamask/keyring-controller>@metamask/eth-simple-keyring": true, "@metamask/keyring-controller>ethereumjs-wallet": true, @@ -1492,6 +1540,14 @@ "@metamask/utils": true } }, + "@metamask/keyring-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/keyring-controller>@metamask/eth-hd-keyring": { "globals": { "TextEncoder": true @@ -1585,10 +1641,18 @@ }, "@metamask/logging-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/logging-controller>@metamask/base-controller": true, "uuid": true } }, + "@metamask/logging-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/logo": { "globals": { "addEventListener": true, @@ -1605,9 +1669,9 @@ }, "@metamask/message-manager": { "packages": { + "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-sig-util": true, - "@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>jsonschema": true, "@metamask/utils": true, "browserify>buffer": true, @@ -1615,14 +1679,6 @@ "webpack>events": true } }, - "@metamask/message-manager>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/message-manager>jsonschema": { "packages": { "browserify>url": true @@ -1648,12 +1704,20 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/name-controller>@metamask/base-controller": true, "@metamask/name-controller>@metamask/utils": true, "@metamask/name-controller>async-mutex": true } }, + "@metamask/name-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/name-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1686,10 +1750,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/eth-token-tracker>@metamask/eth-block-tracker": true, + "@metamask/network-controller>@metamask/base-controller": true, "@metamask/network-controller>@metamask/eth-json-rpc-infura": true, "@metamask/network-controller>@metamask/eth-json-rpc-middleware": true, "@metamask/network-controller>@metamask/eth-json-rpc-provider": true, @@ -1701,6 +1765,14 @@ "uuid": true } }, + "@metamask/network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/network-controller>@metamask/eth-json-rpc-infura": { "globals": { "setTimeout": true @@ -1789,11 +1861,19 @@ }, "@metamask/notification-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/utils": true, "@metamask/notification-controller>nanoid": true } }, + "@metamask/notification-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1823,9 +1903,9 @@ "removeEventListener": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, + "@metamask/notification-services-controller>@metamask/base-controller": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, "bignumber.js": true, @@ -1838,6 +1918,14 @@ "SuppressedError": true } }, + "@metamask/notification-services-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-services-controller>firebase": { "packages": { "@metamask/notification-services-controller>firebase>@firebase/app": true, @@ -1978,8 +2066,8 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/utils": true, "@metamask/permission-controller>nanoid": true, "@metamask/rpc-errors": true, @@ -1988,6 +2076,14 @@ "immer": true } }, + "@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/permission-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2045,21 +2141,13 @@ }, "packages": { "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/base-controller": true, "@metamask/controller-utils": true, - "@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>fastest-levenshtein": true, "@noble/hashes": true, "punycode": true } }, - "@metamask/phishing-controller>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/post-message-stream": { "globals": { "MessageEvent.prototype": true, @@ -2098,8 +2186,8 @@ "crypto": true }, "packages": { - "@metamask/base-controller": true, "@metamask/eth-query>json-rpc-random-id": true, + "@metamask/ppom-validator>@metamask/base-controller": true, "@metamask/ppom-validator>@metamask/controller-utils": true, "@metamask/ppom-validator>crypto-js": true, "@metamask/ppom-validator>elliptic": true, @@ -2108,6 +2196,14 @@ "browserify>buffer": true } }, + "@metamask/ppom-validator>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/ppom-validator>@metamask/controller-utils": { "globals": { "URL": true, @@ -2193,14 +2289,22 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/base-controller": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, @@ -2241,13 +2345,21 @@ }, "@metamask/queued-request-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/queued-request-controller>@metamask/base-controller": true, "@metamask/queued-request-controller>@metamask/utils": true, "@metamask/rpc-errors": true, "@metamask/selected-network-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true } }, + "@metamask/queued-request-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/queued-request-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2268,11 +2380,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/rate-limit-controller>@metamask/base-controller": true, "@metamask/rate-limit-controller>@metamask/utils": true, "@metamask/rpc-errors": true } }, + "@metamask/rate-limit-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/rate-limit-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2329,8 +2449,16 @@ }, "@metamask/selected-network-controller": { "packages": { - "@metamask/base-controller": true, - "@metamask/network-controller>@metamask/swappable-obj-proxy": true + "@metamask/network-controller>@metamask/swappable-obj-proxy": true, + "@metamask/selected-network-controller>@metamask/base-controller": true + } + }, + "@metamask/selected-network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true } }, "@metamask/signature-controller": { @@ -2338,14 +2466,22 @@ "console.info": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/logging-controller": true, "@metamask/message-manager": true, + "@metamask/signature-controller>@metamask/base-controller": true, "lodash": true, "webpack>events": true } }, + "@metamask/signature-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller": { "globals": { "URLSearchParams": true, @@ -2409,6 +2545,14 @@ "TextEncoder": true } }, + "@metamask/smart-transactions-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller>@metamask/controllers>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2426,7 +2570,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2434,6 +2577,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/smart-transactions-controller>@metamask/base-controller": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": true, @@ -2569,10 +2713,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/object-multiplex": true, "@metamask/post-message-stream": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true, "@metamask/snaps-controllers>@metamask/permission-controller": true, @@ -2597,6 +2741,14 @@ "crypto.getRandomValues": true } }, + "@metamask/snaps-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-controllers>@metamask/json-rpc-engine": { "packages": { "@metamask/rpc-errors": true, @@ -2620,9 +2772,9 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>nanoid": true, "@metamask/utils": true, @@ -2721,15 +2873,23 @@ "semver": true } }, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-execution-environments>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2758,16 +2918,24 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, "immer": true } }, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2827,15 +2995,23 @@ "semver": true } }, + "@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-utils>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2959,7 +3135,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2967,6 +3142,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/transaction-controller>@metamask/base-controller": true, "@metamask/transaction-controller>@metamask/nonce-tracker": true, "@metamask/utils": true, "bn.js": true, @@ -2978,6 +3154,14 @@ "webpack>events": true } }, + "@metamask/transaction-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/transaction-controller>@metamask/nonce-tracker": { "packages": { "@ethersproject/providers": true, @@ -2999,13 +3183,13 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, "@metamask/gas-fee-controller>@metamask/polling-controller": true, "@metamask/rpc-errors": true, "@metamask/transaction-controller": true, + "@metamask/user-operation-controller>@metamask/base-controller": true, "@metamask/user-operation-controller>@metamask/utils": true, "bn.js": true, "lodash": true, @@ -3014,6 +3198,14 @@ "webpack>events": true } }, + "@metamask/user-operation-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/user-operation-controller>@metamask/utils": { "globals": { "TextDecoder": true, diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index 489d0a279690..40a0dab601ea 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -866,7 +866,7 @@ "packages": { "@ethereumjs/tx>@ethereumjs/util": true, "@ethereumjs/tx>ethereum-cryptography": true, - "@metamask/base-controller": true, + "@metamask/accounts-controller>@metamask/base-controller": true, "@metamask/eth-snap-keyring": true, "@metamask/keyring-api": true, "@metamask/keyring-controller": true, @@ -874,15 +874,31 @@ "uuid": true } }, + "@metamask/accounts-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/address-book-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/controller-utils": true } }, + "@metamask/address-book-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/announcement-controller": { "packages": { - "@metamask/base-controller": true + "@metamask/announcement-controller>@metamask/base-controller": true } }, "@metamask/announcement-controller>@metamask/base-controller": { @@ -898,11 +914,19 @@ "console.info": true }, "packages": { + "@metamask/approval-controller>@metamask/base-controller": true, "@metamask/approval-controller>nanoid": true, - "@metamask/base-controller": true, "@metamask/rpc-errors": true } }, + "@metamask/approval-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/approval-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -927,10 +951,10 @@ "@ethersproject/contracts": true, "@ethersproject/providers": true, "@metamask/abi-utils": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/polling-controller": true, "@metamask/assets-controllers>cockatiel": true, "@metamask/assets-controllers>multiformats": true, - "@metamask/base-controller": true, "@metamask/contract-metadata": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, @@ -944,6 +968,14 @@ "uuid": true } }, + "@metamask/assets-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/assets-controllers>@metamask/polling-controller": { "globals": { "clearTimeout": true, @@ -951,7 +983,7 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } @@ -1067,12 +1099,20 @@ "@metamask/ens-controller": { "packages": { "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/ens-controller>@metamask/base-controller": true, "@metamask/utils": true, "punycode": true } }, + "@metamask/ens-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/eth-json-rpc-filters": { "globals": { "console.error": true @@ -1518,11 +1558,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": true, "@metamask/snaps-utils>fast-json-stable-stringify": true, "uuid": true } }, + "@metamask/gas-fee-controller>@metamask/polling-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/jazzicon": { "globals": { "document.createElement": true, @@ -1574,9 +1622,9 @@ "@metamask/keyring-controller": { "packages": { "@ethereumjs/tx>@ethereumjs/util": true, - "@metamask/base-controller": true, "@metamask/browser-passworder": true, "@metamask/eth-sig-util": true, + "@metamask/keyring-controller>@metamask/base-controller": true, "@metamask/keyring-controller>@metamask/eth-hd-keyring": true, "@metamask/keyring-controller>@metamask/eth-simple-keyring": true, "@metamask/keyring-controller>ethereumjs-wallet": true, @@ -1584,6 +1632,14 @@ "@metamask/utils": true } }, + "@metamask/keyring-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/keyring-controller>@metamask/eth-hd-keyring": { "globals": { "TextEncoder": true @@ -1677,10 +1733,18 @@ }, "@metamask/logging-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/logging-controller>@metamask/base-controller": true, "uuid": true } }, + "@metamask/logging-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/logo": { "globals": { "addEventListener": true, @@ -1697,9 +1761,9 @@ }, "@metamask/message-manager": { "packages": { + "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-sig-util": true, - "@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>jsonschema": true, "@metamask/utils": true, "browserify>buffer": true, @@ -1707,14 +1771,6 @@ "webpack>events": true } }, - "@metamask/message-manager>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/message-manager>jsonschema": { "packages": { "browserify>url": true @@ -1740,12 +1796,20 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/name-controller>@metamask/base-controller": true, "@metamask/name-controller>@metamask/utils": true, "@metamask/name-controller>async-mutex": true } }, + "@metamask/name-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/name-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1778,10 +1842,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/eth-token-tracker>@metamask/eth-block-tracker": true, + "@metamask/network-controller>@metamask/base-controller": true, "@metamask/network-controller>@metamask/eth-json-rpc-infura": true, "@metamask/network-controller>@metamask/eth-json-rpc-middleware": true, "@metamask/network-controller>@metamask/eth-json-rpc-provider": true, @@ -1793,6 +1857,14 @@ "uuid": true } }, + "@metamask/network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/network-controller>@metamask/eth-json-rpc-infura": { "globals": { "setTimeout": true @@ -1881,11 +1953,19 @@ }, "@metamask/notification-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/utils": true, "@metamask/notification-controller>nanoid": true } }, + "@metamask/notification-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -1915,9 +1995,9 @@ "removeEventListener": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/notification-services-controller>@contentful/rich-text-html-renderer": true, + "@metamask/notification-services-controller>@metamask/base-controller": true, "@metamask/notification-services-controller>firebase": true, "@metamask/profile-sync-controller": true, "bignumber.js": true, @@ -1930,6 +2010,14 @@ "SuppressedError": true } }, + "@metamask/notification-services-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/notification-services-controller>firebase": { "packages": { "@metamask/notification-services-controller>firebase>@firebase/app": true, @@ -2070,8 +2158,8 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, + "@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/utils": true, "@metamask/permission-controller>nanoid": true, "@metamask/rpc-errors": true, @@ -2080,6 +2168,14 @@ "immer": true } }, + "@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/permission-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2137,21 +2233,13 @@ }, "packages": { "@ethereumjs/tx>ethereum-cryptography": true, + "@metamask/base-controller": true, "@metamask/controller-utils": true, - "@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>fastest-levenshtein": true, "@noble/hashes": true, "punycode": true } }, - "@metamask/phishing-controller>@metamask/base-controller": { - "globals": { - "setTimeout": true - }, - "packages": { - "immer": true - } - }, "@metamask/post-message-stream": { "globals": { "MessageEvent.prototype": true, @@ -2190,8 +2278,8 @@ "crypto": true }, "packages": { - "@metamask/base-controller": true, "@metamask/eth-query>json-rpc-random-id": true, + "@metamask/ppom-validator>@metamask/base-controller": true, "@metamask/ppom-validator>@metamask/controller-utils": true, "@metamask/ppom-validator>crypto-js": true, "@metamask/ppom-validator>elliptic": true, @@ -2200,6 +2288,14 @@ "browserify>buffer": true } }, + "@metamask/ppom-validator>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/ppom-validator>@metamask/controller-utils": { "globals": { "URL": true, @@ -2285,14 +2381,22 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/message-signing-snap>@noble/ciphers": true, + "@metamask/profile-sync-controller>@metamask/base-controller": true, "@metamask/profile-sync-controller>siwe": true, "@noble/hashes": true, "browserify>buffer": true, "loglevel": true } }, + "@metamask/profile-sync-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/profile-sync-controller>siwe": { "globals": { "console.error": true, @@ -2333,13 +2437,21 @@ }, "@metamask/queued-request-controller": { "packages": { - "@metamask/base-controller": true, + "@metamask/queued-request-controller>@metamask/base-controller": true, "@metamask/queued-request-controller>@metamask/utils": true, "@metamask/rpc-errors": true, "@metamask/selected-network-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true } }, + "@metamask/queued-request-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/queued-request-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2360,11 +2472,19 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, + "@metamask/rate-limit-controller>@metamask/base-controller": true, "@metamask/rate-limit-controller>@metamask/utils": true, "@metamask/rpc-errors": true } }, + "@metamask/rate-limit-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/rate-limit-controller>@metamask/utils": { "globals": { "TextDecoder": true, @@ -2421,8 +2541,16 @@ }, "@metamask/selected-network-controller": { "packages": { - "@metamask/base-controller": true, - "@metamask/network-controller>@metamask/swappable-obj-proxy": true + "@metamask/network-controller>@metamask/swappable-obj-proxy": true, + "@metamask/selected-network-controller>@metamask/base-controller": true + } + }, + "@metamask/selected-network-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true } }, "@metamask/signature-controller": { @@ -2430,14 +2558,22 @@ "console.info": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/logging-controller": true, "@metamask/message-manager": true, + "@metamask/signature-controller>@metamask/base-controller": true, "lodash": true, "webpack>events": true } }, + "@metamask/signature-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller": { "globals": { "URLSearchParams": true, @@ -2501,6 +2637,14 @@ "TextEncoder": true } }, + "@metamask/smart-transactions-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/smart-transactions-controller>@metamask/controllers>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2518,7 +2662,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -2526,6 +2669,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/smart-transactions-controller>@metamask/base-controller": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true, "@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": true, @@ -2661,10 +2805,10 @@ "setTimeout": true }, "packages": { - "@metamask/base-controller": true, "@metamask/object-multiplex": true, "@metamask/post-message-stream": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>@metamask/json-rpc-middleware-stream": true, "@metamask/snaps-controllers>@metamask/permission-controller": true, @@ -2689,6 +2833,14 @@ "crypto.getRandomValues": true } }, + "@metamask/snaps-controllers>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-controllers>@metamask/json-rpc-engine": { "packages": { "@metamask/rpc-errors": true, @@ -2712,9 +2864,9 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, + "@metamask/snaps-controllers>@metamask/base-controller": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, "@metamask/snaps-controllers>nanoid": true, "@metamask/utils": true, @@ -2813,15 +2965,23 @@ "semver": true } }, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-execution-environments>@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-execution-environments>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -2850,16 +3010,24 @@ "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": true, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, "immer": true } }, + "@metamask/snaps-rpc-methods>@metamask/permission-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-rpc-methods>@metamask/permission-controller>nanoid": { "globals": { "crypto.getRandomValues": true @@ -2919,15 +3087,23 @@ "semver": true } }, + "@metamask/snaps-utils>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/snaps-utils>@metamask/permission-controller": { "globals": { "console.error": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/rpc-errors": true, "@metamask/snaps-controllers>@metamask/json-rpc-engine": true, + "@metamask/snaps-utils>@metamask/base-controller": true, "@metamask/snaps-utils>@metamask/permission-controller>nanoid": true, "@metamask/utils": true, "deep-freeze-strict": true, @@ -3051,7 +3227,6 @@ "@ethersproject/abi": true, "@ethersproject/contracts": true, "@ethersproject/providers": true, - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, @@ -3059,6 +3234,7 @@ "@metamask/name-controller>async-mutex": true, "@metamask/network-controller": true, "@metamask/rpc-errors": true, + "@metamask/transaction-controller>@metamask/base-controller": true, "@metamask/transaction-controller>@metamask/nonce-tracker": true, "@metamask/utils": true, "bn.js": true, @@ -3070,6 +3246,14 @@ "webpack>events": true } }, + "@metamask/transaction-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/transaction-controller>@metamask/nonce-tracker": { "packages": { "@ethersproject/providers": true, @@ -3091,13 +3275,13 @@ "fetch": true }, "packages": { - "@metamask/base-controller": true, "@metamask/controller-utils": true, "@metamask/eth-query": true, "@metamask/gas-fee-controller": true, "@metamask/gas-fee-controller>@metamask/polling-controller": true, "@metamask/rpc-errors": true, "@metamask/transaction-controller": true, + "@metamask/user-operation-controller>@metamask/base-controller": true, "@metamask/user-operation-controller>@metamask/utils": true, "bn.js": true, "lodash": true, @@ -3106,6 +3290,14 @@ "webpack>events": true } }, + "@metamask/user-operation-controller>@metamask/base-controller": { + "globals": { + "setTimeout": true + }, + "packages": { + "immer": true + } + }, "@metamask/user-operation-controller>@metamask/utils": { "globals": { "TextDecoder": true, diff --git a/package.json b/package.json index da6231fcb55a..2b0c4d6301d7 100644 --- a/package.json +++ b/package.json @@ -304,7 +304,7 @@ "@metamask/announcement-controller": "^7.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/assets-controllers": "^36.0.0", - "@metamask/base-controller": "^6.0.2", + "@metamask/base-controller": "^7.0.0", "@metamask/bitcoin-wallet-snap": "^0.5.0", "@metamask/browser-passworder": "^4.3.0", "@metamask/contract-metadata": "^2.5.0", diff --git a/yarn.lock b/yarn.lock index cca9bd9dab12..5d333062da8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26106,7 +26106,7 @@ __metadata: "@metamask/approval-controller": "npm:^7.0.0" "@metamask/assets-controllers": "npm:^36.0.0" "@metamask/auto-changelog": "npm:^2.1.0" - "@metamask/base-controller": "npm:^6.0.2" + "@metamask/base-controller": "npm:^7.0.0" "@metamask/bitcoin-wallet-snap": "npm:^0.5.0" "@metamask/browser-passworder": "npm:^4.3.0" "@metamask/build-utils": "npm:^3.0.0"