Sol.College

Structure lesson (licence does not allow quoting code)

EscapeFromDelta

On-chain game

Original
Jsirpro/EscapeFromDelta
SuperStack fork
Blockchains/EscapeFromDelta @ b40e478
Stars
2
Last push (original)
2026-10-28
Languages
TypeScript, Rust, Shell, CSS, Python, JavaScript
Detected stack
@solana/kitAnchorNext.jsweb3.js
Categories
Gaming
Licence
none detected: code not quoted on Sol.College
Homepage
https://escape-from-delta-app.vercel.app

Architecture

131 source files. By extension: .ts ×75, .rs ×27, .tsx ×25, .js ×3, .py ×1.

Top-level directorySource files
app62
programs27
clients27
tests9
(root)5
scripts1

On-chain programs: programs/escape_from_delta

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_or_connect_playerCreateOrConnectPlayerprograms/escape_from_delta/src/lib.rs:33
move_areaMoveAreaprograms/escape_from_delta/src/lib.rs:96
extract_raidExtractRaidprograms/escape_from_delta/src/lib.rs:100
create_listingCreateListingprograms/escape_from_delta/src/lib.rs:110
purchase_listingPurchaseListingprograms/escape_from_delta/src/lib.rs:114
cancel_listingCancelListingprograms/escape_from_delta/src/lib.rs:126
initialize_admin_profileInitializeAdminProfileprograms/escape_from_delta/src/lib.rs:130
handlerPurchaseListingprograms/escape_from_delta/src/instructions/purchase_listing.rs:46
handlerMoveAreaprograms/escape_from_delta/src/instructions/move_area.rs:41
handlerInitializeAdminProfileprograms/escape_from_delta/src/instructions/admin_profile.rs:23
handlerCreateOrConnectPlayerprograms/escape_from_delta/src/instructions/create_or_connect_player.rs:24
handlerConvertSolToEdcoinsprograms/escape_from_delta/src/instructions/convert_sol_to_edcoins.rs:29
handlerCancelListingprograms/escape_from_delta/src/instructions/cancel_listing.rs:38
handlerExtractRaidprograms/escape_from_delta/src/instructions/extract_raid.rs:39
handlerCreateListingprograms/escape_from_delta/src/instructions/create_listing.rs:40
handlerPurchaseLoadoutPointsprograms/escape_from_delta/src/instructions/purchase_loadout_points.rs:31

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
app/src/lib/local-demo.tsPublicKey, SystemProgram, findProgramAddressSync, AnchorProvider, Transaction, Connection
app/src/wallet/provider.tsxPublicKey, Connection, Transaction, signTransaction, findProgramAddressSync, getAccountInfo
clients/scripts/run-local-demo.tsPublicKey, SystemProgram, findProgramAddressSync, Program, AnchorProvider, Connection
programs/escape_from_delta/src/state/mod.rsPubkey
clients/src/queries/localnet.tsgetProgramAccounts, getAccountInfo, seeds, PublicKey
app/src/lib/onchain.tsPublicKey, Connection, getAccountInfo, findProgramAddressSync
programs/escape_from_delta/src/instructions/warehouse_asset_helpers.rsPubkey, AccountInfo, invoke_signed
programs/escape_from_delta/src/instructions/initialize_game.rsPubkey, seeds, Program
programs/escape_from_delta/src/instructions/start_raid.rsPubkey, seeds, Program
programs/escape_from_delta/src/instructions/convert_sol_to_edcoins.rsseeds, AccountInfo, Program, transfer, invoke
programs/escape_from_delta/src/lib.rsPubkey
programs/escape_from_delta/src/state/account_map.rsPubkey, seeds

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/escapefromdelta/. 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 dev
.npm run lint
appnpm run dev
appnpm run test
clientsnpm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it