For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ecosystem & repos

Every public Rome repo, what it is, and how they compose — the map for navigating the surface.

Rome's public surface is a set of repositories: a few foundation packages you build on, a scaffolder, reference apps to learn from, and two services your app calls. This page is the map — what each repo is and how they fit together.

Two neighbours answer different questions, and this page links to both rather than repeating them:

  • Architecture explains the protocol — how the EVM runs inside a Solana program.

  • Each repo ships an AGENTS.md (e.g. rome-sdk-ts/AGENTS.md) that routes by what you're starting from (a Solidity contract, a Solana program, greenfield, from-home) to the one example closest to your case.

This page is the level in between: the whole surface and how the pieces connect.

The surface at a glance

Foundation — build on these

Repo
What it is
Reach for it when

@rome-protocol/registry — read-only, generated projection of live chain facts (ids, RPC, addresses, token mints, program ids, oracle feeds, ALTs).

You need a real chain fact — never hardcode one.

@rome-protocol/sdk — the TypeScript write path: submitRomeTx + fee sizing, both lanes, PDA/ATA + CPI encoders, precompile bindings, a /bridge client.

You're writing app or frontend code.

Solidity precompile interfaces, SPL/ERC-20 wrappers, and the oracle adapters — the contract-side toolkit.

You're writing contracts.

The @rome-protocol/… names above are package names, but the packages are not published to npm. Install them from GitHub (the commands are in each section under The foundation layer, up close); the import paths in your code stay the same.

Rome ZK EVM rollups

Repo
What it is
Reach for it when

ZK rollup programs, node, prover and operator docs.

You're running an EVM chain that settles on Solana.

Batch guest source built for each chain's genesis.

You're building a guest and requesting its verification key.

Ostia (ZK EVM on Canton)

Repo
What it is
Reach for it when

Ostia, a ZK EVM on Canton: each proven EVM block is committed with its Canton actions in one transaction.

You're building on Ostia DevNet (explorer) or running your own Ostia. See Canton ZK EVM.

Reference apps — learn by example

Repo
What it is
Reach for it when

Dual-lane AMM — a native Solana pool with a thin EVM router.

Opening the other lane; a native-core example.

Dual-lane lending — a Solidity Comet core that Solana users reach via a synthetic sender.

Opening the other lane; a Solidity-core example.

EVM users driving Solana dApps (swap/stake/lend/perps) via CPI.

A worked CPI-to-Solana app to study.

Positions-first cross-VM DeFi; users reach it from their home chain.

A from-home app.

Aave v3 supply/borrow/repay, deployed unchanged.

A full EVM app running as-is.

Contract forks — known protocols, deployed on Rome

Repo
What it is
Reach for it when

Compound III (Comet) money market.

Forking a known EVM protocol.

Aave v3 contracts fork.

Forking a known EVM protocol.

Services — your app calls these

Repo
What it is
Reach for it when

Off-chain orchestrator + fee-sponsor for the on-chain bridge. Holds no keys.

Funding a wallet, or a from-home flow.

Solana price feeds (Pyth, Switchboard) exposed to EVM via the Chainlink AggregatorV3Interface.

You need a price feed.

Scaffold — start here

Repo
What it is
Reach for it when

npx github:rome-protocol/create-rome-app — scaffolds a dual-lane app pre-wired to the registry + SDK, with a funded both-lane check.

Starting a new app.

How they compose

The spine is three foundations and a scaffolder:

  • rome-registry is the single source of live facts. rome-sdk-ts is the write path — and its /bridge subpath is the client your app uses to talk to rome-bridge-api. rome-solidity is what your contracts (and the forks) import; the oracle adapters that rome-oracle-gateway deploys live there too. The three are independent of each other — pick the ones your app needs.

  • create-rome-app ties the first two together for a new app, so a fresh project starts already reading the registry and writing through the SDK.

The reference apps are the exception worth knowing: they predate the extracted packages. cardo consumes the registry package; appia projects the registry to static JSON at build time; and both vendor their write path rather than importing the SDK. Read them to learn the patterns — but a new app should start from create-rome-app + the packages, not by cloning an app.

The foundation layer, up close

rome-registry — live facts, public by construction

The registry is generated from Rome's internal source: an allowlist emits only what's meant to be public, substitutes internal endpoints for their public equivalents, and default-denies everything else — so it's public-safe by construction. It publishes, per chain, chain.json / tokens.json / contracts.json / oracle.json / bridge.json / alts.json, plus Solana programs and per-protocol app deployments.

Install it from GitHub, pinned to a release tag: npm install github:rome-protocol/rome-registry#v0.2.0. You read it through getters — getChain, getTokens, getContracts, getOracle, getBridge, getAlts, and getPrograms(network) (program ids are keyed by network, not chain id). The package is plain ESM (no bundled TypeScript types today).

Two things to know before you wire it in:

  • getTokens() doesn't return assetRef. To find a token's wrapper, match on its mint (mintId) — e.g. the gas token's wrapper is the entry that shares its mint.

  • It reads JSON from disk (node:fs) — it is not browser-safe. In a web app, project the values you need to a static JSON file at build time and import that in the client. (This is exactly what create-rome-app and appia do.)

Contract addresses come back as a list of versions per contract; pick the one whose status is live. Reading the contracts list shows how. Facts your app doesn't read live also appear in the Contract Addresses reference.

rome-sdk-ts — the write path, both lanes

Install from GitHub: npm install github:rome-protocol/rome-sdk-ts#v0.4.0.

@rome-protocol/sdk (v0.4.0) wraps everything a Rome write needs so you don't hand-roll calldata or fees:

  • submitRomeTx — the EVM-lane write path: sizes gas off eth_estimateGas (padded, with a fallback ceiling when estimation reverts) and supplies EIP-1559 fees.

  • submitRomeTxV1 — the same, for a Solana wallet driving your EVM app: one Solana v1 transaction per call, two wallet prompts. The synthetic sender holds nothing at rest; buildFundLeg/buildSweepLeg move value in and out as an ERC-20 (wUSDC), not native msg.value; the plain Solana instructions around a call (the fund leg, the wallet token-account creation before a sweep) go through submitSolanaInstructionsV1 as v1 transactions too. submitRomeTxSolanaLane is the earlier path, which builds a legacy Solana transaction in the client and auto-provisions a fresh synthetic (create_pda) on first use.

  • PDA/ATA derivation, CPI invoke/invoke_signed encoders, precompile bindings, and a /bridge subpath (@rome-protocol/sdk/bridge) — quote-first bridge client.

Full API + examples: Rome SDK, and the guides Call Solana from EVM, Call EVM from Solana, and Build a dual-lane app.

rome-solidity — the contract-side toolkit

Install it from GitHub, not npm. With npm or Hardhat: npm install github:rome-protocol/rome-solidity. With Foundry: forge install rome-protocol/rome-solidity, then add the remapping @rome-protocol/rome-solidity/=lib/rome-solidity/ to foundry.toml (under [profile.default], as remappings = [...]) so that @rome-protocol/rome-solidity/contracts/interface.sol resolves. The package name in package.json is @rome-protocol/rome-solidity, so the same import path works with both.

What your contracts import:

  • contracts/interface.sol — the precompile interfaces bound to their addresses: CPI ICrossProgramInvocation (0xFF…08), Helper IHelperProgram (0xFF…09, ATA/PDA creation, SPL transfers, gas↔lamports), Withdraw IWithdraw (0x42…16), and System (0xFF…07). A gas-optimised cached family also lives here; a contract uses one track consistently. Full address table: Contract Addresses.

  • SPL/ERC-20 wrappers — SPL_ERC20 (CPI-based) and SPL_ERC20_cached (the cached track, used on devnet); any SPL mint is already an ERC-20 through these.

  • Oracle adapters (contracts/oracle/) — the Pyth/Switchboard adapters rome-oracle-gateway deploys, read via IAggregatorV3Interface.

  • Worked examples in contracts/examples/.

The Solidity SDK section of Rome SDK shows the import patterns and the precompile bindings in code.

What's next

  • Choose your core — which side holds your logic.

  • Quickstart — deploy your first contract.

  • create-rome-app — scaffold a dual-lane app.

  • Each repo's AGENTS.md — the by-starting-point route to the closest example.

Last updated

Was this helpful?