Skip to content

feat: add sonic to rango (consolidates #438 sui + #439 sonic)#456

Open
j0ntz wants to merge 1 commit into
masterfrom
jon/rango-sonic-sui
Open

feat: add sonic to rango (consolidates #438 sui + #439 sonic)#456
j0ntz wants to merge 1 commit into
masterfrom
jon/rango-sonic-sui

Conversation

@j0ntz

@j0ntz j0ntz commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

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 (the rfc4648 import, the asSuiTransaction cleaner, the case 'SUI' swap handler, and rango.set('sui', 'SUI') — shipped in 2.44.0, "(Rango) SUI support"). master's version of the Sui handler is a refactor of #438's that returns { ...swapOrderBase, makeTxParams } and adds orderUri to the saved action, so it supersedes #438.

The only net-new change versus master is #439's one-line mapping for Sonic:

  • rango.set('sonic', 'SONIC') in src/mappings/rango.ts (previously null).

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.ts now maps Rango’s SONIC network to the Edge sonic plugin id; the generated src/mappings/rango.ts reflects sonicSONIC for 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.

This was referenced Jun 8, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread src/mappings/rango.ts
@j0ntz j0ntz force-pushed the jon/rango-sonic-sui branch from 65da00d to c4d9620 Compare June 8, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant