feat: fund + bridge — inbound USDC on-ramp (CCTP) - #5
Merged
Conversation
`fund` (USDC->gas) + `bridge` (USDC in, gas|wrapper): one rail-agnostic flow engine over @rome-protocol/sdk/bridge (quote -> sign source burn -> settle-auth on gas -> register -> poll). CLI-only, key-gated (ROME_EVM_KEY), never on MCP. Source chains + RPCs resolve from the registry. Adds a --flag parser (positional commands unchanged) and --dry-run. Docs: README two-layer surface (fixes the stale "does not deploy or sign") + GUIDES recipe. Funded wrapper transfer verified on-chain (Sepolia -> Hadrian wUSDC).
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.
feat:
fund+bridge— the "from home" USDC on-ramp (inbound CCTP)Adds the Phase-2 funding commands from the approved SPEC (
publishing/rome-mcp-cli/SPEC.md), the "from home" builder path.What it adds
rome fund <chain> --from <src> --amount <usdc>— bridge USDC → Rome native gas (CCTP,intent:gas).rome bridge <chain> --from <src> --amount <usdc> [--intent gas|wrapper]— general inbound;wrapperdelivers wUSDC on Rome.runInboundUsdc) that orchestrates@rome-protocol/sdk/bridge(quote → sign source burn → settle-auth if gas → register → poll). The SDK owns the protocol; the CLI owns the source-chain signing it leaves to the client.ROME_EVM_KEY, env-only), never on MCP — enforced + tested.--dry-runpreviews with no spend.getBridge) — no hardcoding.--flagparser added to the CLI (positional invocations unchanged).Verification (funded, on-chain)
txf_0639…(Sepolia → Hadrian, 0.5 USDC): approve0xb1fe158e…+ burn0x8ecf70ab…→ recordcomplete(amountOut 500000), Solana mint4sgh6xpB…to the recipient ATA; EVM-lanewUSDC.balanceOfon Hadrian confirms the credit.Docs
Scope / follow-ups
from-rome) are the next slice (each gets its own funded gate).bridge.json(chain-first — today it's--bridge-api/ROME_BRIDGE_API/devnet-default).