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 directory | Source files |
|---|---|
rwa_invoice | 22 |
src | 1 |
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.
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>,}- Line 35
#[account(init, payer = user, space = 9000)]: Creates and pays for a new account. Space and payer must be specified. - 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.
| Directory | Command | Runs |
|---|---|---|
rwa_invoice | npm run start | craco start |
rwa_invoice | npm run build | craco build |
rwa_invoice | npm run test | craco test |
rwa_invoice | npm run lint | prettier */*.js "*/**/*{.js,.ts}" --check |
rwa_invoice | anchor build | compile programs and generate IDLs |
rwa_invoice | anchor test | local validator + test suite |
rwa_invoice | anchor run test | yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts |
. | cargo build | Rust workspace build |
. | cargo test | Rust tests |
. | make build | Makefile target |
. | make program_address | Makefile target |
. | make fmt | Makefile target |
. | make lint | Makefile target |
. | make test | Makefile target |
. | make start_validator | Makefile target |
. | make deploy | Makefile target |
What you could build from it
- Fork the SuperStack copy and extend it within the Other gaps listed on the idea page.
- Learn the pattern first: Program Derived Addresses (PDAs)
- Learn the pattern first: Cross-Program Invocations (CPIs)