Sol.College

Structure lesson (licence does not allow quoting code)

BIT10

Original
ZeyaRabani/BIT10
SuperStack fork
Blockchains/BIT10 @ 360c195
Stars
2
Last push (original)
2026-07-29
Languages
TypeScript, Rust, JavaScript, CSS, Shell
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
AGPL-3.0: code not quoted on Sol.College
Homepage
https://bit10.app

Architecture

363 source files. By extension: .rs ×179, .ts ×94, .tsx ×81, .js ×9.

Top-level directorySource files
icp_canisters178
web_app135
server48
sol_smart_contracts2

On-chain programs: sol_smart_contracts/buy_bit10/programs/sol_dev

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
swapSwapsol_smart_contracts/buy_bit10/programs/sol_dev/src/lib.rs:98

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
web_app/src/chains/solana/solana.transactions.tsPublicKey, Transaction, transfer, ComputeBudgetProgram, signTransaction, SystemProgram
server/src/institutions/coldstar/solana/bit10SolTransactions.tsPublicKey, getAssociatedTokenAddressSync, SystemProgram, Transaction, findProgramAddressSync, getLatestBlockhash
web_app/src/components/buy/SellModule.tsxTransaction, useWallet, PublicKey, transfer
web_app/src/components/buy/BuyModule.tsxTransaction, useWallet, transfer
sol_smart_contracts/buy_bit10/programs/sol_dev/src/lib.rsPubkey, AccountInfo, seeds, Program, CpiContext, transfer
web_app/src/chains/solana/solana.balances.tsPublicKey, getAssociatedTokenAddress, getAssociatedTokenAddressSync, getBalance
web_app/src/chains/solana/solana.constants.tsPublicKey
web_app/src/components/portfolio/BalanceAndAllocation.tsxgetBalance, useWallet
server/src/institutions/coldstar/solana/constants.tsPublicKey
web_app/src/components/portfolio/RecentActivity.tsxuseWallet, Transaction
web_app/src/components/WalletBtn.tsxuseWallet, Connection
web_app/src/chains/solana/solana.client.tsConnection

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/bit10/. 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
web_appnpm run dev
web_appnpm run start
web_appnpm run build
web_appnpm run lint
sol_smart_contracts/buy_bit10npm run lint
servernpm run dev
servernpm run start
servernpm run build
sol_smart_contracts/buy_bit10anchor build
sol_smart_contracts/buy_bit10anchor test
sol_smart_contracts/buy_bit10anchor run test

What you could build from it