Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update assets controllers to version 16 #21380

Merged
merged 8 commits into from
Oct 20, 2023
Merged

Update assets controllers to version 16 #21380

merged 8 commits into from
Oct 20, 2023

Conversation

pedronfigueiredo
Copy link
Contributor

Description

Updates assets controllers on the extension to the latest version.

@github-actions
Copy link
Contributor

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.

@socket-security
Copy link

socket-security bot commented Oct 13, 2023

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

Packages Version New capabilities Transitives Size Publisher
@metamask/network-controller 14.0.0 None +0 219 kB metamaskbot
@babel/preset-env 7.23.2 environment +0 141 kB nicolo-ribaudo
@metamask/assets-controllers 13.0.0...16.0.0 None +6/-1 1.22 MB metamaskbot

@socket-security
Copy link

socket-security bot commented Oct 13, 2023

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring: [email protected]

Next steps

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 package-name@version specifiers. e.g. @SocketSecurity ignore [email protected] bar@* or ignore all packages with @SocketSecurity ignore-all

@legobeat
Copy link
Contributor

@SocketSecurity ignore [email protected]

@legobeat legobeat added the dependencies Pull requests that update a dependency file label Oct 13, 2023
@legobeat
Copy link
Contributor

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@pedronfigueiredo pedronfigueiredo requested review from a team as code owners October 13, 2023 22:14
@jiexi
Copy link
Contributor

jiexi commented Oct 13, 2023

@metamaskbot
Copy link
Collaborator

Policies updated

@adonesky1
Copy link
Contributor

Yeah I can add a commit to make some of the adaptations on Monday. About to sign off for the week.

@pedronfigueiredo pedronfigueiredo force-pushed the feat-1380 branch 2 times, most recently from 421bf29 to 874573b Compare October 16, 2023 09:38
@legobeat legobeat marked this pull request as draft October 16, 2023 10:33
DDDDDanica
DDDDDanica previously approved these changes Oct 16, 2023
@adonesky1
Copy link
Contributor

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

package.json Outdated Show resolved Hide resolved
@pedronfigueiredo pedronfigueiredo marked this pull request as ready for review October 18, 2023 13:24
Copy link
Contributor

@legobeat legobeat left a comment

Choose a reason for hiding this comment

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

Looks like some changes are necessary after upgrade:

app/scripts/controllers/transactions/IncomingTransactionHelper.test.ts:142:48 - error TS2339: Property 'networkId' does not exist on type 'NetworkState'.

142           currentNetworkId: NETWORK_STATE_MOCK.networkId,
                                                   ~~~~~~~~~

app/scripts/controllers/transactions/IncomingTransactionHelper.ts:280:36 - error TS2339: Property 'networkId' does not exist on type 'NetworkState'.

280     return this.#getNetworkState().networkId as string;
                                       ~~~~~~~~~

https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/60144/workflows/dfd963f1-31ff-45be-8fdb-39e12a92b3f5/jobs/1867947

Also needs rebase on develop.

@pedronfigueiredo
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@pedronfigueiredo pedronfigueiredo force-pushed the feat-1380 branch 3 times, most recently from c24d87b to 5222937 Compare October 19, 2023 16:52
@pedronfigueiredo
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@legobeat legobeat self-requested a review October 20, 2023 10:55
legobeat

This comment was marked as off-topic.

Copy link
Contributor

@legobeat legobeat left a comment

Choose a reason for hiding this comment

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

Lint passing 👍

@legobeat legobeat self-requested a review October 20, 2023 10:57
@metamaskbot
Copy link
Collaborator

Builds ready [bb28cb8]
Page Load Metrics (619 ± 318 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint801078553
domContentLoaded6310475115
load741517619663318
domInteractive6310475115
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.07 KiB (0.08%)
  • ui: 0 Bytes (0.00%)
  • common: 7.28 KiB (0.15%)

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (359409c) 68.57% compared to head (bb28cb8) 68.61%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #21380      +/-   ##
===========================================
+ Coverage    68.57%   68.61%   +0.03%     
===========================================
  Files         1030     1030              
  Lines        41030    41023       -7     
  Branches     10945    10946       +1     
===========================================
+ Hits         28136    28145       +9     
+ Misses       12894    12878      -16     
Files Coverage Δ
app/scripts/metamask-controller.js 55.43% <100.00%> (+0.62%) ⬆️

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

@pedronfigueiredo pedronfigueiredo merged commit 5d34d68 into develop Oct 20, 2023
@pedronfigueiredo pedronfigueiredo deleted the feat-1380 branch October 20, 2023 11:30
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2023
@metamaskbot metamaskbot added the release-11.5.0 Issue or pull request that will be included in release 11.5.0 label Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file release-11.5.0 Issue or pull request that will be included in release 11.5.0 team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants