Sol.College

Structure lesson (licence does not allow quoting code)

ArcPay

Original
henrysammarfo/ArcPay
SuperStack fork
Blockchains/ArcPay @ 57db9e5
Stars
0
Last push (original)
2026-05-12
Languages
TypeScript, CSS, JavaScript, Rust, PLpgSQL, Shell
Detected stack
AnchorNext.jsweb3.js
Categories
Payments
Licence
none detected: code not quoted on Sol.College
Homepage
https://arc-pay-frontend.vercel.app

Architecture

240 source files. By extension: .tsx ×125, .ts ×114, .rs ×1.

Top-level directorySource files
packages240

On-chain programs: packages/program/programs/arcpay

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
packages/agent/src/ika-approve-message-proof.tsPublicKey, Transaction, Connection, Keypair, seeds, SystemProgram
packages/agent/src/ika-create-dwallet-proof.tsPublicKey, Connection, Keypair, getAccountInfo, getProgramAccounts, seeds
packages/sdk/src/program/arcpay-program.tsPublicKey, Connection, sendAndConfirmTransaction, SystemProgram, Transaction, findProgramAddressSync
packages/agent/src/x402-payment-proof.tsKeypair, getAssociatedTokenAddressSync, PublicKey, Connection, sendAndConfirmTransaction, Transaction
packages/sdk/src/types.tsPublicKey, Connection
packages/program/programs/arcpay/src/lib.rsPubkey, seeds, Program, has_one, CpiContext, transfer
packages/agent/src/program-policy-proof.tsPublicKey, Keypair, Connection, Transaction, Program, getLatestBlockhash
packages/sdk/src/privacy/cloak.tsPublicKey, signTransaction
packages/sdk/src/privacy/cloak-devnet.tsPublicKey, Connection, Keypair, getBalance
packages/agent/src/magicblock-private-payments-proof.tsKeypair, Connection, PublicKey, Transaction, VersionedTransaction
packages/agent/src/ika-proof.tsPublicKey, Connection, getAccountInfo, getBalance, Program
packages/agent/src/dflow-order-proof.test.tsKeypair, VersionedTransaction, TransactionMessage

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/arcpay/. 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
packages/sdknpm run build
packages/sdknpm run test
packages/programnpm run build
packages/programnpm run test
packages/frontendnpm run dev
packages/frontendnpm run build
packages/frontendnpm run test
packages/servernpm run dev
packages/servernpm run build
packages/servernpm run test
packages/agentnpm run build
packages/agentnpm run test
packages/clinpm run build
packages/clinpm run test

What you could build from it