> 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/ar/almfahym-alasasyh/choose-your-core.md).

# اختر نواتك

يمكن لتطبيق ثنائي المسار أن يحتفظ بمنطقه الأساسي في جانب Solidity أو في جانب Solana الأصلي. إنه قرار تقديري — قيّم ما يهم تطبيقك.

معظم تطبيقات Rome تعمل في مسارين: حالة مشتركة واحدة، يصل إليها كلٌّ من مستخدمي MetaMask (EVM) وPhantom (Solana). يمكنك بناء واحد منها في شكلين متقابلين، يختلفان في **الجهة التي تحتوي على المنطق الأساسي.** لا توجد قاعدة صارمة لاختيار أيهما — إنه تقدير مرن بناءً على ما يهم في *تطبيقك* التطبيق: الشيفرة والأصول التي لديك بالفعل، وخبرة فريقك، ووضعك الأمني، والأدوات التي تفضلها، والأداء، وكيف سيستخدمه كل جمهور.

## (أ) نواة Solidity؛ مستخدمو Solana عبر مُرسِل اصطناعي

منطقك هو عقد Solidity. يتم تنفيذ توقيع مستخدم Phantom على Solana كمعاملة EVM من هويته المشتقة من Rome (الـ `external_auth` PDA) — ولا يحتاجون أبدًا إلى مفتاح EVM. وغالبًا ما يكون مناسبًا عندما يكون لديك بالفعل عقد Solidity (خصوصًا إذا كان مُحصَّنًا أو مُراجعًا)، أو عندما تريد أدوات EVM القياسية (Hardhat / Foundry / viem)، أو عندما يكون المنطق مباشرًا.

*اقرأ:* [aerarium](https://github.com/rome-protocol/aerarium) — سوق إقراض Compound v3 (نواة Solidity) يشاركه مستخدمو EVM وSolana.

## (ب) نواة برنامج Solana أصلي؛ مستخدمو EVM عبر موجه CPI رفيع

منطقك هو برنامج Solana أصلي؛ يتيح موجه Solidity رفيع لمستخدمي EVM الوصول إليه عبر CPI. غالبًا ما يكون مناسبًا عندما يكون لديك بالفعل برنامج Solana، أو عندما يكون تشغيل النواة بشكل أصلي مهمًا لما تبنيه.

*اقرأ:* [rome-dex](https://github.com/rome-protocol/rome-dex) — AMM أصلي (نواة Solana) مع موجه EVM، بحيث يتاجر المساران معًا في مجمع واحد.

## على سبيل المثال: الأداء

الأداء هو أحد الأمور التي *قد* ترجّح الاختيار — اعتبره مثالًا. يمكن أن يكون التنفيذ الأصلي على Solana أقل تكلفة بكثير من مفسر EVM في المنطق الثقيل: إحدى عمليات المبادلة التي قسناها كانت أرخص بنحو 6× عند تنفيذها أصليًا. إذا كان تطبيقك يحتوي على مسار ساخن كثيف الحوسبة، فقد يكون هذا النوع من الفارق مهمًا بالنسبة لك؛ وإذا لم يكن كذلك، فغالبًا لن يحسم القرار. تعامل معه كعامل واحد من بين عوامل كثيرة، لا كقاعدة.

## أيًّا كان ما تختاره

أبقِ النواة **محايدة تجاه الجهة المخوَّلة** — تصرّف بناءً على أي جهة مخوَّلة توقّع، بحيث يمكن أن يكون المستدعي مفتاحًا عامًا على Solana *أو* ‏PDA لمستخدم EVM — اجعل مجموعة الحسابات خفيفة ومناسبة لـ ALT حتى يظل مسار EVM منخفض التكلفة، و **اختبر المسارين كليهما.**

## ما التالي

* [استدعِ Solana من EVM](/ar/adlh-almtw-ryn/call-solana-from-evm.md) — آليات CPI الخاصة بالشكل (ب)، وأي استدعاء من Solidity إلى Solana.
* [ميزانية الحوسبة](/ar/almfahym-alasasyh/compute-budget.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/ar/almfahym-alasasyh/choose-your-core.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.
