Sol.College

Structure lesson (licence does not allow quoting code)

Envelope

Private programmable treasury & payroll OS for crypto-native global businesses · Solana · KIRAPAY + Ika + Encrypt + Cloak + Dodo Payments

Original
arko05roy/Envelope
SuperStack fork
Blockchains/Envelope @ 04920b1
Stars
0
Last push (original)
2026-07-27
Languages
TypeScript, HTML, Rust, CSS, JavaScript
Detected stack
AnchorNext.jsweb3.js
Categories
DeFiPayments
Licence
none detected: code not quoted on Sol.College
Homepage
https://envelope-web-coral.vercel.app

Architecture

77 source files. By extension: .ts ×41, .tsx ×34, .js ×1, .rs ×1.

Top-level directorySource files
apps72
scripts3
programs1
packages1

On-chain programs: programs/envelope-policy

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
bind_dwalletUpdatePolicyprograms/envelope-policy/src/lib.rs:45
update_capUpdatePolicyprograms/envelope-policy/src/lib.rs:53

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
apps/web/lib/policy/client.tsPublicKey, Connection, Program, Keypair, Transaction, VersionedTransaction
scripts/sns-bootstrap.tsTransaction, sendAndConfirmTransaction, Connection, Keypair, PublicKey, SystemProgram
programs/envelope-policy/src/lib.rsPubkey, seeds, Program
apps/web/lib/sns/client.tsConnection, PublicKey, Program, getAccountInfo, getProgramAccounts
apps/web/lib/cloak/client.tsConnection, PublicKey, Keypair, Program
apps/web/app/api/treasury/route.tsPublicKey, Connection, getAssociatedTokenAddress, getBalance
apps/web/lib/payroll/orchestrator.tsConnection, Keypair, PublicKey
apps/web/lib/ika/client.tsConnection, PublicKey, Program, getAccountInfo
apps/web/lib/encrypt/client.tsPublicKey, Program
apps/web/app/api/policy/route.tsPublicKey, Connection
apps/web/app/api/me/route.tsPublicKey, Connection
scripts/cloak-spike.tsConnection, Keypair, getBalance

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/envelope/. 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 build
.npm run lint
apps/webnpm run dev
apps/webnpm run start
apps/webnpm run build
apps/webnpm run lint
.anchor build
.anchor test
.anchor run test
.cargo build
.cargo test

What you could build from it