A minimal Anchor program that stores text memos in PDA accounts. Each store_memo call writes a new Memo account at ["memo", count], bumps the MemoCounter at ["counter"], and emits a MemoStored event via self-CPI (emit_cpi!).
- Rust 1.89.0 (pinned via
rust-toolchain.toml) - Solana CLI
- Anchor CLI 1.0.0
- Node.js and Yarn (
Anchor.tomlis wired for yarn)
anchor buildanchor testThis spins up a local validator, deploys the program, and runs the TypeScript test suite in tests/memos.ts.