Skip to content

Ad/fix selected network controller domain setting#22860

Closed
adonesky1 wants to merge 1 commit intodevelopfrom
ad/fix-selected-network-controller-domain-setting
Closed

Ad/fix selected network controller domain setting#22860
adonesky1 wants to merge 1 commit intodevelopfrom
ad/fix-selected-network-controller-domain-setting

Conversation

@adonesky1
Copy link
Copy Markdown
Contributor

Currently the SelectedNetworkController adds any and all domains the user visits to its domains state whether or not the user has connected to these sites. This PR cleans up the undesired state caused by this bug and adds a check for existing permissions for an origin before adding it to domains state going forward

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 7, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@adonesky1 adonesky1 mentioned this pull request Feb 7, 2024
13 tasks
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Feb 7, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (538601f) 68.53% compared to head (57cc976) 68.54%.
Report is 66 commits behind head on develop.

❗ Current head 57cc976 differs from pull request most recent head 8d02240. Consider uploading reports for the commit 8d02240 to get more accurate results

Files Patch % Lines
app/scripts/metamask-controller.js 67.65% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #22860      +/-   ##
===========================================
+ Coverage    68.53%   68.54%   +0.01%     
===========================================
  Files         1089     1090       +1     
  Lines        42980    43007      +27     
  Branches     11442    11458      +16     
===========================================
+ Hits         29455    29478      +23     
- Misses       13525    13529       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [a1c01bb]
Page Load Metrics (847 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint831851182412
domContentLoaded96825157
load692116584712560
domInteractive96825157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.55 KiB (0.05%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [833006b]
Page Load Metrics (809 ± 24 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint80143108189
domContentLoaded9331984
load7378878095024
domInteractive9331984
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.15 KiB (0.06%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b3df151]
Page Load Metrics (799 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint84131102147
domContentLoaded10521794
load706123179911254
domInteractive10521794
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.1 KiB (0.09%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@adonesky1 adonesky1 force-pushed the ad/fix-selected-network-controller-domain-setting branch 4 times, most recently from ea07296 to a468699 Compare February 16, 2024 19:26
@socket-security
Copy link
Copy Markdown

socket-security bot commented Feb 16, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package Note
New author npm/uuid@3.4.0
Network access npm/protobufjs@7.2.5
Install scripts npm/protobufjs@7.2.5
  • Install script: postinstall
  • Source: node scripts/postinstall
New author npm/react@18.2.0
New author npm/react-dom@18.2.0
New author npm/scheduler@0.23.0
Shell access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Shell access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
Network access npm/@storybook/telemetry@7.4.6
New author npm/json-stable-stringify@1.0.2
CVE npm/trim@0.0.1
New author npm/toidentifier@1.0.0
New author npm/which@3.0.1
New author npm/browserify-rsa@4.0.1
Network access npm/@storybook/preview@7.4.6
Install scripts npm/@sentry/cli@2.19.4
  • Install script: install
  • Source: node ./scripts/install.js
Network access npm/@sentry/cli@2.19.4
Mild CVE npm/react-devtools-core@4.27.6
New author npm/node-gyp@9.4.1
New author npm/flagged-respawn@1.0.0
New author npm/wif@4.0.0
Mild CVE npm/electron@23.3.0
Network access npm/@ethereumjs/util@9.0.2
Network access npm/@trezor/blockchain-link-utils@1.0.14
Network access npm/@trezor/transport@1.1.24
No contributors or author data npm/react-devtools@4.27.6
No contributors or author data npm/koa@2.11.0
No contributors or author data npm/@metamask/announcement-controller@5.0.1
No contributors or author data npm/@metamask/address-book-controller@3.0.0
No contributors or author data npm/selenium-webdriver@4.15.0
Shell access npm/selenium-webdriver@4.15.0
Network access npm/selenium-webdriver@4.15.0
Network access npm/selenium-webdriver@4.15.0
Network access npm/selenium-webdriver@4.15.0
No contributors or author data npm/@metamask/rate-limit-controller@3.0.0
No contributors or author data npm/@metamask/notification-controller@3.0.0

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is a CVE?

Contains a high severity Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

What is a mild CVE?

Contains a low severity Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known low severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Why is contributor and author data important?

Package does not specify a list of contributors or an author in package.json.

Add a author field or contributors array to package.json.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/uuid@3.4.0
  • @SocketSecurity ignore npm/protobufjs@7.2.5
  • @SocketSecurity ignore npm/react@18.2.0
  • @SocketSecurity ignore npm/react-dom@18.2.0
  • @SocketSecurity ignore npm/scheduler@0.23.0
  • @SocketSecurity ignore npm/@storybook/telemetry@7.4.6
  • @SocketSecurity ignore npm/json-stable-stringify@1.0.2
  • @SocketSecurity ignore npm/trim@0.0.1
  • @SocketSecurity ignore npm/toidentifier@1.0.0
  • @SocketSecurity ignore npm/which@3.0.1
  • @SocketSecurity ignore npm/browserify-rsa@4.0.1
  • @SocketSecurity ignore npm/@storybook/preview@7.4.6
  • @SocketSecurity ignore npm/@sentry/cli@2.19.4
  • @SocketSecurity ignore npm/react-devtools-core@4.27.6
  • @SocketSecurity ignore npm/node-gyp@9.4.1
  • @SocketSecurity ignore npm/flagged-respawn@1.0.0
  • @SocketSecurity ignore npm/wif@4.0.0
  • @SocketSecurity ignore npm/electron@23.3.0
  • @SocketSecurity ignore npm/@ethereumjs/util@9.0.2
  • @SocketSecurity ignore npm/@trezor/blockchain-link-utils@1.0.14
  • @SocketSecurity ignore npm/@trezor/transport@1.1.24
  • @SocketSecurity ignore npm/react-devtools@4.27.6
  • @SocketSecurity ignore npm/koa@2.11.0
  • @SocketSecurity ignore npm/@metamask/announcement-controller@5.0.1
  • @SocketSecurity ignore npm/@metamask/address-book-controller@3.0.0
  • @SocketSecurity ignore npm/selenium-webdriver@4.15.0
  • @SocketSecurity ignore npm/@metamask/rate-limit-controller@3.0.0
  • @SocketSecurity ignore npm/@metamask/notification-controller@3.0.0

@adonesky1
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policy update failed. You can review the logs or retry the policy update here

@adonesky1 adonesky1 force-pushed the ad/fix-selected-network-controller-domain-setting branch from 97a7b77 to 9427829 Compare February 16, 2024 19:46
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [57cc976]
Page Load Metrics (1077 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1182822083416
domContentLoaded1091382512
load904129010779747
domInteractive1091382512
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.97 KiB (0.09%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Comment on lines 2804 to 2856
setProviderType: (type) => {
// when using this format, type happens to be the same as the networkClientId...
this.selectedNetworkController.setNetworkClientIdForMetamask(type);
return this.networkController.setProviderType(type);
},
setActiveNetwork: (networkConfigurationId) => {
this.selectedNetworkController.setNetworkClientIdForMetamask(
networkConfigurationId,
);
return this.networkController.setActiveNetwork(networkConfigurationId);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +4679 to +4688
// only use proxyClient from selectedNetworkController (and only set default selectedNetworkClientId for current origin) when the following are all true:
// 1. selectedNetworkClientIdForDomain has not been set
// 2. feature flag for perDomainNetwork is on
// 3. there exists a permission (any permission) for the given origin/domain
// Why 3? because we end up calling setupProviderEngine here regardless of whethe the in-page provider has been accessed to actually use metamask. What this really ends up meaning is that
// without doing #3, we will save a record for every single domain that the inpage provider is injected for (iframes, frames, every tab, way too much). What we really want is
// to only maintain records for domains that have actually tried using metamask. As such, we use 'have they set a permission before' as a proxy for this.
let proxyClient;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO see if this can be separated out into a separate PR

@socket-security
Copy link
Copy Markdown

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@actions/core@1.10.0 environment, filesystem Transitive: network, unsafe +5 1.58 MB thboop
npm/@babel/code-frame@7.22.13 Transitive: environment +10 191 kB nicolo-ribaudo
npm/@babel/compat-data@7.23.2 None 0 64.1 kB nicolo-ribaudo
npm/@babel/core@7.23.2 environment, filesystem, unsafe Transitive: shell +52 10.7 MB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.22.15 Transitive: environment, filesystem, shell, unsafe +58 11 MB nicolo-ribaudo
npm/@babel/helper-define-polyfill-provider@0.4.3 unsafe Transitive: environment, filesystem, shell +61 11.2 MB nicolo-ribaudo
npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.15 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.15 Transitive: environment, filesystem, shell, unsafe +57 10.8 MB nicolo-ribaudo
npm/@babel/plugin-syntax-flow@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-syntax-import-assertions@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-syntax-import-attributes@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-syntax-jsx@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-syntax-typescript@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-arrow-functions@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-async-generator-functions@7.23.2 Transitive: environment, filesystem, shell, unsafe +58 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-async-to-generator@7.22.5 Transitive: environment, filesystem, shell, unsafe +57 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-block-scoped-functions@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-block-scoping@7.23.0 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-class-properties@7.22.5 Transitive: environment, filesystem, shell, unsafe +60 11 MB nicolo-ribaudo
npm/@babel/plugin-transform-class-static-block@7.22.11 Transitive: environment, filesystem, shell, unsafe +61 11 MB nicolo-ribaudo
npm/@babel/plugin-transform-classes@7.22.15 Transitive: environment, filesystem, shell, unsafe +58 10.9 MB nicolo-ribaudo
npm/@babel/plugin-transform-computed-properties@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-destructuring@7.23.0 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-dotall-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-duplicate-keys@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-dynamic-import@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-exponentiation-operator@7.22.5 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-export-namespace-from@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-flow-strip-types@7.22.5 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-for-of@7.22.15 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-function-name@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-json-strings@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-literals@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-member-expression-literals@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-amd@7.23.0 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-commonjs@7.23.0 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-systemjs@7.23.0 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-umd@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-new-target@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-nullish-coalescing-operator@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-numeric-separator@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-object-rest-spread@7.22.15 Transitive: environment, filesystem, shell, unsafe +57 10.9 MB nicolo-ribaudo
npm/@babel/plugin-transform-object-super@7.22.5 Transitive: environment, filesystem, shell, unsafe +57 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-optional-catch-binding@7.22.11 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-private-methods@7.22.5 Transitive: environment, filesystem, shell, unsafe +60 11 MB nicolo-ribaudo
npm/@babel/plugin-transform-private-property-in-object@7.22.11 Transitive: environment, filesystem, shell, unsafe +61 11.1 MB nicolo-ribaudo
npm/@babel/plugin-transform-property-literals@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-react-display-name@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-react-pure-annotations@7.22.5 Transitive: environment, filesystem, shell, unsafe +55 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-regenerator@7.22.10 Transitive: environment, filesystem, shell, unsafe +57 11.2 MB nicolo-ribaudo
npm/@babel/plugin-transform-reserved-words@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-shorthand-properties@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-spread@7.22.5 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-sticky-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-template-literals@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-typeof-symbol@7.22.5 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-typescript@7.22.15 Transitive: environment, filesystem, shell, unsafe +61 11.2 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-escapes@7.22.10 Transitive: environment, filesystem, shell, unsafe +54 10.7 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-property-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-sets-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/preset-env@7.23.2 environment Transitive: filesystem, shell, unsafe +162 15.3 MB nicolo-ribaudo
npm/@babel/preset-flow@7.22.15 Transitive: environment, filesystem, shell, unsafe +56 10.8 MB nicolo-ribaudo
npm/@babel/preset-react@7.22.15 Transitive: environment, filesystem, shell, unsafe +60 10.9 MB nicolo-ribaudo
npm/@babel/preset-typescript@7.23.2 Transitive: environment, filesystem, shell, unsafe +64 11.2 MB nicolo-ribaudo
npm/@babel/register@7.22.15 environment, filesystem, unsafe Transitive: shell +70 11.8 MB nicolo-ribaudo
npm/@babel/runtime-corejs3@7.11.2 Transitive: environment, eval, filesystem +2 1.24 MB jlhwung
npm/@electron/get@2.0.2 environment, filesystem, shell Transitive: eval, network +67 6.04 MB electron-cfa
npm/@emotion/react@11.11.0 environment Transitive: filesystem, unsafe +54 6.66 MB emotion-release-bot
npm/@endo/env-options@1.1.0 None 0 28 kB kriskowal
npm/@figspec/components@1.0.2 Transitive: environment +6 3.1 MB pocka
npm/@floating-ui/core@1.5.0 None +1 243 kB atomiks
npm/@floating-ui/dom@1.5.3 None +2 370 kB atomiks
npm/@floating-ui/react-dom@2.0.2 Transitive: environment +8 5.34 MB atomiks
npm/@floating-ui/utils@0.1.6 None 0 52.7 kB atomiks
npm/@fortawesome/fontawesome-free@5.13.0 None 0 11.3 MB robmadole
npm/@istanbuljs/load-nyc-config@1.0.0 environment, filesystem Transitive: eval +10 780 kB coreyfarrell
npm/@lavamoat/allow-scripts@3.0.1 environment, filesystem, shell Transitive: network +114 5.78 MB naugtur
npm/@material-ui/core@4.11.0 environment Transitive: eval +44 24.6 MB oliviertassinari
npm/@material-ui/types@5.1.8 None +4 2.44 MB mnajdova
npm/@metamask-institutional/custody-controller@0.2.20 Transitive: environment, filesystem, network +79 15.2 MB aregadas
npm/@metamask-institutional/extension@0.3.13 Transitive: environment, filesystem, network +123 21.3 MB aregadas
npm/@metamask-institutional/institutional-features@1.2.11 Transitive: environment, filesystem, network +78 15.2 MB albertolive88, aregadas, bergarces-consensys, ...4 more
npm/@metamask/address-book-controller@3.0.0 Transitive: environment, filesystem, network +73 16.4 MB metamaskbot
npm/@metamask/announcement-controller@5.0.1 Transitive: environment, network +20 5.15 MB metamaskbot
npm/@metamask/build-utils@1.0.0 Transitive: environment, network +21 4.4 MB metamaskbot
npm/@metamask/eth-token-tracker@7.0.1 Transitive: environment, eval, filesystem, network +94 13.2 MB lgbot
npm/@metamask/ethjs-rpc@0.3.2 None +3 92.5 kB metamaskbot
npm/@metamask/notification-controller@3.0.0 Transitive: environment, network +18 4.25 MB metamaskbot
npm/@metamask/rate-limit-controller@3.0.0 Transitive: environment, network +22 5.21 MB metamaskbot
npm/@ndelangen/get-tarball@3.0.7 network Transitive: environment, filesystem +30 1.94 MB ndelangen
npm/@npmcli/promise-spawn@6.0.2 environment, shell Transitive: filesystem +2 30.2 kB nlf
npm/@npmcli/run-script@6.0.2 environment, filesystem Transitive: network, shell +94 4.94 MB npm-cli-ops
npm/@playwright/test@1.39.0 Transitive: environment, eval, filesystem, network, shell, unsafe +3 10.2 MB aslushnikov
npm/@pmmmwh/react-refresh-webpack-plugin@0.5.10 environment, filesystem Transitive: eval, network, shell, unsafe +92 20.4 MB pmmmwh
npm/@popperjs/core@2.9.2 environment 0 1.5 MB fezvrasta
npm/@reduxjs/toolkit@1.6.2 environment +20 14.4 MB acemarke
npm/@sentry-internal/tracing@7.53.0 None +4 3 MB sentry-bot
npm/@sentry/browser@7.53.0 network +6 5.73 MB sentry-bot
npm/@sentry/cli@2.19.4 environment, filesystem, network, shell +15 1.12 MB sentry-bot
npm/@sentry/core@7.53.0 None +2 2.13 MB sentry-bot
npm/@sentry/integrations@7.53.0 Transitive: network +5 1.94 MB sentry-bot
npm/@sentry/replay@7.53.0 None +3 4.18 MB sentry-bot
npm/@sentry/types@7.53.0 None 0 132 kB sentry-bot
npm/@sentry/utils@7.53.0 None +1 1.17 MB sentry-bot
npm/@sideway/address@4.1.4 None +1 108 kB hueniverse
npm/@sinonjs/text-encoding@0.7.1 None 0 650 kB fatso83
npm/@storybook/addon-a11y@7.4.6 Transitive: environment, eval, filesystem, network +124 30.2 MB shilman
npm/@storybook/addon-actions@7.4.6 Transitive: environment, eval, filesystem, network +126 30.6 MB shilman
npm/@storybook/addon-backgrounds@7.4.6 Transitive: environment, eval, filesystem, network +121 27.5 MB shilman
npm/@storybook/addon-controls@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +230 250 MB shilman
npm/@storybook/addon-designs@7.0.5 Transitive: environment, eval, filesystem, network, shell, unsafe +396 282 MB shilman
npm/@storybook/addon-essentials@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +394 270 MB shilman
npm/@storybook/addon-highlight@7.4.6 Transitive: environment, eval, filesystem, network +57 13.3 MB shilman
npm/@storybook/addon-mdx-gfm@7.4.6 Transitive: environment +73 2.85 MB shilman
npm/@storybook/addon-measure@7.4.6 Transitive: environment, eval, filesystem, network +121 27.5 MB shilman
npm/@storybook/addon-outline@7.4.6 Transitive: environment, eval, filesystem, network +121 27.5 MB shilman
npm/@storybook/addon-toolbars@7.4.6 Transitive: environment, eval, filesystem, network +121 27.5 MB shilman
npm/@storybook/addon-viewport@7.4.6 Transitive: environment, eval, filesystem, network +124 27.6 MB shilman
npm/@storybook/blocks@7.4.6 eval Transitive: environment, filesystem, network, shell, unsafe +229 250 MB shilman
npm/@storybook/builder-manager@7.4.6 filesystem Transitive: environment, eval, network, shell, unsafe +220 234 MB shilman
npm/@storybook/builder-webpack5@7.4.6 filesystem Transitive: environment, eval, network, shell, unsafe +491 770 MB shilman
npm/@storybook/cli@7.4.6 environment, filesystem Transitive: eval, network, shell, unsafe +619 291 MB shilman
npm/@storybook/client-api@7.4.6 Transitive: environment, eval, filesystem, network +57 13.3 MB shilman
npm/@storybook/codemod@7.4.6 filesystem Transitive: environment, eval, shell, unsafe +309 41.2 MB shilman
npm/@storybook/components@7.4.6 environment, eval Transitive: filesystem +113 24.9 MB shilman
npm/@storybook/core-client@7.4.6 Transitive: environment, eval, filesystem, network +57 13.3 MB shilman
npm/@storybook/core-common@7.4.6 environment, filesystem, network, unsafe Transitive: eval, shell +149 229 MB shilman
npm/@storybook/core-server@7.4.6 filesystem Transitive: environment, eval, network, shell, unsafe +347 260 MB shilman
npm/@storybook/core-webpack@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +150 229 MB shilman
npm/@storybook/docs-tools@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +159 231 MB shilman
npm/@storybook/manager-api@7.4.6 network Transitive: environment, eval, filesystem +63 18.5 MB shilman
npm/@storybook/manager@7.4.6 None 0 2.58 MB shilman
npm/@storybook/node-logger@7.4.6 environment 0 168 kB shilman
npm/@storybook/preset-react-webpack@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +367 326 MB shilman
npm/@storybook/preview@7.4.6 eval, network 0 353 kB shilman
npm/@storybook/react-webpack5@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +583 776 MB shilman
npm/@storybook/react@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +185 305 MB shilman
npm/@storybook/router@7.4.6 environment, eval +24 5.68 MB shilman
npm/@storybook/telemetry@7.4.6 environment, filesystem, network, shell Transitive: eval, unsafe +229 233 MB shilman
npm/@storybook/theming@7.4.6 environment +10 5.74 MB shilman
npm/@stylelint/postcss-css-in-js@0.37.2 Transitive: environment, filesystem, shell, unsafe +56 12.1 MB jeddy3
npm/@stylelint/postcss-markdown@0.36.1 Transitive: environment, filesystem +42 2 MB jeddy3
npm/@testing-library/dom@7.22.2 environment Transitive: eval, filesystem +15 4.87 MB testing-library-bot
npm/@testing-library/jest-dom@5.11.10 Transitive: environment, eval, filesystem, unsafe +66 10.3 MB testing-library-bot
npm/@testing-library/react@10.4.8 environment Transitive: eval, filesystem +21 15 MB testing-library-bot
npm/@testing-library/user-event@14.4.3 Transitive: environment, eval, filesystem +16 5.29 MB testing-library-bot
npm/@trezor/analytics@1.0.14 network Transitive: environment +4 272 kB trezor-ci
npm/@trezor/blockchain-link-types@1.0.13 Transitive: environment, filesystem, network +55 6.77 MB trezor-ci
npm/@trezor/blockchain-link-utils@1.0.14 network +3 538 kB trezor-ci
npm/@trezor/blockchain-link@2.1.25 Transitive: environment, eval, filesystem, network +106 23.6 MB trezor-ci
npm/@trezor/connect-analytics@1.0.12 environment Transitive: network +5 277 kB trezor-ci
npm/@trezor/connect-common@0.0.28 Transitive: environment +4 427 kB trezor-ci
npm/@trezor/connect-web@9.1.12 Transitive: environment, eval, filesystem, network +148 33.7 MB trezor-ci
npm/@trezor/connect@9.1.12 filesystem Transitive: environment, eval, network +147 33.6 MB trezor-ci
npm/@trezor/env-utils@1.0.13 environment +2 211 kB trezor-ci
npm/@trezor/transport@1.1.24 network Transitive: eval, filesystem +40 8.81 MB trezor-ci
npm/@trezor/utils@9.0.21 None +1 132 kB trezor-ci
npm/@trezor/utxo-lib@2.0.6 Transitive: environment, filesystem +45 6.05 MB trezor-ci
npm/@tsconfig/node10@1.0.8 None 0 2.31 kB typescript-deploys
npm/@tsconfig/node12@1.0.9 None 0 2.4 kB typescript-deploys
npm/@types/babel-core@6.25.7 None +5 196 kB types
npm/@types/babelify@7.3.7 None +8 4.27 MB types
npm/@types/browserify@12.0.37 None +3 4.09 MB types
npm/@types/cors@2.8.12 None 0 6.35 kB types
npm/@types/currency-formatter@1.5.1 None 0 4.53 kB types
npm/@types/end-of-stream@1.4.1 None +2 4.08 MB types
npm/@types/glob-stream@6.1.2 None +4 4.1 MB types
npm/@types/gulp-sass@5.0.0 None +3 4.1 MB types
npm/@types/gulp@4.0.9 Transitive: environment, filesystem +28 4.69 MB types
npm/@types/hast@2.3.1 None +1 14 kB types
npm/@types/hoist-non-react-statics@3.3.1 Transitive: environment +6 1.75 MB types
npm/@types/jsdom@20.0.0 None +4 4.81 MB types
npm/@types/madge@5.0.0 None +2 4.08 MB types
npm/@types/minimatch@5.1.2 None 0 12.5 kB types
npm/@types/minimist@1.2.2 None 0 6.72 kB types
npm/@types/mocha@10.0.3 None 0 95.4 kB types
npm/@types/pify@5.0.1 None 0 5.1 kB types
npm/@types/prettier@2.7.2 None 0 49.5 kB types
npm/@types/pump@1.1.1 None +2 4.08 MB types
npm/@types/react-beautiful-dnd@13.1.5 None +4 1.71 MB types
npm/@types/react-dom@17.0.11 None +4 1.71 MB types
npm/@types/react-redux@7.1.25 Transitive: environment +10 2.24 MB types
npm/@types/react@18.2.57 None +3 1.68 MB types
npm/@types/readable-stream@4.0.4 None +2 4.1 MB types
npm/@types/remote-redux-devtools@0.5.5 Transitive: environment +3 460 kB types
npm/@types/sass@1.43.1 None +2 4.09 MB types
npm/@types/selenium-webdriver@4.1.19 None +3 4.35 MB types
npm/@types/sinon@10.0.13 None +1 93 kB types
npm/@types/w3c-web-hid@1.0.3 None 0 8.63 kB types
npm/@types/watchify@3.11.1 None +4 4.1 MB types
npm/@types/web@0.0.119 None 0 1.35 MB types
npm/@types/webextension-polyfill@0.10.4 None 0 487 kB types
npm/@vue/compiler-core@3.1.4 environment, eval +8 5.93 MB yyx990803
npm/@vue/compiler-dom@3.1.4 environment, eval +9 6.61 MB yyx990803
npm/@vue/compiler-sfc@3.1.4 environment Transitive: eval, filesystem, unsafe +39 10.2 MB yyx990803
npm/@vue/compiler-ssr@3.1.4 Transitive: environment, eval +10 6.66 MB yyx990803
npm/@vue/shared@3.1.4 environment 0 72.8 kB yyx990803
npm/@yarnpkg/parsers@3.0.0-rc.48.1 None +2 595 kB arcanis
npm/agentkeepalive@4.5.0 network +2 54.2 kB fengmk2
npm/asn1.js@4.9.2 unsafe +2 52.2 kB indutny
npm/async-each@1.0.1 None 0 3.6 kB paulmillr
npm/autoprefixer@10.4.16 environment Transitive: filesystem, shell +12 2.86 MB ai
npm/babel-plugin-polyfill-corejs3@0.8.7 Transitive: environment, filesystem, shell, unsafe +63 12.1 MB nicolo-ribaudo
npm/bitwise@2.1.0 None 0 120 kB florianwendelborn
npm/brotli-wasm@1.1.0 filesystem 0 2.87 MB pimterry
npm/browserify-cipher@1.0.0 Transitive: environment +16 308 kB cwmma
npm/browserify-rsa@4.0.1 None +1 18 kB dcousens
npm/browserify-sign@4.0.4 Transitive: environment +26 607 kB cwmma
npm/capture-stack-trace@1.0.1 None 0 2.6 kB floatdrop
npm/character-entities-html4@1.1.4 None 0 9.04 kB wooorm
npm/classnames@2.2.6 None 0 16.3 kB jedwatson
npm/cloneable-readable@1.0.0 None +7 50.2 kB matteo.collina
npm/collapse-white-space@1.0.6 None 0 4.36 kB wooorm
npm/configstore@3.1.2 Transitive: environment, filesystem +11 106 kB sindresorhus
npm/cookies@0.8.0 network Transitive: environment, eval +3 62.6 kB dougwilson
npm/currency-formatter@1.4.2 None +3 452 kB soroush
npm/data-uri-to-buffer@6.0.1 None 0 14.3 kB tootallnate
npm/decamelize-keys@1.1.0 None +2 9.43 kB dsblv
npm/depcheck@1.4.3 filesystem, unsafe Transitive: environment, eval +134 23.9 MB rumpl
npm/deps-regex@0.1.4 None 0 2.94 kB mathieudutour
npm/destroyable-server@1.0.0 None +2 4.09 MB pimterry
npm/dezalgo@1.0.3 None +2 41.8 kB othiym23
npm/duplexer3@0.1.4 None 0 6.43 kB floatdrop
npm/electron@23.3.0 environment, filesystem, shell Transitive: eval, network +74 6.94 MB electron-nightly
npm/eslint-import-resolver-typescript@2.5.0 Transitive: environment, eval, filesystem, shell, unsafe +173 14.9 MB jounqin
npm/eslint-plugin-react@7.30.1 filesystem Transitive: environment, eval, shell, unsafe +172 14.5 MB ljharb
npm/eth-json-rpc-filters@6.0.0 None +9 312 kB gudahtt
npm/event-stream@3.3.4 None +7 116 kB dominictarr
npm/fake-indexeddb@4.0.1 Transitive: eval +10 5.83 MB dumbmatter
npm/fined@1.1.0 filesystem Transitive: environment +18 126 kB phated
npm/flagged-respawn@1.0.0 shell 0 9.46 kB phated
npm/flush-write-stream@1.0.3 None +4 24.8 kB mafintosh
npm/focus-lock@0.11.6 None +1 212 kB kashey
npm/generic-names@4.0.0 None +1 44.9 kB evilebottnawi
npm/get-uri@6.0.2 filesystem, network Transitive: environment +8 426 kB tootallnate
npm/glob-watcher@5.0.3 Transitive: environment, filesystem +92 1.51 MB phated
npm/glogg@1.0.0 None +1 9.72 kB phated
npm/graphql@16.8.1 None 0 1.34 MB i1g
npm/gulp-postcss@9.0.1 Transitive: environment, filesystem, shell, unsafe +50 506 MB unsoundscapes
npm/http-assert@1.4.1 network +6 58.8 kB dougwilson
npm/is-whitespace-character@1.0.4 None 0 5.31 kB wooorm
npm/is-word-character@1.0.4 None 0 5.07 kB wooorm
npm/jest-canvas-mock@2.3.1 None +2 344 kB atool
npm/jest-environment-jsdom@29.1.2 Transitive: environment, eval, filesystem, network, shell, unsafe +101 15.6 MB simenb
npm/jscodeshift@0.14.0 Transitive: environment, filesystem, shell, unsafe +220 19.4 MB daniel15
npm/just-extend@4.0.2 None 0 4.27 kB angus-c
npm/koa-compose@3.2.1 None +1 26.6 kB jongleberry
npm/koa-convert@1.2.0 None +3 54.9 kB gyson
npm/koa@2.11.0 environment, network Transitive: eval, filesystem, unsafe +45 866 kB dead_horse
npm/lavamoat-viz@7.0.2 Transitive: environment, eval, filesystem +91 111 MB naugtur
npm/lavamoat@8.0.2 eval, filesystem, unsafe Transitive: environment +86 8.65 MB naugtur
npm/lilconfig@2.1.0 filesystem 0 16.6 kB antonk52
npm/locale-currency@0.0.1 None 0 6.57 kB tadeegan
npm/lockfile-lint-api@5.5.5 filesystem +4 709 kB lirantal_bot
npm/lockfile-lint@4.10.6 Transitive: environment, filesystem, unsafe +41 1.84 MB lirantal_bot
npm/magic-string@0.25.9 None +1 405 kB antfu
npm/map-stream@0.1.0 None 0 13.6 kB dominictarr
npm/markdown-escapes@1.0.4 None 0 5.19 kB wooorm
npm/merge-source-map@1.1.0 None +1 812 kB keik
npm/nise@4.0.2 eval Transitive: environment +9 1.96 MB mrgnrdrck
npm/nock@13.2.9 environment, filesystem, network +5 1.66 MB nockbot
npm/node-gyp@9.4.1 environment, shell Transitive: filesystem, network +87 4.87 MB lukekarrys
npm/playwright-core@1.39.0 environment, eval, filesystem, network, shell, unsafe 0 7.14 MB aslushnikov
npm/playwright@1.39.0 Transitive: environment, eval, filesystem, network, shell, unsafe +2 10.2 MB aslushnikov
npm/postcss-load-config@3.1.4 environment, unsafe Transitive: filesystem, shell +34 506 MB ai
npm/postcss-modules@4.3.1 filesystem Transitive: environment +18 785 kB outpunk
npm/pretty-format@25.5.0 Transitive: environment +7 474 kB simenb
npm/protobufjs@7.2.5 filesystem, network +13 7.07 MB google-wombot
npm/query-ast@1.0.5 Transitive: environment +4 1.49 MB salesforce-ux
npm/raf@3.4.0 None +1 18.4 kB chrisdickinson
npm/react-devtools-core@4.27.6 Transitive: environment, filesystem, network +5 15.7 MB hoxyq
npm/react-devtools@4.27.6 Transitive: environment, eval, filesystem, network, shell +155 23.3 MB hoxyq
npm/react-dom@18.2.0 environment +4 4.93 MB gnoff
npm/react-fast-compare@3.2.0 None 0 18.5 kB kale-stew
npm/react-focus-lock@2.9.4 environment +18 2.83 MB kashey
npm/react-idle-timer@4.2.5 Transitive: environment +5 214 kB supremetechnopriest
npm/react-popper@2.2.4 Transitive: environment +6 1.63 MB fezvrasta
npm/react-responsive-carousel@3.2.21 Transitive: environment +7 698 kB leandrowd
npm/react-simple-file-input@2.0.1 Transitive: environment +6 475 kB greena13
npm/react-tippy@1.2.2 None +1 2.15 MB ursa
npm/react@18.2.0 environment +2 337 kB gnoff
npm/remark-parse@8.0.3 None +25 342 kB wooorm
npm/remark-stringify@8.1.1 None +25 302 kB wooorm
npm/remark@12.0.1 None +37 613 kB wooorm
npm/scheduler@0.23.0 environment +2 114 kB gnoff
npm/scss-parser@1.0.6 Transitive: environment +4 1.86 MB salesforce-ux
npm/selenium-webdriver@4.15.0 environment, filesystem, network, shell +24 22.1 MB titusfortner
npm/simple-git@3.20.0 shell Transitive: environment, filesystem +4 948 kB steveukx
npm/sinon@9.0.0 eval Transitive: environment +10 6.68 MB mrgnrdrck
npm/split@0.3.3 None +1 24.1 kB dominictarr
npm/state-toggle@1.0.3 None 0 5.03 kB wooorm
npm/storybook-dark-mode@3.0.1 Transitive: environment, eval, filesystem +123 26.6 MB alisowski
npm/storybook@7.4.6 Transitive: environment, eval, filesystem, network, shell, unsafe +620 291 MB shilman
npm/stream-combiner@0.0.4 None +1 10 kB dominictarr
npm/stringify-entities@3.1.0 None +3 38.4 kB wooorm
npm/trim-trailing-lines@1.1.4 None 0 4.6 kB wooorm
npm/trim@0.0.1 None 0 2.71 kB tjholowaychuk
npm/unherit@1.1.3 None +2 16 kB wooorm
npm/web3-stream-provider@4.0.0 None +5 56.3 kB kumavis
npm/wif@4.0.0 None +1 766 kB junderw

🚮 Removed packages: npm/@actions/core@1.10.1, npm/@babel/core@7.23.9, npm/@babel/helper-create-class-features-plugin@7.23.10, npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3, npm/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.23.3, npm/@babel/plugin-syntax-flow@7.23.3, npm/@babel/plugin-syntax-import-assertions@7.23.3, npm/@babel/plugin-syntax-import-attributes@7.23.3, npm/@babel/plugin-syntax-typescript@7.23.3, npm/@babel/plugin-transform-arrow-functions@7.23.3, npm/@babel/plugin-transform-async-generator-functions@7.23.9, npm/@babel/plugin-transform-async-to-generator@7.23.3, npm/@babel/plugin-transform-block-scoped-functions@7.23.3, npm/@babel/plugin-transform-block-scoping@7.23.4, npm/@babel/plugin-transform-class-properties@7.23.3, npm/@babel/plugin-transform-class-static-block@7.23.4, npm/@babel/plugin-transform-classes@7.23.8, npm/@babel/plugin-transform-computed-properties@7.23.3, npm/@babel/plugin-transform-destructuring@7.23.3, npm/@babel/plugin-transform-dotall-regex@7.23.3, npm/@babel/plugin-transform-duplicate-keys@7.23.3, npm/@babel/plugin-transform-dynamic-import@7.23.4, npm/@babel/plugin-transform-exponentiation-operator@7.23.3, npm/@babel/plugin-transform-export-namespace-from@7.23.4, npm/@babel/plugin-transform-flow-strip-types@7.23.3, npm/@babel/plugin-transform-for-of@7.23.6, npm/@babel/plugin-transform-function-name@7.23.3, npm/@babel/plugin-transform-json-strings@7.23.4, npm/@babel/plugin-transform-literals@7.23.3, npm/@babel/plugin-transform-member-expression-literals@7.23.3, npm/@babel/plugin-transform-modules-amd@7.23.3, npm/@babel/plugin-transform-modules-commonjs@7.23.3, npm/@babel/plugin-transform-modules-systemjs@7.23.9, npm/@babel/plugin-transform-modules-umd@7.23.3, npm/@babel/plugin-transform-new-target@7.23.3, npm/@babel/plugin-transform-nullish-coalescing-operator@7.23.4, npm/@babel/plugin-transform-numeric-separator@7.23.4, npm/@babel/plugin-transform-object-rest-spread@7.23.4, npm/@babel/plugin-transform-object-super@7.23.3, npm/@babel/plugin-transform-optional-catch-binding@7.23.4, npm/@babel/plugin-transform-private-methods@7.23.3, npm/@babel/plugin-transform-private-property-in-object@7.23.4, npm/@babel/plugin-transform-property-literals@7.23.3, npm/@babel/plugin-transform-react-display-name@7.23.3, npm/@babel/plugin-transform-react-pure-annotations@7.23.3, npm/@babel/plugin-transform-regenerator@7.23.3, npm/@babel/plugin-transform-reserved-words@7.23.3, npm/@babel/plugin-transform-shorthand-properties@7.23.3, npm/@babel/plugin-transform-spread@7.23.3, npm/@babel/plugin-transform-sticky-regex@7.23.3, npm/@babel/plugin-transform-template-literals@7.23.3, npm/@babel/plugin-transform-typeof-symbol@7.23.3, npm/@babel/plugin-transform-typescript@7.23.6, npm/@babel/plugin-transform-unicode-escapes@7.23.3, npm/@babel/plugin-transform-unicode-property-regex@7.23.3, npm/@babel/plugin-transform-unicode-regex@7.23.3, npm/@babel/plugin-transform-unicode-sets-regex@7.23.3, npm/@babel/preset-env@7.23.9, npm/@babel/preset-flow@7.23.3, npm/@babel/preset-react@7.23.3, npm/@babel/preset-typescript@7.23.3, npm/@babel/register@7.23.7, npm/@babel/runtime-corejs3@7.23.9, npm/@electron/get@2.0.3, npm/@emotion/react@11.11.3, npm/@figspec/components@1.0.3, npm/@floating-ui/core@1.6.0, npm/@floating-ui/dom@1.6.3, npm/@floating-ui/react-dom@2.0.8, npm/@floating-ui/utils@0.2.1, npm/@fortawesome/fontawesome-free@5.15.4, npm/@graphql-tools/utils@8.13.1, npm/@istanbuljs/load-nyc-config@1.1.0, npm/@lavamoat/allow-scripts@3.0.2, npm/@material-ui/core@4.12.4, npm/@metamask-institutional/custody-controller@0.2.21, npm/@metamask-institutional/extension@0.3.15, npm/@metamask-institutional/institutional-features@1.2.13, npm/@metamask/address-book-controller@3.1.7, npm/@metamask/announcement-controller@5.0.2, npm/@metamask/build-utils@1.0.2, npm/@metamask/design-tokens@2.1.0, npm/@metamask/eth-keyring-controller@15.1.0, npm/@metamask/eth-token-tracker@7.0.2, npm/@metamask/ethjs-filter@0.3.0, npm/@metamask/ethjs-format@0.3.0, npm/@metamask/ethjs-rpc@0.4.0, npm/@metamask/ethjs-util@0.3.0, npm/@metamask/gas-fee-controller@13.0.1, npm/@metamask/notification-controller@3.1.3, npm/@metamask/rate-limit-controller@3.0.3, npm/@metamask/transaction-controller@21.2.0, npm/@ndelangen/get-tarball@3.0.9, npm/@npmcli/promise-spawn@7.0.1, npm/@npmcli/run-script@7.0.4, npm/@playwright/test@1.41.2, npm/@pmmmwh/react-refresh-webpack-plugin@0.5.11, npm/@popperjs/core@2.11.8, npm/@reduxjs/toolkit@1.9.7, npm/@sentry-internal/tracing@7.101.1, npm/@sentry/browser@7.101.1, npm/@sentry/cli@2.28.6, npm/@sentry/core@7.101.1, npm/@sentry/integrations@7.101.1, npm/@sentry/replay@7.101.1, npm/@sentry/types@7.101.1, npm/@sentry/utils@7.101.1, npm/@sinonjs/text-encoding@0.7.2, npm/@storybook/addon-a11y@7.6.16, npm/@storybook/addon-actions@7.6.16, npm/@storybook/addon-backgrounds@7.6.16, npm/@storybook/addon-controls@7.6.16, npm/@storybook/addon-designs@7.0.9, npm/@storybook/addon-essentials@7.6.16, npm/@storybook/addon-highlight@7.6.16, npm/@storybook/addon-mdx-gfm@7.6.16, npm/@storybook/addon-measure@7.6.16, npm/@storybook/addon-outline@7.6.16, npm/@storybook/addon-toolbars@7.6.16, npm/@storybook/addon-viewport@7.6.16, npm/@storybook/builder-manager@7.6.16, npm/@storybook/builder-webpack5@7.6.16, npm/@storybook/cli@7.6.16, npm/@storybook/client-api@7.6.16, npm/@storybook/codemod@7.6.16, npm/@storybook/core-client@7.6.16, npm/@storybook/core-server@7.6.16, npm/@storybook/core-webpack@7.6.16, npm/@storybook/manager@7.6.16, npm/@storybook/preset-react-webpack@7.6.16, npm/@storybook/preview@7.6.16, npm/@storybook/react-webpack5@7.6.16, npm/@storybook/react@7.6.16, npm/@storybook/telemetry@7.6.16, npm/@stylelint/postcss-css-in-js@0.37.3, npm/@testing-library/dom@7.31.2, npm/@testing-library/jest-dom@5.17.0, npm/@testing-library/react@10.4.9, npm/@testing-library/user-event@14.5.2, npm/@trezor/analytics@1.0.3, npm/@trezor/blockchain-link-types@1.0.2, npm/@trezor/blockchain-link-utils@1.0.3, npm/@trezor/blockchain-link@2.1.13, npm/@trezor/connect-analytics@1.0.2, npm/@trezor/connect-common@0.0.16, npm/@trezor/connect-web@9.0.11, npm/@trezor/connect@9.0.11, npm/@trezor/env-utils@1.0.2, npm/@trezor/transport@1.1.12, npm/@trezor/utils@9.0.9, npm/@trezor/utxo-lib@1.0.7, npm/@tsconfig/node16@1.0.4, npm/@types/babel-core@6.25.10, npm/@types/babelify@7.3.10, npm/@types/browserify@12.0.40, npm/@types/cors@2.8.17, npm/@types/currency-formatter@1.5.4, npm/@types/end-of-stream@1.4.4, npm/@types/glob-stream@8.0.2, npm/@types/gulp-sass@5.0.4, npm/@types/gulp@4.0.17, npm/@types/hast@2.3.10, npm/@types/hoist-non-react-statics@3.3.5, npm/@types/jsdom@20.0.1, npm/@types/madge@5.0.3, npm/@types/minimist@1.2.5, npm/@types/mocha@10.0.6, npm/@types/pify@5.0.4, npm/@types/prettier@2.7.3, npm/@types/pump@1.1.3, npm/@types/react-beautiful-dnd@13.1.8, npm/@types/react-dom@17.0.25, npm/@types/react-redux@7.1.33, npm/@types/react@16.14.56, npm/@types/readable-stream@4.0.10, npm/@types/remote-redux-devtools@0.5.8, npm/@types/sass@1.45.0, npm/@types/selenium-webdriver@4.1.21, npm/@types/sinon@10.0.20, npm/@types/w3c-web-hid@1.0.6, npm/@types/watchify@3.11.4, npm/@types/web@0.0.99, npm/@types/webextension-polyfill@0.10.7, npm/@typescript-eslint/eslint-plugin@6.21.0, npm/@typescript-eslint/parser@6.21.0, npm/@vue/compiler-core@3.4.19, npm/@vue/compiler-dom@3.4.19, npm/@vue/compiler-sfc@3.4.19, npm/@vue/compiler-ssr@3.4.19, npm/@vue/shared@3.4.19, npm/@webassemblyjs/ast@1.9.0, npm/@webassemblyjs/helper-api-error@1.9.0, npm/@webassemblyjs/helper-buffer@1.9.0, npm/@webassemblyjs/helper-wasm-bytecode@1.9.0, npm/@webassemblyjs/helper-wasm-section@1.9.0, npm/@webassemblyjs/ieee754@1.9.0, npm/@webassemblyjs/leb128@1.9.0, npm/@webassemblyjs/utf8@1.9.0, npm/@webassemblyjs/wasm-edit@1.9.0, npm/@webassemblyjs/wasm-gen@1.9.0, npm/@webassemblyjs/wasm-opt@1.9.0, npm/@webassemblyjs/wasm-parser@1.9.0, npm/@webassemblyjs/wast-printer@1.9.0, npm/@yarnpkg/parsers@3.0.0, npm/abbrev@2.0.0, npm/aria-query@5.3.0, npm/async-each@1.0.6, npm/autoprefixer@10.4.17, npm/axios@1.6.7, npm/babel-plugin-polyfill-corejs3@0.9.0, npm/bignumber.js@4.1.0, npm/bitwise@2.2.1, npm/brotli-wasm@1.3.1, npm/browserify-sign@4.2.2, npm/capture-stack-trace@1.0.2, npm/character-entities-html4@1.1.3, npm/classnames@2.5.1, npm/cloneable-readable@1.1.3, npm/collapse-white-space@1.0.5, npm/configstore@3.1.5, npm/cookies@0.9.1, npm/css-loader@2.1.1, npm/currency-formatter@1.5.9, npm/data-uri-to-buffer@6.0.2, npm/decamelize-keys@1.1.1, npm/depcheck@1.4.7, npm/deps-regex@0.2.0, npm/destroyable-server@1.0.1, npm/dezalgo@1.0.4, npm/duplexer3@0.1.5, npm/electron@23.3.13, npm/enhanced-resolve@4.5.0, npm/eslint-import-resolver-typescript@2.7.1, npm/eslint-plugin-jest@26.9.0, npm/eslint-plugin-jsdoc@41.1.2, npm/eslint-plugin-mocha@10.3.0, npm/eslint-plugin-prettier@4.2.1, npm/eslint-plugin-react@7.33.2, npm/eth-json-rpc-filters@6.0.1, npm/event-stream@3.3.5, npm/fake-indexeddb@4.0.2, npm/findup-sync@5.0.0, npm/fined@1.2.0, npm/flagged-respawn@1.0.1, npm/flush-write-stream@1.1.1, npm/focus-lock@1.3.2, npm/generic-names@2.0.1, npm/get-uri@6.0.3, npm/glob-watcher@5.0.5, npm/glogg@1.0.2, npm/gulp-postcss@9.1.0, npm/history@5.3.0, npm/hosted-git-info@7.0.1, npm/http-assert@1.5.0, npm/ini@3.0.1, npm/is-retry-allowed@2.2.0, npm/is-whitespace-character@1.0.3, npm/is-word-character@1.0.3, npm/is-wsl@1.1.0, npm/jest-canvas-mock@2.5.2, npm/jest-environment-jsdom@29.7.0, npm/jest-junit@14.0.1, npm/jscodeshift@0.15.1, npm/jsdom@16.7.0, npm/just-extend@4.2.1, npm/koa-convert@2.0.0, npm/koa@2.15.0, npm/lavamoat-viz@7.0.3, npm/lavamoat@8.0.3, npm/lilconfig@3.1.1, npm/loader-runner@2.4.0, npm/locale-currency@0.0.2, npm/lockfile-lint-api@5.9.1, npm/lockfile-lint@4.13.1, npm/magic-string@0.30.7, npm/map-stream@0.0.7, npm/markdown-escapes@1.0.3, npm/nise@4.1.0, npm/nock@13.5.3, npm/node-gyp@10.0.1, npm/normalize-package-data@6.0.0, npm/playwright-core@1.41.2, npm/playwright@1.41.2, npm/postcss-load-config@5.0.3, npm/postcss-modules@4.1.3, npm/pretty-format@26.6.2, npm/pumpify@2.0.1, npm/query-ast@1.0.4, npm/querystring@0.2.1, npm/raf@3.4.1, npm/react-devtools-core@4.28.5, npm/react-devtools@4.28.5, npm/react-docgen@7.0.3, npm/react-fast-compare@3.2.2, npm/react-focus-lock@2.11.1, npm/react-idle-timer@4.6.4, npm/react-popper@2.3.0, npm/react-responsive-carousel@3.2.23, npm/react-simple-file-input@2.1.0, npm/react-tippy@1.4.0, npm/react-transition-group@1.2.1, npm/reselect@3.0.1, npm/scss-parser@1.0.5, npm/selenium-webdriver@4.18.0, npm/simple-git@3.22.0, npm/sinon@9.2.4, npm/split@1.0.1, npm/state-toggle@1.0.2, npm/storybook-dark-mode@3.0.3, npm/storybook@7.6.16, npm/stream-combiner@0.2.2, npm/stringify-entities@3.0.1, npm/strip-indent@4.0.0, npm/style-loader@0.21.0, npm/tapable@1.1.3, npm/trim-trailing-lines@1.1.2, npm/trim@0.0.3, npm/unherit@1.1.2, npm/wait-on@7.2.0, npm/watchpack@1.7.5, npm/web3-stream-provider@4.0.1, npm/which@4.0.0, npm/wif@2.0.6

View full report↗︎

Comment on lines +45 to +61
// const checkTokenDetection = useCallback(async () => {
// try {
// const fetchedTokenData = await fetchWithCache({
// url: `${TOKEN_API_METASWAP_CODEFI_URL}${providerConfig.chainId}`,
// functionName: 'getIsTokenDetectionSupported',
// });
// const isTokenDetectionSupported = !fetchedTokenData?.error;
// setTokenDetectionSupported(isTokenDetectionSupported);
// setIsLoading(false);
// } catch {
// // If there's any error coming from getIsTokenDetectionSupported
// // we would like to catch this error and simply return false for the state
// // and this will be handled in UI naturally
// setTokenDetectionSupported(false);
// setIsLoading(false);
// }
// }, [providerConfig.chainId]);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for testing purposes due to this bug / #22964

adonesky1 added a commit to MetaMask/core that referenced this pull request Feb 22, 2024
… to state regardless of whether they have permissions (#3908)

## @metamask/selected-network-controller

### Changed
- **BREAKING:** Remove logic in `selectedNetworkMiddleware` to set a
default `networkClientId` for the requesting origin when not already
set. Now if no `networkClientId` is already set for the requesting
origin, the middleware will not add the origin to `domains` state but
will add the `networkClientId` currently set for the
`selectedNetworkClient` from the `NetworkController` to the request
object.
- **BREAKING:** `setNetworkClientIdForDomain` now throws an error if
passed `metamask` as its first (`domain`) argument
- **BREAKING:** `setNetworkClientIdForDomain` now includes a check that
the requesting `domain` has already been granted permissions in the
`PermissionsController` before adding it to `domains` state and throws
an error if the domain does not have permissions.
- **BREAKING:** the `domains` state now no longer contains a `metamask`
key.
- **BREAKING:** `getProviderAndBlockTracker` now throws an error if
called with any domain while the `perDomainNetwork` flag is false.

(These changes help fix an issue where the `SelectedNetworkController`
adds any and all domains the user visits to its domains state whether or
not the user has connected to these sites.)

Currently can be e2e tested on this WIP integration branch:
MetaMask/metamask-extension#22860

---------

Co-authored-by: Jiexi Luan <jiexiluan@gmail.com>
… all visted domains are added to SelectedNetworkController state, use migration to clean up state
@adonesky1 adonesky1 force-pushed the ad/fix-selected-network-controller-domain-setting branch from 33bd8ea to 8d02240 Compare February 22, 2024 18:34
@adonesky1 adonesky1 closed this Feb 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2024
@HowardBraham HowardBraham deleted the ad/fix-selected-network-controller-domain-setting branch January 19, 2026 21:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants