Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Events

Git Source

Events

Registration

Emitted when a user successfully registers for the current lottery

event Registration(address indexed user);

Parameters

NameTypeDescription
useraddressThe address of the user who registered for the airdrop

RaffleStarted

Emitted when a raffle is started and ready for winner selection

event RaffleStarted(uint256 amountOfParticipants, uint256 amountOfTokens, uint256 changesToWinPerParticipant);

Parameters

NameTypeDescription
amountOfParticipantsuint256The total number of participants in the lottery
amountOfTokensuint256The total amount of ETH collected from all participants
changesToWinPerParticipantuint256The calculated chances to win per participant (entrance fee divided by total participants)

winnerSelected

Emitted when a winner has been selected for the lottery

event winnerSelected(address indexed winner);

Parameters

NameTypeDescription
winneraddressThe address of the selected winner who can claim the prize