Sol.College

Structure lesson (licence does not allow quoting code)

aero-kv

Original
chjgfg/aero-kv
SuperStack fork
Blockchains/aero-kv @ b629a69
Stars
0
Last push (original)
2026-05-07
Languages
Rust, TypeScript, Shell, JavaScript, CSS
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

75 source files. By extension: .rs ×59, .ts ×8, .tsx ×8.

Top-level directorySource files
backend36
contract25
frontend13
proxy1

On-chain programs: contract/programs/contract

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
init_storageInitStoragecontract/programs/contract/src/lib.rs:18
init_counterInitCountercontract/programs/contract/src/lib.rs:22
getGetcontract/programs/contract/src/lib.rs:26
deleteDeletecontract/programs/contract/src/lib.rs:30
scanScancontract/programs/contract/src/lib.rs:34
upsertUpsertcontract/programs/contract/src/lib.rs:38
pagePagecontract/programs/contract/src/lib.rs:42
init_authInitAuthcontract/programs/contract/src/lib.rs:49
set_adminSetAdmincontract/programs/contract/src/lib.rs:53
set_pauseSetPausecontract/programs/contract/src/lib.rs:57
init_feeInitFeecontract/programs/contract/src/lib.rs:64
set_adminSetAdmincontract/programs/contract/src/auth/set_admin.rs:21
init_authInitAuthcontract/programs/contract/src/auth/init_auth.rs:22
set_pauseSetPausecontract/programs/contract/src/auth/set_pause.rs:20
upsertUpsertcontract/programs/contract/src/storage/upsert.rs:49
getGetcontract/programs/contract/src/storage/get.rs:22
pagePagecontract/programs/contract/src/storage/page.rs:31
init_counterInitCountercontract/programs/contract/src/storage/counter.rs:20
deleteDeletecontract/programs/contract/src/storage/delete.rs:44
init_storageInitStoragecontract/programs/contract/src/storage/init_storage.rs:61
scanScancontract/programs/contract/src/storage/scan.rs:25
init_feeInitFeecontract/programs/contract/src/fee/init_fee.rs:23

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
contract/tests/storage.test.tsSystemProgram, PublicKey, findProgramAddressSync, getAccountInfo, Program, Keypair
backend/src/block_chain/kv.rsProgram, Pubkey
contract/programs/contract/src/storage/init_storage.rsinit_if_needed, seeds, Program
contract/programs/contract/src/storage/upsert.rsseeds, init_if_needed, Program
contract/programs/contract/src/utils.rsAccountInfo, CpiContext, transfer
contract/programs/contract/src/storage/delete.rsseeds, Program
contract/programs/contract/src/storage/page.rsseeds, Program
contract/tests/contract.tsProgram, AnchorProvider
contract/programs/contract/src/auth/init_auth.rsinit_if_needed, seeds, Program
contract/programs/contract/src/storage/counter.rsinit_if_needed, seeds, Program
contract/programs/contract/src/storage/structs.rsPubkey
contract/programs/contract/src/storage/scan.rsseeds, Program

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/aero-kv/. 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
contractnpm run lint
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
contractanchor build
contractanchor test
contractanchor run test

What you could build from it