refactor: rename CONTROLLER_MESSENGERS to MESSENGER_FACTORIES#28641
refactor: rename CONTROLLER_MESSENGERS to MESSENGER_FACTORIES#28641cryptodev-2s merged 5 commits intomainfrom
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. |
ed988b8 to
be4d97a
Compare
d94c76a to
56cc68e
Compare
|
@metamaskbot update-mobile-fixture |
|
E2E fixtures updated. |
cf8987a
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Changes Analysis:
Tag Selection Rationale:
The Engine messenger rename is a pure refactor with no functional impact, so it doesn't require additional test coverage beyond what the fixture changes already warrant. The fixture changes are targeted and don't affect the core wallet flows broadly enough to warrant running all test suites. Performance Test Selection: |
|
|
✅ E2E Fixture Validation — Schema is up to date |



Description
Rename the
CONTROLLER_MESSENGERSconstant toMESSENGER_FACTORIESto reflect that it provides messenger factories for all messenger clients (controllers + services).3 files changed. PR 2 of 4 — depends on PR 1 (#28610).
PR 1: Core type renames (Controller→MessengerClient, etc.) (refactor: rename Controller types to MessengerClient types #28610)CONTROLLER_MESSENGERS→MESSENGER_FACTORIESinitModularizedControllers→initMessengerClients+ utils/Engine.ts renamescontroller→messengerClient,getController→getMessengerClient) in all init files + testsRelates to WPC-916.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/WPC-916
Manual testing steps
Screenshots/Recordings
N/A — no UI changes.
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Low behavioral risk (rename-only) but touches engine initialization typing/lookup and includes a huge
default-fixture.jsonupdate that could affect test expectations and increase review surface.Overview
Renames the modularized messenger lookup constant from
CONTROLLER_MESSENGERStoMESSENGER_FACTORIESand updates engine types/utilities to reference the new name (including generic return-type mappings used during messenger-client initialization).Updates
tests/framework/fixtures/json/default-fixture.json, removing legacyComplianceControllerfields and significantly expandingPerpsControllercached market/user data, plus adding a few new persisted fields (e.g., onboarding consent backfill, rewardsondoCampaignActivity, and preferencestokenOverviewChartType).Reviewed by Cursor Bugbot for commit cf8987a. Bugbot is set up for automated code reviews on this repo. Configure here.