Sol.College

Full lesson

solana-cypherpunk

Original
mjshin97/solana-cypherpunk
SuperStack fork
Blockchains/solana-cypherpunk @ 5a44359
Stars
0
Last push (original)
2025-10-30
Languages
TypeScript, Rust, JavaScript, HTML, Makefile, CSS
Detected stack
Anchorweb3.js
Categories
Other
Licence
MIT

Architecture

23 source files. By extension: .tsx ×12, .ts ×6, .js ×3, .rs ×2.

Top-level directorySource files
rwa_invoice22
src1

On-chain programs: rwa_invoice/programs/rwa_invoice

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/solana-cypherpunk/. 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.

mjshin97/solana-cypherpunk · rwa_invoice/programs/rwa_invoice/src/lib.rs L25–40 @ 5a44359 · MIT · original
} #[derive(AnchorSerialize, AnchorDeserialize, Clone)]pub struct InvoiceItem {    pub description: String,    pub amount: u64,} #[derive(Accounts)]pub struct CreateInvoice<'info> {    #[account(init, payer = user, space = 9000)]    pub invoice: Account<'info, Invoice>,    #[account(mut)]    pub user: Signer<'info>,    pub system_program: Program<'info, System>,}
  1. Line 35 #[account(init, payer = user, space = 9000)]: Creates and pays for a new account. Space and payer must be specified.
  2. Line 38 pub user: Signer<'info>,: Requires this account to have signed the transaction.

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
rwa_invoicenpm run startcraco start
rwa_invoicenpm run buildcraco build
rwa_invoicenpm run testcraco test
rwa_invoicenpm run lintprettier */*.js "*/**/*{.js,.ts}" --check
rwa_invoiceanchor buildcompile programs and generate IDLs
rwa_invoiceanchor testlocal validator + test suite
rwa_invoiceanchor run testyarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts
.cargo buildRust workspace build
.cargo testRust tests
.make buildMakefile target
.make program_addressMakefile target
.make fmtMakefile target
.make lintMakefile target
.make testMakefile target
.make start_validatorMakefile target
.make deployMakefile target

What you could build from it