Smart Contracts
Overview
Six Solidity contracts orchestrate the confidential crowdfunding flow. Five are deployed on Arbitrum Sepolia; one is iExec's NoxCompute precompile.
A working manual,
edited & set
by Ezra Nahumury
Contract Set
fig.
StealthGiveDollar
Public ERC-20 (SGD) with a 1,000 / 24 h claim(). Underlying asset for cSGD.
fig.
ConfidentialSGD
Concrete instance of iExec's ERC20ToERC7984Wrapper. Wraps SGD ↔ cSGD 1:1.
fig.
StealthGiveFactory
Deploys + registers Campaign instances. Bound to cSGD at construction.
fig.
Campaign
Per-fundraiser contract. State machine: Active → Settling → Withdrawn / Refunding.
fig.
ConfidentialEscrow
Abstract base. Holds the encrypted aggregate + per-donor handles. Wraps every Nox SDK call.
fig.
CampaignRegistry
View-only indexer for the frontend. Lists active campaigns and produces summaries.
Deployed Addresses
All contracts are source-verified on Arbiscan.
| StealthGiveDollar (SGD) | 0xCA662c692e67A5ec3402D13327895eA762F702Bb |
| ConfidentialSGD (cSGD) | 0xa89340C4BC163ced823653d09DB1E1ba65Ca6849 |
| StealthGiveFactory | 0xbD124A4C743847f5862024906B66ABeDeB9cCB6e |
| CampaignRegistry | 0x1023b4ff42c3Ed560B07b9A705E9A2d0Fc465DC4 |
| Demo Campaign | 0x63b2b615c9112Bb03Cd25cbB0f8fcd82Dc8C124c |
| iExec NoxCompute (precompile) | 0xd464B198f06756a1d00be223634b85E0a731c229 |