§ 10 — What powers Sealed
The stack, and what each piece actually does here.
No logo wall. Each dependency below says what job it does in Sealed, where it lives in the repo, and how far along that job is.
§ 10.1Chain
Solana
- Devnet · custodial deposits in development
Settlement layer. In custodial mode it carries deposits to and withdrawals from the company wallet; in onchain mode it runs the whole launch.
devnet today
Anchor
0.32
- On-chain · tests pending
Framework for the sealed_launchpad program: account constraints, PDAs, events, IDL generation, TypeScript client.
programs/sealed-launchpad
SPL Token
- On-chain · tests pending
Escrow, vault, pool and reward token accounts; minting with a PDA authority; burns from the pool reserve.
program, @solana/spl-token 0.4.9
@solana/web3.js
1.98
- Off-chain · tests passing
PublicKey, PDA derivation, connections and transactions across shared, defi, API and web.
all packages
§ 10.2Helius
Helius RPC
- Deposit watcher · in development
RPC endpoint built from
HELIUS_API_KEYwhenSOLANA_RPC_URLis unset; used for deposit detection on the company wallet and by the onchain indexer.apps/api config.ts
Helius indexing
- Onchain indexer · tests pending
getProgramAccounts + onLogs for the onchain-mode indexer; signature history for deposit detection.
workers/indexer.ts, src/offchain
Helius Privacy Rings
- Simulated · proxy live
Confidential amounts for deposits, refunds and payouts. Status probe and indexer proxy are real; escrow funding is simulated in demo and fails closed elsewhere.
services/heliusPrivacy.ts, packages/defi/src/privacy
§ 10.3Liquidity and wallets
Internal CPMM pool
- Live in demo
The graduation venue: constant-product, 1% fee in quote to the fee collector, no LP tokens (locked liquidity), same-slot anti-snipe.
program swap / ledger pool
Jupiter v6
- Off-chain · tests passing
Quote and swap-transaction builder for converting between quote assets before a pool swap. Timeouts, never throws into a worker.
packages/defi jupiter.ts, apps/api services/jupiter.ts
Raydium
- Optional · not wired
Optional CPMM / LaunchLab adapter that derives addresses and produces a migration plan. Nothing in the protocol calls it: moving liquidity would forfeit the fee routing and anti-snipe guarantees.
packages/defi raydium.ts
Solana Wallet Adapter
- Live in demo
Connect, signMessage (SIWS, bid-vault key, reveal authorisation), sendTransaction.
apps/web components/wallet
§ 10.4Application
Next.js on Vercel
15.0
- Live in demo
App Router web app and these docs. vercel.json installs from the monorepo root and builds shared → defi → web.
apps/web
Fastify on Railway
Node 22
- Off-chain · tests passing
REST, WebSocket hub, workers and /llms.txt in one process; Dockerfile + railway.json with a /api/health check.
apps/api
Postgres + Prisma
- Ledger · in development
Store of record and, in custodial mode, the double-entry ledger. Optional in demo (memory store).
apps/api/prisma
Redis
- Off-chain · tests passing
Short-TTL response cache and keeper job queue; in-process fallback.
apps/api/src/cache
tweetnacl
1.0.3
- Off-chain · tests passing
x25519 nacl.box sealing of auto-reveal payloads; ed25519 signature checks.
shared relayer.ts
@noble/hashes keccak_256
- Off-chain · tests passing
The bid commitment hash, matching the program's keccak.
shared commitment.ts
WebCrypto (HKDF + AES-GCM)
- Off-chain · tests passing
Encrypts bid salts at rest in IndexedDB with a key derived from a wallet signature.
packages/defi bidVault.ts
framer-motion
11
- Live in demo
Restrained motion: springs (260/26), rolling numbers, the rotating seal ring; reduced-motion respected.
apps/web
Tailwind CSS
3.4
- Live in demo
Design tokens from DESIGN.md: paper, ink, ultramarine signal, hairline rules, 14px cards.
apps/web
§ 10.5The type system
TypeScript
5.6
- Off-chain · tests passing
Strict mode in every package. DTOs use UI-unit numbers; transaction code uses bigint atoms; the two never mix in one object.
tsconfig.base.json
Zod
3.23
- Off-chain · tests passing
Runtime validation of launch input (2% cap), queries, reveal envelopes, custody requests and the API environment.
shared schemas.ts, custody.ts, api config.ts
@sealed/shared
- Off-chain · tests passing
The contract: constants mirrored in constants.rs, PDA seeds, clearing/fee/commitment math, REST/WS/custody types. These docs import it, so numbers cannot drift.
packages/shared
Tooling: pnpm 12 workspaces, node:test + tsx for unit, invariant and e2e tests, GitHub Actions CI (typecheck, build, tests, Docker boot, anchor build/test).