Sol.College

Structure lesson (licence does not allow quoting code)

GenoSync

Original
msourial/GenoSync
SuperStack fork
Blockchains/GenoSync @ 56e89fb
Stars
0
Last push (original)
2026-05-20
Languages
TypeScript, Rust, JavaScript, Shell, CSS, HTML
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

252 source files. By extension: .tsx ×165, .ts ×79, .rs ×4, .js ×4.

Top-level directorySource files
artifacts218
lib31
openrouter-client2
scripts1

On-chain programs: artifacts/solana/programs/challenges/programs/challenges, artifacts/solana/programs/cnft/programs/cnft, artifacts/solana/programs/governance/programs/governance, artifacts/solana/programs/staking/programs/staking

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
accept_challengeAcceptChallengeartifacts/solana/programs/challenges/programs/challenges/src/lib.rs:42
submit_scoreSubmitScoreartifacts/solana/programs/challenges/programs/challenges/src/lib.rs:65
settle_challengeSettleChallengeartifacts/solana/programs/challenges/programs/challenges/src/lib.rs:90
cancel_challengeCancelChallengeartifacts/solana/programs/challenges/programs/challenges/src/lib.rs:195
unstakeUnstakeartifacts/solana/programs/staking/programs/staking/src/lib.rs:83
execute_proposalExecuteProposalartifacts/solana/programs/governance/programs/governance/src/lib.rs:149
withdraw_voteWithdrawVoteartifacts/solana/programs/governance/programs/governance/src/lib.rs:183

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
artifacts/solana/sdk/src/staking.tsPublicKey, SystemProgram, getAssociatedTokenAddress, Program, findProgramAddressSync
artifacts/solana/programs/challenges/programs/challenges/src/lib.rsCpiContext, transfer, seeds, Program, Pubkey
artifacts/solana/programs/governance/programs/governance/src/lib.rsseeds, Program, Pubkey, CpiContext, transfer
artifacts/solana/app/src/solana/MobileWalletAdapter.tsxTransaction, VersionedTransaction, PublicKey, signTransaction, Connection
artifacts/solana/programs/staking/programs/staking/src/lib.rsseeds, Program, Pubkey, CpiContext, transfer
artifacts/web/src/lib/solana-aura.tsPublicKey, Connection, Transaction, getAssociatedTokenAddressSync, getAccountInfo, getLatestBlockhash
artifacts/solana/programs/cnft/programs/cnft/src/lib.rsAccountInfo, Pubkey, Program, seeds
artifacts/solana/sdk/src/shadowDrive.tsPublicKey, Connection, Transaction, Keypair
artifacts/solana/app/src/hooks/useStakeInfo.tsPublicKey, useConnection, findProgramAddressSync, getAccountInfo
artifacts/solana/app/src/hooks/useAuraBalance.tsPublicKey, getAssociatedTokenAddress, useConnection
artifacts/web/src/pages/LockScreen.tsxuseWallet, WalletMultiButton, Connection
artifacts/solana/app/src/solana/ConnectionProvider.tsxConnection, useConnection

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/genosync/. 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 build
openrouter-clientnpm run dev
openrouter-clientnpm run build
openrouter-clientnpm run test
artifacts/webnpm run dev
artifacts/webnpm run build
artifacts/mockup-sandboxnpm run dev
artifacts/mockup-sandboxnpm run build
artifacts/solana/programs/cnftanchor build
artifacts/solana/programs/cnftanchor test
artifacts/solana/programs/cnftanchor run test
artifacts/solana/programs/challengesanchor build
artifacts/solana/programs/challengesanchor test
artifacts/solana/programs/challengesanchor run test
artifacts/solana/programs/stakinganchor build
artifacts/solana/programs/stakinganchor test

What you could build from it