Open a draw
One transaction opens a draw. Nothing is escrowed: FairDrop records the draw and its result, it does not hold the prize.
1gnokey maketx call -pkgpath gno.land/r/g1k6cl2huxpps9fxls8tqyxknvl7fgq9hua3f2yt/fairdrop -func Create \
2 -args "Friday community raffle" \
3 -args "1 limited edition mug" \
4 -args 3 \
5 -args 5 \
6 -args 600 \
7 -args 300 \
8 -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast \
9 -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
Arguments: title, prize, winners, max weight per ticket, entry window (seconds), reveal window (seconds).
Then, optionally, give a known guest more weight before they seal:
1gnokey maketx call -pkgpath gno.land/r/g1k6cl2huxpps9fxls8tqyxknvl7fgq9hua3f2yt/fairdrop -func Vouch \
2 -args <draw id> -args g1guestaddress... -args 3 \
3 -gas-fee 1000000ugnot -gas-wanted 5000000 -broadcast \
4 -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
Rules the realm enforces, not just documents:
- one ticket per address; a vouch changes its weight, never the number of entries
- a ticket's weight is sealed into its digest, so it cannot change after sealing
- entries close on block time, not on the organizer's word
- the draw is permissionless and the seed is public