Uh oh!
There was an error while loading. Please reload this page.
refactor: migrate EarnController to @metamask/messenger - #6445
Merged
Conversation
mikespositoforce-pushed
the
mikesposito/messenger/earn-controller
branch
from
September 3, 2025 21:46
460f754 to
ca596a3Comparemikespositoforce-pushed
the
mikesposito/messenger/earn-controller
branch
from
September 3, 2025 21:52
ca596a3 to
307c886Comparemcmire
previously approved these changes
Sep 10, 2025
mikesposito
enabled auto-merge (squash)
September 23, 2025 13:45
mikesposito
disabled auto-merge
October 27, 2025 10:37
FrederikBolding
removed this pull request from the merge queue due to the queue being cleared
Oct 27, 2025
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Explanation
This PR migrates the
EarnControllerclass to the new@metamask/messengercomm system, as opposed to the one exported from@metamask/base-controller.References
Checklist
Note
Migrates
EarnControllerfromRestrictedMessengerto@metamask/messenger, updates state metadata keys, and aligns tests, configs, and docs.RestrictedMessengerto@metamask/messengerwith new typedMessengeranddelegateusage; replacemessagingSystemcalls withmessenger.call/subscribe.@metamask/base-controller/next.anonymoustoincludeInDebugSnapshotand adjust values.packages/earn-controller/src/EarnController.test.ts):@metamask/messengerroot and namespaced messengers; update types; adjustderiveStateFromMetadataselector toincludeInDebugSnapshot.@metamask/messengerand TS project references.README.mdto linkearn_controller→messengerand addeip_7702_internal_rpc_middleware→controller_utils.Messengerrequirement and metadata key rename.Written by Cursor Bugbot for commit ba9bcec. This will update automatically on new commits. Configure here.