Sol.College

Structure lesson (licence does not allow quoting code)

Basalt

NSD from Codigo workshop.

Original
GetOutOfThatGarden/Basalt
SuperStack fork
Blockchains/Basalt @ 0e30ec5
Stars
0
Last push (original)
2026-05-11
Languages
TypeScript, CSS, Rust, JavaScript, Shell, HTML
Detected stack
AnchorMetaplexsolana-pyweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

160 source files. By extension: .tsx ×108, .ts ×34, .rs ×14, .js ×4.

Top-level directorySource files
basalt_cdp_mvp_program93
Basalt Vault Dashboard Design54
Basalt_FE_tech_demo9
app2
(root)1
scripts1

On-chain programs: basalt_cdp_mvp_program/programs/basalt_cdp_mvp

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
mint_usdrwMintUsdrwbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/lib.rs:41
redeem_collateralRedeemCollateralbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/lib.rs:46
liquidate_vaultLiquidateVaultbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/lib.rs:51
calculate_interestCalculateInterestbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/lib.rs:56
initialize_protocolInitializeProtocolbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/instructions/initialize_protocol.rs:37
redeem_collateralRedeemCollateralbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/instructions/redeem_collateral.rs:57
calculate_interestCalculateInterestbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/instructions/calculate_interest.rs:33
mint_usdrwMintUsdrwbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/instructions/mint_usdrw.rs:62
liquidate_vaultLiquidateVaultbasalt_cdp_mvp_program/programs/basalt_cdp_mvp/src/instructions/liquidate_vault.rs:64

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
basalt_cdp_mvp_program/tests/liquidation_tests.tsPublicKey, Keypair, SystemProgram, Transaction, findProgramAddressSync, Program
Basalt_FE_tech_demo/src/components/BasaltCDP.tsxTransaction, sendTransaction, PublicKey, Program, WalletMultiButton, getAssociatedTokenAddress
basalt_cdp_mvp_program/app/App.tsxTransaction, sendTransaction, getAssociatedTokenAddress, getAccountInfo, useWallet, useConnection
basalt_cdp_mvp_program/scripts/test-devnet.tsPublicKey, AnchorProvider, findProgramAddressSync, Keypair, Program, createMint
basalt_cdp_mvp_program/examples/create-pdas.tsPublicKey, seeds, findProgramAddressSync, Program
basalt_cdp_mvp_program/scripts/init-protocol.tsPublicKey, Program, Connection, Keypair, SystemProgram, AnchorProvider
basalt_cdp_mvp_program/app/solana/instructions.tsPublicKey, SystemProgram
basalt_cdp_mvp_program/tests/basalt_cdp_mvp_bankrun.tsPublicKey, Keypair, SystemProgram, Program, Transaction, transfer
Basalt_FE_tech_demo/app/solana/utils/accounts.tsPublicKey, Connection, getAccountInfo
basalt_cdp_mvp_program/app/solana/utils/accounts.tsPublicKey, Connection, getAccountInfo
basalt_cdp_mvp_program/scripts/create-usdrw-metadata-via-program.tsPublicKey, Connection, Keypair, SystemProgram, Program, AnchorProvider
basalt_cdp_mvp_program/scripts/create-usdrw-mint.tsPublicKey, Keypair, Connection, createMint, getBalance, Program

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/basalt/. 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
Basalt Vault Dashboard Designnpm run dev
Basalt Vault Dashboard Designnpm run build
Basalt_FE_tech_demonpm run dev
Basalt_FE_tech_demonpm run build
Basalt_FE_tech_demonpm run lint
basalt_cdp_mvp_programnpm run dev
basalt_cdp_mvp_programnpm run build
basalt_cdp_mvp_programanchor build
basalt_cdp_mvp_programanchor test
basalt_cdp_mvp_programanchor run test

What you could build from it