Prerequisites
1
Install toolchain
You need Rust, the Solana CLI, and Anchor.
2
Fund a devnet wallet
Clone and build
Run the devnet end-to-end
ThePrograms/ workspace ships a single script that:
- Initializes the perp market and orderbook
- Seeds the spot pool with USDC/wSOL
- Initializes the delta-vault, opens a hedged position
- Creates a split-engine market (PT + YT)
- Creates a yield-AMM pool and swaps YT for underlying
Launch the frontend
Regenerate clients after a program change
Every program has a Codama config that targets its IDL. After you edit Rust:app/generated/<program>/, instructions,
accounts, and PDA helpers, all typed against @solana/kit.
What next?
Architecture
See the CPI graph between the six programs.
Program reference
Instructions, accounts, and error codes per program.

