Decentralized learning platform on Solana. Learners enroll in courses, complete lessons to earn soulbound XP tokens, receive Metaplex Core credential NFTs, and collect achievements. Course creators earn XP rewards. Platform governed by multisig authority.
superteam-academy/
├── onchain-academy/ ← Anchor program (deployed on devnet)
│ ├── programs/ ← Rust program source (16 instructions)
│ ├── tests/ ← 77 Rust + 62 TypeScript tests
│ └── scripts/ ← Devnet interaction scripts
├── app/ ← Next.js frontend (bounty)
├── sdk/ ← TypeScript SDK (future)
├── docs/ ← Documentation
│ ├── SPEC.md ← Program specification
│ ├── ARCHITECTURE.md ← Account maps, data flows, CU budgets
│ ├── INTEGRATION.md ← Frontend integration guide
│ └── DEPLOY-PROGRAM.md ← Deploy your own devnet instance
└── wallets/ ← Keypairs (gitignored)
git clone https://github.com/solanabr/superteam-academy.git
cd superteam-academy/onchain-academy
# Install dependencies
yarn install
# Build the program
anchor build
# Run tests (localnet)
anchor test
# Rust unit tests
cargo test --manifest-path tests/rust/Cargo.tomlThe program is live on devnet:
| Address | |
|---|---|
| Program | ACADBRCB3zGvo1KSCbkztS33ZNzeBv2d7bqGceti3ucf |
| XP Mint | xpXPUjkfk7t4AJF1tYUoyAYxzuM5DhinZWS1WjfjAu3 |
| Authority | ACAd3USj2sMV6drKcMY2wZtNkhVDHWpC4tfJe93hgqYn |
Frontend bounty applicants: deploy your own instance on devnet.
| Layer | Stack |
|---|---|
| Programs | Anchor 0.31+, Rust 1.82+ |
| XP Tokens | Token-2022 (NonTransferable, PermanentDelegate) |
| Credentials | Metaplex Core NFTs (soulbound via PermanentFreezeDelegate) |
| Testing | ts-mocha/Chai, Cargo test |
| Client | TypeScript, @coral-xyz/anchor, @solana/web3.js |
| Frontend | Next.js 14+, React, Tailwind CSS |
| RPC | Helius (DAS API for credential queries + XP leaderboard) |
| Content | Arweave (immutable course content) |
| Multisig | Squads (platform authority) |
- Program Specification — 16 instructions, 6 PDA types, 26 errors, 15 events
- Architecture — Account maps, data flows, CU budgets
- Frontend Integration — PDA derivation, instruction usage, events, error handling
- Deployment Guide — Deploy your own program instance on devnet
- Frontend Bounty — $4,800 USDC bounty for building the frontend
# Branch naming
git checkout -b <type>/<scope>-<description>-<DD-MM-YYYY>
# Examples:
# feat/enrollment-lessons-11-02-2026
# fix/cooldown-check-12-02-2026
# docs/integration-guide-17-02-2026
# Before merging
anchor build
cargo fmt
cargo clippy -- -W clippy::all
cargo test --manifest-path onchain-academy/tests/rust/Cargo.toml
anchor test