-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: Network & Gas & Assets & Utils controllers update #9394
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
feat: Network & Gas & Assets & Utils controllers update #9394
Conversation
…ntroller to v13 address breaking changes
|
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. |
…ntroller patch for 17.2 and dependency of network controller to 17.2
… initialised correctly, patched change to token detection controller to get the state of tokens controller by property instead of the messenger system since tokens controller is not extending base controller v2, patch added to token balances controller to be able to reset the state
…ngine class and added the changes via patch, TokenBalancesController also needed a reset function for the resetState function of Engine class, also added updateNftMetadata via patch to NftController
… off and then turning it on it was not updating the nft image
|
Cal-L
left a comment
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.
LGTM
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@metamask/assets-controllers@18.0.0, npm/@metamask/gas-fee-controller@10.0.1, npm/@metamask/network-controller@15.2.0, npm/@metamask/polling-controller@1.0.2 |
|
|
Looks good for SDK 👍 |
Cal-L
left a comment
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.
LGTM
|
|



Description
Network Controller updated to v^17.2.0
Gas Fee Controller updated to v^13.0.0
Controller utils v^8
Assets Controllers v^26
Updated the patch of Network Controller, now it adds an export a type
Gas Fee Controller now uses
NetworkController:networkDidChangeevent instead ofNetworkController:stateChangeevent.Removed resolution for transaction controller and replaced it with a small change via patch
Assets Controllers already with Reservoir changes of this PR
Assets Controllers patch cleaner and smaller
Token Detection Controller and Token Balances Controller updated on Engine and Engine Service since now they extend BaseController v2
Added to the patch of assets controllers work around for TokenBalancesController and TokenRatesController listening the TokensController events wrongly since TokensController is not extending BaseControllerV2
Added migration to reset contractBalances property of TokenBalancesController
Changed on Amount and Confirm screen where contractBalances were used as BN to be converted to BN since now contractBalances property is now saving balances on hexadecimal string
Created a new core branch to follow up the assets-controllers version: patch/mobile-assets-controllers-26
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Adding a custom network:
Screen.Recording.2024-05-08.at.16.24.54.mov
Playing around with tokens & multiple networks (auto detect, add from dapp, custom add and add from token list):
Screen.Recording.2024-05-08.at.16.14.27.mov
Screen.Recording.2024-05-08.at.16.17.05.mov
Dapp sepolia transaction:
Screen.Recording.2024-05-08.at.16.19.51.mov
Linea sepolia transcation:
Screen.Recording.2024-05-08.at.09.41.44.mov
NFT & privacy playground:
Screen.Recording.2024-05-08.at.15.57.02.mov
check this slack thread: https://consensys.slack.com/archives/C04GLB755TK/p1715772583995679?thread_ts=1715341470.231619&cid=C04GLB755TK
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist