> 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/ru/spravochnik/contract-addresses.md).

# Адреса контрактов

Предкомпилированные адреса встроены в программу Rome EVM и идентичны в каждой сети. Развернутые по сетям контракты **являются каноническими в** [**реестре Rome**](https://github.com/rome-protocol/rome-registry/tree/main/chains) — в таблицах ниже перечислены основные контракты для справки; всегда сверяйте текущие адреса с реестром, который является единственным источником истины.

## Предкомпиляции (все сети)

Стандартные предкомпиляции Ethereum с семантикой, эквивалентной основной сети:

| Предкомпиляция | Адрес                                        |
| -------------- | -------------------------------------------- |
| ecrecover      | `0x0000000000000000000000000000000000000001` |
| SHA-256        | `0x0000000000000000000000000000000000000002` |
| RIPEMD-160     | `0x0000000000000000000000000000000000000003` |
| identity       | `0x0000000000000000000000000000000000000004` |
| modexp         | `0x0000000000000000000000000000000000000005` |
| BN254 add      | `0x0000000000000000000000000000000000000006` |
| BN254 mul      | `0x0000000000000000000000000000000000000007` |
| BN254 pairing  | `0x0000000000000000000000000000000000000008` |
| blake2f        | `0x0000000000000000000000000000000000000009` |

Непредкомпилированные контракты Rome вне EVM для доступа к Solana (интерфейсы в [`rome-solidity/contracts/interface.sol`](https://github.com/rome-protocol/rome-solidity/blob/master/contracts/interface.sol)):

| Предкомпиляция | Адрес                                        | Интерфейс                 | Назначение                                   |
| -------------- | -------------------------------------------- | ------------------------- | -------------------------------------------- |
| Система        | `0xFF00000000000000000000000000000000000007` | `ISystemProgram`          | Выведение PDA, преобразование в base58       |
| CpiProgram     | `0xFF00000000000000000000000000000000000008` | `ICrossProgramInvocation` | Произвольный CPI + чтение межсостояния       |
| HelperProgram  | `0xFF00000000000000000000000000000000000009` | `IHelperProgram`          | Создание ATA/PDA, переводы SPL, gas↔lamports |
| Withdraw       | `0x4200000000000000000000000000000000000016` | `IWithdraw`               | Вывод SOL/SPL из EVM в Solana                |
| SystemCached   | `0xFF00000000000000000000000000000000000004` | `ISystemCached`           | Кэшируемые вспомогательные функции System    |
| SplCached      | `0xFF00000000000000000000000000000000000005` | `ISplCached`              | Кэшируемые операции SPL                      |
| ASplCached     | `0xFF00000000000000000000000000000000000006` | `IAssociatedSplCached`    | Кэшируемые операции ATA                      |
| WithdrawCached | `0xFF0000000000000000000000000000000000000b` | `IWithdrawCached`         | Кэшируемый вывод                             |

Контракт использует один режим — устаревший (`SplCached` выключен) или кэшируемый — последовательно; эти два режима не смешиваются в рамках одного вызова.

## Идентификаторы программ

Программы rome-evm (программа Solana, которая запускает EVM) по сети Rome:

| Сеть                        | ID программы                                  |
| --------------------------- | --------------------------------------------- |
| devnet (размещает Hadrian)  | `RPTWwELXAY4KC9ZPHhaxp7Sq1hHtU3HNEgLbSegCcWf` |
| testnet (размещает Martius) | `RomeTaTNPJNBxtB3Wong9geVTtkEFJfUqgktQVq3iSX` |
| mainnet                     | `RomePq9X3iAoTr813HR7uRarafFDUJty6GdiEceYpzX` |

Известные программы Solana (такие же, как и в любой другой части Solana):

| Программа                   | ID                                             |
| --------------------------- | ---------------------------------------------- |
| SPL Token                   | `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA`  |
| SPL Token-2022              | `TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`  |
| Связанный токен             | `ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL` |
| Системная программа         | `11111111111111111111111111111111`             |
| Метаданные токенов Metaplex | `metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s`  |

## Развернутые контракты — Hadrian (devnet, 200010)

Основные контракты; полный набор (обертки SPL, Uniswap V2/V3/V4, Aave, оракульные фиды) в [реестром](https://github.com/rome-protocol/rome-registry/tree/main/chains/200010-hadrian).

| Контракт             | Адрес                                        |
| -------------------- | -------------------------------------------- |
| ERC20SPLFactory      | `0x86149124d74ebb3aa41a19641b700e88202b6285` |
| Multicall3           | `0xb7180d3c46632b582b99d9af3daae394fab9ae4c` |
| OracleAdapterFactory | `0xe68e7bc697010c73f1798b356f8ae2f0ba1319db` |
| BatchReader          | `0x306d670dff7f51ae33f263f5122bd2b18d98adc7` |
| RomeBridgeWithdraw   | `0x65fc94ba1045b65889f0b27d3d02e5bfbc2aee03` |
| MeteoraDAMMv1Factory | `0xd68b355f62643de0ec40243cba8f699f959ea3c4` |
| UniswapV3Factory     | `0xD9E323088561D40267767b52252595ea9cF1D5bD` |
| UniswapV4PoolManager | `0x8a281Be9B5173B2F52328437eAa0d272791707f7` |

## Развернутые контракты — Martius (testnet, 121214)

Основные контракты; полный набор в [реестром](https://github.com/rome-protocol/rome-registry/tree/main/chains/121214-martius).

| Контракт                      | Адрес                                        |
| ----------------------------- | -------------------------------------------- |
| ERC20SPLFactory               | `0xd7aeeedca26cdd4d34eb7c21110af2e590a8c58a` |
| Multicall3                    | `0x549afb8019a29ece3ba3b3d9c13208c441a309ea` |
| OracleAdapterFactory          | `0xbc06fe9603a02ff4aead265c253f5c6303ee5fbb` |
| BatchReader                   | `0xc5e6d932bfd2b4da27643848063905f46861fae8` |
| RomeBridgeWithdraw            | `0x60e2b02c454be429b0047a237a57d21a68afb560` |
| MeteoraDAMMv1Factory          | `0xdfe655f64325f93abef8b429387928ef16ba4c5d` |
| UniswapV3Factory              | `0x7fbe0271395c57c12761a3d6db80ef1c315c63f8` |
| SPL\_ERC20\_USDC (токен газа) | `0x2fffdfa11a9cef9210dc34e975649f09119c4efb` |

## Окружения

| Среда             | ID сети  | RPC                                | Статус        |
| ----------------- | -------- | ---------------------------------- | ------------- |
| Локально          | `1001`   | `localhost:9090`                   | Разработка    |
| Martius (testnet) | `121214` | `martius.testnet.romeprotocol.xyz` | Рабочая среда |
| Hadrian (devnet)  | `200010` | `hadrian.testnet.romeprotocol.xyz` | Рабочая среда |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rome.builders/ru/spravochnik/contract-addresses.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
