EtheremonGym

Verified contract

Active on Ethereum with 31,705 txns
Deployed by via 0x55c0fab5 at 4902187
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $9.55
ERC-20
Value $0.02
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x0902b1acbdf093da2577590a4961b56acdd650070863cacf398d3ee6ffbcd349
0xecb15afdbc9dbef6468809b757d740f0c78ef2cefec021f81440378a35a45c49
0x44a5d1d28d783e1d6039943d9a4d9f46520daab9b1ce76c260260a18dbcc3edf
0x7d67d7967063e0be7ed73237806371321dc91b6b364394b3a2fb4cf76b2d4baa
0xc872f29560fc3eae16d2dcc7dc898706042a800a6bab2b960dc79221e10ce727
0x08fe9106a473eda60061fada6632ef713e272c2467701cfc9ac85d1916c753ec
0x38ebdbc3b515b16531489033733749b8a3f67ab535ad38407c5c0d644d70f595
0xcb5222aa534de89d63496c01bdf16472fc48904389a170be14834ec94972c612
0x5e0e3ed00b3462cc2b62ce233bec8a45bd458ae2ff66cd7c491ee5a6fdacc1f1
0xe3e405f67a3a0b1fbeb72a7f78d236c33d837c488e0d7ad4c9273afe856d3384

Functions
Getter at block 21162214
STAT_COUNT(view returns (uint8)
6
dataContract(view returns (address)
0xabc1c404424bdf24c19a5cc5ef8f47781d18eb3e
expPercentage(view returns (uint8)
70
gymFee(view returns (uint256)
1000000000000000
isMaintaining(view returns (bool)
false
maxRandomRound(view returns (uint8)
4
maxTrainerLevel(view returns (uint8)
10
minHpDeducted(view returns (uint8)
10
owner(view returns (address)
0xe0a66218c40230967d4240d25f6220a28e52c7ff
totalModerators(view returns (uint16)
0
totalTrainer(view returns (uint8)
9
typeBuffPercentage(view returns (uint8)
20
worldContract(view returns (address)
0x1fc7bd85293f3982f40d52698df8d26be89360d6
Read-only
attack(uint8 _indexuint8 _ranuint16[6] _aStatsuint16[6] _bStatsview returns (bool win)
attackTrainer(uint8 _indexuint8 _ranuint8 _trainerIduint8 _trainerLeveluint32 _objClassIduint16[6] _objStatsview returns (bool result)
calHpDeducted(uint16 _attackuint16 _specialAttackuint16 _defenseuint16 _specialDefensebool _luckyview returns (uint16)
getCacheClassSize(uint32 _classIdview returns (uint256uint256uint256)
getGainExp(uint8 xLeveluint8 yLevelview returns (uint32 winExpuint32 loseExp)
getLevel(uint32 expview returns (uint8)
getObjInfo(uint64 _objIdview returns (uint32 classIdaddress traineeuint8 level)
getRandom(uint8 maxRanuint8 indexview returns (uint8)
getTrainerInfo(uint8 _trainerIdview returns (uint32uint8uint8uint8uint8uint8uint8)
getTrainingLog(address _traineeview returns (uint8uint8uint8uint64uint8uint8uint8)
gymTrainers(uint8view returns (uint32 classId)
moderators(addressview returns (bool)
trainees(addressview returns (uint8 trainerLeveluint64 objIduint8 objLeveluint8 ran)
State-modifying
AddModerator(address _newModerator
ChangeOwner(address _newOwner
RemoveModerator(address _oldModerator
UpdateMaintaining(bool _isMaintaining
fastSetCacheClassInfo(uint32 _classId1uint32 _classId2uint32 _classId3uint32 _classId4
genLevelExp(
genLevelExpGain(
presetGymTrainer(
setCacheClassInfo(uint32 _classId
setConfig(uint256 _gymFeeuint8 _maxTrainerLeveluint8 _maxRandomRounduint8 _typeBuffPercentageuint8 _minHpDeducteduint8 _expPercentage
setContract(address _dataContractaddress _worldContract
setGymTrainer(uint8 _trainerIduint32 _classIduint8 _s0uint8 _s1uint8 _s2uint8 _s3uint8 _s4uint8 _s5
setLevelExpGain(uint8 _leveluint32 _exp
setTypeAdvantage(uint8 _type1uint8 _type2
setTypeAdvantages(
startTraining(uint64 _objIduint8 _trainerLeveluint8 _t1uint8 _t2uint8 _t3payable 
withdrawEther(address _sendTouint256 _amount
Events

This contract contains no event objects.

Constructor
constructor(address _dataContractaddress _worldContract
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.