Sol.College

Structure lesson (licence does not allow quoting code)

Code3

Original
cyl19970726/Code3
SuperStack fork
Blockchains/Code3 @ 425341e
Stars
9
Last push (original)
2025-10-22
Languages
TypeScript, JavaScript, Rust, Solidity, Move, Shell
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

118 source files. By extension: .ts ×81, .tsx ×18, .rs ×12, .js ×5, .move ×1, .sol ×1.

Top-level directorySource files
task397
workflows21

On-chain programs: task3/bounty-operator/solana/programs/bounty-manager

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
initializeInitializetask3/bounty-operator/solana/programs/bounty-manager/src/lib.rs:21
confirm_bountyConfirmBountytask3/bounty-operator/solana/programs/bounty-manager/src/lib.rs:49
claim_bountyClaimBountytask3/bounty-operator/solana/programs/bounty-manager/src/lib.rs:53
handlerInitializetask3/bounty-operator/solana/programs/bounty-manager/src/instructions/initialize.rs:22
handlerClaimBountytask3/bounty-operator/solana/programs/bounty-manager/src/instructions/claim_bounty.rs:39
handlerConfirmBountytask3/bounty-operator/solana/programs/bounty-manager/src/instructions/confirm_bounty.rs:27

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
task3/bounty-operator/solana/src/solana-bounty-operator.tsPublicKey, SystemProgram, Connection, Keypair, Program, findProgramAddressSync
task3/adapters/spec-kit-mcp-adapter/tests/e2e-solana-spec-kit.test.tsProgram, Connection, PublicKey, Keypair, SystemProgram, AnchorProvider
task3/frontend/dashboard/src/lib/solana-operator.tsPublicKey, Connection, SystemProgram, Keypair, Program, AnchorProvider
task3/bounty-operator/solana/scripts/check-balance.tsConnection, PublicKey, Keypair, AccountInfo, requestAirdrop, getBalance
task3/bounty-operator/solana/transfer-temp.jstransfer, Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction
task3/bounty-operator/solana/src/e2e-solana.test.tsKeypair, getBalance, Connection, Program
task3/bounty-operator/solana/programs/bounty-manager/src/state/mod.rsPubkey
task3/bounty-operator/solana/scripts/check-rpc.tsConnection, getLatestBlockhash
task3/bounty-operator/solana/programs/bounty-manager/src/instructions/create_bounty.rsseeds, AccountInfo, Program, transfer, CpiContext
task3/bounty-operator/solana/programs/bounty-manager/src/instructions/claim_bounty.rsseeds, AccountInfo, Program, transfer, CpiContext
task3/bounty-operator/solana/programs/bounty-manager/src/events.rsPubkey
task3/bounty-operator/solana/scripts/generate-keypair.tsKeypair

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/code3/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
workflows/spec-kit-mcpnpm run dev
workflows/spec-kit-mcpnpm run build
workflows/spec-kit-mcpnpm run test
task3/data-operatornpm run build
task3/bounty-operatornpm run build
task3/orchestrationnpm run build
task3/orchestrationnpm run test
task3/bounty-operator/solanaanchor build
task3/bounty-operator/solanaanchor test
task3/bounty-operator/solanaanchor run test

What you could build from it