Sol.College

Structure lesson (licence does not allow quoting code)

CardPass

Original
maxjo020418/CardPass
SuperStack fork
Blockchains/CardPass @ dcfbf43
Stars
0
Last push (original)
2025-10-31
Languages
TypeScript, Python, Rust, Makefile, Dockerfile, CSS
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

147 source files. By extension: .py ×69, .rs ×41, .tsx ×21, .ts ×16.

Top-level directorySource files
Program_sequence48
cardpass-be41
cardpass-web30
backend-infra28

On-chain programs: Program_sequence/programs/contact-gate, Program_sequence/programs/hiring-rewards, Program_sequence/programs/job-application, Program_sequence/programs/profile-manager, Program_sequence/programs/resume-marketplace

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
hire_applicantHireApplicantProgram_sequence/programs/job-application/src/lib.rs:66
hire_applicantHireApplicantProgram_sequence/programs/job-application/src/instructions/application.rs:75
handle_expired_contactHandleExpiredContactProgram_sequence/programs/profile-manager/src/lib.rs:76
process_paymentProcessPaymentProgram_sequence/programs/profile-manager/src/lib.rs:89
complete_paymentCompletePaymentProgram_sequence/programs/profile-manager/src/lib.rs:93
refund_paymentRefundPaymentProgram_sequence/programs/profile-manager/src/lib.rs:97
process_paymentProcessPaymentProgram_sequence/programs/profile-manager/src/instructions/payment.rs:153
complete_paymentCompletePaymentProgram_sequence/programs/profile-manager/src/instructions/payment.rs:174
refund_paymentRefundPaymentProgram_sequence/programs/profile-manager/src/instructions/payment.rs:210
handle_expired_contactHandleExpiredContactProgram_sequence/programs/profile-manager/src/instructions/contact.rs:118
create_reward_poolCreateRewardPoolProgram_sequence/programs/hiring-rewards/src/lib.rs:17
deposit_to_poolDepositToPoolProgram_sequence/programs/hiring-rewards/src/lib.rs:21
distribute_rewardDistributeRewardProgram_sequence/programs/hiring-rewards/src/lib.rs:25
create_referralCreateReferralProgram_sequence/programs/hiring-rewards/src/lib.rs:29
distribute_rewardDistributeRewardProgram_sequence/programs/hiring-rewards/src/instructions/distribute.rs:40
create_referralCreateReferralProgram_sequence/programs/hiring-rewards/src/instructions/referral.rs:24
create_reward_poolCreateRewardPoolProgram_sequence/programs/hiring-rewards/src/instructions/create_pool.rs:25
deposit_to_poolDepositToPoolProgram_sequence/programs/hiring-rewards/src/instructions/deposit.rs:38
list_resumeListResumeProgram_sequence/programs/resume-marketplace/src/lib.rs:23
purchase_resumePurchaseResumeProgram_sequence/programs/resume-marketplace/src/lib.rs:27
verify_resumeVerifyResumeProgram_sequence/programs/resume-marketplace/src/lib.rs:31
purchase_resumePurchaseResumeProgram_sequence/programs/resume-marketplace/src/instructions/purchase_resume.rs:55
list_resumeListResumeProgram_sequence/programs/resume-marketplace/src/instructions/list_resume.rs:30
verify_resumeVerifyResumeProgram_sequence/programs/resume-marketplace/src/instructions/verify_resume.rs:18

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
Program_sequence/tests/user-flow-05-integration.tsPublicKey, findProgramAddressSync, SystemProgram, Keypair, Program, mintTo
Program_sequence/tests/scenarios-a-and-b-test.tsPublicKey, findProgramAddressSync, SystemProgram, Keypair, Program, createMint
Program_sequence/tests/user-flow-03-hiring-bounty.tsPublicKey, findProgramAddressSync, SystemProgram, Program, Keypair, requestAirdrop
Program_sequence/tests/user-flow-02-contact-gate.tsPublicKey, findProgramAddressSync, Keypair, SystemProgram, mintTo, requestAirdrop
Program_sequence/tests/phase3-test.tsPublicKey, Keypair, Program, SystemProgram, requestAirdrop, findProgramAddressSync
Program_sequence/tests/phase2-test.tsPublicKey, Keypair, findProgramAddressSync, SystemProgram, Program, createMint
Program_sequence/tests/user-flow-01-onboarding.tsPublicKey, Keypair, SystemProgram, Program, findProgramAddressSync, createMint
Program_sequence/programs/profile-manager/src/instructions/payment.rsseeds, Program, transfer, CpiContext, has_one, Pubkey
Program_sequence/programs/profile-manager/src/instructions/contact.rsseeds, CpiContext, transfer, AccountInfo, Program, has_one
Program_sequence/programs/job-application/src/instructions/application.rsAccountInfo, seeds, Program, has_one, CpiContext
Program_sequence/programs/resume-marketplace/src/instructions/purchase_resume.rsseeds, Program, CpiContext, transfer, has_one, AccountInfo
Program_sequence/programs/profile-manager/src/events.rsPubkey

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/cardpass/. 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
Program_sequencenpm run build
Program_sequencenpm run test
Program_sequencenpm run deploy
cardpass-webnpm run dev
cardpass-webnpm run start
cardpass-webnpm run build
cardpass-webnpm run lint
Program_sequenceanchor build
Program_sequenceanchor test
Program_sequence/configanchor build
Program_sequence/configanchor test
Program_sequence/configanchor run test

What you could build from it