Skip to content

chore: upgrade assets-controllers v62 #32546

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented May 6, 2025

Description

Upgrade assets-controller to v61 and integrate new perf updates here MetaMask/core#5761

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

Copy link
Contributor

github-actions bot commented May 6, 2025

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.

@metamaskbot
Copy link
Collaborator

❌ API Spec Test Failed. View the report here.

@sahar-fehri sahar-fehri changed the title chore: upgrade assets-controllers v61 chore: upgrade assets-controllers v62 May 6, 2025
@@ -112,7 +112,7 @@ export class MultichainWalletSnapClient implements WalletSnapClient {
// will be added to the Snap bridge keyring (see `MultichainBalancesController:#handleOnAccountAdded`).
// However, the balance won't be fetched right away. To workaround this, we trigger the
// fetch explicitly here (since we are already in a `async` call) and wait for it to be updated!
await multichainUpdateBalance(account.id);
// await multichainUpdateBalance(account.id);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ccharly do you this this call is still valid?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's time we get rid of those now (even the transaction force-fetch down below).

Most of the controllers now either reacts to :accountAdded or to :account{AssetList,Transactions,Balances}Updated, so they would get those info "asynchronously".

Also, our preinstalled Snaps follow a different architecture now and they normally just fetch the balances/assets/transactions using a cron, so they might not have those info right away (unless they are force-fetching and blocking until they get the results in getAccountBalances and getTransactions...).

IMO, as long as we show a spinner on the balances until we get the Snap event :accountBalancesUpdated, we should be ok to remove those calls.

@metamaskbot
Copy link
Collaborator

Builds ready [f27905d]
UI Startup Metrics (1213 ± 72 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1213107415347212531324
load105995113486510911147
domContentLoaded105494713416410851139
domInteractive17135961627
firstPaint65695135243110751127
backgroundConnect6420279
firstReactRender19155152027
getState1466891828
initialActions001001
loadScripts813708108562846890
setupStore84303814
WebpackHomeuiStartup22221825268717523372507
load17241401223616518251928
domContentLoaded17181397223116518201923
domInteractive1711106131447
firstPaint1706334364198321
backgroundConnect329378383461
firstReactRender17453374108288359
getState214325372050
initialActions3112145
loadScripts17121396222916618131922
setupStore247283392344
FirefoxBrowserifyHomeuiStartup13301141178713114021630
load11851019156711812491449
domContentLoaded11851018156711812491449
domInteractive983919729112156
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213191202047
firstReactRender23194962346
getState84345822
initialActions001001
loadScripts11661005154311412311414
setupStore8318818613
WebpackHomeuiStartup15461365189012916171846
load13271164169411714041582
domContentLoaded13271164169411714031581
domInteractive79591231687119
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23156692442
firstReactRender36285553846
getState1054671031
initialActions002111
loadScripts13071144167811613891558
setupStore11529329819
Benchmark value 2223 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1724 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1718 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 1713 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2508 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Sum of mean exceeds: 72ms | Sum of p95 exceeds: 54ms
Sum of all benchmark exceeds: 126ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: -6.27 KiB (-0.12%)
  • ui: 71.39 KiB (1.02%)
  • common: -2.83 KiB (-0.03%)

@metamaskbot
Copy link
Collaborator

Builds ready [e946876]
UI Startup Metrics (1233 ± 69 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1233110913956912781348
load107696012036511231189
domContentLoaded107094411976511181184
domInteractive17136881729
firstPaint68879120043510861179
backgroundConnect74253711
firstReactRender21154462136
getState1464381929
initialActions001000
loadScripts82670695162871936
setupStore85253810
WebpackHomeuiStartup21961725258618123142449
load17061356199914418161925
domContentLoaded17001352198314318071920
domInteractive171164121353
firstPaint1646639664185314
backgroundConnect349369424066
firstReactRender18755372114301359
getState164267271635
initialActions316145
loadScripts16951351198114418041909
setupStore196183192339
FirefoxBrowserifyHomeuiStartup13391175183111213891599
load11971052171311212621461
domContentLoaded11971052171311212621461
domInteractive1053725833119167
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2214151172138
firstReactRender23195772331
getState7430389
initialActions001001
loadScripts11781031169811012481379
setupStore64344610
WebpackHomeuiStartup15491381213115216401839
load13271189183413113961564
domContentLoaded13261189183313113951564
domInteractive78411271588108
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect241572112461
firstReactRender36285653848
getState11427927915
initialActions102111
loadScripts13051170182013113701547
setupStore11529929826
Benchmark value 1076 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1070 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 1184 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 2197 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 61 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Sum of mean exceeds: 20ms | Sum of p95 exceeds: 16ms
Sum of all benchmark exceeds: 36ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: -6.31 KiB (-0.12%)
  • ui: 71.39 KiB (1.02%)
  • common: -2.77 KiB (-0.03%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants