Sol.College

Structure lesson (licence does not allow quoting code)

BidTrace

Program for Colosseum Hackathon

Original
Ujjwal1396/BidTrace
SuperStack fork
Blockchains/BidTrace @ f6c03ff
Stars
1
Last push (original)
2026-10-14
Languages
Python, HTML, TypeScript, Rust, JavaScript, Dockerfile
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://bit-trace-one.vercel.app

Architecture

60 source files. By extension: .py ×31, .rs ×20, .js ×6, .ts ×3.

Top-level directorySource files
programs20
tests15
bidtrace_py9
(root)5
public4
verifier3
bidtrace2
scripts2

On-chain programs: programs/bidtrace

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
advance_tender_phaseAdvanceTenderPhaseprograms/bidtrace/src/lib.rs:84
refund_disqualified_bondRefundDisqualifiedBondprograms/bidtrace/src/lib.rs:158
handle_advance_tender_phaseAdvanceTenderPhaseprograms/bidtrace/src/instructions/advance_tender_phase.rs:13
handle_refund_disqualified_bondRefundDisqualifiedBondprograms/bidtrace/src/instructions/refund_disqualified_bond.rs:34
handle_lock_tenderLockTenderprograms/bidtrace/src/instructions/lock_tender.rs:17

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
tests/bidtrace.tsPublicKey, findProgramAddressSync, SystemProgram, Keypair, requestAirdrop, getBalance
programs/bidtrace/src/instructions/commit_dual_bid.rsPubkey, seeds, Transaction, Program, transfer, CpiContext
programs/bidtrace/src/state.rsPubkey
programs/bidtrace/src/instructions/commit_evaluator_grade.rsseeds, AccountInfo, Program
programs/bidtrace/src/instructions/commit_bid.rsseeds, Transaction, Program, transfer, CpiContext
programs/bidtrace/src/instructions/finalize_technical_scores.rsseeds, Pubkey, has_one
programs/bidtrace/src/instructions/record_award_qcbs.rsPubkey, has_one, seeds
programs/bidtrace/src/instructions/initialize_committee.rshas_one, seeds, Program, Pubkey
programs/bidtrace/src/instructions/reveal_evaluator_grade.rsseeds, AccountInfo
programs/bidtrace/src/instructions/reveal_bid.rsseeds, AccountInfo
programs/bidtrace/src/instructions/initialize_tender.rsseeds, Program
programs/bidtrace/src/instructions/review_administrative_compliance.rshas_one, seeds

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/bidtrace/. 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
.npm run start
.npm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it