Sol.College

Structure lesson (licence does not allow quoting code)

IM-Cloud

Original
ingolau/IM-Cloud
SuperStack fork
Blockchains/IM-Cloud @ 0925ab3
Stars
0
Last push (original)
2026-05-11
Languages
TypeScript, Rust, JavaScript, Shell, CSS, HTML
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

79 source files. By extension: .ts ×38, .tsx ×20, .rs ×17, .js ×4.

Top-level directorySource files
dashboard39
relay16
programs10
client7
sdk6
scripts1

On-chain programs: programs/im_cloud

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_networkInitializeNetworkprograms/im_cloud/src/lib.rs:15
register_providerRegisterProviderprograms/im_cloud/src/lib.rs:19
create_taskCreateTaskprograms/im_cloud/src/lib.rs:23
assign_taskAssignTaskprograms/im_cloud/src/lib.rs:27
submit_resultSubmitResultprograms/im_cloud/src/lib.rs:31
timeout_taskTimeoutTaskprograms/im_cloud/src/lib.rs:35
assign_task_handlerAssignTaskprograms/im_cloud/src/instructions/assign_task.rs:16
initialize_network_handlerInitializeNetworkprograms/im_cloud/src/instructions/initialize_network.rs:22
timeout_task_handlerTimeoutTaskprograms/im_cloud/src/instructions/timeout_task.rs:33
register_provider_handlerRegisterProviderprograms/im_cloud/src/instructions/register_provider.rs:20

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/im_cloud/src/lib.rsPubkey
programs/im_cloud/src/instructions/submit_result.rsseeds, transfer, CpiContext, Program, Pubkey
programs/im_cloud/src/instructions/timeout_task.rsseeds, transfer, CpiContext, Program, Pubkey
programs/im_cloud/src/instructions/create_task.rsseeds, transfer, Program, CpiContext, Pubkey
relay/src/services/indexer.tsConnection, PublicKey, getAccountInfo
programs/im_cloud/src/state.rsPubkey
programs/im_cloud/src/instructions/initialize_network.rsPubkey, seeds, Program
sdk/src/client.tsKeypair, PublicKey
relay/src/routes/provider.tsPublicKey, Transaction
relay/tests/provider.test.tsKeypair
relay/tests/index.test.tsPublicKey, getAccountInfo
programs/im_cloud/src/instructions/register_provider.rsseeds, Program, Pubkey

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/im-cloud/. 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 build
.npm run test
.npm run lint
sdknpm run build
sdknpm run test
dashboardnpm run dev
dashboardnpm run build
relaynpm run dev
relaynpm run start
relaynpm run build
relaynpm run test
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it