Sol.College

Structure lesson (licence does not allow quoting code)

Aegis-Shield

Aegis-Shield

Original
Rayan-Solvex/Aegis-Shield
SuperStack fork
Blockchains/Aegis-Shield @ c1136c5
Stars
0
Last push (original)
2026-05-16
Languages
JavaScript, Rust, TypeScript, HTML, CSS
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://aegis-shield-iota.vercel.app

Architecture

34 source files. By extension: .jsx ×16, .js ×15, .ts ×2, .rs ×1.

Top-level directorySource files
src25
(root)3
scripts3
migrations1
programs1
tests1

On-chain programs: programs/aegis-audit-registry

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
approve_auditorApproveAuditorprograms/aegis-audit-registry/src/lib.rs:114
suspend_auditorSuspendAuditorprograms/aegis-audit-registry/src/lib.rs:136
top_up_auditor_stakeTopUpAuditorStakeprograms/aegis-audit-registry/src/lib.rs:154
revoke_viewing_grantRevokeViewingGrantprograms/aegis-audit-registry/src/lib.rs:233
close_viewing_grantCloseViewingGrantprograms/aegis-audit-registry/src/lib.rs:247
slash_auditorSlashAuditorprograms/aegis-audit-registry/src/lib.rs:264
withdraw_auditor_stakeWithdrawAuditorStakeprograms/aegis-audit-registry/src/lib.rs:300

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
src/hooks/useUmbra.jstransfer, Transaction, SystemProgram, Keypair, getLatestBlockhash, PublicKey
programs/aegis-audit-registry/src/lib.rsPubkey, seeds, Program, has_one, CpiContext, transfer
src/pages/PaymentLinks.jsxsignTransaction, PublicKey, Transaction, useWallet, VersionedTransaction, Connection
src/lib/umbra.jsPublicKey, Transaction, SystemProgram, transfer, createTransferInstruction, getAssociatedTokenAddress
src/lib/aegisAuditRegistry.jsPublicKey, Transaction, SystemProgram, findProgramAddressSync, signTransaction, getAccountInfo
tests/aegis-audit-registry.tsPublicKey, SystemProgram, Keypair, findProgramAddressSync, AnchorProvider, Program
src/hooks/useSolanaBalance.jsgetBalance, useConnection, useWallet, getAssociatedTokenAddress, PublicKey
src/pages/AuditReview.jsxTransaction, useConnection, useWallet, WalletMultiButton, PublicKey
src/pages/GiftCards.jsxuseWallet, transfer, WalletMultiButton, Transaction
migrations/deploy.tsPublicKey, AnchorProvider, Program, findProgramAddressSync, SystemProgram
src/pages/AuditPortal.jsxuseConnection, useWallet, WalletMultiButton
src/components/Layout/Header.jsxWalletMultiButton, useWallet

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/aegis-shield/. 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 build
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it