StealthGiveStealthGive
5 min setupGetting Started

Quick Start

Clone the repo, install dependencies, and run the full stack locally in under five minutes.

A working manual,

edited & set
by Ezra Nahumury

Prerequisites

Node.js≥ 20
npm≥ 9
Foundryforge, cast, anvil — install via foundryup
WalletAny EVM wallet with Arbitrum Sepolia ETH

Install

The repo is a monorepo with two workspaces: contracts and frontend.

  1. Clone the repository

    ── bash ──
    git clone https://github.com/EzraNahumury/iexec.git stealthgive
    cd stealthgive
  2. Install Foundry dependencies

    ── bash ──
    cd sc-StealthGive
    forge install
    cd ..
  3. Install frontend dependencies

    ── bash ──
    cd fe-stealthgive
    npm install
    cd ..

Run the Stack

The contracts are already live on Arbitrum Sepolia, so you only need the frontend dev server.

── bash ──
cd fe-stealthgive
npm run dev
# → http://localhost:3000

Verify the Walkthrough

Open http://localhost:3000, connect your wallet, and walk through the demo flow:

  1. Claim 1,000 SGD

    On /dashboard click Claim 1,000 SGD. There's a 24-hour cooldown per address.
  2. Wrap into cSGD

    Type 100, click Approve, then Wrap. You now hold 100 cSGD encrypted in the TEE.
  3. Donate privately

    Open the demo campaign on /campaigns. Donate any amount — your contribution is encrypted client-side; only the aggregate total is public.