> 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/zh/rome-xue-yuan/academy.md).

# Rome 学院

Rome 将 EVM 和 Solana 融为一个市场。本课程共 13 课：从编写第一个 Rome 合约，到构建一个同时支持 EVM 和 Solana 钱包的应用，再到创建自己的链。

Rome 将 EVM 和 Solana 融为一个市场。Rome Academy 教你如何在 Rome 上构建应用，从单个合约到自己的链。你将从在测试网上部署合约开始，构建一个 MetaMask 用户和 Solana 钱包用户都能使用的应用，将其部署到主网上，最后了解如何运行自己的 Rome 链。

## 适合哪些人

你熟悉 Solidity，或熟悉 Solana，但从未在 Rome 上构建过应用。你不需要两者都熟悉。课程会在需要时讲解你尚不熟悉的部分。

## 你将构建什么

你将部署合约、添加 Solana 集成，并为两种钱包构建一个金库。

* **一个合约。** 你将在 Hadrian 公共测试网上部署 Solidity 合约，并在区块浏览器中查看它。
* **一个可与 Solana 协同工作的合约。** 它可以从 Solidity 调用 Solana 程序并处理 SPL 代币。你还将向 EVM 用户开放一个 Solana 程序。
* **适用于两种钱包的应用。** 一个已部署的合约同时为 EVM 用户和 Solana 用户提供服务：前者使用 MetaMask 密钥签名，后者使用 Solana 钱包密钥签名，无需 EVM 密钥。双方都能访问同一个合约、同一份状态和同一笔资金。
* **一个已上线的应用。** 你将通过 Rome Bridge 从其他链引入用户和资金，并在主网 Rubicon 上运行该应用。
* **一条属于你自己的链。** 第 12 课将介绍运行自己的 Rome 链需要做些什么，包括设置自己的链 ID 和 Gas 代币。

[你可以构建什么](https://docs.rome.builders/zh/rome-xue-yuan/02-what-you-can-build.md) 如果你想先了解应用场景，再学习实现机制，可以先阅读这一课。 [一个市场](https://docs.rome.builders/zh/kuai-su-ru-men/one-market.md) 用一页内容介绍课程背后的理念。

## 课程内容

每节课都会链接到包含命令和代码的指南。课程会告诉你原因，以及操作顺序。

### 第一部分：基础知识

了解 Rome 的运作方式，并在 Hadrian 上部署你的第一个合约。

| 课程                                                                                                     | 学习内容                        | 预计时长  |
| ------------------------------------------------------------------------------------------------------ | --------------------------- | ----- |
| [1. 在 Rome 上构建什么](https://docs.rome.builders/zh/rome-xue-yuan/01-what-you-are-building.md)             | 了解 Rome 是什么，以及双通道应用是什么样的    | 20 分钟 |
| [2. 你可以构建什么](https://docs.rome.builders/zh/rome-xue-yuan/02-what-you-can-build.md)                     | 了解重要的应用场景，并选择你想构建的应用        | 20 分钟 |
| [3. 在 Hadrian 上部署你的第一个合约](https://docs.rome.builders/zh/rome-xue-yuan/03-first-contract-on-hadrian.md) | 为钱包注资、部署合约，并在区块浏览器中找到它      | 45 分钟 |
| [4. Rome 如何运行你的代码](https://docs.rome.builders/zh/rome-xue-yuan/04-how-rome-runs-your-code.md)          | 跟踪一笔交易从你的钱包发往 Solana，再返回的过程 | 30 分钟 |

### 第二部分：连接两个世界

调用 Solana 程序、处理 SPL 代币，并构建适用于 EVM 和 Solana 钱包的应用。每节课都附有完整示例。

| 课程                                                                                                                   | 学习内容                              | 预计时长  |
| -------------------------------------------------------------------------------------------------------------------- | --------------------------------- | ----- |
| [5. 从 Solidity 调用 Solana](https://docs.rome.builders/zh/rome-xue-yuan/05-call-solana-from-solidity.md)               | 使用 CPI 和 Helper 预编译合约调用 Solana 程序 | 60 分钟 |
| [6. 两端的代币](https://docs.rome.builders/zh/rome-xue-yuan/06-tokens-on-both-sides.md)                                   | 通过 ERC-20 封装合约处理 SPL 代币           | 45 分钟 |
| [7. 向 Solana 钱包开放你的 EVM 应用](https://docs.rome.builders/zh/rome-xue-yuan/07-open-to-solana-wallets.md)                | 让 Solana 钱包调用你的合约                 | 60 分钟 |
| [8. 向 EVM 用户开放你的 Solana 程序](https://docs.rome.builders/zh/rome-xue-yuan/08-open-your-solana-program-to-evm-users.md) | 让 EVM 钱包使用 Solana 程序              | 60 分钟 |
| [9. 构建双通道应用](https://docs.rome.builders/zh/rome-xue-yuan/09-build-a-dual-lane-app.md)                                | 构建一个同时服务于两种钱包的应用                  | 90 分钟 |

### 第 3 部分：触达用户并上线

通过实践课程，让应用触达用户并部署到主网。

| 课程                                                                                     | 学习内容                | 预计时长  |
| -------------------------------------------------------------------------------------- | ------------------- | ----- |
| [10. 从其他链引入用户和资金](https://docs.rome.builders/zh/rome-xue-yuan/10-from-other-chains.md) | 通过桥接转入资金，并触达其他链上的用户 | 45 分钟 |
| [11. 部署到 Rubicon](https://docs.rome.builders/zh/rome-xue-yuan/11-ship-to-rubicon.md)   | 在主网上运行同一个应用         | 60 分钟 |

### 第 4 部分：迈出更大的一步

了解自建一条链需要做些什么，以及何时适合这样做。

| 课程                                                                                    | 学习内容                      | 预计时长  |
| ------------------------------------------------------------------------------------- | ------------------------- | ----- |
| [12. 启动自己的链](https://docs.rome.builders/zh/rome-xue-yuan/12-launch-your-own-chain.md) | 了解什么是自己的 Rome 链，以及创建它需要什么 | 30 分钟 |

### 第 5 部分：基于桥接构建

基于 Solgate 构建——它是连接 Solana 与其他链、用于传输代币和消息的通道。请在完成第 10 课后阅读。

| 课程                                                                                      | 学习内容                                        | 预计时长  |
| --------------------------------------------------------------------------------------- | ------------------------------------------- | ----- |
| [13. 基于 Solgate 构建](https://docs.rome.builders/zh/rome-xue-yuan/13-build-on-solgate.md) | 在 Solana 与 Ethereum 或 AggLayer 链之间转移代币并发送消息 | 60 分钟 |

课程时长按读者依次完成指南估算。请预留资金准备和等待桥接转账的时间。

## 开始之前需要准备什么

* Node.js。 [快速入门](https://docs.rome.builders/zh/kuai-su-ru-men/quickstart.md) 中列出了所需版本。
* MetaMask。
* 从第 7 课开始，需要一个能够签署 Solana v1 交易的 Solana 钱包。 [让 Solana 用户访问你的合约](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/open-to-solana-users.md) 中说明了目前可用的钱包。
* 少量 Hadrian 测试 USDC，用于支付 Gas 费。第 3 课介绍如何获取。 [水龙头](https://docs.rome.builders/zh/zi-yuan/faucets.md) 页面列出了所有来源。
* 代码编辑器和终端。

主网 Gas 费需要使用真实的 USDC 支付。第 1 至第 10 课仅使用测试网。第 11 课是你第一次花费真实资金。

## 如何寻求帮助

* [Discord](https://discord.gg/vZ9rnCdNSB) 用于开发者支持和社区讨论。
* [Telegram](https://t.me/+tdnr-M6kcngxYzhk) 用于公告和更新。
* [GitHub](https://github.com/rome-protocol) 用于查看源代码和提交问题。如果发现程序错误，或文档页面内容有误、表述不清，请提交问题。
* [社区](https://docs.rome.builders/zh/zi-yuan/community.md) 页面列出了所有频道。

在 [Arena](https://arena.mainnet.romeprotocol.xyz/apps/new).

从 [第 1 课](https://docs.rome.builders/zh/rome-xue-yuan/01-what-you-are-building.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/zh/rome-xue-yuan/academy.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.
