Skip to content

Arc to Stellar and Sui; Stellar to Sui in /v1 - #312

Open
ezedike-evan wants to merge 2 commits into
devfrom
arc-to-stellar-sui
Open

ezedike-evan wants to merge 2 commits into
devfrom
arc-to-stellar-sui

Conversation

@ezedike-evan

Copy link
Copy Markdown
Contributor
  • Arc -> Stellar: burns through TokenMessenger with the Stellar CctpForwarder as mint recipient and destination caller (the Arc wrapper hard-codes destinationCaller = 0, so it can't target the forwarder); the 0.01 fee is a separate transaction. Behind NEXT_PUBLIC_EVM_TO_STELLAR.
  • Arc -> Sui: new {kind: "sui"} recipient in packages/cctp-evm, NEXT_PUBLIC_EVM_TO_SUI / parseEvmToSui / evmSendsToSui in the SDK. Delivery goes through the existing Sui relayer: POST /api/stellar-sui/complete now also accepts {src: 26, tx} (evmBurnProblem, relayEvmToSui, submitSuiMint). No new relayer.
  • Public API: sui is a destination; Stellar -> Sui and Arc -> Sui are listed in /v1/routes (Stellar -> Sui has been in the app since 25 Nov but was missing from the list); status polls hand transfers to the relayer via Deps.suiMintRelay.
  • Tests: relayer-evm.test.ts, route.test.ts; full web suite passed locally (1067).
  • Docs: docs/arc-to-stellar-and-sui.md.

Rollout: both new directions stay off until the flags are set. Set NEXT_PUBLIC_EVM_TO_STELLAR=arc and NEXT_PUBLIC_EVM_TO_SUI=arc on a Preview, send 1.5 USDC each way, then Production. Top up the Sui relayer first (0.119 SUI).

🤖 Generated with Claude Code

Arc to Stellar was built (NEXT_PUBLIC_EVM_TO_STELLAR) but never switched
on, and a /v1 status poll never handed the burn to the relayer. Arc to
Sui did not exist: no Sui recipient for an EVM burn, no Sui destination
in the API, no relayer for EVM burns into Sui.

- cctp-evm: { kind: "sui" } recipient, plain depositForBurn to domain 8,
  zero caller; a string recipient to Sui and the wrapper to Sui refused
- sdk: NEXT_PUBLIC_EVM_TO_SUI route list (parseEvmToSui, evmSendsToSui)
- api: sui destination (quote, build, status, claims with a Sui payer);
  Stellar to Sui listed when switched on and domain 8 is committed
  unforwarded; status polls relay EVM->Stellar, EVM->Sui, Stellar->Sui
- relayer: /api/sui-inbound/complete and /status, same Sui key, only
  chains in NEXT_PUBLIC_EVM_TO_SUI, from 1 USDC
- web: Sui and Stellar in the EVM page's picker, relayed panel
- docs/arc-to-stellar-and-sui.md: mainnet proof steps, Stellar domains plan

All off by default.
No new relayer: /api/stellar-sui/complete (lib/stellar-sui/relayer.ts)
now also takes {"src": <EVM domain>, "tx": "0x..."} for an EVM burn into
Sui from a chain named in NEXT_PUBLIC_EVM_TO_SUI, at least 1 USDC, with
a zero destinationCaller. {"tx": <Stellar hash>} (or src 27) is unchanged.

- removes lib/sui-inbound and /api/sui-inbound/{complete,status}
- /v1 status reads Circle's attestation (/api/attestation) to tell a
  burn to Sui, and relays Arc->Sui and Stellar->Sui through the one route
  (Deps.suiMintRelay replaces stellarSuiRelay, suiInboundRelay and
  suiInboundStatus)
- the EVM page's Sui panel polls /api/stellar-sui/complete with src
- tests moved onto the existing relayer and route
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
xebra Error Error Nov 28, 2026 12:48pm UTC
xebra-docs Ready Ready Preview Nov 28, 2026 12:48pm UTC

This branch had an error being deployed

1 failed deployment
Preview – xebra — 1f002d1b Deployed Nov 28, 2026 by vercel[bot]
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