> ## 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 і Solana CLI натомість виконайте такі кроки:

```bash
anchor keys sync
anchor build --arch v0
# Лише для Anchor Escrow: його тести читають IDL з idls/
cp target/idl/anchor_escrow.json idls/
cargo test
```

`anchor keys sync` встановлює ідентифікатор програми відповідно до вашого локального deploy 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>
