EtheremonBattle

Verified contract

Active on Ethereum with 3,869 txns
Deployed by via 0xe254ead4 at 4946531
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
3 additional variables
ERC-20
--
0x560049e8f63ada8e7b4a2cf5c736fd317f4021bd73d2282ca2630fc877d9a35f
0xf283b9acd6a1c8aa4dd68ec8370972a1d7e828c77b47914dcda3d4c09efb8e10
0x455cd4146aafae15f45af21534a660bb871819c33c446f59052f8d4783979216
0x291510107d0d802cf6040512f294d09a9cf2a347dd1ea705e2dfe348dc05504a
0x78e21cb7ad609f92fc5f5796f0126712148c493d15b09ee3b5b813592cfa3e16
0x8a36b0b41142075a560df011dd0b845f6fd263d1b963f55712eee02e7ca02eba
0x7923e04684a7b95f0fa7b558c1aa40d5031eca90c06b5f0ef9d679c3e51915be
0x622637eb02e4bb5e3a322f82b57e6c140c9535d015993f88954a21eec2fa2820
0xe358304159553bf162f3fc3563e4564de6b1cb6447b6a5c6a1a96afd14ba47a9
0xe7808e150df8d91e9aad14ab836e9095e549325962a572a7552871d06d8e70e9

Functions
Getter at block 21168328
GEN0_NO(view returns (uint8)
24
NO_MONSTER(view returns (uint8)
3
STAT_COUNT(view returns (uint8)
6
ancestorBuffPercentage(view returns (uint8)
10
brickPrice(view returns (uint256)
200000000
castleContract(view returns (address)
0x75aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b
castleMinBrick(view returns (uint32)
5
dataContract(view returns (address)
0xabc1c404424bdf24c19a5cc5ef8f47781d18eb3e
gasonBuffPercentage(view returns (uint8)
10
isMaintaining(view returns (bool)
true
maxActiveCastle(view returns (uint16)
30
maxLevel(view returns (uint8)
100
maxRandomRound(view returns (uint8)
4
minHpDeducted(view returns (uint8)
10
owner(view returns (address)
0xe0a66218c40230967d4240d25f6220a28e52c7ff
paymentContract(view returns (address)
0x721da477f68c71788a262d58853fe6977d86535e
tokenPrice(view returns (uint256)
40000000
totalEarn(view returns (uint256)
2320000000000000000
totalModerators(view returns (uint16)
0
totalWithdraw(view returns (uint256)
2320000000000000000
tradeContract(view returns (address)
0x4ba72f0f8dad13709ee28a992869e79d0fe47030
typeBuffPercentage(view returns (uint8)
20
winBrickReturn(view returns (uint8)
8
winTokenReward(view returns (uint256)
100000000
worldContract(view returns (address)
0x1fc7bd85293f3982f40d52698df8d26be89360d6
Read-only
calHpDeducted(uint16 _attackuint16 _specialAttackuint16 _defenseuint16 _specialDefensebool _luckyview returns (uint16)
getCacheClassSize(uint32 _classIdview returns (uint256uint256uint256)
getCurrentStats(uint64 _objIdview returns (uint32uint8uint16[6])
getGainExp(uint8 level2uint8 levelbool _winpure returns (uint32)
getLevel(uint32 expview returns (uint8)
getMonsterCP(uint64 _objIdview returns (uint64)
getMonsterLevel(uint64 _objIdview returns (uint32uint8)
getObjExp(uint64 _objIdview returns (uint32uint32)
getRandom(uint8 maxRanuint8 indexaddress priAddressview returns (uint8)
getSupporterInfo(uint64 s1uint64 s2uint64 s3view returns (struct (uint32, bool, uint8, uint32, bool, uint8, uint32, bool, uint8) sData)
hasValidParam(address _traineruint64 _a1uint64 _a2uint64 _a3uint64 _s1uint64 _s2uint64 _s3view returns (bool)
isOnBattle(uint64 _objIdview returns (bool)
isValidOwner(uint64 _objIdaddress _ownerview returns (bool)
moderators(addressview returns (bool)
State-modifying
AddModerator(address _newModerator
ChangeOwner(address _newOwner
RemoveModerator(address _oldModerator
UpdateMaintaining(bool _isMaintaining
attackCastle(uint32 _castleIduint64 _aa1uint64 _aa2uint64 _aa3uint64 _as1uint64 _as2uint64 _as3
createCastle(string _nameuint64 _a1uint64 _a2uint64 _a3uint64 _s1uint64 _s2uint64 _s3payable 
createCastleWithToken(address _traineruint32 _noBrickstring _nameuint64 _a1uint64 _a2uint64 _a3uint64 _s1uint64 _s2uint64 _s3
fastSetCacheClassInfo(uint32 _classId1uint32 _classId2uint32 _classId3uint32 _classId4uint32 _classId5uint32 _classId6uint32 _classId7uint32 _classId8
genLevelExp(
removeCastle(uint32 _castleId
renameCastle(uint32 _castleIdstring _name
setCacheClassInfo(uint32 _classId
setConfig(uint8 _ancestorBuffPercentageuint8 _gasonBuffPercentageuint8 _typeBuffPercentageuint32 _castleMinBrickuint8 _maxLeveluint16 _maxActiveCastleuint8 _maxRandomRounduint8 _minHpDeducteduint256 _winTokenRewarduint256 _tokenPriceuint256 _brickPrice
setContract(address _dataContractaddress _worldContractaddress _tradeContractaddress _castleContractaddress _paymentContract
setTypeAdvantage(uint8 _type1uint8 _type2
setTypeAdvantages(
withdrawEther(address _sendTouint256 _amount
Events
EventAttackCastle(address indexed attackeruint32 castleIduint8 result
EventCreateCastle(address indexed owneruint32 castleId
EventRemoveCastle(uint32 indexed castleId
Constructor
constructor(address _dataContractaddress _worldContractaddress _tradeContractaddress _castleContractaddress _paymentContract
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.