> For the complete documentation index, see [llms.txt](https://docs.rome.builders/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rome.builders/ko/getting-started-1/ecosystem.md).

# 생태계 및 저장소

모든 공개 Rome 저장소, 각 저장소의 내용, 그리고 어떻게 함께 구성되는지 — 표면을 탐색하기 위한 지도.

Rome의 공개 영역은 여러 저장소로 구성됩니다. 여기에는 몇 가지 **기반** 패키지, 스캐폴더, 참고용 앱, 그리고 앱에서 호출하는 두 가지 서비스가 있습니다. 이 페이지는 각 저장소가 무엇이고 서로 어떻게 연결되는지 보여 주는 지도입니다.

인접한 두 페이지에서는 서로 다른 질문에 답합니다. 내용을 반복하는 대신 두 페이지 모두에 링크합니다.

* [아키텍처](https://docs.rome.builders/ko/getting-started-1/architecture.md) 에서는 **프로토콜** — EVM이 Solana 프로그램 안에서 실행되는 방식 — 을 설명합니다.
* 각 저장소에는 **`AGENTS.md`** (예: [rome-sdk-ts/AGENTS.md](https://github.com/rome-protocol/rome-sdk-ts/blob/main/AGENTS.md))가 포함되어 있으며, **무엇을 바탕으로 시작하는지** (Solidity 컨트랙트, Solana 프로그램, 신규 개발, from-home)에 따라 상황에 가장 가까운 예제로 안내합니다.

이 페이지는 그 중간 수준, 즉 **전체 공개 영역** 과 각 요소가 연결되는 방식을 다룹니다.

## 한눈에 보는 공개 영역

### 기반 — 이를 바탕으로 개발하세요

| 저장소                                                             | 설명                                                                                                                        | 이럴 때 사용                               |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [rome-registry](https://github.com/rome-protocol/rome-registry) | `@rome-protocol/registry` — 실시간 체인 정보(식별자, RPC, 주소, 토큰 민트, 프로그램 ID, 오라클 피드, ALT)를 읽기 전용으로 생성한 투영 데이터입니다.                  | 실제 체인 정보가 필요할 때 사용하세요. 직접 하드코딩하지 마세요. |
| [rome-sdk-ts](https://github.com/rome-protocol/rome-sdk-ts)     | `@rome-protocol/sdk` — TypeScript 쓰기 경로: `submitRomeTx` + 수수료 산정, 두 가지 레인, PDA/ATA 및 CPI 인코더, 프리컴파일 바인딩, `/bridge` 클라이언트. | 앱 또는 프런트엔드 코드를 작성할 때 사용하세요.           |
| [rome-solidity](https://github.com/rome-protocol/rome-solidity) | Solidity 프리컴파일 인터페이스, SPL/ERC-20 래퍼, 오라클 어댑터 등 컨트랙트 측 도구 모음입니다.                                                           | 컨트랙트를 작성할 때 사용하세요.                    |

위의 `@rome-protocol/…` 이름은 패키지 이름이지만, 해당 패키지는 npm에 게시되어 있지 않습니다. GitHub에서 설치하세요(명령은 각 섹션의 [기반 레이어 자세히 보기](#the-foundation-layer-up-close)아래에 있습니다). 코드의 가져오기 경로는 그대로 유지됩니다.

### Rome ZK EVM 롤업

| 저장소                                                             | 설명                               | 이럴 때 사용                            |
| --------------------------------------------------------------- | -------------------------------- | ---------------------------------- |
| [solana-zk-evm](https://github.com/rome-protocol/solana-zk-evm) | ZK 롤업 프로그램, 노드, 증명자 및 운영자 문서입니다. | Solana에서 결제되는 EVM 체인을 운영할 때 사용하세요. |
| [rome-zk-guest](https://github.com/rome-protocol/rome-zk-guest) | 각 체인의 제네시스를 위해 빌드된 배치 게스트 소스입니다. | 게스트를 빌드하고 검증 키를 요청할 때 사용하세요.       |

### Ostia(Canton의 ZK EVM)

| 저장소                                                                                   | 설명                                                                      | 이럴 때 사용                                                                                                                                                                             |
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [canton-zk-evm](https://github.com/rome-protocol/canton-zk-evm/blob/v0.1.0/README.md) | Ostia는 Canton의 ZK EVM입니다. 증명된 각 EVM 블록은 Canton 작업과 함께 하나의 트랜잭션으로 커밋됩니다. | Ostia TestNet에서 개발 중이거나([탐색기](https://ostia.testnet.romeprotocol.xyz/)) 자체 Ostia를 실행하고 있습니다. 자세한 내용은 [Canton ZK EVM](https://docs.rome.builders/ko/canton-zk-evm/canton-zk-evm.md). |

### 참조 앱 — 예제를 통해 배우기

| 저장소                                                                     | 설명                                                        | 이럴 때 사용                               |
| ----------------------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------- |
| [rome-dex](https://github.com/rome-protocol/rome-dex)                   | 듀얼 레인 AMM — 얇은 EVM 라우터를 갖춘 네이티브 Solana 풀.                 | 다른 레인 열기; **네이티브 코어**  예시.            |
| [아에라리움](https://github.com/rome-protocol/aerarium)                      | 듀얼 레인 대출 — Solana 사용자가 합성 송신자를 통해 접근하는 Solidity Comet 코어. | 다른 레인 열기; **Solidity 코어**  예시.        |
| [카르도](https://github.com/rome-protocol/cardo)                           | CPI를 통해 Solana dApp(스왑/스테이킹/대출/무기한 선물)을 이용하는 EVM 사용자.     | 학습용으로 살펴볼 수 있는 CPI-to-Solana 앱 예제입니다. |
| [appia](https://github.com/rome-protocol/appia)                         | 포지션 중심의 크로스 VM DeFi입니다. 사용자는 자신의 홈 체인에서 접속합니다.            | 홈 체인에서 접속하는 **홈 체인에서 접속하는** 앱.        |
| [rome-aave-v3-demo](https://github.com/rome-protocol/rome-aave-v3-demo) | 수정 없이 배포된 Aave v3 공급/차입/상환 기능입니다.                         | EVM 앱 전체가 그대로 실행됩니다.                  |

### 컨트랙트 포크 — 잘 알려진 프로토콜을 Rome에 배포

| 저장소                                                                               | 설명                         | 이럴 때 사용                 |
| --------------------------------------------------------------------------------- | -------------------------- | ----------------------- |
| [compound-on-rome-comet](https://github.com/rome-protocol/compound-on-rome-comet) | Compound III(Comet) 머니 마켓. | 잘 알려진 EVM 프로토콜을 포크한 버전. |
| [rome-aave-v3](https://github.com/rome-protocol/rome-aave-v3)                     | Aave v3 컨트랙트 포크.           | 잘 알려진 EVM 프로토콜을 포크한 버전. |

### 서비스 — 앱에서 호출하는 항목

| 저장소                                                                         | 설명                                                                                                     | 이럴 때 사용                  |
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------ |
| [rome-bridge-api](https://github.com/rome-protocol/rome-bridge-api)         | 온체인 브리지용 오프체인 오케스트레이터이자 수수료 스폰서입니다. 키를 보관하지 않습니다.                                                      | 지갑에 자금을 넣거나 집에서 시작하는 흐름. |
| [rome-oracle-gateway](https://github.com/rome-protocol/rome-oracle-gateway) | Chainlink AggregatorV3Interface를 통해 EVM에 노출되는 Solana 가격 피드(Pyth, Switchboard) `AggregatorV3Interface`. | 가격 피드가 필요합니다.            |

### Scaffold — 여기서 시작하세요

| 저장소                                                                 | 설명                                                                                                                  | 이럴 때 사용   |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | --------- |
| [create-rome-app](https://github.com/rome-protocol/create-rome-app) | `npx github:rome-protocol/create-rome-app` — 레지스트리와 SDK가 미리 연결되고, 두 레인 모두에 자금이 충전된 상태로 확인할 수 있는 이중 레인 앱의 뼈대를 생성합니다. | 새 앱 시작하기. |

## 구성 요소가 결합되는 방식

```mermaid
flowchart TD
    REG["rome-registry — 실시간 체인 정보"]
    SDK["rome-sdk-ts — 쓰기, CPI, 브리지 클라이언트"]
    SOL["rome-solidity — 프리컴파일 인터페이스, SPL 래퍼, 오라클 어댑터"]
    CRA["create-rome-app — 스캐폴더"]
    APP["사용자 앱 — 프런트엔드 + 컨트랙트"]
    BAPI["rome-bridge-api — 오프체인 오케스트레이터, 키를 보관하지 않음"]
    OG["rome-oracle-gateway — Solana 가격 피드"]

    CRA -->|미리 연결된 상태로 스캐폴딩| APP
    REG -->|정보 제공, 절대 하드코딩하지 않음| APP
    SDK -->|쓰기 경로 및 CPI| APP
    SOL -->|사용자 컨트랙트에서 가져옴| APP
    APP -->|SDK /bridge 클라이언트| BAPI
    APP -->|AggregatorV3Interface를 통해 읽음| OG
    OG -.->|어댑터가 있는 곳| SOL
    CRA -.->|연결| REG
    CRA -.->|연결| SDK
```

핵심은 세 가지 기반 패키지와 스캐폴더입니다:

* [**rome-registry**](https://github.com/rome-protocol/rome-registry) 는 실시간 정보의 단일 소스입니다. [**rome-sdk-ts**](https://github.com/rome-protocol/rome-sdk-ts) 는 쓰기 경로이며, `/bridge` 하위 경로는 앱에서 다음과 통신할 때 사용하는 클라이언트입니다: `rome-bridge-api`. [**rome-solidity**](https://github.com/rome-protocol/rome-solidity) 는 컨트랙트(및 포크)가 가져다 쓰는 패키지입니다. 다음을 위한 오라클 어댑터도 `rome-oracle-gateway` 가 배포하는 어댑터도 여기에 있습니다. 이 세 패키지는 서로 독립적이므로 앱에 필요한 것만 선택하세요.
* [**create-rome-app**](https://github.com/rome-protocol/create-rome-app) 은 새 앱에서 앞의 두 패키지를 함께 연결하므로, 새 프로젝트는 처음부터 레지스트리를 읽고 SDK를 통해 쓰기 작업을 수행합니다.

알아 둘 만한 예외는 레퍼런스 앱입니다: **이 앱들은 패키지가 분리되기 전에 만들어졌습니다.** cardo는 레지스트리 패키지를 사용하고, appia는 빌드 시 레지스트리를 정적 JSON으로 변환하며, 두 앱 모두 SDK를 가져오는 대신 자체 쓰기 경로를 포함합니다. 패턴을 익히려면 참고하되, **새** 앱은 앱을 복제하는 대신 `create-rome-app` + 패키지에서 시작해야 합니다.

## 필요한 항목별로 찾아보기

* **실시간 체인 정보** (ID, 주소, 민트, 프로그램 ID) → [rome-registry](https://github.com/rome-protocol/rome-registry). 절대 하드코딩하지 마세요.
* **앱 코드 작성** (쓰기 작업, CPI 호출, 브리지) → [rome-sdk-ts](https://github.com/rome-protocol/rome-sdk-ts); 참고 자료: [Rome SDK](https://docs.rome.builders/ko/products/rome-sdk.md).
* **컨트랙트 작성** → [rome-solidity](https://github.com/rome-protocol/rome-solidity); 참조 [Solidity 컨트랙트 배포](https://docs.rome.builders/ko/developer-guides/deploy-solidity.md).
* **Solidity 컨트랙트에서 Solana 프로그램 호출하기** → 의 CPI 프리컴파일은 [rome-solidity](https://github.com/rome-protocol/rome-solidity) (`interface.sol`); [cardo](https://github.com/rome-protocol/cardo) 가 실제 예제입니다.
* **실행 가능한 AMM, 대출, CPI 또는 홈 화면 앱 예제** → 위의 참조 앱을 확인하세요. 각 저장소의 `AGENTS.md` 에서 시작 지점에 따른 경로를 안내합니다.
* **새 앱 스캐폴딩** → [create-rome-app](https://github.com/rome-protocol/create-rome-app).
* **가격 피드** → [rome-oracle-gateway](https://github.com/rome-protocol/rome-oracle-gateway) (자세한 내용은 [Oracle Gateway 포털](https://docs.rome.builders/ko/rome-1/oracle-gateway.md)).
* **다른 체인의 사용자** → [From home](https://docs.rome.builders/ko/developer-guides/from-home.md) + [rome-bridge-api](https://github.com/rome-protocol/rome-bridge-api).
* **로직을 어느 쪽에 둘지 결정하기** → [핵심 요소 선택하기](https://docs.rome.builders/ko/core-concepts/choose-your-core.md).

## 기반 레이어 자세히 살펴보기

### rome-registry — 실시간 정보, 설계상 공개

레지스트리는 Rome의 내부 소스에서 **생성됩니다** . 허용 목록을 통해 공개할 항목만 내보내고, **내부 엔드포인트를** 해당하는 공개 엔드포인트로 **대체하며** 그 밖의 모든 항목은 기본적으로 거부하므로, 설계상 안전하게 공개할 수 있습니다. 체인별로 다음 파일을 게시합니다. `chain.json` / `tokens.json` / `contracts.json` / `oracle.json` / `bridge.json` / `alts.json`, 그리고 Solana `programs` 및 프로토콜별 앱 배포 정보도 게시합니다.

릴리스 태그를 지정해 GitHub에서 설치하세요: `npm install github:rome-protocol/rome-registry#v0.2.0`. getter를 통해 읽을 수 있습니다. 예를 들면 `getChain`, `getTokens`, `getContracts`, `getOracle`, `getBridge`, `getAlts` 및 `getPrograms(network)` (프로그램 ID는 체인 ID가 아니라 네트워크를 기준으로 키가 지정됩니다). 이 패키지는 순수 ESM이며(현재 번들된 TypeScript 타입은 없습니다).

연결하기 전에 알아둘 점 두 가지:

* **`getTokens()` 은 반환하지 않습니다 `assetRef`.** 토큰의 래퍼를 찾으려면 해당 토큰의 **민트** (`mintId`)를 기준으로 일치하는 항목을 찾으세요. 예를 들어 가스 토큰의 래퍼는 민트가 같은 항목입니다.
* **디스크에서 JSON을 읽으므로(`node:fs`) 브라우저에서는 안전하게 사용할 수 없습니다.** 웹 앱에서는 빌드 시 필요한 값만 정적 JSON 파일로 추출해 클라이언트에서 가져오세요. (이는 `create-rome-app` 과 appia에서 사용하는 방식입니다.)

컨트랙트 주소는 컨트랙트별 버전 목록으로 반환됩니다. 이 중 `status` 가 `live`. [인 항목을 선택하세요.](https://docs.rome.builders/ko/reference/contract-addresses.md#reading-the-contracts-list) 컨트랙트 목록 읽기 [에서 방법을 확인할 수 있습니다. 앱이 실시간으로 읽지 않는 정보는](https://docs.rome.builders/ko/reference/contract-addresses.md) 컨트랙트 주소

### 참조 문서에도 나와 있습니다.

rome-sdk-ts — 두 경로 모두에서 쓰기 작업 수행 `GitHub에서 설치합니다:`.

`npm install github:rome-protocol/rome-sdk-ts#v0.4.0` @rome-protocol/sdk

* **`(v0.4.0)는 Rome에서 쓰기 작업에 필요한 모든 것을 처리하므로, calldata나 수수료를 직접 작성할 필요가 없습니다:`** submitRomeTx `— EVM 경로의 쓰기 작업입니다. eth_estimateGas를 기준으로 가스 한도를 계산하고` (여유분을 더하며, 추정이 되돌려지면 대체 상한을 사용) EIP-1559 수수료를 설정합니다.
* **`submitRomeTxV1`** — 다음 환경에서 동일한 기능을 수행합니다. **Solana 지갑** 으로 EVM 앱을 구동합니다. 호출마다 Solana v1 트랜잭션 하나를 보내고 지갑 확인을 두 번 요청합니다. 합성 발신자는 잔액을 보유하지 않습니다. `buildFundLeg`/`buildSweepLeg` 는 ERC-20으로 자산을 넣고 빼는 작업을 수행합니다(`wUSDC`), **이며** 네이티브 `msg.value`가 아님). 호출 주변의 일반 Solana 명령(자금 입금 단계 및 스윕 전에 지갑 토큰 계정을 생성하는 단계)은 다음을 통해 처리합니다. `submitSolanaInstructionsV1` 도 v1 트랜잭션으로 제출합니다. `submitRomeTxSolanaLane` 은 클라이언트에서 레거시 Solana 트랜잭션을 구성하고, 처음 사용할 때 새로운 합성 객체(`create_pda`)를 자동으로 생성하는 이전 방식입니다.
* **PDA/ATA 파생, CPI `invoke`/`invoke_signed` 인코더, 프리컴파일 바인딩**, 그리고 **`/bridge`** 하위 경로(`@rome-protocol/sdk/bridge`)를 제공합니다. 견적 우선 브리지 클라이언트입니다.

전체 API와 예제: [Rome SDK](https://docs.rome.builders/ko/products/rome-sdk.md)및 가이드 [EVM에서 Solana 호출하기](https://docs.rome.builders/ko/developer-guides/call-solana-from-evm.md), [Solana에서 EVM 호출하기](https://docs.rome.builders/ko/developer-guides/call-evm-from-solana.md)및 [듀얼 레인 앱 빌드하기](https://docs.rome.builders/ko/developer-guides/dual-lane-app.md).

### rome-solidity — 컨트랙트 측 툴킷

npm이 아닌 GitHub에서 설치하세요. npm 또는 Hardhat을 사용하는 경우: `npm install github:rome-protocol/rome-solidity`. Foundry를 사용하는 경우: `forge install rome-protocol/rome-solidity`그런 다음 다음 리매핑을 추가합니다: `@rome-protocol/rome-solidity/=lib/rome-solidity/` 을 `foundry.toml` 의( `[profile.default]`아래에 `remappings = [...]`)에 추가해야 `@rome-protocol/rome-solidity/contracts/interface.sol` 이 확인됩니다. package.json의 패키지 이름은 `package.json` 에서 `@rome-protocol/rome-solidity`이므로 두 환경에서 동일한 import 경로를 사용할 수 있습니다.

컨트랙트에서 가져오는 항목:

* **`contracts/interface.sol`** — 주소에 바인딩된 프리컴파일 인터페이스: **CPI** `ICrossProgramInvocation` (`0xFF…08`), **헬퍼** `IHelperProgram` (`0xFF…09`, ATA/PDA 생성, SPL 전송, gas↔lamports), **출금** `IWithdraw` (`0x42…16`), 그리고 **시스템** (`0xFF…07`). gas 최적화 **캐시** 방식도 여기에 있습니다. 컨트랙트는 한 가지 방식을 일관되게 사용합니다. 전체 주소 목록: [컨트랙트 주소](https://docs.rome.builders/ko/reference/contract-addresses.md).
* **SPL/ERC-20 래퍼** — `SPL_ERC20` (CPI 기반) 및 `SPL_ERC20_cached` (캐시 방식이며 devnet에서 사용됨)가 있습니다. 어떤 SPL 민트든 이 래퍼를 통해 이미 ERC-20으로 사용할 수 있습니다.
* **오라클 어댑터** (`contracts/oracle/`) — Pyth/Switchboard 어댑터 `rome-oracle-gateway` 를 배포하며, `IAggregatorV3Interface`.
* 를 통해 읽습니다. `contracts/examples/`.

의 실제 예제 [Rome SDK](https://docs.rome.builders/ko/products/rome-sdk.md) 의 Solidity SDK 섹션에서 임포트 패턴과 프리컴파일 바인딩을 코드로 확인할 수 있습니다.

## 다음 단계

* [핵심 요소 선택](https://docs.rome.builders/ko/core-concepts/choose-your-core.md) — 로직을 어느 쪽에 둘지 선택하세요.
* [빠른 시작](https://docs.rome.builders/ko/getting-started-1/quickstart.md) — 첫 번째 컨트랙트를 배포하세요.
* [create-rome-app](https://github.com/rome-protocol/create-rome-app) — 이중 레인 앱의 기본 구조를 만드세요.
* 각 저장소의 `AGENTS.md` — 시작 지점별로 가장 적합한 예제로 안내합니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rome.builders/ko/getting-started-1/ecosystem.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
