Skip to content

build: upgrade asset controllers to @73.0.1 #17758

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

Merged
merged 4 commits into from
Jul 31, 2025

Conversation

Prithpal-Sooriya
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya commented Jul 30, 2025

Description

This includes token balance fixes and performance improvements

Changelog

CHANGELOG entry: upgrade @metamask/[email protected]

Related issues

Fixes: #17412

Manual testing steps

N/A

Screenshots/Recordings

Before

After

https://www.loom.com/share/b21f66084b274adfb5526dc8afc7533e?sid=990c9257-9d9d-4c49-a9dc-7f9e96d9863f

Performance

Key improvement here is the reduction of RPC spam by using a multicall on the AccountTrackerController

Before

We were making many RPC calls for this, so much so that I got rate limited.

Number of RPC calls = # of accounts * # of chains
E.g. 100 Accounts * 6 chains = 600 RPC calls

https://www.loom.com/share/b201ebda42a74a879fa78402f3420ce8?sid=1640e528-6c68-4230-bef8-4f3722d67a01

After

Now we have a multicall group RPC call to drastically reduce the number of RPC calls made

Number of RPC calls = # of chains
E.g. 6 chains = 6 RPC calls

We have some further improvements to reduce duplicate RPC calls made by AccountTrackerController and TokenBalancesController in future PRs.

https://www.loom.com/share/801dfd74874f41c89a788f151c3430a7?sid=fdc62ff6-b122-4ec1-b9bc-fb7349de76e0

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

this includes some token balance fixes and performance improvements
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.

@Prithpal-Sooriya Prithpal-Sooriya added the Run Smoke E2E Requires smoke E2E testing label Jul 30, 2025
@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review July 30, 2025 19:19
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner July 30, 2025 19:19
@Prithpal-Sooriya Prithpal-Sooriya added Run Smoke E2E Requires smoke E2E testing team-assets area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. and removed Run Smoke E2E Requires smoke E2E testing labels Jul 30, 2025
Copy link
Contributor

github-actions bot commented Jul 30, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 5438891
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/19cd25ab-691e-45a0-bcaa-abab40e5d19a

Note

  • You can rerun any failed steps by opening the Bitrise build, tapping Rebuild on the upper right then Rebuild unsuccessful Workflows
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

socket-security bot commented Jul 30, 2025

@Prithpal-Sooriya Prithpal-Sooriya added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jul 30, 2025
Copy link
Contributor

github-actions bot commented Jul 30, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 7573ce6
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a69876e5-245b-426a-be9c-370749562556

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

@Prithpal-Sooriya Prithpal-Sooriya added the No QA Needed Apply this label when your PR does not need any QA effort. label Jul 30, 2025
@sethkfman
Copy link
Contributor

@Prithpal-Sooriya Can you add a perf tooling recording of the asset view with these changes before and after? It would be good to know the impact of this change.

@Prithpal-Sooriya
Copy link
Contributor Author

@sethkfman I've attached a before and after vid. This improvement is solely focused on the network tab by drastically reducing the number of RPC calls we are making and processing.

We have further improvements coming down in future controller releases.

Now that devs have an easy view into the network tab, we can start being more critical to network requests.

@Prithpal-Sooriya Prithpal-Sooriya added this pull request to the merge queue Jul 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 31, 2025
@Prithpal-Sooriya Prithpal-Sooriya added this pull request to the merge queue Jul 31, 2025
Merged via the queue into main with commit 2fb0a7e Jul 31, 2025
116 of 122 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the build/upgrade-asset-controllers branch July 31, 2025 11:26
@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 2025
@metamaskbot metamaskbot added the release-7.53.0 Issue or pull request that will be included in release 7.53.0 label Jul 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-performance Issues relating to slowness of app, cpu usage, and/or blank screens. No QA Needed Apply this label when your PR does not need any QA effort. release-7.53.0 Issue or pull request that will be included in release 7.53.0 Run Smoke E2E Requires smoke E2E testing team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Bridge Solana to Optimism does not show the right balance after bridge is confirmed
4 participants