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 directory | Source files |
|---|---|
app | 20 |
sdk | 6 |
(root) | 4 |
programs | 4 |
scripts | 2 |
migrations | 1 |
tests | 1 |
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.
| Instruction | Accounts | Source |
|---|---|---|
initialize_tokens | InitializeTokens | programs/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.
| File | Solana APIs used |
|---|---|
sdk/src/escrow.ts | PublicKey, getAssociatedTokenAddress, SystemProgram, Program, Connection, Keypair |
programs/dappr/src/escrow.rs | Pubkey, Program, has_one, seeds, transfer, CpiContext |
sdk/src/types.ts | PublicKey |
sdk/test/escrow.test.ts | Keypair, PublicKey, AnchorProvider, Connection, createMint, getAssociatedTokenAddress |
sdk/src/index.ts | PublicKey, Program, Keypair, AnchorProvider, getAssociatedTokenAddress, Connection |
app/src/hooks/useEscrow.ts | PublicKey, Transaction, useConnection, useWallet, AnchorProvider, Connection |
scripts/init-escrow.ts | Keypair, Connection, PublicKey, Program, SystemProgram, requestAirdrop |
sdk/test/test-escrow.ts | Keypair, Connection, PublicKey, createMint, mintTo, requestAirdrop |
programs/dappr/src/tokens.rs | Program, Pubkey, seeds, CpiContext |
programs/dappr/src/constants.rs | Pubkey, seeds, Program |
scripts/deploy.ts | Keypair, Connection, PublicKey, SystemProgram, Transaction, sendAndConfirmTransaction |
app/src/utils/escrow.ts | PublicKey |
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.
| Directory | Command | Runs |
|---|---|---|
. | npm run start | |
. | npm run build | |
. | npm run test | |
. | npm run lint | |
app | npm run dev | |
app | npm run build | |
app | npm run lint | |
sdk | npm run build | |
sdk | npm run test | |
sdk | npm run lint | |
scripts | npm run build | |
scripts | npm run deploy | |
. | anchor build | |
. | anchor test | |
. | anchor run test | |
. | make help |
What you could build from it
- Fork the SuperStack copy and extend it within the AI & Agents gaps listed on the idea page.
- Learn the pattern first: Building and sending transactions from a client