Sol.College

Structure lesson (licence does not allow quoting code)

Chainbound

Chainbound game

Original
Cronusart/Chainbound
SuperStack fork
Blockchains/Chainbound @ eff2985
Stars
0
Last push (original)
2026-10-30
Languages
C#, TypeScript, PLpgSQL, ShaderLab, JavaScript, Rust
Detected stack
AnchorMetaplex
Categories
Gaming
Licence
none detected: code not quoted on Sol.College

Architecture

187 source files. By extension: .ts ×180, .py ×6, .rs ×1.

Top-level directorySource files
Supabase176
tools7
backend4

On-chain programs: backend/chainbound_game/programs/chainbound_game

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
create_profileCreateProfilebackend/chainbound_game/programs/chainbound_game/src/lib.rs:104
update_wins_lossesAuthorityProfileMutationbackend/chainbound_game/programs/chainbound_game/src/lib.rs:123
spend_ramAuthorityProfileMutationbackend/chainbound_game/programs/chainbound_game/src/lib.rs:154
grant_ramGrantRambackend/chainbound_game/programs/chainbound_game/src/lib.rs:169
create_move_vaultCreateMoveVaultbackend/chainbound_game/programs/chainbound_game/src/lib.rs:363
initialize_chainling_vaultCreateChainlingVaultbackend/chainbound_game/programs/chainbound_game/src/lib.rs:448
stamp_known_moveStampKnownMovebackend/chainbound_game/programs/chainbound_game/src/lib.rs:712
request_encounterRequestEncounterbackend/chainbound_game/programs/chainbound_game/src/lib.rs:1021
fulfill_encounterFulfillEncounterbackend/chainbound_game/programs/chainbound_game/src/lib.rs:1050
consume_encounter_randomnessConsumeEncounterRandomnessbackend/chainbound_game/programs/chainbound_game/src/lib.rs:1057

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
backend/chainbound_game/programs/chainbound_game/src/lib.rsPubkey, seeds, has_one, Program, invoke_signed, invoke
Supabase/supabase/functions/_shared/ownership_spine.tsPublicKey, findProgramAddressSync, Connection, Transaction, SystemProgram, getLatestBlockhash
Supabase/functions/_shared/ownership_spine.tsPublicKey, findProgramAddressSync, Connection, Transaction, SystemProgram, getLatestBlockhash
Supabase/functions/_shared/ram_shop_test.tsKeypair, PublicKey, Transaction, ComputeBudgetProgram, SystemProgram, transfer
Supabase/functions/_shared/ram_shop.tsPublicKey, ComputeBudgetProgram, Connection, SystemProgram, Transaction, findProgramAddressSync
Supabase/supabase/functions/_shared/ram_shop.tsPublicKey, Connection, SystemProgram, Transaction, findProgramAddressSync, getAssociatedTokenAddressSync
backend/chainbound_game/tests/chainbound_game.tsKeypair, AnchorProvider, SystemProgram, PublicKey, findProgramAddressSync, requestAirdrop
Supabase/functions/_shared/solana_pda.tsseeds, PublicKey, findProgramAddressSync
Supabase/functions/_shared/solana_pda_test.tsseeds, PublicKey, findProgramAddressSync, Keypair
backend/chainbound_game/migrations/deploy.tsAnchorProvider

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/chainbound/. 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
backend/chainbound_gamenpm run lint
backend/chainbound_gameanchor build
backend/chainbound_gameanchor test
backend/chainbound_gameanchor run test

What you could build from it