Sol.College

Structure lesson (licence does not allow quoting code)

Gimme-Idea

Original
doandanh-zah/Gimme-Idea
SuperStack fork
Blockchains/Gimme-Idea @ c84ec45
Stars
3
Last push (original)
2026-09-09
Languages
TypeScript, PLpgSQL, CSS, Rust, JavaScript, HTML
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://www.gimmeidea.com

Architecture

169 source files. By extension: .tsx ×93, .ts ×75, .rs ×1.

Top-level directorySource files
apps140
packages20
tests6
(root)1
programs1
scripts1

On-chain programs: programs/bounty-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
set_pausedSetPausedprograms/bounty-escrow/src/lib.rs:85
fund_bountyFundBountyprograms/bounty-escrow/src/lib.rs:158
activate_bountyActivateBountyprograms/bounty-escrow/src/lib.rs:203
finalize_winnerFinalizeWinnerprograms/bounty-escrow/src/lib.rs:229
settle_bountySettleBountyprograms/bounty-escrow/src/lib.rs:258
cancel_before_activationCancelBeforeActivationprograms/bounty-escrow/src/lib.rs:336
request_resolutionRequestResolutionprograms/bounty-escrow/src/lib.rs:385
resolve_winnerResolveWinnerprograms/bounty-escrow/src/lib.rs:403
resolve_refundResolveRefundprograms/bounty-escrow/src/lib.rs:420

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
programs/bounty-escrow/src/lib.rsPubkey, seeds, Program, has_one, init_if_needed, CpiContext
tests/anchor/bounty-escrow.tsPublicKey, Keypair, SystemProgram, getAssociatedTokenAddressSync, findProgramAddressSync, mintTo
scripts/devnet-bounty-smoke.tsSystemProgram, Connection, Program, getAssociatedTokenAddressSync, Keypair, getAccountInfo
packages/solana/src/index.tsPublicKey, getAssociatedTokenAddressSync, Connection, findProgramAddressSync, getAccountInfo
apps/web/src/components/devnet-program-admin.tsxPublicKey, Transaction, Connection, getAccountInfo, Program, getLatestBlockhash
packages/solana/src/index.test.tsKeypair, PublicKey, getAssociatedTokenAddressSync, findProgramAddressSync
apps/web/src/lib/devnet-program-upgrade.tsPublicKey
apps/worker/src/runtime.tsPublicKey, Connection
apps/web/src/lib/devnet-program-upgrade.test.tsPublicKey, findProgramAddressSync
apps/api/src/wallet-link.tsPublicKey
apps/api/src/mock-auth.tsKeypair
apps/api/src/mock-auth.test.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/gimme-idea/. 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 dev
.npm run build
.npm run test
.npm run lint
apps/webnpm run dev
apps/webnpm run start
apps/webnpm run build
apps/webnpm run test
apps/webnpm run lint
apps/apinpm run dev
apps/apinpm run start
apps/apinpm run build
apps/apinpm run test
apps/apinpm run lint
apps/workernpm run dev
apps/workernpm run start

What you could build from it