Sol.College

Structure lesson (licence does not allow quoting code)

HUBKONPAY

Multi-rail B2B settlement infrastructure connecting banking and Web3 rails for emerging markets.

Original
FilipeRibeiro333/HUBKONPAY
SuperStack fork
Blockchains/HUBKONPAY @ cd11c3e
Stars
0
Last push (original)
2026-10-02
Languages
JavaScript, TypeScript, Rust, PowerShell, CSS, Dockerfile
Detected stack
AnchorNext.jsweb3.js
Categories
Payments
Licence
none detected: code not quoted on Sol.College

Architecture

389 source files. By extension: .js ×368, .jsx ×15, .ts ×3, .rs ×2, .tsx ×1.

Top-level directorySource files
hubkon-pay371
hubkon-frontend18

On-chain programs: hubkon-pay/hubkon-solana-contracts/programs/hubkon-solana-contracts

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
initializeInitializehubkon-pay/hubkon-solana-contracts/programs/hubkon-solana-contracts/src/lib.rs:9
release_to_vendorReleaseEscrowhubkon-pay/backend/src/lib.rs:40
anticipate_liquidityAnticipateLiquidityhubkon-pay/backend/src/lib.rs:55
close_escrow_accountCloseEscrowAccounthubkon-pay/backend/src/lib.rs:71

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
hubkon-pay/backend/src/services/transactionBuilder.jsPublicKey, getAssociatedTokenAddress, createTransferInstruction, Connection, Transaction, getLatestBlockhash
hubkon-pay/backend/src/services/rentService.jsPublicKey, Keypair, Connection, Program, AnchorProvider, findProgramAddressSync
hubkon-pay/backend/src/lib.rsPubkey, Program, AccountInfo
hubkon-pay/backend/src/services/exchangeService.jsPublicKey, Connection
hubkon-pay/backend/src/services/solanaService.jsConnection, Keypair
hubkon-frontend/app/wallet/page.jsxuseWallet, Pubkey
hubkon-pay/hubkon-solana-contracts/tests/hubkon-solana-contracts.tsProgram, AnchorProvider
hubkon-pay/backend/src/config/web3Mints.jsPublicKey
hubkon-pay/backend/src/services/indexerService.jsTransaction
hubkon-pay/backend/src/controllers/web3OrchestrationController.jsConnection
hubkon-frontend/app/dashboard/settle/page.jsxuseWallet
hubkon-frontend/app/components/Sidebar.tsxWalletMultiButton

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/hubkonpay/. 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
hubkon-pay/hubkon-solana-contractsnpm run lint
hubkon-pay/backendnpm run dev
hubkon-pay/backendnpm run start
hubkon-pay/backendnpm run test
hubkon-pay/backendnpm run lint
hubkon-frontendnpm run dev
hubkon-frontendnpm run start
hubkon-frontendnpm run build
hubkon-pay/hubkon-solana-contractsanchor build
hubkon-pay/hubkon-solana-contractsanchor test
hubkon-pay/hubkon-solana-contractsanchor run test

What you could build from it