Lootery
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
3
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Lootery"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Lootery"
ABI
ABI objects
Getter at block 22760790
accruedCommunityFees() view returns (uint256)
0
communityFeeBps() view returns (uint256)
0
currentGameId() view returns (uint256)
0
gamePeriod() view returns (uint256)
0
gameState() view returns (uint8)
0
maxBallValue() view returns (uint8)
0
name() view returns (string)
numPicks() view returns (uint8)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
prizeToken() view returns (address)
0x0000000000000000000000000000000000000000
randomiser() view returns (address)
0x0000000000000000000000000000000000000000
randomnessRequest() view returns (uint208 requestId, uint48 timestamp)
(requestId=0, timestamp=0)
symbol() view returns (string)
ticketPrice() view returns (uint256)
0
Read-only
balanceOf(address owner) view returns (uint256)
gameData(uint256 gameId) view returns (uint128 jackpot, uint64 ticketsSold, uint64 startedAt)
getApproved(uint256 tokenId) view returns (address)
isApprovedForAll(address owner, address operator) view returns (bool)
ownerOf(uint256 tokenId) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
tokenByPickIdentity(uint256 gameId, uint256 id, uint256) view returns (uint256)
tokenIdToGameId(uint256 tokenId) view returns (uint256)
tokenIdToTicket(uint256 tokenId) view returns (uint256)
tokenURI(uint256 tokenId) view returns (string)
winningPickIds(uint256 gameId) view returns (uint256)
State-modifying
Events approve(address to, uint256 tokenId)
claimWinnings(uint256 tokenId)
draw()
init(address owner_, string name_, string symbol_, uint8 numPicks_, uint8 maxBallValue_, uint256 gamePeriod_, uint256 ticketPrice_, uint256 communityFeeBps_, address randomiser_, address prizeToken_)
ownerPick(struct LooteryTicket[] tickets)
purchase(struct LooteryTicket[] tickets)
receiveRandomWords(uint256 requestId, uint256[] randomWords)
renounceOwnership()
rescueETH()
rescueTokens(address tokenAddress)
safeTransferFrom(address from, address to, uint256 tokenId)
safeTransferFrom(address from, address to, uint256 tokenId, bytes data)
seedJackpot(uint128 value)
setApprovalForAll(address operator, bool approved)
transferFrom(address from, address to, uint256 tokenId)
transferOwnership(address newOwner)
withdrawAccruedFees()
Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll(address indexed owner, address indexed operator, bool approved)
ConsolationClaimed(uint256 indexed tokenId, uint256 indexed gameId, address whomst, uint256 value)
DrawSkipped(uint256 indexed gameId)
GameFinalised(uint256 gameId, uint8[] winningPicks)
Initialized(uint64 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Received(address sender, uint256 amount)
TicketPurchased(uint256 indexed gameId, address indexed whomst, uint256 indexed tokenId, uint8[] picks)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Transferred(address to, uint256 value)
WinningsClaimed(uint256 indexed tokenId, uint256 indexed gameId, address whomst, uint256 value)
constructor()
receive()
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
CallerNotRandomiser(address caller)
ClaimWindowMissed(uint256 tokenId)
ERC721IncorrectOwner(address sender, uint256 tokenId, address owner)
ERC721InsufficientApproval(address operator, uint256 tokenId)
ERC721InvalidApprover(address approver)
ERC721InvalidOperator(address operator)
ERC721InvalidOwner(address owner)
ERC721InvalidReceiver(address receiver)
ERC721InvalidSender(address sender)
ERC721NonexistentToken(uint256 tokenId)
FailedInnerCall()
GameAlreadyDrawn()
IncorrectPaymentAmount(uint256 paid, uint256 expected)
InsufficientOperationalFunds(uint256 have, uint256 want)
InsufficientRandomWords()
InvalidBallValue(uint256 ballValue)
InvalidGamePeriod(uint256 gamePeriod)
InvalidInitialization()
InvalidInputs()
InvalidNumPicks(uint256 numPicks)
InvalidRandomiser(address randomiser)
InvalidTicketPrice(uint256 ticketPrice)
JackpotOverflow(uint256 value)
NoWin(uint256 pickId, uint256 winningPickId)
NotInitializing()
OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount(address account)
RequestAlreadyInFlight(uint256 requestId, uint256 timestamp)
RequestIdMismatch(uint256 actual, uint208 expected)
RequestIdOverflow(uint256 requestId)
SafeERC20FailedOperation(address token)
TicketsSoldOverflow(uint256 value)
TransferFailure(address to, uint256 value, bytes reason)
UnexpectedState(uint8 actual, uint8 expected)
UnsortedPicks(uint8[] picks)
WaitLonger(uint256 deadline)