NateRich.net Docs Lab Tools

Raffle Demo

A sponsor-funded raffle factory for Sepolia. A creator funds a prize pot, chooses the entry policy and prize distribution, and the factory launches a dedicated child raffle contract. Entrants pay no ticket price; they only spend Sepolia gas.

How the demo works

The mother contract is a factory. Each launch creates a separate immutable child raffle with its own funded ETH pot, entry list, deadline, entry policy, distribution mode, draw state, and claim state.

After the deadline, anyone can call requestDraw(). After the configured epoch delay, anyone can call executeDraw(). Winners are credited on-chain and claim with claim(); prizes are never pushed automatically. The full sequence, randomness model, and safety posture live in Lifecycle & draw and Contract posture.

Documentation

Status: Sepolia demo deployed and wired into /raffle/. The older lottery demo remains Quintile Lottery — its docs are the frozen-tier reference; this set tracks an iterating contract, so it describes intent over any single deployment.