Sol.College

Structure lesson (licence does not allow quoting code)

dropin

base Solana v2.0

Original
Dropineth/dropin
SuperStack fork
Blockchains/dropin @ fba35ec
Stars
1
Last push (original)
2026-10-30
Languages
TypeScript, PLpgSQL, JavaScript, CSS, Python, Shell
Detected stack
AnchorNext.jsSolana Actionsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

595 source files. By extension: .ts ×457, .tsx ×125, .rs ×9, .py ×4.

Top-level directorySource files
dropin-earth590
dropin-main5

On-chain programs: dropin-earth/contracts/solana/programs/dropin_anchor

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
anchor_drop_rootAnchorDropRootdropin-earth/contracts/solana/programs/dropin_anchor/src/lib.rs:33
revoke_round_anchorRevokeRoundAnchordropin-earth/contracts/solana/programs/dropin_anchor/src/lib.rs:55
revoke_impact_certificate_anchorRevokeImpactCertificateAnchordropin-earth/contracts/solana/programs/dropin_anchor/src/lib.rs:59
anchor_drop_root_handlerAnchorDropRootdropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/anchor_drop_root.rs:19
revoke_roundRevokeRoundAnchordropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/revoke_anchor.rs:30
revoke_impact_certificateRevokeImpactCertificateAnchordropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/revoke_anchor.rs:37

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
dropin-earth/contracts/solana/tests/dropin-anchor.spec.tsPublicKey, SystemProgram, Program, findProgramAddressSync, AnchorProvider, getAccountInfo
dropin-main/src/app/api/supply/route.tsConnection, PublicKey, Transaction, SystemProgram, getLatestBlockhash, transfer
dropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/claim_merkle_drop.rsseeds, init_if_needed, Program
dropin-earth/contracts/solana/programs/dropin_anchor/src/state.rsPubkey
dropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/anchor_round_root.rsinit_if_needed, seeds, Program
dropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/anchor_impact_certificate.rsinit_if_needed, seeds, Program
dropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/revoke_anchor.rsseeds
dropin-earth/tests/unit/dependency-remediation.test.tsseeds, Connection
dropin-earth/contracts/solana/programs/dropin_anchor/src/instructions/anchor_drop_root.rsseeds

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/dropin/. 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
dropin-earthnpm run dev
dropin-earthnpm run build
dropin-earthnpm run test
dropin-earthnpm run lint
dropin-mainnpm run dev
dropin-mainnpm run start
dropin-mainnpm run build
dropin-mainnpm run lint
dropin-earth/contracts/solanaanchor build
dropin-earth/contracts/solanaanchor test
dropin-earth/contracts/solanaanchor run test

What you could build from it