Sol.College

Structure lesson (licence does not allow quoting code)

BlinkFlow

Original
SergZen/BlinkFlow
SuperStack fork
Blockchains/BlinkFlow @ 472c75a
Stars
0
Last push (original)
2026-11-02
Languages
TypeScript, Rust, HTML, JavaScript, CSS
Detected stack
Anchorweb3.js
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

90 source files. By extension: .rs ×30, .ts ×27, .tsx ×27, .js ×6.

Top-level directorySource files
app60
solana-program30

On-chain programs: solana-program/programs/blinkflow

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
set_protocol_pauseAdminProtocolsolana-program/programs/blinkflow/src/lib.rs:34
set_fee_recipientAdminProtocolsolana-program/programs/blinkflow/src/lib.rs:45
deposit_task_by_customerDepositTaskByCustomersolana-program/programs/blinkflow/src/lib.rs:100
add_contractor_to_dealAddContractorToDealsolana-program/programs/blinkflow/src/lib.rs:116
accept_deal_by_contractorAcceptDealByContractorsolana-program/programs/blinkflow/src/lib.rs:120
accept_task_by_contractorAcceptTaskByContractorsolana-program/programs/blinkflow/src/lib.rs:124
cancel_task_by_contractorCancelTaskByContractorsolana-program/programs/blinkflow/src/lib.rs:137
cancel_task_by_customerCancelTaskByCustomersolana-program/programs/blinkflow/src/lib.rs:141
refund_task_deadlineRefundTaskDeadlinesolana-program/programs/blinkflow/src/lib.rs:145
finish_task_by_contractorFinishTaskByContractorsolana-program/programs/blinkflow/src/lib.rs:149
close_deal_accountCloseDealAccountsolana-program/programs/blinkflow/src/lib.rs:154
close_task_accountCloseTaskAccountsolana-program/programs/blinkflow/src/lib.rs:158
withdraw_protocol_feeWithdrawProtocolFeesolana-program/programs/blinkflow/src/lib.rs:172

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
app/src/lib/client/chainClient.tsPublicKey, SystemProgram, getAccountInfo, Transaction, ComputeBudgetProgram, seeds
solana-program/programs/blinkflow/src/events.rsPubkey
solana-program/programs/blinkflow/src/instructions/resolve_dispute.rsseeds, has_one, AccountInfo, Program, CpiContext
solana-program/programs/blinkflow/src/sbt.rsAccountInfo, invoke_signed, Pubkey
solana-program/programs/blinkflow/src/instructions/complete_task_by_customer.rsseeds, AccountInfo, has_one, Program, CpiContext
solana-program/programs/blinkflow/src/instructions/release_task_after_review_period.rsseeds, AccountInfo, Program, has_one, CpiContext
solana-program/programs/blinkflow/src/instructions/deposit_task_by_customer.rsseeds, Program, AccountInfo, has_one, CpiContext
solana-program/programs/blinkflow/src/instructions/init_deal_by_customer.rsseeds, Program, AccountInfo, Pubkey, CpiContext
solana-program/programs/blinkflow/src/instructions/init_deal_by_contractor.rsseeds, Program, AccountInfo
solana-program/programs/blinkflow/src/instructions/init_protocol.rsseeds, Program, AccountInfo
solana-program/programs/blinkflow/src/instructions/add_task_by_customer.rsseeds, Program, has_one, CpiContext
solana-program/programs/blinkflow/src/instructions/accept_deal_by_contractor.rsseeds, AccountInfo, 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/blinkflow/. 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
appnpm run dev
appnpm run start
appnpm run build
appnpm run lint
app/servernpm run start
solana-programanchor build
solana-programanchor test

What you could build from it