Sol.College

Structure lesson (licence does not allow quoting code)

Archon

Original
TBaindurashvili/Archon
SuperStack fork
Blockchains/Archon @ d423bc5
Stars
0
Last push (original)
2026-05-13
Languages
TypeScript, Dockerfile, Rust, CSS, HTML
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

99 source files. By extension: .ts ×80, .tsx ×18, .rs ×1.

Top-level directorySource files
services64
app29
shared5
programs1

On-chain programs: programs/archon

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
revoke_mandateRevokeMandateprograms/archon/src/lib.rs:42

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
services/execution-engine/src/lib/rpc.tsPublicKey, VersionedTransaction, Connection, TransactionMessage, SystemProgram, transfer
app/src/components/mandate/MandatePanel.tsxPublicKey, TransactionMessage, VersionedTransaction, sendTransaction, useWallet, useConnection
app/src/views/MandateView.tsxTransactionMessage, VersionedTransaction, sendTransaction, useWallet, useConnection, getLatestBlockhash
services/execution-engine/__tests__/exec-pipeline.test.tsKeypair, PublicKey
programs/archon/src/lib.rsseeds, Pubkey, has_one, transfer, Program
services/execution-engine/src/lib/mandate.tsPublicKey, findProgramAddressSync, getAccountInfo
services/execution-engine/src/workers/exec-worker.tsPublicKey, transfer, Transaction, Keypair
app/src/lib/mandateUtils.tsPublicKey, findProgramAddressSync
app/src/hooks/useAgentBalance.tsuseConnection, PublicKey, getBalance
services/execution-engine/src/lib/memo.tsPublicKey, Program
services/execution-engine/__tests__/memo.test.tsPublicKey, Program
services/execution-engine/src/lib/jupiter.tsPublicKey

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/archon/. 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
sharednpm run dev
sharednpm run build
appnpm run dev
appnpm run build
appnpm run lint
services/api-gatewaynpm run dev
services/api-gatewaynpm run start
services/api-gatewaynpm run build
services/audit-indexernpm run dev
services/audit-indexernpm run start
services/audit-indexernpm run build
services/execution-enginenpm run dev
services/execution-enginenpm run start
services/execution-enginenpm run build
services/execution-enginenpm run test

What you could build from it