Sol.College

Structure lesson (licence does not allow quoting code)

Alpha_pods

On devnet

Original
ross2121/Alpha_pods
SuperStack fork
Blockchains/Alpha_pods @ c5a7d0a
Stars
0
Last push (original)
2026-03-16
Languages
TypeScript, Rust, HTML, JavaScript, Dockerfile, PLpgSQL
Detected stack
AnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://t.me/Alpha_Pods_bot

Architecture

73 source files. By extension: .ts ×38, .rs ×21, .tsx ×13, .js ×1.

Top-level directorySource files
src33
alpha_pods22
docs15
indexer3

On-chain programs: alpha_pods/programs/alpha_pods

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
initializeInitializealpha_pods/programs/alpha_pods/src/lib.rs:17
depositDepositalpha_pods/programs/alpha_pods/src/lib.rs:21
deposit_mintDepositMintalpha_pods/programs/alpha_pods/src/lib.rs:24
withdraw_mintWithdrawMintalpha_pods/programs/alpha_pods/src/lib.rs:29
execute_signed_txSignedtxnalpha_pods/programs/alpha_pods/src/lib.rs:34
lppoolCreatePoolalpha_pods/programs/alpha_pods/src/lib.rs:38
add_postionInitializePostionalpha_pods/programs/alpha_pods/src/lib.rs:53
withdrawWithdrawalpha_pods/programs/alpha_pods/src/lib.rs:56
add_liquidity_by_strategyAddLiquidityByStrategyalpha_pods/programs/alpha_pods/src/lib.rs:59
add_binInitializeBinArrayalpha_pods/programs/alpha_pods/src/lib.rs:68
close_positionClosePostionalpha_pods/programs/alpha_pods/src/lib.rs:72
remove_liqudityRemoveliquidityalpha_pods/programs/alpha_pods/src/lib.rs:75

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
alpha_pods/tests/alpha_pods.tsPublicKey, SystemProgram, Keypair, getAccountInfo, getAssociatedTokenAddress, Transaction
src/contract/contract.tsPublicKey, SystemProgram, findProgramAddressSync, Keypair, ComputeBudgetProgram, getAssociatedTokenAddress
src/commands/liquidity.tsPublicKey, getAccountInfo, Connection, getBalance, getAssociatedTokenAddress, Keypair
src/services/governanceRealms.tsPublicKey, Transaction, getLatestBlockhash, getAssociatedTokenAddress, Connection, getAccountInfo
src/commands/swap.tsPublicKey, Connection, getAssociatedTokenAddress, Transaction, Program, Keypair
src/commands/closePosition.tsPublicKey, getAssociatedTokenAddress, Connection, getBalance, findProgramAddressSync, Program
docs/src/app/guides/program-integration/page.tsxPubkey, Program, seeds, Transaction, sendTransaction, PublicKey
alpha_pods/programs/alpha_pods/src/instructions/add_liquidity.rsCpiContext, Program, seeds, AccountInfo, transfer
alpha_pods/programs/alpha_pods/src/instructions/add_liquidty_by_strategy.rsCpiContext, Program, seeds, AccountInfo, transfer
src/commands/fund.tsConnection, PublicKey, getBalance, Keypair
alpha_pods/programs/alpha_pods/src/instructions/swap.rsCpiContext, Program, seeds, AccountInfo, transfer
src/services/governancePoller.tsPublicKey, Connection

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/alpha-pods/. 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 start
.npm run build
docsnpm run dev
docsnpm run start
docsnpm run build
docsnpm run lint
alpha_podsnpm run lint
alpha_podsanchor build
alpha_podsanchor test
alpha_podsanchor run test

What you could build from it