Sol.College

Structure lesson (licence does not allow quoting code)

DORG

DECENSAT.org iMPACT thru SOCIALfi

Original
DEVBUILDSTACK/DORG
SuperStack fork
Blockchains/DORG @ b5d96c3
Stars
1
Last push (original)
2025-11-21
Languages
TypeScript, Solidity, Rust, CSS, JavaScript, Python
Detected stack
AnchorNext.js
Categories
Consumer & Social
Licence
none detected: code not quoted on Sol.College
Homepage
https://f4a.vercel.app

Architecture

260 source files. By extension: .tsx ×167, .ts ×55, .sol ×23, .rs ×14, .py ×1.

Top-level directorySource files
frontend220
vaults39
backend1

On-chain programs: vaults/sol_vault/programs/datdev

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
initializeInitializevaults/sol_vault/programs/datdev/src/lib.rs:16
add_tokenAddTokenvaults/sol_vault/programs/datdev/src/lib.rs:20
update_weightsUpdateWeightsvaults/sol_vault/programs/datdev/src/lib.rs:24
depositDepositvaults/sol_vault/programs/datdev/src/lib.rs:28
withdrawWithdrawSimplevaults/sol_vault/programs/datdev/src/lib.rs:32
rebalanceRebalancevaults/sol_vault/programs/datdev/src/lib.rs:36
admin_pauseAdminOnlyvaults/sol_vault/programs/datdev/src/lib.rs:40
admin_unpauseAdminOnlyvaults/sol_vault/programs/datdev/src/lib.rs:44
pauseAdminOnlyvaults/sol_vault/programs/datdev/src/instructions/admin.rs:21
unpauseAdminOnlyvaults/sol_vault/programs/datdev/src/instructions/admin.rs:34

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
vaults/sol_vault/tests/datdev.tsPublicKey, findProgramAddressSync, SystemProgram, getAssociatedTokenAddress, Keypair, Program
vaults/sol_vault/programs/datdev/src/instructions/deposit.rsProgram, init_if_needed, seeds, CpiContext, transfer
vaults/sol_vault/programs/datdev/src/instructions/withdraw.rsseeds, Program, transfer, CpiContext
vaults/sol_vault/programs/datdev/src/instructions/add_token.rsProgram, has_one, seeds, init_if_needed
vaults/sol_vault/programs/datdev/src/state/vault.rsPubkey
vaults/sol_vault/programs/datdev/src/state/token.rsPubkey
vaults/sol_vault/programs/datdev/src/instructions/initialize.rsseeds, Program, Pubkey
vaults/sol_vault/programs/datdev/src/instructions/rebalance.rshas_one, seeds, Program
vaults/sol_vault/programs/datdev/src/instructions/update_weights.rsPubkey, has_one, Program
vaults/sol_vault/programs/datdev/src/instructions/admin.rsseeds, Program
vaults/sol_vault/programs/datdev/src/lib.rsPubkey
vaults/sol_vault/programs/datdev/src/state/user.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/dorg/. 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
vaults/sol_vaultnpm run lint
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
vaults/sol_vaultanchor build
vaults/sol_vaultanchor test
vaults/sol_vaultanchor run test

What you could build from it