feat: bridge --to (CCTP outbound) + activate - #20
Merged
Conversation
Bridge wUSDC out of Rome: burn on Rome (RomeBridgeWithdraw / CCTP v2) → register → poll to attestation-ready → return a claim handle. Claiming on the destination is the user's responsibility (MessageTransmitterV2. receiveMessage, needs destination gas) — Rome sponsors the inbound settle intent, never the outbound destination claim. First outbound requires a funded external-auth PDA (CCTP creates a per-burn messageSentEventData account). `rome activate` funds it once via the on-chain SimpleActivator (idempotent); `bridge --to` pre-checks it with a pure-EVM account_lamports read and directs to `rome activate` rather than letting the burn revert deep in CCTP with Custom(1). EVM key only. Funded-verified on Hadrian: activate -> burn 0.1 wUSDC -> Base Sepolia, tx 0xc454...9fbe SUCCESS, attestation-ready, claim handle emitted. 92 unit tests; docs: GUIDES "Bridge out" + activation + claim responsibility.
anil-rome
added a commit
that referenced
this pull request
Jul 22, 2026
Pins the released surface to main. Since v0.6.0: bridge --to (CCTP outbound; user claims on the destination) + activate (one-time PDA funding before the first outbound), rome-cli #20, funded-GREEN Hadrian. Bumps package.json and the github install pins 0.6.0 -> 0.7.0.
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.
Completes the bridge for the from-home path in the outbound direction: bridge wUSDC out of Rome back to a destination chain's USDC, plus the one-time
activateit requires.Commands
rome bridge <chain> --to <dest> --amount <usdc>— burn wUSDC on Rome (RomeBridgeWithdraw/ CCTP v2) → register → poll to attestation-ready → return a claim handle.--from= in,--to= out (exactly one).--recipient,--dry-runsupported.rome activate <chain>— one-time funding of the actor'sexternal_authPDA (via on-chainSimpleActivator), required before the first bridge-out. Idempotent (skips, no spend, if already active). EVM key only.The design (per operator direction)
MessageTransmitterV2.receiveMessage(message, attestation)(needs destination gas; permissionless delivery).messageSentEventDataaccount funded by the user's PDA).bridge --topre-checks the PDA lamports with a pure-EVMaccount_lamportsread and directs torome activate— instead of the burn reverting deep in CCTP withCustom(1).Validation
rome activate→rome bridge --to base-sepolia --amount 0.1→ burn tx0xc4549892…9fbeSUCCESS (block 478012463) → attestation-ready → claim handle emitted.rome activateidempotent-skip confirmed live.Custom(1)to the unfunded PDA (contract's documented ~15M-lamport reserve); fixed by activation (PDA 29.97M → burn lands).bridge/activateremain off the MCP surface. Dry-run live-verified through the CLI.Docs (fully wired)
docs/GUIDES.md— new "Bridge out" section: the in/out split, activation (why + how), claim responsibility, and how the on-chain bridge + off-chain bridge-api actually work.docs/ARCHITECTURE.md— catalog rows forbridge --to+activate; file-tree + actions updated.Feature PR, no version bump — pinned in a later release. Follow-ons: Wormhole (ETH) egress; a
doctoractivation line; an optionalbridge claimconvenience for the destinationreceiveMessage.