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 directory | Source files |
|---|---|
programs | 65 |
app | 29 |
migrations | 1 |
tests | 1 |
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.
| Instruction | Accounts | Source |
|---|---|---|
initialize | Initialize | programs/launch_pad/src/lib.rs:14 |
mint_tokens | MintTokens | programs/launch_pad/src/lib.rs:18 |
transfer_tokens | TransferTokens | programs/launch_pad/src/lib.rs:22 |
add_bid_token_mint | AddBidTokenMint | programs/launch_pad/src/lib.rs:26 |
create_session | CreateSession | programs/launch_pad/src/lib.rs:30 |
create_commit_leader_board | CreateCommitLeaderBoard | programs/launch_pad/src/lib.rs:40 |
reallocate_commit_leader_board | ReallocateCommitLeaderBoard | programs/launch_pad/src/lib.rs:44 |
create_session_commit_queue | CreateSessionCommitQueue | programs/launch_pad/src/lib.rs:48 |
create_commit_bid_vault | CreateCommitBidVault | programs/launch_pad/src/lib.rs:52 |
create_token_stake_vault | CreateTokenStakeVault | programs/launch_pad/src/lib.rs:56 |
create_tick_bid_round | CreateSessionTickBidRound | programs/launch_pad/src/lib.rs:60 |
create_venture_token_escrow | CreateVentureTokenEscrow | programs/launch_pad/src/lib.rs:64 |
create_vested_token_escrow | CreateVestedTokenEscrow | programs/launch_pad/src/lib.rs:68 |
create_vested_config | CreateVestedConfig | programs/launch_pad/src/lib.rs:72 |
submit_sealed_bid | SubmitSealedBid | programs/launch_pad/src/lib.rs:76 |
submit_commit_bid | CommitBidBySession | programs/launch_pad/src/lib.rs:89 |
session_registration | SessionRegistration | programs/launch_pad/src/lib.rs:93 |
open_bid | OpenBid | programs/launch_pad/src/lib.rs:97 |
execute_bid | ExecuteBid | programs/launch_pad/src/lib.rs:101 |
transfer_rent_zero_copy | TransferRentZeroCopy | programs/launch_pad/src/lib.rs:105 |
assign_zero_copy | AssignZeroCopy | programs/launch_pad/src/lib.rs:109 |
realloc_zero_copy | ReallocZeroCopy | programs/launch_pad/src/lib.rs:113 |
initialize_zero_copy | InitializeZeroCopy | programs/launch_pad/src/lib.rs:117 |
handler | ClaimVested | programs/launch_pad/src/instructions/claim_vested.rs:40 |
handler | AddBidTokenMint | programs/launch_pad/src/instructions/add_bid_token_mint.rs:22 |
handler | UnlockStake | programs/launch_pad/src/instructions/unlock_stake.rs:49 |
handler | MintTokens | programs/launch_pad/src/instructions/mint_tokens.rs:29 |
handler | SubmitUnsealedBid | programs/launch_pad/src/instructions/submit_unsealed_bid.rs:38 |
handler | OpenBid | programs/launch_pad/src/instructions/open_bid.rs:125 |
handler | UpdateLeaderBaord | programs/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.
| File | Solana APIs used |
|---|---|
app/script.ts | PublicKey, findProgramAddressSync, getLatestBlockhash, SystemProgram, getAssociatedTokenAddressSync, Program |
tests/launch_pad.ts | PublicKey, findProgramAddressSync, getLatestBlockhash, Keypair, getAssociatedTokenAddress, Transaction |
app/src/utils/program.tsx | PublicKey, findProgramAddressSync, Program, AnchorProvider, SystemProgram, getAssociatedTokenAddressSync |
app/src/contexts/context.tsx | PublicKey, Program, SystemProgram, Transaction, useConnection, Connection |
programs/launch_pad/src/states/sealed_bid_round.rs | Pubkey, transfer |
programs/launch_pad/src/states/session.rs | Pubkey |
programs/launch_pad/src/instructions/open_bid.rs | seeds, Program, CpiContext |
programs/launch_pad/src/instructions/initialize.rs | seeds, Program |
programs/launch_pad/src/states/stagging/marketplace_matchers.rs | Pubkey, transfer, seeds |
programs/launch_pad/src/instructions/submit_commit_bid.rs | transfer, CpiContext |
programs/launch_pad/src/states/program_authority.rs | Pubkey |
programs/launch_pad/src/instructions/submit_sealed_bid.rs | seeds, 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.
| Directory | Command | Runs |
|---|---|---|
. | npm run lint | |
app | npm run dev | |
app | npm run start | |
app | npm run build | |
. | anchor build | |
. | anchor test | |
. | anchor run test | |
. | cargo build | |
. | cargo test |
What you could build from it
- Fork the SuperStack copy and extend it within the Gaming gaps listed on the idea page.