StealthGiveStealthGive
Frontend

Overview

Next.js 16 App Router app with strict TypeScript, Tailwind v4, and zero off-chain backend services.

A working manual,

edited & set
by Ezra Nahumury

Stack

FrameworkNext.js 16, React 19, App Router
WalletRainbowKit 2.2 + Wagmi 2.19 + Viem 2.48
StylingTailwind CSS v4 + lucide-react + Framer Motion
StateTanStack Query 5
Confidential UX@iexec-nox/handle 0.1.0-beta.10
BackendNone — view contract for indexing

Folder Structure

Fig. iv — the working directory.
directory
▸fe-stealthgive/
root
app/Next.js App Router pages
layout.tsxroot layout
providers.tsxWagmi · RainbowKit · QueryClient
page.tsxlanding
welcome/first-time onboarding
dashboard/claim · wrap · reveal
campaigns/browse + detail
create/new campaign + AI assist
audit/Campaign.sol audit
api/server route handlers
time/gateway clock probe
ai/5 ChainGPT endpoints
components/view layer
header.tsx
total-raised.tsxpublicDecrypt + auto-retry
campaign-card.tsx
campaign-review.tsxChainGPT risk review
impact-report.tsxChainGPT impact narrative
markdown.tsxlightweight MD renderer
lib/shared utilities
abis.tsauto-generated from forge
addresses.ts
nox.tsSDK wrapper + auth-refresh
clock.tswithCorrectedClock helper
metadata.tsdata: URI parser (UTF-8 safe)
gas.tsArbitrum Sepolia gas overrides

Routes

/Landing — hero, features, ChainGPT touchpoints, stats
/welcomeThree-path onboarding (Donate · Create · Wallet)
/dashboardClaim SGD, wrap to cSGD, reveal balance
/campaignsBrowse all campaigns (paginated)
/campaigns/[address]Detail · donate · settle · withdraw · refund
/createForm + AI draft + AI hero image
/auditStandalone full audit of Campaign.sol