CryptoSaga Hero

Verified contract

Active on Ethereum with 9,951 txns
Deployed by via 0x36e51637 at 5086750
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
ERC-20
--
0x3c491c40a752d7570dcb0a720b72d086b38a7342be4b83ad48e056a1e2f7e026
0x9e5afa16ca3c15cb710ab434804b2da0676c79d255f04344f3c8390aa3f82279
0x533943539693d8c5cda29133f238db8d425dc0bbf87efff6c7a7e56d626e6a44
0xdfcad8b06476bd0ef449634b076d5fae1ea64083088d61a6908ef3487c4e3693
0x99295067b33efaacc5b3a22a101914b230a85d5de97dfc780b96542050bbe03d
0xdedaed406e9e57e4eb4ab8c3038a3d190a42317629192419b8d54dd6d88ce208
0xea4aa8a428b6481faf1981a31469d7c7a6dca69d6bde7cae0a5e7c912b0c2a9e
0xfe5af91409484ccb1fdf57970f2e697d2cf0e7b3caad09a72a9b3db277a3e0db
0x5bdb3c8969133a1bf023f22ce6d58a99abe89973a1f48a5cd031a6ca97d5b80e
0x6ce3382d156b9d9917af723360c5d8532be1511d9fa8009e8a0441b0f9792515

Functions
Getter at block 21265102
goldContract(view returns (address)
0x59bcded9c87ce46ec97c13640bfc0390ceb00e99
name(view returns (string)
CryptoSaga Hero
numberOfHeroClasses(view returns (uint32)
53
numberOfTokenIds(view returns (uint256)
3852
owner(view returns (address)
0x6589adf7720a5b5f80bd391c0bbf2148d00be5ae
paused(view returns (bool)
false
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
requiredExpIncreaseFactor(view returns (uint32)
100
requiredGoldIncreaseFactor(view returns (uint256)
0
symbol(view returns (string)
HERO
totalSupply(view returns (uint256)
3852
Read-only
addressToGoldDeposit(addressview returns (uint256)
approvedFor(uint256 _tokenIdview returns (address)
balanceOf(address _ownerview returns (uint256)
getClassInfo(uint32 _classIdview returns (string classNameuint8 classRankuint8 classRaceuint32 classAgeuint8 classTypeuint32 maxLeveluint8 aurauint32[5] baseStatsuint32[5] minIVsuint32[5] maxIVs)
getClassMintCount(uint32 _classIdview returns (uint32)
getClassName(uint32 _classIdview returns (string)
getClassRank(uint32 _classIdview returns (uint8)
getGoldDepositOfAddress(address _addressview returns (uint256)
getHeroAvailableAt(uint256 _tokenIdview returns (uint256)
getHeroBP(uint256 _tokenIdview returns (uint32)
getHeroClassId(uint256 _tokenIdview returns (uint32)
getHeroInfo(uint256 _tokenIdview returns (uint32 classIdstring heroNameuint32 currentLeveluint32 currentExpuint32 lastLocationIduint256 availableAtuint32[5] currentStatsuint32[5] ivsuint32 bp)
getHeroLevel(uint256 _tokenIdview returns (uint32)
getHeroLocation(uint256 _tokenIdview returns (uint32)
getHeroName(uint256 _tokenIdview returns (string)
getHeroRequiredExpForLevelUp(uint256 _tokenIdview returns (uint32)
getHeroRequiredGoldForLevelUp(uint256 _tokenIdview returns (uint256)
getTokenIdOfAddressAndIndex(address _addressuint256 _indexview returns (uint256)
getTotalBPOfAddress(address _addressview returns (uint32)
heroClasses(uint32view returns (string classNameuint8 classRankuint8 classRaceuint32 classAgeuint8 classTypeuint32 maxLeveluint8 aurauint32 currentNumberOfInstancedHeroes)
ownerOf(uint256 _tokenIdview returns (address)
tokenIdToHeroInstance(uint256view returns (uint32 heroClassIdstring heroNameuint32 currentLeveluint32 currentExpuint32 lastLocationIduint256 availableAt)
tokensOf(address _ownerview returns (uint256[])
State-modifying
addDeposit(address _touint256 _amount
addExp(uint256 _tokenIduint32 _expreturns (bool)
approve(address _touint256 _tokenId
claimOwnership(
defineType(string _classNameuint8 _classRankuint8 _classRaceuint32 _classAgeuint8 _classTypeuint32 _maxLeveluint8 _aurauint32[5] _baseStatsuint32[5] _minIVForStatsuint32[5] _maxIVForStats
deploy(uint256 _tokenIduint32 _locationIduint256 _durationreturns (bool)
grantAccessDeploy(address _address
grantAccessDeposit(address _address
grantAccessMint(address _address
levelUp(uint256 _tokenId
mint(address _owneruint32 _heroClassIdreturns (uint256)
pause(
revokeAccessDeploy(address _address
revokeAccessDeposit(address _address
revokeAccessMint(address _address
setGoldContract(address _contractAddress
setHeroName(uint256 _tokenIdstring _name
setRequiredExpIncreaseFactor(uint32 _value
setRequiredGoldIncreaseFactor(uint256 _value
takeOwnership(uint256 _tokenId
transfer(address _touint256 _tokenId
transferDeposit(uint256 _amount
transferOwnership(address newOwner
unpause(
withdrawDeposit(uint256 _amount
Events
Approval(address indexed _owneraddress indexed _approveduint256 _tokenId
DefineType(address indexed _byuint32 indexed _typeIdstring _className
Deploy(address indexed _byuint256 indexed _tokenIduint32 _locationIduint256 _duration
LevelUp(address indexed _byuint256 indexed _tokenIduint32 _newLevel
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Pause(
Transfer(address indexed _fromaddress indexed _touint256 _tokenId
Unpause(
Constructor
constructor(address _goldAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.