Sol.College

Structure lesson (licence does not allow quoting code)

ClimaProtect

Solana-native climate-risk evidence, verifiable rainfall receipts and parametric policy prototype.

Original
knarayanareddy/ClimaProtect
SuperStack fork
Blockchains/ClimaProtect @ 6a45759
Stars
1
Last push (original)
2026-10-12
Languages
TypeScript, Rust, JavaScript, HTML, CSS, Shell
Detected stack
AnchorNext.jsweb3.js
Categories
Infrastructure & Tooling
Licence
none detected: code not quoted on Sol.College
Homepage
https://climaprotect.hermes-cf-bot.workers.dev/evidence

Architecture

91 source files. By extension: .ts ×50, .tsx ×23, .rs ×15, .js ×3.

Top-level directorySource files
app17
programs15
offchain11
tests10
merged-app9
lib9
(root)7
scripts7

On-chain programs: programs/nimbus

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
set_pausedSetPausedprograms/nimbus/src/lib.rs:63
deposit_liquidityDepositLiquidityprograms/nimbus/src/lib.rs:101
withdraw_liquidityWithdrawLiquidityprograms/nimbus/src/lib.rs:165
init_quote_nonceInitQuoteNonceprograms/nimbus/src/lib.rs:232
cancel_policyCancelPolicyprograms/nimbus/src/lib.rs:375
settle_policySettlePolicyprograms/nimbus/src/lib.rs:514
init_timelockInitTimelockCtxprograms/nimbus/src/lib.rs:641
execute_admin_operationExecuteOperationCtxprograms/nimbus/src/lib.rs:685
cancel_admin_operationCancelOperationCtxprograms/nimbus/src/lib.rs:731
approve_governance_proposalApproveProposalCtxprograms/nimbus/src/lib.rs:772
execute_governance_proposalExecuteProposalCtxprograms/nimbus/src/lib.rs:780

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
lib/nimbus.tsPublicKey, getAssociatedTokenAddress, Transaction, Connection, findProgramAddressSync, Program
programs/nimbus/src/lib.rsseeds, Program, CpiContext, transfer, Pubkey, init_if_needed
tests/nimbus.tsPublicKey, findProgramAddressSync, Keypair, SystemProgram, requestAirdrop, Program
tests/security-audit.tsPublicKey, findProgramAddressSync, Keypair, SystemProgram, requestAirdrop, Program
offchain/policy-monitor.tsPublicKey, findProgramAddressSync, getProgramAccounts, Connection, Program, AnchorProvider
scripts/deploy.tsPublicKey, getAssociatedTokenAddress, getAccountInfo, Keypair, SystemProgram, Connection
scripts/localnet-policy-proof.tsgetAccountInfo, Keypair, SystemProgram, PublicKey, getAssociatedTokenAddressSync, Connection
tests/deserialize.test.tsPublicKey
tests/wallet-submit.test.tsTransaction, Keypair, sendTransaction, Connection, signTransaction, getLatestBlockhash
lib/deserialize.tsPublicKey
offchain/oracle-aggregator.tsPublicKey, Connection, Keypair, Program, AnchorProvider, findProgramAddressSync
scripts/demo-settle.tsKeypair, Connection, SystemProgram, Program, AnchorProvider, getAccountInfo

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/climaprotect/. 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
.npm run start
.npm run build
.npm run test
.npm run lint
.npm run deploy
.anchor build
.anchor test
.anchor run test

What you could build from it