> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# أمثلة على برامج Anchor

> اطّلع على المشاريع المرتبطة التي توضح كيفية استخدام litesvm لاختبار برامج anchor

<Note>
يطلب ملفا README في كلا المستودعين تشغيل `anchor build && cargo test`. ومع إصدارات Anchor وسولانا CLI الحالية، نفّذ الخطوات التالية بدلًا من ذلك:

```bash
anchor keys sync
anchor build --arch v0
# Anchor Escrow only: its tests read the IDL from idls/
cp target/idl/anchor_escrow.json idls/
cargo test
```

يضبط الأمر `anchor keys sync` معرّف البرنامج ليطابق keypair النشر المحلي لديك، وهو ما تحمّله الاختبارات، وبذلك لا يفشل البرنامج بالخطأ `DeclaredProgramIdMismatch`.
أما الخيار `--arch v0` فيبني برنامج SBPF v0، وهو ما تستطيع إصدارات LiteSVM التي تستخدمها هذه المستودعات تحميله. ومع Anchor 1.1.x، استخدم بدلًا من ذلك أوامر البناء الواردة في
[البدء السريع لـ anchor-litesvm](/developers/docs/tools/litesvm/additional-crates/testing-with-anchor-litesvm#installation).
</Note>

## أمثلة على حزمة `litesvm`

<Columns cols={2}>
  <Card title="تطبيق Anchor CRUD" href="https://github.com/brimigs/anchor-crud-litesvm">
    مثال على التعامل مع البيانات
  </Card>
</Columns>

## أمثلة على حزمة `litesvm-token`

<Columns cols={2}>
  <Card title="تطبيق Anchor Escrow" href="https://github.com/brimigs/anchor-escrow-with-litesvm">
    مثال على التعامل مع الرموز المميزة
  </Card>
</Columns>
