-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
refactor: Update core controllers (v45) #6902
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
499481a
to
190c453
Compare
892a5ba
to
cc83957
Compare
ce809af
to
284882e
Compare
cc83957
to
7cfba9a
Compare
9b17491
to
d58bab4
Compare
7b3905e
to
579487f
Compare
This has been rebased onto #6898 . Passing e2e test run: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/9577199b-c426-47ea-8371-7fbed7eb4a30 |
c5a3479
to
bd84729
Compare
579487f
to
a1b4372
Compare
bd84729
to
61d86c2
Compare
a1b4372
to
6101dc3
Compare
Codecov Report
@@ Coverage Diff @@
## update-assets-controllers-patch #6902 +/- ##
===================================================================
+ Coverage 32.68% 32.69% +0.01%
===================================================================
Files 994 996 +2
Lines 26649 26652 +3
Branches 2088 2084 -4
===================================================================
+ Hits 8710 8714 +4
+ Misses 17525 17524 -1
Partials 414 414
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, very happy to see that we are pushing forward the version with phishing controller improvements, for that controller use less memory/bandwidth
Notice here that we would need to change the addAsset of asset controller where it's used, because the structures of the arguments changed on this assets controller version from
addToken(address, symbol, decimals, image, interactingAddress)
to
addToken(address, symbol, decimals, { name, image, interactingAddress })
with this said we should change on the following places:
useAddressBalance.ts --> line 45
TokensController.addToken( contractAddress, symbol, decimals, { image, name,} );
UI/AddCustomToken.js --> line 120
TokensController.addToken(address, symbol, decimals, {name})
useHandleSuccessfullOrder.ts --> line 48
TokensController.addToken(address, symbol, decimals, {name})
SearchTokenAutocomplete --> line 110
TokensController.addToken(address, symbol, decimals, {image: iconUrl, name})
UI/Swaps --> line 531
TokensController.addToken(address, symbol, decimals,{ name})
QuotesView --> line 351
TokensController.addToken(address, symbol, decimals,{ name})
SendFlow/Confirm --> lien 527
TokensController.addToken(address, symbol, decimals, {image, name})
Thanks @tommasini . I think those requested changes have already been made (in #6898, which this PR is based on). Let me know if there are any that were missed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, totally missed that dependency! Looks good to me!
61d86c2
to
32e5b32
Compare
Update core controllers to match the v45 monorepo release. The network controller has been updated to v7, and the assets controllers have been updated to v5.1.0. The phishing controller and message manager updates have been held back to reduce the scope of the PR. They will be updated in a later PR. Release notes: https://github.com/MetaMask/core/releases/tag/v45.0.0 This relates to MetaMask/mobile-planning#877
6101dc3
to
67fb70d
Compare
All blockers have been resolved, so this has been rebased onto |
Kudos, SonarCloud Quality Gate passed! 0 Bugs 100.0% Coverage The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮 🌮 🌮 🌮
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
Update core controllers to match the v45 monorepo release. The network controller has been updated to v7, and the assets controllers have been updated to v5.1.0.
The phishing controller and message manager updates have been held back to reduce the scope of the PR. They will be updated in a later PR.
Release notes: https://github.com/MetaMask/core/releases/tag/v45.0.0
Issue
This relates to https://github.com/MetaMask/mobile-planning/issues/877
Checklist