Sol.College

Structure lesson (licence does not allow quoting code)

COLONII-Colosseum-Frontier

COLONII: Self-Sovereign Avatar Identity on Solana

Original
AileenColonii/COLONII-Colosseum-Frontier
SuperStack fork
Blockchains/COLONII-Colosseum-Frontier @ 89580d2
Stars
0
Last push (original)
2026-05-12
Languages
TypeScript, Rust, CSS, Python, JavaScript
Detected stack
AnchorNext.jsweb3.js
Categories
Wallets & Identity
Licence
none detected: code not quoted on Sol.College

Architecture

64 source files. By extension: .ts ×36, .rs ×19, .tsx ×6, .js ×2, .py ×1.

Top-level directorySource files
programs19
lib14
app12
sdk10
(root)3
scripts3
demo2
server1

On-chain programs: programs/colonii-identity

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
initialize_didInitializeDidprograms/colonii-identity/src/lib.rs:32
deactivate_didDeactivateDidprograms/colonii-identity/src/lib.rs:62
create_issuerCreateIssuerprograms/colonii-identity/src/lib.rs:67
bind_avatarBindAvatarprograms/colonii-identity/src/lib.rs:72
revoke_credentialRevokeCredentialprograms/colonii-identity/src/lib.rs:96
handlerInitializeDidprograms/colonii-identity/src/instructions/initialize_did.rs:35
handlerCreateIssuerprograms/colonii-identity/src/instructions/create_issuer.rs:28
handlerBindAvatarprograms/colonii-identity/src/instructions/bind_avatar.rs:24
handlerRevokeCredentialprograms/colonii-identity/src/instructions/revoke_credential.rs:25
handlerDeactivateDidprograms/colonii-identity/src/instructions/deactivate_did.rs:25
handlerUpdateAvatarBindingprograms/colonii-identity/src/instructions/update_avatar.rs:27

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
sdk/src/client.tsPublicKey, Program, AnchorProvider, Keypair, Connection
sdk/src/mock.tsPublicKey, Keypair
lib/colonii-sdk/mock.tsPublicKey, Keypair
demo/src/program-behavior.test.tsKeypair, Program, Connection, PublicKey, SystemProgram, AnchorProvider
sdk/src/pda.tsPublicKey, findProgramAddressSync
lib/colonii-sdk/pda.tsPublicKey, findProgramAddressSync
programs/colonii-identity/src/events.rsPubkey
sdk/src/types.tsPublicKey
lib/colonii-sdk/types.tsPublicKey
lib/colonii-sdk/client-browser.tsPublicKey, Keypair
programs/colonii-identity/src/instructions/issue_credential.rsseeds, has_one, Program
demo/src/demo.tsKeypair, Connection, AnchorProvider

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/colonii-colosseum-frontier/. 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
sdknpm run build
sdknpm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it