Sol.College

Structure lesson (licence does not allow quoting code)

Solana-Stablecoin-Marketplace

Original
srinathhariharan/Solana-Stablecoin-Marketplace
SuperStack fork
Blockchains/Solana-Stablecoin-Marketplace @ 899d1fa
Stars
0
Last push (original)
2025-05-04
Languages
JavaScript, TypeScript, Rust, CSS
Detected stack
AnchorNext.jsweb3.js
Categories
DeFi
Licence
none detected: code not quoted on Sol.College
Homepage
https://sol-list.vercel.app

Architecture

52 source files. By extension: .jsx ×24, .js ×10, .rs ×9, .ts ×5, .tsx ×4.

Top-level directorySource files
sollist41
solana-escrow11

On-chain programs: solana-escrow/programs/solana-escrow

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
createCreatesolana-escrow/programs/solana-escrow/src/lib.rs:17
fundFundsolana-escrow/programs/solana-escrow/src/lib.rs:26
mark_shippedMarkShippedsolana-escrow/programs/solana-escrow/src/lib.rs:33
buyer_confirmBuyerConfirmsolana-escrow/programs/solana-escrow/src/lib.rs:39
withdrawWithdrawsolana-escrow/programs/solana-escrow/src/lib.rs:45

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
sollist/src/lib/client.tsPublicKey, Program, getAssociatedTokenAddressSync, findProgramAddressSync, SystemProgram
solana-escrow/tests/solana-escrow.tsSystemProgram, Keypair, getAssociatedTokenAddressSync, Program, PublicKey, Transaction
sollist/src/app/escrow/page.tsxPublicKey, Transaction, signTransaction, useWallet, SystemProgram, getAssociatedTokenAddress
sollist/src/app/create-escrow/page.tsxPublicKey, useWallet, Transaction, SystemProgram, getAssociatedTokenAddress, signTransaction
sollist/src/lib/setup.tsPublicKey, Connection, Program, findProgramAddressSync
solana-escrow/programs/solana-escrow/src/contexts/withdraw.rshas_one, Program, CpiContext, seeds, init_if_needed, transfer
solana-escrow/programs/solana-escrow/src/contexts/create.rsPubkey, seeds, Program
sollist/src/lib/useEscrowProgram.tsxProgram, useConnection, AnchorProvider
solana-escrow/programs/solana-escrow/src/contexts/fund.rsProgram, has_one, seeds, transfer, CpiContext
sollist/src/components/CreateEscrowForm.tsxuseWallet, PublicKey, Program, Transaction
sollist/src/components/Navbar.jsxWalletMultiButton, useWallet
solana-escrow/programs/solana-escrow/src/state.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/solana-stablecoin-marketplace/. 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
sollistnpm run dev
sollistnpm run start
sollistnpm run build
sollistnpm run lint
solana-escrownpm run lint
solana-escrowanchor build
solana-escrowanchor test
solana-escrowanchor run test

What you could build from it