Sol.College

Structure lesson (licence does not allow quoting code)

Holdfast

Holdfast is a plug-in conviction layer for Meteora Dynamic Bonding Curve launches.

Original
OxTEJIRI/Holdfast
SuperStack fork
Blockchains/Holdfast @ 40bf127
Stars
0
Last push (original)
2026-10-11
Languages
TypeScript, Rust, CSS, Shell, JavaScript
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://useholdfast.vercel.app

Architecture

91 source files. By extension: .ts ×44, .tsx ×32, .rs ×15.

Top-level directorySource files
apps47
packages17
programs15
sim5
tests5
scripts2

On-chain programs: programs/holdfast

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
init_launchInitLaunchprograms/holdfast/src/lib.rs:24
registerRegisterprograms/holdfast/src/lib.rs:28
executeExecuteprograms/holdfast/src/lib.rs:34
finalizeFinalizeprograms/holdfast/src/lib.rs:38
sync_rewardsSyncRewardsprograms/holdfast/src/lib.rs:42
deposit_rewardsDepositRewardsprograms/holdfast/src/lib.rs:46
claimClaimprograms/holdfast/src/lib.rs:50
handle_executeExecuteprograms/holdfast/src/hook.rs:48
handle_claimClaimprograms/holdfast/src/instructions/claim.rs:43
handle_finalizeFinalizeprograms/holdfast/src/instructions/finalize.rs:25
handle_init_launchInitLaunchprograms/holdfast/src/instructions/init_launch.rs:84
handle_sync_rewardsSyncRewardsprograms/holdfast/src/instructions/sync_rewards.rs:48
handle_deposit_rewardsDepositRewardsprograms/holdfast/src/instructions/deposit_rewards.rs:31
handle_registerRegisterprograms/holdfast/src/instructions/register.rs:44

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
packages/spike/src/spike.tsPublicKey, Keypair, Transaction, transfer, getAccountInfo, getAssociatedTokenAddressSync
tests/helpers.tsPublicKey, Keypair, transfer, invoke, Transaction, Program
packages/sdk/src/trade.tsPublicKey, Transaction, Connection, transfer, getAccountInfo
tests/holdfast.test.tsKeypair, transfer, PublicKey, requestAirdrop
packages/sdk/src/instructions.tsPublicKey, Connection, SystemProgram, getAssociatedTokenAddressSync, transfer
packages/sdk/src/rewards.tsTransaction, PublicKey, Connection
packages/sdk/src/launch.tsPublicKey, Keypair, Transaction, Connection
tests/security.test.tsKeypair, PublicKey, transfer, SystemProgram
sim/src/lib.tsKeypair, Transaction, PublicKey, Connection, transfer, sendAndConfirmTransaction
packages/sdk/src/program.tsProgram, Connection, Transaction, VersionedTransaction, AnchorProvider, Keypair
programs/holdfast/src/events.rsPubkey, transfer
packages/sdk/src/state.tsPublicKey, Connection, transfer

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/holdfast/. 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 test
apps/webnpm run dev
apps/webnpm run start
apps/webnpm run build
apps/webnpm run lint
packages/sdknpm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it