Sol.College

Structure lesson (licence does not allow quoting code)

DeParty

DeParty combines video conferencing with decentralized governance and token-gated access, powered by Solana and MagicBlock's Ephemeral Rollups technology for near-instant finality.

Original
kirarisk/DeParty
SuperStack fork
Blockchains/DeParty @ 8426dd9
Stars
4
Last push (original)
2025-05-28
Languages
TypeScript, Rust, CSS, SCSS, JavaScript
Detected stack
AnchorMetaplexNext.jsweb3.js
Categories
Governance & DAOs
Licence
none detected: code not quoted on Sol.College
Homepage
https://departy.vercel.app

Architecture

80 source files. By extension: .rs ×40, .tsx ×24, .ts ×14, .js ×2.

Top-level directorySource files
frontend35
de-party-ER26
de-party18
(root)1

On-chain programs: de-party-ER/programs/de-party, de-party/programs/de-party

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
setupSetupde-party/programs/de-party/src/lib.rs:16
initInitializede-party/programs/de-party/src/lib.rs:19
createCreatePartyde-party/programs/de-party/src/lib.rs:22
joinJoinde-party/programs/de-party/src/lib.rs:25
closeClosede-party/programs/de-party/src/lib.rs:28
start_pollStartPollde-party/programs/de-party/src/lib.rs:31
voteVotede-party/programs/de-party/src/lib.rs:34
end_partyEndPartyde-party/programs/de-party/src/lib.rs:37
setupSetupde-party-ER/programs/de-party/src/lib.rs:17
initInitializede-party-ER/programs/de-party/src/lib.rs:20
createCreatePartyde-party-ER/programs/de-party/src/lib.rs:23
joinJoinde-party-ER/programs/de-party/src/lib.rs:26
close_profileCloseProfilede-party-ER/programs/de-party/src/lib.rs:29
close_partyClosePartyde-party-ER/programs/de-party/src/lib.rs:32
start_pollStartPollde-party-ER/programs/de-party/src/lib.rs:35
voteVotede-party-ER/programs/de-party/src/lib.rs:38
delegate_partyDelegateInputde-party-ER/programs/de-party/src/lib.rs:41
close_configCloseConfigde-party-ER/programs/de-party/src/lib.rs:44
withdraw_treasuryWithdrawTreasuryde-party-ER/programs/de-party/src/lib.rs:47
delegate_pollDelegatePollde-party-ER/programs/de-party/src/lib.rs:50
undelegate_partyUndelegatePartyde-party-ER/programs/de-party/src/lib.rs:53
update_configUpdateConfigde-party-ER/programs/de-party/src/lib.rs:56
undelegate_pollUndelegatePollde-party-ER/programs/de-party/src/lib.rs:59
close_pollClosePollde-party-ER/programs/de-party/src/lib.rs:62

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
frontend/src/components/dashboard/departy-data-access.tsxPublicKey, Program, AnchorProvider, findProgramAddressSync, useWallet, SystemProgram
de-party/tests/de-party.tsPublicKey, findProgramAddressSync, Keypair, requestAirdrop, sendAndConfirmTransaction, Transaction
de-party-ER/tests/de-party.tsPublicKey, findProgramAddressSync, getLatestBlockhash, signTransaction, Program, Connection
frontend/src/components/account/account-data-access.tsxPublicKey, useConnection, VersionedTransaction, TransactionMessage, transfer, useWallet
frontend/src/components/dashboard/departy-ui.tsxPublicKey, useWallet, Pubkey
frontend/src/components/account/account-ui.tsxPublicKey, useWallet, Transaction, sendTransaction
frontend/src/components/livekit/PartyPolls.tsxPublicKey, useWallet
frontend/anchor/src/departy-exports.tsPublicKey, AnchorProvider, Program
frontend/src/components/livekit/LiveKitCallRoom.tsxPublicKey, useWallet
de-party/programs/de-party/src/contexts/create.rsseeds, Program, transfer, CpiContext
de-party-ER/programs/de-party/src/contexts/withdraw_treasury.rsseeds, has_one, Program, transfer, CpiContext
de-party-ER/programs/de-party/src/contexts/create.rsseeds, Program, transfer, CpiContext

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/departy/. 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
de-partynpm run lint
de-party-ERnpm run lint
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
de-partyanchor build
de-partyanchor test
de-partyanchor run test
de-party-ERanchor build
de-party-ERanchor test
de-party-ERanchor run test

What you could build from it