MyHero

Verified contract

Active on Ethereum with 3,240 txns
Deployed by via 0xc594ed92 at 5205744
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
8 additional variables
Native
Value $10,206.04
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x214c1d97a9792bc3a1fceeba1287bec21511d80d724b94eab413d1571cae5ab1
0xf0c03e529430baa4e73e5e42688c182c07783c3ddd4a5c4c598f622196cfef9d
0x6272788e33cd4b852090ebd1824513f791be572b645f23ad81c9e33f50c1b53b
0xab53de83679f60aaf436e89e3096406198da54a860c1b039da65e178122a8fc7
0x352c56c8575e7497d7a376c5892c44ca24336646d778d3339294c69b7f6f77b3
0xc6a04949b6ad3f0ca00a15eadfed515c490dc48f7a8264955878e16b0b4edf78
0x68d31c283993aee462fadb2ebdf529709923cdb524ef030c306c483a9c0ab5e8
0x62a429e066c412f3c2a0b1f2b2c4f6895517793cdd4d5d9614e92fa0b23985eb
0x569e1628969e202503a92f8e5f3db1736142c54c180f08cd4c933a3992e44a19
0x80c2ae362466fbf2c42a2223cef168862dde79e0d0318039a6d15108c5acc061

Functions
Getter at block 21293657
candy(view returns (uint256)
50000000000000000000
cdFee(view returns (uint128)
118102796674000
erc20(view returns (address)
0x8ce2236bb743ef077409b43e541eaa4f5b928db3
fightAuction(view returns (address)
0x3d5f2f4e4b9cf03e896ff2093569078ce45ba0c0
gen0AuctionDuration(view returns (uint256)
86400
gen0CreatedCount(view returns (uint256)
449
gen0CreationLimit(view returns (uint256)
50000
gen0StartingPrice(view returns (uint256)
100000000000000000
implementsERC721(pure returns (bool)
true
leaderAddress(view returns (address)
0xb2c6f02f37a8c801311571fed61b9e7095d40017
magicStore(view returns (address)
0x7f24f049f896c123a75c9a8af26c6fec41fd847e
masterRecruitment(view returns (address)
0x88b6772f3e8afb2ac64e39ee2d3a1567b1e37df4
name(view returns (string)
MyHero
newContractAddress(view returns (address)
0x0000000000000000000000000000000000000000
opmAddress(view returns (address)
0x04485eb766dd6c9409503dd8f91186340c0526ba
ownerCut(view returns (uint256)
500
paused(view returns (bool)
false
promoCreatedCount(view returns (uint256)
341
promoCreationLimit(view returns (uint256)
5000
saleAuction(view returns (address)
0x836a5f830d695b4f9975ee87b0b0be68c44ff585
symbol(view returns (string)
MH
totalBalance(view returns (uint256)
52445000000000000000000
totalPromo(view returns (uint256)
24600000000000000000000
totalSupply(view returns (uint256)
1104
totalUsed(view returns (uint256)
1852576337336639444910
Read-only
balanceOf(address _ownerview returns (uint256 count)
cooldowns(uint256view returns (uint32)
getHero(uint256 _idview returns (bool isReadyuint256 cooldownIndexuint256 nextActionAtuint256 recruitmentTimeuint256 yinIduint256 yangIduint256 generationuint256 talentuint256 belongingsuint32 items)
heroIndexToApproved(uint256view returns (address)
heroIndexToLoss(uint256view returns (uint32)
heroIndexToOwner(uint256view returns (address)
heroIndexToWin(uint256view returns (uint32)
isReadyToFight(uint256 _heroIdview returns (bool)
ownerIndexToERC20Balance(addressview returns (uint256)
ownerIndexToERC20Used(addressview returns (uint256)
ownerOf(uint256 _tokenIdview returns (address owner)
reduceCDFee(uint256 heroIdview returns (uint256 fee)
tokensOfOwnerByIndex(address _owneruint256 _indexview returns (uint256 tokenId)
State-modifying
approve(address _touint256 _tokenId
charge(uint256 amount
collect(uint256 amount
createFightAuction(uint256 _heroIduint256 _startingPriceuint256 _endingPriceuint256 _duration
createGen0Auction(uint256 _talentuint256 price
createPromoHero(uint256 _talentaddress _owner
createSaleAuction(uint256 _heroIduint256 _startingPriceuint256 _endingPriceuint256 _startingPriceEthuint256 _endingPriceEthuint256 _duration
orderOnFightAuction(uint256 _yangIduint256 _yinIduint256 orderAmount
orderOnSaleAuction(uint256 _heroIduint256 orderAmount
pause(
promoBun(address _address
reduceCD(uint256 heroIduint256 reduceAmount
rescueLostHero(uint256 _heroIdaddress _recipient
setCut(uint256 newCut
setERC20Address(address _addressuint256 _totalPromouint256 _candy
setERC20TotalPromo(uint256 _totalPromouint256 _candy
setFightAuctionAddress(address _address
setLeader(address _newLeader
setMagicStore(address _address
setMasterRecruitmentAddress(address _address
setNewAddress(address _v2Address
setNewCdFee(uint128 _cdFee
setOPM(address _newOPM
setSaleAuctionAddress(address _address
transfer(address _touint256 _tokenId
transferFrom(address _fromaddress _touint256 _tokenId
unpause(
useItems(uint32 _itemsuint256 tokenIdaddress owneruint256 feereturns (bool flag)
withdrawAuctionBalances(
withdrawBalance(
withdrawERC20Balance(uint256 amount
withdrawOtherERC20Balance(uint256 amountaddress _address
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ContractUpgrade(address newContract
ItmesChange(uint256 indexed tokenIduint256 items
Recruitment(address indexed owneruint256 heroIduint256 yinIduint256 yangIduint256 talent
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Constructor
constructor(
Fallback and receive
fallback(
Errors

This contract contains no error objects.