Sol.College

Structure lesson (licence does not allow quoting code)

EqSeedr

An interactive token launchpad platform that allows for price discovery of an asset through the process of competition. Maximizing the funding raised for the project and providing an opportunity for users to earn massive gains on their capital investment.

Original
ExSolsior/EqSeedr
SuperStack fork
Blockchains/EqSeedr @ 7c576ed
Stars
0
Last push (original)
2024-07-27
Languages
CSS, Rust, JavaScript, TypeScript, HTML
Detected stack
AnchorMetaplexNext.jsweb3.js
Categories
Gaming
Licence
none detected: code not quoted on Sol.College

Architecture

96 source files. By extension: .rs ×65, .tsx ×15, .ts ×8, .js ×8.

Top-level directorySource files
programs65
app29
migrations1
tests1

On-chain programs: programs/launch_pad

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
initializeInitializeprograms/launch_pad/src/lib.rs:14
mint_tokensMintTokensprograms/launch_pad/src/lib.rs:18
transfer_tokensTransferTokensprograms/launch_pad/src/lib.rs:22
add_bid_token_mintAddBidTokenMintprograms/launch_pad/src/lib.rs:26
create_sessionCreateSessionprograms/launch_pad/src/lib.rs:30
create_commit_leader_boardCreateCommitLeaderBoardprograms/launch_pad/src/lib.rs:40
reallocate_commit_leader_boardReallocateCommitLeaderBoardprograms/launch_pad/src/lib.rs:44
create_session_commit_queueCreateSessionCommitQueueprograms/launch_pad/src/lib.rs:48
create_commit_bid_vaultCreateCommitBidVaultprograms/launch_pad/src/lib.rs:52
create_token_stake_vaultCreateTokenStakeVaultprograms/launch_pad/src/lib.rs:56
create_tick_bid_roundCreateSessionTickBidRoundprograms/launch_pad/src/lib.rs:60
create_venture_token_escrowCreateVentureTokenEscrowprograms/launch_pad/src/lib.rs:64
create_vested_token_escrowCreateVestedTokenEscrowprograms/launch_pad/src/lib.rs:68
create_vested_configCreateVestedConfigprograms/launch_pad/src/lib.rs:72
submit_sealed_bidSubmitSealedBidprograms/launch_pad/src/lib.rs:76
submit_commit_bidCommitBidBySessionprograms/launch_pad/src/lib.rs:89
session_registrationSessionRegistrationprograms/launch_pad/src/lib.rs:93
open_bidOpenBidprograms/launch_pad/src/lib.rs:97
execute_bidExecuteBidprograms/launch_pad/src/lib.rs:101
transfer_rent_zero_copyTransferRentZeroCopyprograms/launch_pad/src/lib.rs:105
assign_zero_copyAssignZeroCopyprograms/launch_pad/src/lib.rs:109
realloc_zero_copyReallocZeroCopyprograms/launch_pad/src/lib.rs:113
initialize_zero_copyInitializeZeroCopyprograms/launch_pad/src/lib.rs:117
handlerClaimVestedprograms/launch_pad/src/instructions/claim_vested.rs:40
handlerAddBidTokenMintprograms/launch_pad/src/instructions/add_bid_token_mint.rs:22
handlerUnlockStakeprograms/launch_pad/src/instructions/unlock_stake.rs:49
handlerMintTokensprograms/launch_pad/src/instructions/mint_tokens.rs:29
handlerSubmitUnsealedBidprograms/launch_pad/src/instructions/submit_unsealed_bid.rs:38
handlerOpenBidprograms/launch_pad/src/instructions/open_bid.rs:125
handlerUpdateLeaderBaordprograms/launch_pad/src/instructions/update_leader_board.rs:43

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
app/script.tsPublicKey, findProgramAddressSync, getLatestBlockhash, SystemProgram, getAssociatedTokenAddressSync, Program
tests/launch_pad.tsPublicKey, findProgramAddressSync, getLatestBlockhash, Keypair, getAssociatedTokenAddress, Transaction
app/src/utils/program.tsxPublicKey, findProgramAddressSync, Program, AnchorProvider, SystemProgram, getAssociatedTokenAddressSync
app/src/contexts/context.tsxPublicKey, Program, SystemProgram, Transaction, useConnection, Connection
programs/launch_pad/src/states/sealed_bid_round.rsPubkey, transfer
programs/launch_pad/src/states/session.rsPubkey
programs/launch_pad/src/instructions/open_bid.rsseeds, Program, CpiContext
programs/launch_pad/src/instructions/initialize.rsseeds, Program
programs/launch_pad/src/states/stagging/marketplace_matchers.rsPubkey, transfer, seeds
programs/launch_pad/src/instructions/submit_commit_bid.rstransfer, CpiContext
programs/launch_pad/src/states/program_authority.rsPubkey
programs/launch_pad/src/instructions/submit_sealed_bid.rsseeds, Program, Pubkey, CpiContext

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/eqseedr/. 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 lint
appnpm run dev
appnpm run start
appnpm run build
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it