Lottery
v2
Contract info
Audits
Lottery Status states
Read/View functions
viewCurrentLotteryId
function viewCurrentLotteryId() external view override returns (uint256);viewLottery
Name
Type
Description
viewNumbersAndStatusesForTicketIds
viewRewardsForTicketId
Name
Type
Description
viewUserInfoForLotteryId
Name
Type
Description
calculateRewardsForTicketId
Name
Type
Description
calculateTotalPriceForBulkTickets
Name
Type
Description
Write functions (users)
buyTickets
Name
Type
Description
claimTickets
Name
Type
Description
Write functions (operator/admin)
closeLottery
Name
Type
Description
drawFinalNumberAndMakeLotteryClaimable
Name
Type
Description
changeRandomNumberGenerator
Name
Type
Description
injectFunds
Name
Type
Description
startLottery
Name
Type
Description
recoverWrongTokens
Name
Type
Description
setMinAndMaxTicketPriceInCake
Name
Type
Description
setMaxNumberTicketsPerBuy
Name
Type
Description
setOperatorAndTreasuryAndInjectorAddress
Name
Type
Description
Events (User)
TicketsPurchase
TicketsClaim
Events (admin)
AdminTokenRecovery
LotteryClose
LotteryInjection
LotteryOpen
LotteryNumberDrawn
NewOperatorAndTreasuryAndInjectorAddresses
NewRandomNumberGenerator
Last updated