Non-custodial Solana applications: escrow-backed play, Core Candy Machine minting, and Solana Actions (Blinks).
On-chain programs hold authority over funds and settlement. The web app orchestrates wallets, builds transactions, and serves public surfaces. Postgres mirrors derived state for profiles, studio workflows, and operator tooling — never for custody or payout logic.
| Environment | Application | Network |
|---|---|---|
| Playtest | dev.iozone.dev | Devnet |
| Production | www.iozone.dev | Mainnet |
Mainnet ships in rollout phases: live surfaces are enabled per deployment; others remain wired but gated in the UI until their phase opens. Devnet runs the full feature set for rehearsal.
Think of the stack as three layers with a single rule: the chain decides; the app proposes; the database reflects.
| Layer | Responsibility |
|---|---|
| Ledger | Anchor programs — escrow, settlement, and program-owned rules |
| Interface | Next.js App Router — wallet flows, API routes, Actions/Blinks, CM Studio |
| Mirror | Supabase (Postgres) — history, studio project state, admin audit; isolated per network |
Wallet signing stays in the browser. Server routes hold RPC credentials, webhooks, and service-role database access. Nothing in this repository moves user funds without an explicit wallet signature against on-chain instruction data.
| Path | Role |
|---|---|
programs/rps_escrow/ |
Anchor program — 1v1 RPS escrow, commit–reveal, payouts |
packages/sdk/ |
TypeScript client (@rps/sdk) for the escrow program |
packages/cm-create/ |
Core Candy Machine guard/config helpers shared by studio UI |
apps/web/ |
Next.js application — play, mint, profile, Blinks, admin CM Studio |
supabase/migrations/ |
Schema, RLS, and RPCs for mirrored application state |
Additional on-chain crates (e.g. fixed-price NFT sale) live beside the escrow program where deployed; see nested READMEs under those directories for scope.
Rock Paper Scissors (escrow) — Create/join matches with commit–reveal fairness. Stakes and winners are enforced by the program, not the database.
CM Studio & public mint — Metaplex Core Candy Machine lifecycle: collection setup, guard groups (phased drops), allowlists, deploy pipeline, and hosted public mint tabs. Guard policy (including bot tax configuration) is enforced on-chain at mint time.
Solana Actions / Blinks — HTTP Actions for wallet-native flows without leaving chat or social surfaces:
- RPS match create and join
- NFT fixed-price purchase
- Core Candy Machine mint (hosted slot / phase parameters via query string)
Discovery documents are served from each deployment’s origin (/actions.json and companion manifests).
Profile & marketplace lanes — Player identity and collection presentation; marketplace integration follows the same rollout gates as other mainnet features.
- Solana / Anchor — program builds and upgrades tracked in-repo
- Metaplex Core Candy Machine — primary NFT mint path in CM Studio
- Next.js 16 —
apps/web; production builds use webpack for stable wallet adapter resolution under pnpm - Supabase — separate projects for devnet and mainnet data planes
- Vercel — two deployments from one monorepo (devnet host vs mainnet host); root
vercel.jsondrives install and output paths - Helius — RPC and optional transaction webhooks for mirror indexing
- Upstash Redis — optional cross-instance API rate limits; in-memory fallback when unset
- CI — GitHub Actions: install, typecheck, lint, web build, and Rust checks on program crates
Scheduled maintenance jobs are triggered via GitHub Actions against deployment URLs, not Vercel Cron.
- Funds and game outcomes — determined only by on-chain program execution.
- Mint eligibility — Candy Guard rules on Solana; the UI pre-simulates and validates transaction shape before wallet prompts.
- Treasury movements — manual, wallet-signed transfers; no automated hot-wallet sweep in application code.
- Secrets — environment templates only; never commit keys, webhook secrets, or service-role material.
- Database — CM Studio and admin tables are not exposed to anonymous clients; public mint reads hosted configuration through controlled API surfaces.
Review program upgrade authority and deployment environment posture before mainnet operation.
Requirements: Node 20.x, pnpm 9 (see root packageManager), Rust + Anchor when modifying programs.
corepack enable
pnpm install --frozen-lockfile
pnpm typecheck
pnpm -C apps/web devAnchor builds and integration tests are documented for WSL2 on Windows in docs/LOCAL_DEV.md. Operational IDs and env naming live in docs/HANDOFF.md (contributors and operators — not required for end users).
- Set Vercel Root Directory to the repository root (where
vercel.jsonlives), notapps/web. - Build command and output path are defined in root
vercel.json(apps/web/.next). - Hostname, Supabase project, and program IDs must match the target network; see
deploy/DEPLOY_STACK_SPLIT.md.
| Document | Audience |
|---|---|
docs/HANDOFF.md |
Operators — env keys, IDs, runbooks |
docs/LOCAL_DEV.md |
Local setup and Windows/WSL notes |
deploy/DEPLOY_STACK_SPLIT.md |
Two-host deployment topology |
docs/CRON_GITHUB_ACTIONS.md |
Scheduled job authentication |
AGENTS.md |
Agent/IDE guardrails (internal) |
Open-source monorepo for Solana-native products under the ioZone umbrella. Mainnet capabilities expand by rollout phase; devnet remains the integration sandbox.