EtheremonBattle

Verified contract

Active on Ethereum with 10,703 txns
Deployed by via 0xe64ccd76 at 4979964
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional variables
ERC-20
--
ERC-20
--
ERC-20
--
0x5b2f0a1fde3954a36889312554f096bd6af215a5fe543f6ec434f70cba0987bb
0x05ce42405c3887cb1abd8d8a6c5b9988884ef9c121215d8309ef3f261feb5d27
0x28a76f2787b4ef7ae382a046fb498ba452c5201e81f4438f6983511ec50583a2
0x75961b3b694ffb95db274acfbc4e9f751baddc058802758aca1b604c5471695f
0xe301a3f212f276a0386a3056e4f49f4ef5b26fe7969645339d6948bffb6bd709
0x4b40d36f056402cb854cdc3f2c887e7a9865979ee223aa2000753a4bb4c15cc2
0x475cf1536238715ae6b2e2aa2b17cbfba0e03bbc38e8faac625d1c58bf55e281
0x761d091de9ddd70716c4b69ea6eede75cdb7c9b0e3c3840326373efc14d26c5d
0x61d73afdf356e25870d211da7742da6671263bc76925fdca8c821dc55ed1ecdb
0xaf19d4042a06ad3a0fea2c00076c7a403b16fdc4a92412781120f83abddf69f9

Functions
Getter at block 21210010
GEN0_NO(view returns (uint8)
24
NO_MONSTER(view returns (uint8)
3
STAT_COUNT(view returns (uint8)
6
ancestorBuffPercentage(view returns (uint8)
10
brickETHPrice(view returns (uint256)
4000000000000000
castleContract(view returns (address)
0x75aa01dc00f6aeefe14bd58a5b6cbb091c6dc57b
castleExpAdjustment(view returns (uint8)
125
castleMaxLevelGap(view returns (uint8)
3
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)
0xfec769e54c266de2bc3fa5df7d9f0fe2a1e39461
totalEarn(view returns (uint256)
11480000000000000000
totalModerators(view returns (uint16)
0
totalWithdraw(view returns (uint256)
11480000000000000000
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
setCastleConfig(uint8 _castleMaxLevelGapuint16 _maxActiveCastleuint256 _brickETHPriceuint8 _castleExpAdjustmentuint32 _castleMinBrick
setConfig(uint8 _ancestorBuffPercentageuint8 _gasonBuffPercentageuint8 _typeBuffPercentageuint8 _maxLeveluint8 _maxRandomRounduint8 _minHpDeducteduint256 _winTokenReward
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.