Sol.College

Structure lesson (licence does not allow quoting code)

ElBrAyAn1967-colosseum

Original
ElBrAyAn1967/colosseum
SuperStack fork
Blockchains/ElBrAyAn1967-colosseum @ cd08e65
Stars
0
Last push (original)
2025-10-30
Languages
JavaScript, TypeScript, Rust, CSS, HTML
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://colosseum-iota.vercel.app

Architecture

63 source files. By extension: .jsx ×28, .js ×24, .ts ×9, .rs ×2.

Top-level directorySource files
frontend50
tipjar13

On-chain programs: tipjar/kyc-nft-system/programs/kyc-nft, tipjar/programs/tipjar

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
initializeInitializetipjar/kyc-nft-system/programs/kyc-nft/src/lib.rs:22
revoke_kyc_nftRevokeKycNfttipjar/kyc-nft-system/programs/kyc-nft/src/lib.rs:144
verify_kyc_statusVerifyKycStatustipjar/kyc-nft-system/programs/kyc-nft/src/lib.rs:180
initialize_platformInitializePlatformtipjar/programs/tipjar/src/lib.rs:16
accept_orderAcceptOrdertipjar/programs/tipjar/src/lib.rs:83
deposit_to_escrow_nativeDepositToEscrowNativetipjar/programs/tipjar/src/lib.rs:100
deposit_to_escrow_splDepositToEscrowSPLtipjar/programs/tipjar/src/lib.rs:131
confirm_fiat_paymentConfirmFiatPaymenttipjar/programs/tipjar/src/lib.rs:158
release_funds_nativeReleaseFundsNativetipjar/programs/tipjar/src/lib.rs:174
release_funds_splReleaseFundsSPLtipjar/programs/tipjar/src/lib.rs:221
cancel_order_nativeCancelOrderNativetipjar/programs/tipjar/src/lib.rs:396
cancel_order_splCancelOrderSPLtipjar/programs/tipjar/src/lib.rs:416
resolve_dispute_split_nativeResolveDisputeSplitNativetipjar/programs/tipjar/src/lib.rs:457
resolve_dispute_split_splResolveDisputeSplitSPLtipjar/programs/tipjar/src/lib.rs:490

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
tipjar/tests/tipjar.tsPublicKey, findProgramAddressSync, SystemProgram, getBalance, Keypair, requestAirdrop
tipjar/programs/tipjar/src/lib.rsseeds, Pubkey, transfer, Program, CpiContext, AccountInfo
tipjar/oracle-backend/src/solana-client.tsPublicKey, findProgramAddressSync, Connection, Program, AnchorProvider, Transaction
tipjar/scripts/initialize-simple.jsConnection, PublicKey, Transaction, Keypair, SystemProgram, sendAndConfirmTransaction
frontend/src/hooks/useP2PProgram.jsPublicKey, findProgramAddressSync, Program, AnchorProvider, useConnection, useWallet
tipjar/kyc-nft-system/programs/kyc-nft/src/lib.rsseeds, Program, Pubkey, CpiContext
tipjar/scripts/initialize.jsPublicKey, SystemProgram, Program, AnchorProvider, findProgramAddressSync, Transaction
tipjar/scripts/initialize.tsProgram, PublicKey, SystemProgram, AnchorProvider, findProgramAddressSync, Transaction
frontend/src/hooks/useProgram.jsuseConnection, useWallet, Program, AnchorProvider
frontend/src/hooks/useUserProfile.jsPublicKey, useWallet, findProgramAddressSync
frontend/src/hooks/useBalance.jsuseConnection, useWallet, getBalance
frontend/src/components/features/CreateOrderForm.jsxuseWallet, SystemProgram, Transaction

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/elbrayan1967-colosseum/. 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
frontendnpm run dev
frontendnpm run build
frontendnpm run lint
tipjarnpm run lint
tipjar/oracle-backendnpm run dev
tipjar/oracle-backendnpm run start
tipjar/oracle-backendnpm run build
tipjaranchor build
tipjaranchor test
tipjaranchor run test
tipjaranchor run initialize

What you could build from it