Sol.College

Structure lesson (licence does not allow quoting code)

Fractionax

Original
nizarsyahmi37/Fractionax
SuperStack fork
Blockchains/Fractionax @ 95780e4
Stars
0
Last push (original)
2026-02-04
Languages
Solidity, TypeScript, Rust, MDX, CSS, JavaScript
Detected stack
AnchorNext.js
Categories
Other
Licence
none detected: code not quoted on Sol.College
Homepage
https://fractionaxapp.vercel.app

Architecture

123 source files. By extension: .tsx ×98, .rs ×16, .ts ×9.

Top-level directorySource files
components45
app36
programs16
stories6
(root)4
lib4
.storybook4
db3

On-chain programs: programs/erc3643-anchor, programs/transfer-hook

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
remove_claimRemoveClaimprograms/erc3643-anchor/src/lib.rs:50
mint_tokensMintTokensprograms/erc3643-anchor/src/lib.rs:72
burn_tokensBurnTokensprograms/erc3643-anchor/src/lib.rs:77
set_pause_statusSetPauseStatusprograms/erc3643-anchor/src/lib.rs:109
check_verificationCheckVerificationprograms/erc3643-anchor/src/lib.rs:124
add_claim_topicAddClaimTopicprograms/erc3643-anchor/src/lib.rs:149
remove_claim_topicRemoveClaimTopicprograms/erc3643-anchor/src/lib.rs:154
update_countryUpdateCountryprograms/erc3643-anchor/src/lib.rs:159
delete_identityDeleteIdentityprograms/erc3643-anchor/src/lib.rs:164
add_agentAddAgentprograms/erc3643-anchor/src/lib.rs:169
remove_agentRemoveAgentprograms/erc3643-anchor/src/lib.rs:174
transfer_ownershipTransferOwnershipprograms/erc3643-anchor/src/lib.rs:179
check_verificationCheckVerificationprograms/erc3643-anchor/src/instructions/compliance.rs:243
validate_claimValidateClaimprograms/erc3643-anchor/src/instructions/compliance.rs:310
verify_identityVerifyIdentityprograms/erc3643-anchor/src/instructions/compliance.rs:367
set_transfer_hookSetTransferHookprograms/erc3643-anchor/src/instructions/initialize_token.rs:242
mint_tokensMintTokensprograms/erc3643-anchor/src/instructions/token.rs:51
burn_tokensBurnTokensprograms/erc3643-anchor/src/instructions/token.rs:142
remove_claimRemoveClaimprograms/erc3643-anchor/src/instructions/identity.rs:265
update_countryUpdateCountryprograms/erc3643-anchor/src/instructions/identity.rs:339
delete_identityDeleteIdentityprograms/erc3643-anchor/src/instructions/identity.rs:382
remove_trusted_issuerRemoveTrustedIssuerprograms/erc3643-anchor/src/instructions/admin.rs:87
set_pause_statusSetPauseStatusprograms/erc3643-anchor/src/instructions/admin.rs:324
add_claim_topicAddClaimTopicprograms/erc3643-anchor/src/instructions/admin.rs:373
remove_claim_topicRemoveClaimTopicprograms/erc3643-anchor/src/instructions/admin.rs:415
add_agentAddAgentprograms/erc3643-anchor/src/instructions/admin.rs:450
remove_agentRemoveAgentprograms/erc3643-anchor/src/instructions/admin.rs:491
transfer_ownershipTransferOwnershipprograms/erc3643-anchor/src/instructions/admin.rs:532
executeExecuteprograms/transfer-hook/src/lib.rs:163

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
programs/erc3643-anchor/src/events.rsPubkey, transfer
programs/erc3643-anchor/src/instructions/admin.rsseeds, Pubkey, has_one, init_if_needed, Program
programs/erc3643-anchor/src/instructions/token.rsseeds, transfer, Pubkey, Program, CpiContext
programs/erc3643-anchor/src/instructions/compliance.rsseeds, Pubkey, transfer
programs/erc3643-anchor/src/lib.rsPubkey, transfer
programs/erc3643-anchor/src/utils.rsPubkey, AccountInfo, seeds, transfer
programs/erc3643-anchor/src/instructions/initialize_token.rsseeds, transfer, Program, has_one, Pubkey
programs/erc3643-anchor/src/instructions/identity.rsseeds, Pubkey, Program
programs/transfer-hook/src/lib.rstransfer, Pubkey, seeds, CpiContext, Program, AccountInfo
programs/erc3643-anchor/src/state/identity.rsPubkey
programs/erc3643-anchor/src/state/claims.rsPubkey
programs/erc3643-anchor/src/state/compliance.rsPubkey, 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/fractionax/. 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

What you could build from it