Sol.College

Structure lesson (licence does not allow quoting code)

CarbonX

Original
0xEgao/CarbonX
SuperStack fork
Blockchains/CarbonX @ 3bfc5a9
Stars
0
Last push (original)
2025-05-18
Languages
TypeScript, JavaScript, CSS, Rust
Detected stack
AnchorMetaplexNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://canbonx.vercel.app

Architecture

45 source files. By extension: .tsx ×20, .rs ×13, .ts ×10, .js ×2.

Top-level directorySource files
refi-frontend30
ecomint15

On-chain programs: ecomint/programs/ecomint

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
ecomint/programs/ecomint/src/instructions/send.rsinit_if_needed, transfer, seeds, Program, CpiContext, has_one
ecomint/programs/ecomint/src/instructions/mint_nft.rsseeds, has_one, Program
ecomint/programs/ecomint/src/state/mod.rsPubkey
ecomint/programs/ecomint/src/instructions/update_marketplace_fee.rsseeds, has_one
ecomint/programs/ecomint/src/instructions/init_marketplace.rsseeds, Program
ecomint/tests/ecomint.tsProgram, AnchorProvider
ecomint/programs/ecomint/src/instructions/init_ecomint.rsseeds, Program
ecomint/programs/ecomint/src/instructions/delist.rsseeds, Program
ecomint/programs/ecomint/src/instructions/list.rsseeds, Program
refi-frontend/src/app/components/(Landing)/WalletConnect.tsxWalletMultiButton

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/carbonx/. 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
ecomintnpm run lint
refi-frontendnpm run dev
refi-frontendnpm run start
refi-frontendnpm run build
refi-frontendnpm run lint
ecomintanchor build
ecomintanchor test
ecomintanchor run test

What you could build from it