chore: Update assets and accounts packages#12984
Conversation
|
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. |
2c6d5d9 to
d4e2d35
Compare
|
bd54717 to
e739ac1
Compare
|
4e5e84a to
9253cf0
Compare
|
14199d5 to
310cd82
Compare
|
1829581
51a63b8 to
1829581
Compare
|
992798e
|
|



Description
The primary purpose of this PR is to update the accounts controller and the assets-controller to the latest version. In doing that, there were several other package updates that were needed. Here is a summary of the updates...
🔴 Major updates 🔴
"@metamask/accounts-controller": "^20.0.1" -> ^21.0.0
scopesfield toKeyringAccountcore#5066), (chore: update accounts-related packages versioning for newscopesfeature core#5136)This field is now required and will be used to identify the supported chains (using CAIP-2 chain IDs) for every accounts.
@metamask/utilsto^11.0.1and@metamask/rpc-errorsto^7.0.2core#5080)@metamask/utilsto^11.0.1and@metamask/rpc-errorsto^7.0.2core#5080)@metamask/keyring-apilayout (split packages) core#4695)This package has been split out from the Keyring API.
@metamask/keyring-apilayout (split packages) core#4695)@metamask/keyring-apilayout (split packages) core#4695)ESM/CommonJS support.
"@metamask/assets-controllers": "^45.1.1", -> ^46.0.0",
@metamask/keyring-apilayout (split packages) core#4695)@metamask/providers and webextension-polyfill peer dependencies are no longer required.
@metamask/keyring-apilayout (split packages) core#4695)This package has been split out from the Keyring API. Its types are compatible with the @metamask/keyring-api package used previously.
scopesfield toKeyringAccountcore#5066)@metamask/utilsto^11.0.1and@metamask/rpc-errorsto^7.0.2core#5080)@metamask/utilsto^11.0.1and@metamask/rpc-errorsto^7.0.2core#5080)MultichainBalancesControllercore#4965)This controller has been migrated from the MetaMask extension codebase.
"@metamask/utils": "^10.0.1" -> ^11.0.1"
generateRandomMnemonicasync utils#222)Added "@metamask/keyring-internal-api": "^2.0.0",
@metamask/keyring-apito@metamask/keyring-internal-apiAdded @metamask/keyring-snap-client: "^2.0.0"
@metamask/keyring-snap-clientinstead of@metamask/keyring-api'. Seeapp/components/Views/AddAccountActions/AddAccountActions.tsxfor changes."@metamask/keyring-api": "^10.1.0", -> ^13.0.0"
scopesfield toKeyringAccountaccounts#101)"@metamask/eth-snap-keyring": "^5.0.1" -> ^7.0.0"
eth-sig-util@^7.0.3->^8.0.0accounts#79)🟡 Minor updates 🟡
"@metamask/base-controller": "^7.0.1", -> ^7.1.1
ControllerMessengertoMessengercore#5050)"@metamask/providers": "^18.1.0" -> ^18.3.1"
🟢 Patch updates 🟢
"@metamask/json-rpc-engine": "^10.0.0" -> ^10.0.2",
"@metamask/json-rpc-middleware-stream": "^8.0.2" -> 8.0.6"
@metamask/utilsto^11.0.1and@metamask/rpc-errorsto^7.0.2core#5080)"@metamask/rpc-errors": "^7.0.1" -> ^7.0.2"
@metamask/utilsfrom^10.0.0to^11.0.1rpc-errors#166)Related issues
Fixes: #12967
Fixes: #12966
Fixes: https://github.com/MetaMask/accounts-planning/issues/758
Unblocks: #12599
Manual testing steps
Basic import account flow with tokens
Screen.Recording.2025-01-15.at.3.07.12.PM.mov
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist