Battles

Verified contract

Active on Ethereum with 37 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $203.18
0x1a1458d3175d65c682f06c82a6f659f5199c7e33e8b2e6ee7bf8424595830ff6
0x024844e1bd725a1a09852cf9fbd73f28ede490313ddb9dd2b1ad54d9583ee000
0x948314bd31bca99ce00d8b937e0ce3bd2a131b9f2cd6a6041615d2efd2491746
0x298f26f5ea8a79c72289fb56b7350d836be58e264018cf5fbc71cdd761b2e07a
0xee79ce471ea698474e56dc7271e4fde611609863b044a2d56e96260c58164c13
0x757317cc4de1f2d0ed4ffc72af313ff0d6f14adf023c1e5f710ab56340ebbfec
0xa30babdbcabfa91ab80376f747a9d31543934d7c3a4971b22e23c9453c22632c
0x25d95835d58c9e0d9ae2c12960a515a0da03044ef9faf2536fd1fc717d2993d6
0x295f9a38232d09b4ffe51111200b8e4086dd63636d46d6e21c9921702bad7fe9
0x0ab9828cc21bb203d761a460154e3bb3a6b9bef4234d27f63fb4adc7a18a5e30

Functions
Getter at block 21216191
createFee(view returns (uint256)
0
currentGame(view returns (uint256)
20
enterFee(view returns (uint256)
0
 
getBattles(view returns (struct BattlesBattle[])
getBattlesNum(view returns (uint256)
3
owner(view returns (address)
0x47c7c921adf8b09e24efac584e2064e34cbb1b6f
Read-only
battles(uint256view returns (uint256 gameaddress player1address player2address requiredP2address battleTokenuint256 battleAmount)
whitelist(addressview returns (bool)
State-modifying
cancelBattle(uint256 _game
createBattle(address _battleTokenuint256 _battleAmountaddress _requiredP2payable 
enterBattle(uint256 _gamepayable 
rawFulfillRandomWords(uint256 requestIduint256[] randomWords
renounceOwnership(
setCreateFee(uint256 _wei
setEnterFee(uint256 _wei
setVrfCallbackGasLimit(uint32 _gas
setVrfNumBlocks(uint16 _blocks
setVrfSubId(uint64 _subId
setWhitelistTokens(address _tokenbool _isWhitelisted
transferOwnership(address newOwner
Events
Cancel(uint256 indexed gameaddress requestoraddress player1
Create(uint256 indexed gameaddress player1address battleTokenuint256 amount
Enter(uint256 indexed gameuint256 requestIdaddress player1address player2address battleTokenuint256 battleAmount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Settle(uint256 indexed gameuint256 requestIdaddress player1address player2address battleTokenuint256 battleAmountaddress winneruint256 amountWon
Constructor
constructor(address _coorduint64 _subIdbytes32 _keyHash
Fallback and receive

This contract contains no fallback and receive objects.

Errors
OnlyCoordinatorCanFulfill(address haveaddress want