Sol.College

Structure lesson (licence does not allow quoting code)

AIROTC

Original
gulbadanjhumur397-web/AIROTC
SuperStack fork
Blockchains/AIROTC @ 540bf1c
Stars
0
Last push (original)
2026-10-25
Languages
TypeScript, JavaScript, Rust, HTML, Python, Shell
Detected stack
AnchorNext.jsSolana Agent Kitsolana-pyweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

629 source files. By extension: .ts ×526, .js ×57, .tsx ×29, .py ×13, .rs ×4.

Top-level directorySource files
middleman-agent389
api-server108
frontend38
sdk28
agents22
eliza-agents17
external-agents8
tests6

On-chain programs: escrow/programs/escrow, escrow/programs/escrow-confidential, escrow/programs/magicblock-negotiation

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_configInitializeConfigescrow/programs/escrow/src/lib.rs:716
set_pausedSetPausedescrow/programs/escrow/src/lib.rs:730
lock_collateralLockCollateralescrow/programs/escrow/src/lib.rs:837
lock_paymentLockPaymentescrow/programs/escrow/src/lib.rs:891
release_fundsReleaseFundsescrow/programs/escrow/src/lib.rs:928
cancel_dealCancelDealescrow/programs/escrow/src/lib.rs:1032
refund_on_timeoutRefundOnTimeoutescrow/programs/escrow/src/lib.rs:1130
close_dealCloseDealescrow/programs/escrow/src/lib.rs:1228
confirm_depositConfirmDepositescrow/programs/escrow/src/lib.rs:1254
delegate_sessionDelegateSessionescrow/programs/magicblock-negotiation/src/lib.rs:73
initialize_credit_vaultInitializeCreditVaultescrow/programs/escrow-confidential/src/lib.rs:201
execute_withdrawal_batchExecuteWithdrawalBatchescrow/programs/escrow-confidential/src/lib.rs:513
resolve_release_disputeResolveReleaseDisputeescrow/programs/escrow-confidential/src/lib.rs:1177
cancel_dealCancelDealescrow/programs/escrow-confidential/src/lib.rs:1497

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
escrow/programs/escrow-confidential/src/lib.rsPubkey, seeds, AccountInfo, Program, invoke_signed, transfer
middleman-agent/src/services/confidentialExecutionService.tsPublicKey, findProgramAddressSync, Keypair, Transaction, Connection, SystemProgram
middleman-agent/src/services/negotiationRollupService.tsPublicKey, Program, Connection, Transaction, getLatestBlockhash, Keypair
middleman-agent/src/services/encryptService.tsPublicKey, Keypair, getAccountInfo, findProgramAddressSync, SystemProgram, Connection
middleman-agent/src/services/onChainExecutionService.tsPublicKey, getAssociatedTokenAddressSync, SystemProgram, Program, ComputeBudgetProgram, Connection
middleman-agent/src/services/ikaService.tsPublicKey, seeds, findProgramAddressSync, Transaction, sendAndConfirmTransaction, Connection
middleman-agent/agents/sdk/MeridianClient.tsPublicKey, Keypair, Connection, SystemProgram, Transaction, sendAndConfirmTransaction
middleman-agent/test/full_diagram_live_e2e.tsKeypair, PublicKey, Program, AnchorProvider, Connection, Transaction
escrow/tests/escrow.tsSystemProgram, getBalance, PublicKey, Keypair, Program, findProgramAddressSync
escrow/programs/escrow/src/lib.rsseeds, Pubkey, AccountInfo, Program, transfer, CpiContext
middleman-agent/src/services/privateNegotiationService.tsPublicKey, Keypair, Transaction, Connection, SystemProgram, Program
escrow/programs/magicblock-negotiation/src/lib.rsPubkey, seeds, Program, invoke_signed, AccountInfo

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/airotc/. 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
sdk/tsnpm run dev
sdk/tsnpm run build
sdk/tsnpm run test
escrownpm run lint
agents/elizaos-agentnpm run dev
agents/elizaos-agentnpm run build
middleman-agentnpm run dev
middleman-agentnpm run start
middleman-agentnpm run build
middleman-agentnpm run test
middleman-agent/zerion-corenpm run test
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
mcp/air-otc-servernpm run dev

What you could build from it