Skip to content

chore: upgrade to v60#32321

Merged
sahar-fehri merged 14 commits into
mainfrom
chore/upgrade-assets-to-v60
May 1, 2025
Merged

chore: upgrade to v60#32321
sahar-fehri merged 14 commits into
mainfrom
chore/upgrade-assets-to-v60

Conversation

@salimtb

@salimtb salimtb commented Apr 27, 2025

Copy link
Copy Markdown
Contributor

Description

This update upgrades the asset controllers to version 60, which introduces important changes to the TokensController:

  • Refactored TokensController to eliminate reliance on a single selected network (#5659).
  • TokensController methods now require networkClientId to be explicitly passed as a parameter.
  • Token management logic is now fully parameterized by chainId, enabling multi-chain token handling and improving reliability across network changes.
  • Internal state updates and token metadata fetching are now scoped to the appropriate chainId.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to MM
  2. Test add tokens , hide tokens, and other flows

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.

@github-actions

Copy link
Copy Markdown
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

socket-security Bot commented Apr 27, 2025

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​assets-controllers@​59.0.0 ⏵ 60.0.093 +110090100 +2100

View full report

Base automatically changed from fix/integrate-token-rates-controller to main April 28, 2025 11:35
@salimtb salimtb marked this pull request as ready for review April 28, 2025 18:09
@salimtb salimtb requested a review from a team as a code owner April 30, 2025 09:46
@metamaskbot

metamaskbot commented Apr 30, 2025

Copy link
Copy Markdown
Collaborator

✨ Files requiring CODEOWNER review ✨

🔄 @MetaMask/swaps-engineers

  • ui/pages/swaps/index.js
  • ui/pages/swaps/prepare-swap-page/prepare-swap-page.js

🖥️ @MetaMask/wallet-ux

  • ui/components/multichain/import-nfts-modal/import-nfts-modal.js
  • ui/components/multichain/import-nfts-modal/import-nfts-modal.test.js

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [530da94]
UI Startup Metrics (1200 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1200108413975912411314
load104095611985010731129
domContentLoaded103390011935110681122
domInteractive17136071627
firstPaint67872119741410401133
backgroundConnect8410010819
firstReactRender20167362031
getState1353681829
initialActions001001
loadScripts79666595349828887
setupStore84606813
WebpackHomeuiStartup21411763257518722792409
load16551365210214817731857
domContentLoaded16481361209614717641853
domInteractive16126491340
firstPaint1626860375206280
backgroundConnect3010381373458
firstReactRender20556397118320362
getState1145581232
initialActions317145
loadScripts16431360207314617601851
setupStore216297292240
FirefoxBrowserifyHomeuiStartup1355118016919614081552
load1207105314619612721389
domContentLoaded1207105314619612721389
domInteractive1043725037116179
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2113147172034
firstReactRender23195452328
getState74334811
initialActions001001
loadScripts1188104314479812571368
setupStore8418018611
WebpackHomeuiStartup14921327178710515701700
load1281115215529113281487
domContentLoaded1280115215529113271487
domInteractive83491632596145
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2414276262340
firstReactRender34285353642
getState104337930
initialActions102111
loadScripts1259113615358813051454
setupStore95427828
Benchmark value 19 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 1ms
Sum of all benchmark exceeds: 1ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 43.97 KiB (0.83%)
  • ui: 1.17 KiB (0.02%)
  • common: 90.71 KiB (0.98%)

@salimtb salimtb requested a review from a team as a code owner April 30, 2025 10:51
@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [6348b0b]
UI Startup Metrics (1207 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1207106814105912411328
load105094612405510751153
domContentLoaded104494212335410701147
domInteractive18146071729
firstPaint68586116041810581128
backgroundConnect74263713
firstReactRender21144962235
getState1454381830
initialActions006101
loadScripts80570899953835907
setupStore84162813
WebpackHomeuiStartup20851676249718522192300
load16051313192014017041810
domContentLoaded15981310190113916981806
domInteractive151158101344
firstPaint1666632761209269
backgroundConnect279226242865
firstReactRender20354409116318366
getState144250251525
initialActions316135
loadScripts15941309187813716961804
setupStore236311402138
FirefoxBrowserifyHomeuiStartup13691179166710014291588
load12221021149810312901437
domContentLoaded12221021149710312901437
domInteractive1063723834120160
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2113111132149
firstReactRender23194042329
getState74273811
initialActions001001
loadScripts12031007148110412731414
setupStore64344613
WebpackHomeuiStartup19411634273920220502342
load16571411240918117632004
domContentLoaded16561410240918217622003
domInteractive1064720630121177
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect291679113253
firstReactRender45307395164
getState174309311443
initialActions104111
loadScripts16321394239517917261974
setupStore1063651120
cc: @HowardBraham
Benchmark value 1942 exceeds gate value 1615 for firefox webpack home mean uiStartup
Benchmark value 1657 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1657 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 107 exceeds gate value 100 for firefox webpack home mean domInteractive
Benchmark value 29 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 45 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 18 exceeds gate value 15 for firefox webpack home mean getState
Benchmark value 1632 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2342 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 2004 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 2003 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 177 exceeds gate value 156 for firefox webpack home p95 domInteractive
Benchmark value 53 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 64 exceeds gate value 50 for firefox webpack home p95 firstReactRender
Benchmark value 43 exceeds gate value 32 for firefox webpack home p95 getState
Benchmark value 1974 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 1173ms | Sum of p95 exceeds: 1488ms
Sum of all benchmark exceeds: 2661ms

Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 43.97 KiB (0.83%)
  • ui: 946 Bytes (0.01%)
  • common: 91.7 KiB (0.99%)

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [bf3a4f0]
UI Startup Metrics (1234 ± 69 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1234111615546912701368
load107296413596711091214
domContentLoaded106696113516611011208
domInteractive18146381730
firstPaint760102122041310821168
backgroundConnect74192810
firstReactRender22154872241
getState1455492032
initialActions001001
loadScripts825722105662857963
setupStore85212812
WebpackHomeuiStartup22491865287219823882561
load17621395227917918792128
domContentLoaded17551391224117818742121
domInteractive171276111454
firstPaint1837452880227346
backgroundConnect3610396543582
firstReactRender19859396119315362
getState194336411735
initialActions318146
loadScripts17471389223517718712096
setupStore237288292747
FirefoxBrowserifyHomeuiStartup13611174173410314121572
load12161023154910112651442
domContentLoaded12161023154910112651442
domInteractive1073725832119164
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2013104111937
firstReactRender23195662428
getState85374818
initialActions002001
loadScripts11981009153610212491420
setupStore831871868
WebpackHomeuiStartup15041346182610615791721
load1292116315739413521496
domContentLoaded1292116315729413521496
domInteractive82542302793135
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22147782342
firstReactRender35294843745
getState94335911
initialActions102111
loadScripts1272114715429413311479
setupStore85274820
cc: @HowardBraham
Benchmark value 1235 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1072 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1066 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 1368 exceeds gate value 1365 for chrome browserify home p95 uiStartup
Benchmark value 1214 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1208 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 963 exceeds gate value 940 for chrome browserify home p95 loadScripts
Benchmark value 2250 exceeds gate value 2192 for chrome webpack home mean uiStartup
Benchmark value 1763 exceeds gate value 1711 for chrome webpack home mean load
Benchmark value 1756 exceeds gate value 1704 for chrome webpack home mean domContentLoaded
Benchmark value 1747 exceeds gate value 1699 for chrome webpack home mean loadScripts
Benchmark value 2561 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 2128 exceeds gate value 2030 for chrome webpack home p95 load
Benchmark value 2122 exceeds gate value 2005 for chrome webpack home p95 domContentLoaded
Benchmark value 346 exceeds gate value 334 for chrome webpack home p95 firstPaint
Benchmark value 2096 exceeds gate value 1970 for chrome webpack home p95 loadScripts
Sum of mean exceeds: 218ms | Sum of p95 exceeds: 538ms
Sum of all benchmark exceeds: 756ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: 412 Bytes (0.01%)
  • common: -615 Bytes (-0.01%)

@metamaskbot

Copy link
Copy Markdown
Collaborator
Builds ready [9743747]
UI Startup Metrics (1198 ± 64 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1198107514776412371319
load104093912265610771151
domContentLoaded103493412225610701145
domInteractive17136171628
firstPaint708129120841110481109
backgroundConnect74223710
firstReactRender22155372138
getState1353881929
initialActions001001
loadScripts79970997252829907
setupStore85233815
WebpackHomeuiStartup20921722253719622302336
load16091242199914917311796
domContentLoaded16021234197814717221792
domInteractive161160111350
firstPaint1716769380203278
backgroundConnect2910368373060
firstReactRender20355370114321361
getState154422411332
initialActions315134
loadScripts15971232195514617181789
setupStore1764172028
FirefoxBrowserifyHomeuiStartup13971168191611614681573
load12501017161611313351433
domContentLoaded12491016161611313341433
domInteractive1063626032120164
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20148792136
firstReactRender23195042331
getState9419819811
initialActions001001
loadScripts12311002159811313191415
setupStore64384610
WebpackHomeuiStartup14941333191510815411744
load1287113916959613341501
domContentLoaded1287113916949613341500
domInteractive77521371585107
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20144352132
firstReactRender33284743542
getState11426025928
initialActions001011
loadScripts1270112416699513171478
setupStore75212811
Benchmark value 1250 exceeds gate value 1245 for firefox browserify home mean load
Benchmark value 1250 exceeds gate value 1239 for firefox browserify home mean domContentLoaded
Benchmark value 1232 exceeds gate value 1230 for firefox browserify home mean loadScripts
Sum of mean exceeds: 18ms | Sum of p95 exceeds: 0ms
Sum of all benchmark exceeds: 18ms

Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0%)
  • ui: 412 Bytes (0.01%)
  • common: -615 Bytes (-0.01%)

@sahar-fehri sahar-fehri added this pull request to the merge queue May 1, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2025
@sahar-fehri sahar-fehri added this pull request to the merge queue May 1, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2025
@sahar-fehri sahar-fehri added this pull request to the merge queue May 1, 2025
Merged via the queue into main with commit 740ce05 May 1, 2025
163 checks passed
@sahar-fehri sahar-fehri deleted the chore/upgrade-assets-to-v60 branch May 1, 2025 17:10
@github-actions github-actions Bot locked and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants