Sol.College

Structure lesson (licence does not allow quoting code)

CTF-Encode-Club

Original
SebastianStankiewicz/CTF-Encode-Club
SuperStack fork
Blockchains/CTF-Encode-Club @ 64a789a
Stars
0
Last push (original)
2025-10-26
Languages
TypeScript, JavaScript, Rust, CSS
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

44 source files. By extension: .tsx ×23, .ts ×15, .js ×4, .rs ×1, .jsx ×1.

Top-level directorySource files
OLI-NEW-FRONTEND-3pm23
CTFV118
ctf-anchor3

On-chain programs: ctf-anchor/programs/ctf-anchor

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
OLI-NEW-FRONTEND-3pm/app/challenges/[slug]/page.tsxSystemProgram, useWallet, useConnection, AnchorProvider, Program, PublicKey
ctf-anchor/tests/ctf-anchor.tsSystemProgram, getBalance, Program, PublicKey, Transaction, AnchorProvider
OLI-NEW-FRONTEND-3pm/app/create/page.tsxuseWallet, AnchorProvider, Program, PublicKey, Connection, findProgramAddressSync
CTFV1/app/page.tsxuseWallet, AnchorProvider, Program, PublicKey, Connection, findProgramAddressSync
CTFV1/app/create/page.tsxuseWallet, AnchorProvider, Program, PublicKey, Connection, findProgramAddressSync
OLI-NEW-FRONTEND-3pm/app/components/Nav-Bar.tsxWalletMultiButton, Connection, useWallet, useConnection
ctf-anchor/programs/ctf-anchor/src/lib.rstransfer, seeds, Program, invoke, AccountInfo, Pubkey
OLI-NEW-FRONTEND-3pm/app/utils/solana.tsProgram, AnchorProvider, PublicKey
CTFV1/app/utils/solana.tsProgram, AnchorProvider, PublicKey
CTFV1/app/components/Nav-Bar.jsxWalletMultiButton, useWallet
OLI-NEW-FRONTEND-3pm/app/leaderboard/page.tsxuseWallet, WalletMultiButton
OLI-NEW-FRONTEND-3pm/app/profile/[slug]/page.tsxuseWallet

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/ctf-encode-club/. 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
ctf-anchornpm run lint
OLI-NEW-FRONTEND-3pmnpm run dev
OLI-NEW-FRONTEND-3pmnpm run start
OLI-NEW-FRONTEND-3pmnpm run build
OLI-NEW-FRONTEND-3pmnpm run lint
CTFV1npm run dev
CTFV1npm run start
CTFV1npm run build
CTFV1npm run lint
ctf-anchoranchor build
ctf-anchoranchor test
ctf-anchoranchor run test

What you could build from it