Sol.College

Structure lesson (licence does not allow quoting code)

Closing-Bell

Original
GuTS805/Closing-Bell
SuperStack fork
Blockchains/Closing-Bell @ f7efc0f
Stars
0
Last push (original)
2026-11-04
Languages
TypeScript, CSS, Rust, JavaScript, Shell, Batchfile
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://closing-bell-eight.vercel.app/

Architecture

53 source files. By extension: .ts ×28, .tsx ×23, .js ×1, .rs ×1.

Top-level directorySource files
app35
scripts8
replay5
keeper2
(root)1
programs1
tests1

On-chain programs: programs/closing-bell-guard

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
update_basisUpdateBasisprograms/closing-bell-guard/src/lib.rs:318
set_pausedSetPausedprograms/closing-bell-guard/src/lib.rs:345
record_pre_stateRecordPreStateprograms/closing-bell-guard/src/lib.rs:351
verify_fillVerifyFillprograms/closing-bell-guard/src/lib.rs:460

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
programs/closing-bell-guard/src/lib.rsPubkey, seeds, AccountInfo, Program, has_one, init_if_needed
tests/guarded-fill.tsTransaction, sendAndConfirmTransaction, PublicKey, mintTo, SystemProgram, Keypair
scripts/deploy-devnet.tsPublicKey, SystemProgram, Keypair, Transaction, sendAndConfirmTransaction, findProgramAddressSync
app/app/api/guard/run/route.tsPublicKey, findProgramAddressSync, Connection, Keypair, SystemProgram, Transaction
scripts/day0-feasibility.tsPublicKey, Connection, Keypair, Transaction, ComputeBudgetProgram, sendAndConfirmTransaction
app/app/components/GuardedSwap.tsxsignTransaction, useWallet, useConnection, WalletMultiButton, VersionedTransaction
app/app/lib/guardedSwap.tsPublicKey, Connection, VersionedTransaction, findProgramAddressSync, getAccountInfo
scripts/probe-pyth-accounts.tsPublicKey, Connection, seeds, findProgramAddressSync, getAccountInfo
replay/basis.tsPublicKey, Connection, findProgramAddressSync, getAccountInfo
replay/wrapper-size.tsPublicKey, Connection, findProgramAddressSync, getAccountInfo
keeper/sample-basis.tsPublicKey, Connection, findProgramAddressSync, getAccountInfo
keeper/sample-feed-freshness.tsPublicKey, Connection, findProgramAddressSync, getAccountInfo

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

What you could build from it