Skip to content
← All courses
Course · Solana Internals
ADVANCED675 min1500 XP

Solana Internals — a native perp program from the bytes up

Fifteen lessons that build a perp DEX as one native Solana program, without Anchor: accounts, PDAs, compute, Sealevel, CPI, an order book and matcher, Pyth, funding, liquidation, a pooled vault, builder codes, keepers and a critbit slab, with measured solinv exercises. Pinned to psyto/openhl-solana 2c5f9b1.

Source is the primary text

Build a perp exchange · Solana — one native program

How this course works

This is a hands-on course, not a feed of articles. The lessons build on each other in order, so what you learn from the source carries over to real code.

Start the course →15 lessons · native player
Difficulty
ADVANCED
Workload
675 minutes
Reward
1500 XP
Phase A — Solana foundations
  1. 01Chapter 1 — The Account Model from the Bytes Up45 min · 100 XP
  2. 02Chapter 2 — Writing a Native Program Without Anchor45 min · 100 XP
  3. 03Chapter 3 — PDAs from First Principles45 min · 100 XP
  4. 04Chapter 4 — Compute Budget and Heap Discipline45 min · 100 XP
  5. 05Chapter 5 — Sealevel Parallelism and Account Locks45 min · 100 XP
Phase B — HL primitives on Solana
  1. 01Chapter 6 — CPI Internals via Vault Deposits45 min · 100 XP
  2. 02Chapter 7 — On-Chain CLOB Data Structures45 min · 100 XP
  3. 03Chapter 8 — Matching Engine Under CU Pressure45 min · 100 XP
  4. 04Chapter 9 — Oracle Ingestion: Pyth Internals45 min · 100 XP
  5. 05Chapter 10 — Funding Rate Mechanics45 min · 100 XP
  6. 06Chapter 11 — Position Lifecycle and Liquidation Engine45 min · 100 XP
  7. 07Chapter 12 — Native Vault Program (Pooled Trading)45 min · 100 XP
  8. 08Chapter 13 — Builder Codes as a Protocol Primitive45 min · 100 XP
  9. 09Chapter 14 — Cranks, Keepers, and Off-Chain Glue45 min · 100 XP
  10. 10Chapter 15 — Slab Order Book45 min · 100 XP