feat: init new assets controller package#25957
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. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
a16dfc2 to
99fd2ea
Compare
|
@SocketSecurity ignore npm/@metamask/assets-controller@1.0.0 Research / rationale (per MetaMask reviewing guidelines):
|
app/core/Engine/controllers/assets-controller/assets-controller-init.ts
Outdated
Show resolved
Hide resolved
app/core/Engine/controllers/assets-controller/assets-controller-init.ts
Outdated
Show resolved
Hide resolved
app/core/Engine/controllers/assets-controller/assets-controller-init.ts
Outdated
Show resolved
Hide resolved
app/core/Engine/messengers/assets-controller/assets-controller-messenger.ts
Outdated
Show resolved
Hide resolved
app/core/Engine/messengers/assets-controller/assets-controller-messenger.ts
Show resolved
Hide resolved
app/core/Engine/messengers/assets-controller/assets-controller-messenger.ts
Show resolved
Hide resolved
app/core/Engine/messengers/assets-controller/assets-controller-messenger.ts
Show resolved
Hide resolved
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #25957 +/- ##
========================================
Coverage 81.14% 81.14%
========================================
Files 4390 4394 +4
Lines 113425 113566 +141
Branches 24383 24427 +44
========================================
+ Hits 92035 92154 +119
- Misses 15000 15011 +11
- Partials 6390 6401 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
init the new assets controller under a feature flag
Changelog
CHANGELOG entry: init the new assets controller under a feature flag
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Introduces a new core Engine controller and messaging surface area, which can affect persisted state shape and background state change handling even though runtime behavior is gated behind a remote feature flag.
Overview
Initializes and registers the new
AssetsController(from@metamask/assets-controller) in the Engine, including adding it to controller init lists, Engine context/state export, and backgroundstateChangeevent tracking.Adds
assetsControllerInitplus a dedicated messenger pair (AssetsController+AssetsControllerInit) that wires required actions/events and gates activation via theassetsUnifyStateremote feature flag (version-checked), while also providing an API platform client (bearer token) and token-detection preference into the controller.Updates test fixtures/snapshots and API-mocking defaults to include the new controller’s initial state and an additional
v2/supportedNetworksresponse; also cleans up a Login test to useDeepPartialfor mocked Redux state.Written by Cursor Bugbot for commit a998149. This will update automatically on new commits. Configure here.