feat: add sonic to rango (consolidates #438 sui + #439 sonic)#456
Open
j0ntz wants to merge 1 commit into
Open
Conversation
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, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 65da00d. Configure here.
65da00d to
c4d9620
Compare
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.

CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
none
Description
Asana task
Consolidates the two open partner PRs that add Rango DEX support for new chains:
While preparing this consolidation, all of #438's Sui changes were found to be already present in
master(therfc4648import, theasSuiTransactioncleaner, thecase 'SUI'swap handler, andrango.set('sui', 'SUI')— shipped in2.44.0, "(Rango) SUI support").master's version of the Sui handler is a refactor of #438's that returns{ ...swapOrderBase, makeTxParams }and addsorderUrito the saved action, so it supersedes #438.The only net-new change versus
masteris #439's one-line mapping for Sonic:rango.set('sonic', 'SONIC')insrc/mappings/rango.ts(previouslynull).No fixes were necessary beyond this. Both source PRs target
master; this PR does too.Note
Low Risk
Mapping-only change with no auth, custody, or swap execution logic; same pattern as other Rango chain additions.
Overview
Enables Rango DEX routing for the Sonic chain by wiring Sonic into the existing Rango network maps (previously
null, so Sonic was excluded).The source mapping
scripts/mappings/rangoMappings.tsnow maps Rango’sSONICnetwork to the Edgesonicplugin id; the generatedsrc/mappings/rango.tsreflectssonic→SONICfor quote/swap requests. CHANGELOG records “(Rango) Sonic support” under Unreleased.No new swap handlers or API logic in this diff—only chain enablement via mappings (consolidation PR; Sui from the related work was already on
master).Reviewed by Cursor Bugbot for commit c4d9620. Bugbot is set up for automated code reviews on this repo. Configure here.