Sol.College

Structure lesson (licence does not allow quoting code)

GAMESOL

Original
SrMessiSOL/GAMESOL
SuperStack fork
Blockchains/GAMESOL @ 212e55b
Stars
2
Last push (original)
2026-10-14
Languages
Rust, JavaScript
Detected stack
Anchor
Categories
Gaming
Licence
none detected: code not quoted on Sol.College

Architecture

17 source files. By extension: .rs ×17.

Top-level directorySource files
programs17

On-chain programs: programs/game-state, programs/market

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
initialize_marketInitializeMarketprograms/market/src/lib.rs:22
initialize_escrowInitializeEscrowprograms/market/src/lib.rs:26
cancel_offerCancelOfferprograms/market/src/lib.rs:46
accept_offerAcceptOfferprograms/market/src/lib.rs:50
cancel_planet_listingCancelPlanetListingprograms/market/src/lib.rs:61
cancel_planet_listingCancelPlanetListingprograms/market/src/instructions/planet_listings.rs:390
cancel_offerCancelOfferprograms/market/src/instructions/offers.rs:265
accept_offerAcceptOfferprograms/market/src/instructions/offers.rs:307
revoke_vaultManageVaultprograms/game-state/src/lib.rs:86
extend_vaultManageVaultprograms/game-state/src/lib.rs:90
sync_public_planet_viewSyncPublicPlanetViewprograms/game-state/src/lib.rs:130
initialize_quest_stateInitializeQuestStateprograms/game-state/src/lib.rs:134
initialize_quest_progressInitializeQuestProgressprograms/game-state/src/lib.rs:138
update_store_configUpdateStoreConfigprograms/game-state/src/lib.rs:155
daily_check_inQuestActionprograms/game-state/src/lib.rs:167
daily_check_in_vaultQuestActionVaultprograms/game-state/src/lib.rs:171
claim_questQuestActionprograms/game-state/src/lib.rs:175
join_allianceJoinAllianceprograms/game-state/src/lib.rs:196
request_join_allianceRequestJoinAllianceprograms/game-state/src/lib.rs:200
request_join_alliance_vaultRequestJoinAllianceVaultprograms/game-state/src/lib.rs:204
approve_join_requestApproveJoinRequestprograms/game-state/src/lib.rs:208
reject_join_requestRejectJoinRequestprograms/game-state/src/lib.rs:212
expel_alliance_memberExpelAllianceMemberprograms/game-state/src/lib.rs:216
transfer_alliance_leadershipTransferAllianceLeadershipprograms/game-state/src/lib.rs:220
leave_allianceLeaveAllianceprograms/game-state/src/lib.rs:224
initialize_alliance_treasuryInitializeAllianceTreasuryprograms/game-state/src/lib.rs:236
produceMutatePlanetStateprograms/game-state/src/lib.rs:281
produce_vaultMutatePlanetStateVaultprograms/game-state/src/lib.rs:285
start_buildMutatePlanetStateprograms/game-state/src/lib.rs:289
finish_buildMutatePlanetStateprograms/game-state/src/lib.rs:301

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
programs/game-state/src/contexts.rsseeds, has_one, Program, init_if_needed, Pubkey
programs/game-state/src/utils.rsPubkey, AccountInfo, Program, CpiContext, transfer, seeds
programs/game-state/src/state.rsPubkey
programs/market/src/instructions/planet_listings.rsseeds, Pubkey, AccountInfo, Program, transfer, CpiContext
programs/market/src/instructions/offers.rsseeds, Pubkey, Program, transfer, CpiContext, AccountInfo
programs/market/src/instructions/admin.rsseeds, Program, has_one, Pubkey
programs/market/src/state.rsPubkey
programs/game-state/src/constants.rsPubkey
programs/market/src/constants.rsPubkey
programs/game-state/src/lib.rsPubkey
programs/market/src/utils.rsPubkey
programs/market/src/lib.rsPubkey

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/gamesol/. 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
.npm run lint
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it