Units

Verified contract

Active on Ethereum with 7,677 txns
Deployed by via 0xde71b145 at 7695529
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
0x7564a3032cae3b58a83ce9029d3d0fcb6e73250dc294993e22caea566c4dcf14
0x4ffaa6ea7760eff51cf0d4f449e0c2d430db392d10d415ba8b853d64e1813dd0
0x81c8dd4081ed28bbbd981075ee4a29815a42ed87bc582504968c8ba7b5296168
0x7614b6649e66fe98a1db4b19922a8c668647e4c9b14b0f87d256d3c7ca66b1b2
0x7b6a77b2ded9ec152f3683c6118f867ece42bcfab2d457da50b83f9dad634bad
0xc65dcbb91901db545e16bb879a0dda73acbb5da950d2fde738e597255d104a2d
0x507678f19c441a6eb306ae9df9c31842ddc005cd03673603c104e80449d43f10
0xae691ce2d2f72360efe510b2d8591f17bbff8432b9e0a9c8388925bb3d1eec53
0x122fc6827e7c7dfea1a6fc5a688a51ca2a7d0ad1aa1417455c1975e0bcf44548
0x729ce45ee14875207b998bc6bb10024ade99a802a788aa1737f5d68fcdce2082

Functions
Getter at block 21301403

This contract contains no getter function objects.

Read-only
getUnitsCurrentProduction(address playeruint256 unitIdview returns (uint256)
unitExp(addressuint256view returns (uint224 experienceuint32 level)
unitList(uint256view returns (uint256 unitIduint224 gooCostuint256 baseProductionuint80 attackuint80 defenseuint80 looting)
unitsOwned(addressuint256view returns (uint80 unitsuint8 factoryBuiltFlag)
upgradeList(uint256view returns (uint256 upgradeIduint224 gooCostuint256 unitIduint256 columnuint256 prerequisiteUpgradeuint256 unitMaxCapacityGainuint32 prodIncreaseuint32 prodMultiplieruint32 attackIncreaseuint32 attackMultiplieruint32 defenseIncreaseuint32 defenseMultiplieruint32 lootingIncreaseuint32 lootingMultiplier)
upgradesOwned(addressuint256view returns (uint64 column0uint64 column1uint64 column2)
State-modifying
addUnit(uint256 iduint224 baseGooCostuint256 baseGooProductionuint80 baseAttackuint80 baseDefenseuint80 baseLooting
addUpgrade(uint256 iduint224 gooCostuint256 unituint256 columnuint256 prerequint256 unitMaxCapacityGainuint32[8] upgradeGains
buyUnit(uint256 unitIduint80 amountuint8 position
buyUpgrade(uint64 upgradeId
decreaseUnitCapacity(address playeruint256 upgradeGainuint256 unitId
decreaseUpgradesExternal(address playeruint256 unitIduint32 prodIncreaseuint32 prodMultiplieruint32 attackIncreaseuint32 attackMultiplieruint32 defenseIncreaseuint32 defenseMultiplieruint32 lootingIncreaseuint32 lootingMultiplier
deleteUnitExternal(uint80 amountuint256 unitaddress player
grantArmyExp(address playeruint256 unitIduint224 amountreturns (bool)
increaseUnitCapacity(address playeruint256 upgradeGainuint256 unitId
increaseUpgradesExternal(address playeruint256 unitIduint32 prodIncreaseuint32 prodMultiplieruint32 attackIncreaseuint32 attackMultiplieruint32 defenseIncreaseuint32 defenseMultiplieruint32 lootingIncreaseuint32 lootingMultiplier
mintUnitExternal(uint256 unituint80 amountaddress playeruint8 chosenPosition
sellUnit(uint256 unitIduint80 amount
setArmy(address armyContract
setClans(address clansContract
setOperator(address gameContractbool isOperator
swapUpgradesExternal(address playeruint256 unitIduint32[8] upgradeGainsuint32[8] upgradeLosses
Events

This contract contains no event objects.

Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.