Sol.College

Structure lesson (licence does not allow quoting code)

HyperSettle.sol

Original
guha-rahul/HyperSettle.sol
SuperStack fork
Blockchains/HyperSettle.sol @ a0a7eee
Stars
0
Last push (original)
2026-05-31
Languages
Solidity, JavaScript, TypeScript, Rust, Python, CSS
Detected stack
@solana/kitAnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://hypersettle.vercel.app

Architecture

873 source files. By extension: .sol ×509, .js ×263, .rs ×46, .ts ×37, .tsx ×16, .py ×2.

Top-level directorySource files
packages873

On-chain programs: packages/hub/programs/hypersettle-hub, packages/solana-spoke/programs/hypersettle-spoke

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
reveal_net_payoutsRevealNetPayoutspackages/hub/programs/hypersettle-hub/src/lib.rs:99
reveal_settlementRevealSettlementpackages/hub/programs/hypersettle-hub/src/lib.rs:126
handlerRequestSettlementDecryptionpackages/hub/programs/hypersettle-hub/src/instructions/request_settlement_decryption.rs:53
handlerRevealSettlementpackages/hub/programs/hypersettle-hub/src/instructions/reveal_settlement.rs:34
handlerRequestNetPayoutDecryptionpackages/hub/programs/hypersettle-hub/src/instructions/request_net_payout_decryption.rs:57
handlerRevealNetPayoutspackages/hub/programs/hypersettle-hub/src/instructions/reveal_net_payouts.rs:31
bind_tickerBindTickerpackages/solana-spoke/programs/hypersettle-spoke/src/lib.rs:29
execute_settlementExecuteSettlementpackages/solana-spoke/programs/hypersettle-spoke/src/lib.rs:90
handlerExecuteSettlementpackages/solana-spoke/programs/hypersettle-spoke/src/instructions/execute_settlement.rs:81
handlerMintTestUsdcpackages/solana-spoke/programs/hypersettle-spoke/src/instructions/mint_test_usdc.rs:49
handlerBindTickerpackages/solana-spoke/programs/hypersettle-spoke/src/instructions/bind_ticker.rs:49

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
packages/sdk/demo/netting-testnet/settle-server.tsPublicKey, SystemProgram, Connection, Keypair, findProgramAddressSync, Program
packages/sdk/demo/netting/solana.tsPublicKey, Keypair, findProgramAddressSync, Program, SystemProgram, Connection
packages/solana-spoke/tests/hypersettle-spoke.tsPublicKey, Transaction, findProgramAddressSync, SystemProgram, Keypair, Program
packages/sdk/demo/netting-testnet/run.tsPublicKey, Program, Keypair, Connection, SystemProgram, Transaction
packages/hub/tests/hypersettle-hub.tsPublicKey, SystemProgram, findProgramAddressSync, Program, Keypair, AnchorProvider
packages/sdk/demo/netting-testnet/deploy-sol.tsPublicKey, Program, findProgramAddressSync, Keypair, SystemProgram, mintTo
packages/frontend/components/FaucetCard.tsxPublicKey, findProgramAddressSync, SystemProgram, Transaction, useConnection, useWallet
packages/solana-spoke/scripts/setup-devnet.tsPublicKey, findProgramAddressSync, Keypair, sendAndConfirmTransaction, SystemProgram, Transaction
packages/frontend/components/DepositCard.tsxPublicKey, findProgramAddressSync, Transaction, useConnection, useWallet, WalletMultiButton
packages/sdk/demo/netting-testnet/rebind-sol-keccak.tsPublicKey, Program, findProgramAddressSync, Connection, Keypair, SystemProgram
packages/hub/programs/hypersettle-hub/src/instructions/encrypt_decryption.rsAccountInfo, invoke_signed, seeds
packages/sdk/demo/netting-testnet/enable-sol-faucet.tsPublicKey, Keypair, Connection, mintTo, transfer

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/hypersettle-sol/. 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
packages/hubnpm run lint
packages/frontendnpm run dev
packages/frontendnpm run start
packages/frontendnpm run build
packages/sdknpm run build
packages/solana-spokenpm run lint
packages/hubanchor build
packages/hubanchor test
packages/hubanchor run test
packages/solana-spokeanchor build
packages/solana-spokeanchor test
packages/solana-spokeanchor run test

What you could build from it