Sol.College

Structure lesson (licence does not allow quoting code)

ChainTrust

ChainTrust is a public ledger on Solana that bridges off-chain legal entities with their on-chain presence.

Original
lyysksj/ChainTrust
SuperStack fork
Blockchains/ChainTrust @ 1e26cb5
Stars
0
Last push (original)
2026-07-14
Languages
TypeScript, HTML, JavaScript, Rust, RouterOS Script, CSS
Detected stack
@solana/kitAnchorNext.jsweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://chaintrust-staging.vercel.app/

Architecture

204 source files. By extension: .js ×93, .ts ×79, .tsx ×27, .rs ×5.

Top-level directorySource files
.next_broken_1777711424117
lib33
app26
components14
anchor6
scripts5
(root)2
types1

On-chain programs: anchor/programs/chaintrust

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
revoke_relationshipRevokeRelationshipanchor/programs/chaintrust/src/instructions.rs:943
claim_entityClaimEntityanchor/programs/chaintrust/src/instructions.rs:990
like_commentLikeCommentanchor/programs/chaintrust/src/instructions.rs:1206
unlike_commentUnlikeCommentanchor/programs/chaintrust/src/instructions.rs:1238
revoke_relationshipRevokeRelationshipanchor/programs/chaintrust/src/lib.rs:135
claim_entityClaimEntityanchor/programs/chaintrust/src/lib.rs:139
like_commentLikeCommentanchor/programs/chaintrust/src/lib.rs:177
unlike_commentUnlikeCommentanchor/programs/chaintrust/src/lib.rs:181

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/anchor/client.tsPublicKey, Program, SystemProgram, AnchorProvider, Connection, Keypair
.next_broken_1777711424/server/chunks/978.jsseeds, PublicKey, findProgramAddressSync, SystemProgram, Keypair, signTransaction
anchor/tests/smoke.tsPublicKey, SystemProgram, Keypair, findProgramAddressSync, AnchorProvider, Program
anchor/programs/chaintrust/src/instructions.rsseeds, Program, Pubkey, AccountInfo, init_if_needed
lib/anchor/pdas.tsPublicKey, findProgramAddressSync
lib/sas/instructions.tsPublicKey, SystemProgram, Pubkey
scripts/init-registry.tsTransaction, VersionedTransaction, Keypair, Program, AnchorProvider, Connection
lib/server/anchor-server.tsTransaction, VersionedTransaction, AnchorProvider, Program, Keypair, Connection
types/index.tsPublicKey
anchor/programs/chaintrust/src/state.rsPubkey
lib/sas/pdas.tsPublicKey, findProgramAddressSync, seeds
lib/sas/reader.tsPublicKey, Connection, getProgramAccounts

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/chaintrust/. 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 lint
anchoranchor build
anchoranchor test
anchoranchor run test

What you could build from it