Sol.College

Full lesson

dopamint.fun

Gacha-style NFT reveals on Solana blockchain. NFT ≠ JPEG, NFT = dopamine🧠

What it does

From the project README:

1. **No instant reveals** You have to wait before you can see your NFT, and that waiting kills the thrill and breaks the hype. 2. **No clear win or loss** You pay to mint but don’t know if you got something rare or just a common NFT. Mints feel flat—no thrill, no FOMO. 3. **Low liquidity** If you miss out on a rare drop, you can’t sell or trade right away—you’re stuck waiting for a buyer.
Original
yamapyblack/dopamint.fun
SuperStack fork
Blockchains/dopamint.fun @ 96bdcd9
Stars
0
Last push (original)
2025-05-15
Languages
TypeScript, CSS, JavaScript
Detected stack
MetaplexNext.jsweb3.js
Categories
NFTs & Digital Assets
Licence
MIT
Homepage
https://dopamint-fun.vercel.app

Architecture

18 source files. By extension: .tsx ×12, .ts ×6.

Top-level directorySource files
front18

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/dopamint-fun/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

Key code, explained

Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.

yamapyblack/dopamint.fun · front/src/lib/umi/sendAndConfirmWithWalletAdapter.ts L13–35 @ 96bdcd9 · MIT · original
  const umi = useUmiStore.getState().umi;  const currentSigner = useUmiStore.getState().signer;  umi.use(signerIdentity(currentSigner!));   const blockhash = await umi.rpc.getLatestBlockhash({    commitment: settings?.commitment || "confirmed",  });   const transactions = tx    .add(setComputeUnitPrice(umi, { microLamports: BigInt(100000) }))    .setBlockhash(blockhash);   const signedTx = await transactions.buildAndSign(umi);   const signature = await umi.rpc    .sendTransaction(signedTx, {      preflightCommitment: settings?.commitment || "confirmed",      commitment: settings?.commitment || "confirmed",      skipPreflight: settings?.skipPreflight || false,    })    .catch((err) => {      throw new Error(`Transaction failed: ${err}`);    });
  1. Line 17 const blockhash = await umi.rpc.getLatestBlockhash({: Fetches a recent blockhash. Transactions expire if it gets too old.
  2. Line 28 .sendTransaction(signedTx, {: Submits the signed transaction to the cluster.

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
frontnpm run devnext dev
frontnpm run startnext start
frontnpm run buildnext build
frontnpm run lintnext lint

What you could build from it