Sol.College

Structure lesson (licence does not allow quoting code)

Dappr-Rust

Dappr Escrow Platform is a decentralized web application built on the Solana blockchain that enables users to securely create, manage, and participate in milestone-based escrow agreements using their Solana wallets. It features a modern, user-friendly interface, real-time status updates, and seamless wallet integration for trustless transactions.

Original
Lucky77-afk/Dappr-Rust
SuperStack fork
Blockchains/Dappr-Rust @ 0180a0e
Stars
0
Last push (original)
2026-09-01
Languages
TypeScript, Rust, JavaScript, CSS, Just, Makefile
Detected stack
Anchorweb3.js
Categories
AI & AgentsDeFi
Licence
GPL-3.0: code not quoted on Sol.College

Architecture

38 source files. By extension: .ts ×17, .tsx ×13, .js ×4, .rs ×4.

Top-level directorySource files
app20
sdk6
(root)4
programs4
scripts2
migrations1
tests1

On-chain programs: programs/dappr

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
initialize_tokensInitializeTokensprograms/dappr/src/tokens.rs:111

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
sdk/src/escrow.tsPublicKey, getAssociatedTokenAddress, SystemProgram, Program, Connection, Keypair
programs/dappr/src/escrow.rsPubkey, Program, has_one, seeds, transfer, CpiContext
sdk/src/types.tsPublicKey
sdk/test/escrow.test.tsKeypair, PublicKey, AnchorProvider, Connection, createMint, getAssociatedTokenAddress
sdk/src/index.tsPublicKey, Program, Keypair, AnchorProvider, getAssociatedTokenAddress, Connection
app/src/hooks/useEscrow.tsPublicKey, Transaction, useConnection, useWallet, AnchorProvider, Connection
scripts/init-escrow.tsKeypair, Connection, PublicKey, Program, SystemProgram, requestAirdrop
sdk/test/test-escrow.tsKeypair, Connection, PublicKey, createMint, mintTo, requestAirdrop
programs/dappr/src/tokens.rsProgram, Pubkey, seeds, CpiContext
programs/dappr/src/constants.rsPubkey, seeds, Program
scripts/deploy.tsKeypair, Connection, PublicKey, SystemProgram, Transaction, sendAndConfirmTransaction
app/src/utils/escrow.tsPublicKey

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/dappr-rust/. 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 start
.npm run build
.npm run test
.npm run lint
appnpm run dev
appnpm run build
appnpm run lint
sdknpm run build
sdknpm run test
sdknpm run lint
scriptsnpm run build
scriptsnpm run deploy
.anchor build
.anchor test
.anchor run test
.make help

What you could build from it