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 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
scopes
field toKeyringAccount
core#5066), (chore: update accounts-related packages versioning for newscopes
feature 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/utils
to^11.0.1
and@metamask/rpc-errors
to^7.0.2
core#5080)@metamask/utils
to^11.0.1
and@metamask/rpc-errors
to^7.0.2
core#5080)@metamask/keyring-api
layout (split packages) core#4695)This package has been split out from the Keyring API.
@metamask/keyring-api
layout (split packages) core#4695)@metamask/keyring-api
layout (split packages) core#4695)ESM/CommonJS support.
"@metamask/assets-controllers": "^45.1.1", -> ^46.0.0",
@metamask/keyring-api
layout (split packages) core#4695)@metamask/providers and webextension-polyfill peer dependencies are no longer required.
@metamask/keyring-api
layout (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.
scopes
field toKeyringAccount
core#5066)@metamask/utils
to^11.0.1
and@metamask/rpc-errors
to^7.0.2
core#5080)@metamask/utils
to^11.0.1
and@metamask/rpc-errors
to^7.0.2
core#5080)MultichainBalancesController
core#4965)This controller has been migrated from the MetaMask extension codebase.
"@metamask/utils": "^10.0.1" -> ^11.0.1"
generateRandomMnemonic
async utils#222)Added "@metamask/keyring-internal-api": "^2.0.0",
@metamask/keyring-api
to@metamask/keyring-internal-api
Added @metamask/keyring-snap-client: "^2.0.0"
@metamask/keyring-snap-client
instead of@metamask/keyring-api'
. Seeapp/components/Views/AddAccountActions/AddAccountActions.tsx
for changes."@metamask/keyring-api": "^10.1.0", -> ^13.0.0"
scopes
field toKeyringAccount
accounts#101)"@metamask/eth-snap-keyring": "^5.0.1" -> ^7.0.0"
eth-sig-util@^7.0.3
->^8.0.0
accounts#79)🟡 Minor updates 🟡
"@metamask/base-controller": "^7.0.1", -> ^7.1.1
ControllerMessenger
toMessenger
core#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/utils
to^11.0.1
and@metamask/rpc-errors
to^7.0.2
core#5080)"@metamask/rpc-errors": "^7.0.1" -> ^7.0.2"
@metamask/utils
from^10.0.0
to^11.0.1
rpc-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