Sol.College

Structure lesson (licence does not allow quoting code)

BeatEx

BeatEx confidential frequent batch auction exchange on Solana

Original
Raunaque97/BeatEx
SuperStack fork
Blockchains/BeatEx @ 63c8fc6
Stars
0
Last push (original)
2026-10-13
Languages
Rust, TypeScript, JavaScript, Shell, HTML, CSS
Detected stack
@solana/kitAnchorNext.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://beatex.vercel.app

Architecture

187 source files. By extension: .ts ×102, .rs ×45, .tsx ×37, .js ×3.

Top-level directorySource files
apps107
crates36
packages33
programs11

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
activate_key_epochActivateKeyEpochprograms/beatex/src/lib.rs:262
initialize_auctionInitializeAuctionprograms/beatex/src/lib.rs:279
prepare_rolloverPrepareRolloverprograms/beatex/src/lib.rs:974
settle_order_to_balanceSettleOrderToBalanceprograms/beatex/src/lib.rs:1194
rollover_orderRolloverOrderprograms/beatex/src/lib.rs:1289
cancel_pending_auctionCancelPendingAuctionprograms/beatex/src/lib.rs:1655
close_empty_auctionCloseEmptyAuctionprograms/beatex/src/lib.rs:1703
close_order_eventsCloseOrderEventsprograms/beatex/src/lib.rs:1733
finalize_test_orderFinalizeTestOrderprograms/beatex/src/lib.rs:1845
finalize_decryptionFinalizeDecryptionprograms/beatex/src/lib.rs:1947

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/beatex/tests/sbf_groth16.rsPubkey, Transaction, Keypair
programs/beatex/tests/sbf_token2022.rsPubkey, transfer, Keypair, Transaction
programs/beatex/src/queue_hash.rsPubkey, transfer
programs/beatex/src/token2022.rsAccountInfo, transfer, Pubkey, invoke_signed, invoke
programs/beatex/src/queue.rsPubkey
crates/vault-proof-service/tests/full_withdrawal_sbf.rsPubkey, Keypair, Transaction
crates/market-maker/src/main.rsPubkey, getAccountInfo, getBalance
programs/beatex/src/state.rsPubkey
packages/sdk/src/protocol/pdas.tsseeds
programs/beatex/src/threshold.rsPubkey
crates/babyjub-sbf-spike/src/lib.rsPubkey, AccountInfo, Keypair, Transaction
crates/indexer/src/main.rsPubkey

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/beatex/. 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 dev
packages/sdknpm run dev
packages/sdknpm run build
packages/sdknpm run test
packages/prover-wasmnpm run dev
packages/prover-wasmnpm run build
packages/prover-wasmnpm run test
crates/browser-prover-benchnpm run build
apps/webnpm run dev
apps/webnpm run start
apps/webnpm run build
apps/webnpm run test
apps/webnpm run lint
.anchor build
.anchor test
.cargo build

What you could build from it