Sol.College

Structure lesson (licence does not allow quoting code)

Clarity-Portfolio-Analytics-Platform

Multi-chain crypto portfolio analyzer with TradFi-grade risk metrics and AI advisor

Original
SRGign/Clarity-Portfolio-Analytics-Platform
SuperStack fork
Blockchains/Clarity-Portfolio-Analytics-Platform @ ad69b7c
Stars
0
Last push (original)
2026-05-11
Languages
Java, TypeScript, CSS, Shell, JavaScript
Detected stack
@solana/kitNext.jsweb3.js
Categories
AI & Agents
Licence
none detected: code not quoted on Sol.College

Architecture

44 source files. By extension: .ts ×37, .tsx ×7.

Top-level directorySource files
solana-defi-worker30
frontend14

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
solana-defi-worker/src/adapters/marginfi.adapter.tsPublicKey, Transaction, VersionedTransaction, getProgramAccounts, signTransaction
solana-defi-worker/src/adapters/save.adapter.tsPublicKey, AccountInfo, getProgramAccounts
solana-defi-worker/src/adapters/orca-whirlpool.adapter.tsPublicKey, Transaction, VersionedTransaction, Keypair, signTransaction
solana-defi-worker/src/adapters/meteora-dlmm.adapter.tsPublicKey
solana-defi-worker/src/adapters/kamino-liquidity.adapter.tsPublicKey
solana-defi-worker/src/adapters/meteora-dynamic.adapter.tsPublicKey
solana-defi-worker/src/adapters/marinade-native.adapter.tsPublicKey
solana-defi-worker/src/adapters/jupiter-perps.adapter.tsPublicKey, getProgramAccounts
solana-defi-worker/src/adapters/raydium-clmm.adapter.tsPublicKey
solana-defi-worker/src/adapters/raydium-amm.adapter.tsPublicKey
solana-defi-worker/src/service.tsPublicKey
solana-defi-worker/src/rpc.tsConnection

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/clarity-portfolio-analytics-platform/. 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 build
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
solana-defi-workernpm run dev
solana-defi-workernpm run start
solana-defi-workernpm run build
solana-defi-workernpm run test

What you could build from it