Lottery
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
5
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
8 additional
variables
Balances ($0.00)
No balances found for "Lottery"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Lottery"
ABI
ABI objects
Getter at block 21315672
WETH() view returns (address)
0x0000000000000000000000000000000000000000
admin() view returns (address)
0x0000000000000000000000000000000000000000
basisPoints() view returns (uint16)
0
burnPercent() view returns (uint16)
0
operator() view returns (address)
0x0000000000000000000000000000000000000000
profitPercent() view returns (uint16)
0
profitSplit1BP() view returns (uint16)
0
profitWallet1() view returns (address)
0x0000000000000000000000000000000000000000
profitWallet2() view returns (address)
0x0000000000000000000000000000000000000000
router() view returns (address)
0x0000000000000000000000000000000000000000
s_requestId() view returns (uint256)
0
taxBP() view returns (uint16)
0
totalBurnAmount() view returns (uint256)
0
totalRaffles() view returns (uint256)
0
totalRevenue() view returns (uint256)
0
Read-only
BurnAmountPerRaffle(uint256) view returns (uint256)
Raffle(uint256) view returns (uint256 number, string raffleName, uint16 maxTickets, uint256 ticketPrice, uint16 ticketCounter, uint32 startTime, uint32 endTime)
Raffle1(uint256) view returns (address raffleRewardToken, bool isTaxed, uint256 raffleRewardTokenAmount, address winner, uint256 winningTicket, uint16 rewardPercent, uint16 burnPercent, bool isWinnerDeclared, bool isClaimed)
checkRaffleOver(uint256 _raffleNumber) view returns (bool)
checkTicketOwner(uint256 _raffleNumber, uint16 _ticketNumber) view returns (address)
checkYourTickets(uint256 _raffleNo, address _owner) view returns (uint256[])
isRewardClaimed(uint256 _raffleNumber) view returns (bool)
isWinnerDeclared(uint256 _raffleNumber) view returns (bool, address, uint256)
raffleRandomGenerated(uint256 _raffleNumber) view returns (bool)
requestIdPerRaffle(uint256) view returns (uint256)
State-modifying
Events buyTicket(uint256 _raffleNumber, uint16 _noOfTickets) payable
changeAdmin(address _newAdmin)
changeOperator(address _address)
claimReward(uint256 _raffleNumber) returns (bool)
collectBurnReward(address _to) returns (bool)
createRaffle(string _raffleName, uint16 _maxTickets, uint256 _ticketPrice, uint32 _startTime, uint32 _endTime, address _rewardToken, bool _isTaxed)
declareWinner(uint256 _raffleNumber)
getRandomNumber(uint256 _raffleNumber)
initialize(struct Lotteryinit params)
rawFulfillRandomWords(uint256 requestId, uint256[] randomWords)
updateBurnAndProfitPercent(uint16 _burnBp, uint16 _profitBp)
updateProfit1Address(address _profitWallet1)
updateProfit2Address(address _profitWallet2)
updateProfitSplitPercent(uint16 _bp)
updateRaffleEndtime(uint256 _raffleNumber, uint32 _endTime)
updateRewardToken(uint256 _raffleNumber, address _rewardToken)
updateTaxBP(uint16 _taxBP)
AdminChanged(address _newAdmin)
BurnAndProfitPercentUpdated(uint16 _burnPercent, uint16 _profitPercent)
BurnWalletUpdated(address burnWallet)
BuyTicket(uint256 raffleNumber, address _buyer, uint16 _ticketStart, uint16 _ticketCounter, uint256 _BurnAmountPerRaffle, uint256 _totalRevenue, uint256 _profitAmount)
Initialized(uint8 version)
OperatorChanged(address _newOperator)
ProfitSplitPercentUpdated(uint16 _split1BP, uint256 _split2BP)
ProfitWallet1Updated(address _profitWallet1)
ProfitWallet2Updated(address _profitWallet2)
RaffleCreated(uint256 _raffleNumber, string _raffleName, uint16 _maxTickets, uint256 _ticketPrice, uint32 _startTime, uint32 _endTime, uint16 rewardPercent, address _rewardToken)
RewardClaimed(uint256 _raffleId, address _to, address _rewardToken, uint256 _amount)
RewardTokenUpdate(uint256 _raffleNumber, address _rewardToken)
WinnerDeclared(uint256 _raffleId, uint256 winningTicket, address _winner, uint256 _tokenAmount, uint256 _rewardInEth)
burnCollected(uint256 _amount, address _to)
endtimeUpdated(uint256 _raffleNumber, uint32 _endtime)
taxBPUpdated(uint16 _taxBP)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
OnlyCoordinatorCanFulfill(address have, address want)