Sol.College

Structure lesson (licence does not allow quoting code)

Interval

Tokenizing creator access on Solana

Original
Vijaykv5/Interval
SuperStack fork
Blockchains/Interval @ 93b5f83
Stars
0
Last push (original)
2026-05-12
Languages
TypeScript, JavaScript, Rust, CSS
Detected stack
@solana/kitAnchorNext.jsSolana Actions
Categories
Consumer & Social
Licence
none detected: code not quoted on Sol.College
Homepage
https://beta.interval.wtf

Architecture

92 source files. By extension: .ts ×54, .tsx ×32, .rs ×5, .js ×1.

Top-level directorySource files
frontend86
contract6

On-chain programs: contract/programs/interval

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
initialize_platformInitializePlatformcontract/programs/interval/src/lib.rs:17
initialize_treasuryInitializeTreasurycontract/programs/interval/src/lib.rs:21
register_creatorRegisterCreatorcontract/programs/interval/src/lib.rs:25
release_fundsReleaseFundscontract/programs/interval/src/lib.rs:46
refund_bookingRefundBookingcontract/programs/interval/src/lib.rs:50
initialize_platformInitializePlatformcontract/programs/interval/src/instructions/mod.rs:12
initialize_treasuryInitializeTreasurycontract/programs/interval/src/instructions/mod.rs:21
register_creatorRegisterCreatorcontract/programs/interval/src/instructions/mod.rs:28
onboard_creatorOnboardCreatorcontract/programs/interval/src/instructions/mod.rs:37
release_fundsReleaseFundscontract/programs/interval/src/instructions/mod.rs:101
refund_bookingRefundBookingcontract/programs/interval/src/instructions/mod.rs:123

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
frontend/src/lib/interval-program.tsPublicKey, Transaction, getAccountInfo, SystemProgram, sendAndConfirmTransaction, findProgramAddressSync
frontend/src/app/api/creator/onchain-onboard/route.tsTransaction, Connection, Keypair, getAccountInfo, PublicKey, SystemProgram
contract/programs/interval/src/instructions/mod.rsseeds, Program, has_one, transfer, CpiContext
frontend/src/app/api/booking/create/route.tstransfer, PublicKey, Connection, getAssociatedTokenAddress, getAccountInfo
frontend/src/lib/dodo-bookings.server.tsgetAssociatedTokenAddress, Connection, Keypair, PublicKey, Transaction, createTransferInstruction
contract/scripts/init-platform.jsProgram, PublicKey, Connection, Keypair, SystemProgram, getAccountInfo
frontend/src/app/api/action/book/route.tsPublicKey, getAssociatedTokenAddress, Connection, Transaction, createTransferInstruction, getLatestBlockhash
frontend/src/app/dashboard/page.tsxPublicKey, Transaction, SystemProgram, signTransaction, transfer
frontend/src/app/api/solana/payment-preflight/route.tsPublicKey, getAssociatedTokenAddress, Connection, getBalance
frontend/src/lib/payments.tsPublicKey, Transaction, createTransferInstruction
frontend/src/components/user-wallet-provider.tsxsendTransaction, Transaction, useConnection, useWallet
frontend/src/app/profile/page.tsxPublicKey, SystemProgram, Transaction, 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/interval/. 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
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
contractanchor build
contractanchor test
contractanchor run test

What you could build from it