Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Anchor Test Porting

This page tracks sequential parity ports from solana-foundation/anchor/tests into examples/, using Rust-first tests (mollusk/native unit tests) instead of TypeScript.

Port Status

  • anchor-cli-account (no direct parity yet; Anchor CLI account decoding over dynamic Vec/String data is not a direct pina/no-std match)
  • anchor-cli-idl (no direct parity yet; Anchor CLI IDL account lifecycle is Anchor-CLI-specific)
  • auction-house
  • bench
  • bpf-upgradeable-state
  • cashiers-check
  • cfo
  • chat
  • composite
  • cpi-returns
  • custom-coder
  • custom-discriminator
  • custom-program
  • declare-id -> examples/anchor_declare_id
  • declare-program -> examples/anchor_declare_program (adapted)
  • duplicate-mutable-accounts -> examples/anchor_duplicate_mutable_accounts (adapted)
  • errors -> examples/anchor_errors (adapted)
  • escrow -> examples/escrow_program (adapted with parity-focused tests)
  • events -> examples/anchor_events (adapted event schema parity)
  • floats -> examples/anchor_floats
  • idl
  • ido-pool
  • interface-account
  • lazy-account
  • lockup
  • misc
  • multiple-suites
  • multiple-suites-run-single
  • multisig
  • optional
  • pda-derivation
  • pyth
  • realloc -> examples/anchor_realloc (adapted)
  • relations-derivation
  • safety-checks
  • spl
  • swap
  • system-accounts -> examples/anchor_system_accounts (adapted)
  • sysvars -> examples/anchor_sysvars (adapted)
  • test-instruction-validation
  • tictactoe
  • typescript
  • validator-clone
  • zero-copy