refactor!: Rename MultichainRouter to MultichainRoutingService and use messenger exposed methods pattern#3913
Merged
Mrtenz merged 8 commits intocontroller-refactorsfrom Mar 24, 2026
Conversation
Mrtenz
commented
Mar 23, 2026
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## controller-refactors #3913 +/- ##
=======================================================
Coverage ? 98.55%
=======================================================
Files ? 425
Lines ? 12335
Branches ? 1935
=======================================================
Hits ? 12157
Misses ? 178
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
MultichainRouter to use messenger exposed methodsMultichainRouter to MultichainRoutingService and use messenger exposed methods pattern
FrederikBolding
approved these changes
Mar 24, 2026
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 free
to 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.

This updates the
MultichainRouterto use messenger exposed methods. Actions were already named properly.Note
Medium Risk
Breaking rename and action-type reshaping will require downstream updates, and the switch to
SnapController:getRunnableSnapschanges the dependency contract for protocol snap routing. Runtime logic appears largely unchanged but touches request routing paths.Overview
Renames the multichain RPC router from
MultichainRoutertoMultichainRoutingServiceand updates exported types/namespace action strings accordingly (breaking change).Refactors messenger integration to use
registerMethodActionHandlerswith auto-generated method action types, and changes protocol-snap discovery to callSnapController:getRunnableSnapsdirectly (no longer requiresSnapController:getAllSnaps). Tests and controller test-utils are updated to use the new messenger helpers and action names, and the changelog documents both breaking changes.Written by Cursor Bugbot for commit 5b0d482. This will update automatically on new commits. Configure here.