> ## 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.

# Exemplos de programas Anchor

> Veja projetos vinculados que mostram como usar o litesvm para testar programas anchor

<Note>
Os READMEs de ambos os repositórios indicam executar `anchor build && cargo test`. Com
as versões atuais do Anchor e da Solana CLI, execute estas etapas:

```bash
anchor keys sync
anchor build --arch v0
# Somente no Anchor Escrow: os testes leem o IDL de idls/
cp target/idl/anchor_escrow.json idls/
cargo test
```

`anchor keys sync` define o ID do programa como o keypair de deploy local, que os
testes carregam, para que o programa não falhe com `DeclaredProgramIdMismatch`.
`--arch v0` compila um programa SBPF v0, que as versões do LiteSVM usadas por
esses repositórios conseguem carregar. Com o Anchor 1.1.x, use os comandos de build do
[Início rápido do anchor-litesvm](/developers/docs/tools/litesvm/additional-crates/testing-with-anchor-litesvm#installation)
em vez disso.
</Note>

## Exemplos do crate `litesvm`

<Columns cols={2}>
  <Card title="App CRUD Anchor" href="https://github.com/brimigs/anchor-crud-litesvm">
    Exemplo de manipulação de dados
  </Card>
</Columns>

## Exemplos do crate `litesvm-token`

<Columns cols={2}>
  <Card title="App Escrow Anchor" href="https://github.com/brimigs/anchor-escrow-with-litesvm">
    Exemplo de manipulação de tokens
  </Card>
</Columns>
