You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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...
Added because KeyringClient is now exported from @metamask/keyring-snap-client instead of @metamask/keyring-api'. See app/components/Views/AddAccountActions/AddAccountActions.tsx for changes.
I've completed the PR template to the best of my ability
I’ve included tests if applicable
I’ve documented my code using JSDoc format if applicable
I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
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.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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