BattleCore

Verified contract

Active on Ethereum with 9,511 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 6 additional slots
ERC-20
--
0xecfa325f5df87afe676a680de6f49ffb2ed667b62571d5c784a7d2f1f4e4321b
0xe7965d1b7da5dac190d22013652443d52e9ff83ab578fec0a496ebf4755c502b
0x4bfff61200eb6c43ba5a10430abe5cd7b1f8aa8a81199b01714ac7616a35dab1
0x2611eb46b83a800eeddc43ab7812520b19b0642f7df75cc9bec7b6936f94a1f3
0x347a0241c779c945319b164fc808bd99ca1c404e5c457d1db924d7dc1e1c24ef
0x099fd0a0431a28c4607c5d888069afc6fd76dec6589320476ae71c0f38baf057
0x835cb041d2db73e2e1b92d7eb4dc256f66434e7dac5504432992b4ab461e4cdd
0xacb4de7eb05f10a7bde4334e1d4ae2a09475608b890275e3572d989457f5abac
0x96e8ebfcb5d310f2e62d604a0b11b6386c59a10a08482a0d15bd01a9e19e6289
0x4d13638267e08ff0d48884b34e77b68c9e990b9f99d08d2fdacc05ed799e8f63

Functions
Getter at block 21256426
battleDecider(view returns (address)
0xc6fb27e980e75aae48fbc793f362e3cf87409287
battlesTillBattleCooldown(view returns (uint8)
5
experienceDelay(view returns (uint32)
21600
fighterCore(view returns (address)
0x87d598064c736dd0c712d329afcfaa0ccc1921a1
geneScience(view returns (address)
0x92882f859e7179d6625e91a09e7b6e856870e5b1
 
getDeletedTeams(view returns (uint256[])
maxPerTeam(view returns (uint256)
5
newContractAddress(view returns (address)
0x0000000000000000000000000000000000000000
owner(view returns (address)
0x4e2eae6aba4e61eb16c2d7905a4747323ca7a504
paused(view returns (bool)
true
secondsPerBlock(view returns (uint256)
15
totalTeams(view returns (uint256)
41
Read-only
_getStrengthDexterityVitality(uint256 _raceuint256 _generationuint256 _randview returns (uint256 strengthuint256 dexterityuint256 vitality)
deletedTeamIds(uint256view returns (uint256)
experienceToLevel(uint256 _experienceview returns (uint256)
extraStatsForGen(uint256view returns (uint8)
fighterIndexToTeam(uint256view returns (uint256)
genBaseStats(uint256view returns (uint8)
genToExtraStats(uint256 _genuint256 _randview returns (uint8 extraStrengthuint8 extraDexterityuint8 extraVitality)
genToLuck(uint256 _genuint256 _randpure returns (uint8)
getFighterArray(uint256[] _fighterIdsview returns (uint256[7][])
getRaceBaseStats(uint256 _idview returns (uint256 strengthuint256 dexterityuint256 vitality)
getTeam(uint256 _idview returns (address owneruint256[] fighterIds)
isValidTeam(uint256[] _fighterIdsview returns (bool)
prizeCooldowns(uint256view returns (uint32)
raceBaseStats(uint256view returns (uint8 strengthuint8 dexterityuint8 vitality)
raceToBaseStats(uint256 _raceview returns (uint8 strengthuint8 dexterityuint8 vitality)
stats(uint256view returns (uint32)
teamExists(uint256 _teamIdview returns (bool)
teamIndexToExist(uint256view returns (bool)
teams(uint256view returns (address owner)
State-modifying
addRace(uint8 _strengthuint8 _dexterityuint8 _vitality
battle(uint256[] _attackerFighterIdsuint256 _defenderTeamIdreturns (bool)
createTeam(uint256[] _fighterIdsreturns (uint256)
deleteTeam(uint256 _teamId
pause(
removeLastRace(
setBattleDeciderAddress(address _address
setFighterCoreAddress(address _address
setGeneScienceAddress(address _address
setNewAddress(address _v2Address
setSecondsPerBlock(uint256 _secs
transferOwnership(address newOwner
unpause(
Events
BattleResult(address indexed winnerAddressaddress indexed loserAddressuint256[] attackerFighterIdsuint256[] defenderFighterIdsbool attackerWonuint16 prizeFighterGenerationuint256 prizeFighterGenesuint32 attackerXpGaineduint32 defenderXpGained
ContractUpgrade(address newContract
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Pause(
TeamCreated(uint256 indexed teamIduint256[] fighterIds
TeamDeleted(uint256 indexed teamIduint256[] fighterIds
Unpause(
Constructor
constructor(address _coreAddressaddress _geneScienceAddressaddress _battleDeciderAddress
Fallback and receive
fallback(
Errors

This contract contains no error objects.