IHeroCoreUpgradeable
Methods
DEFAULT_ADMIN_ROLE
Returns
_0
bytes32
undefined
HERO_MODERATOR_ROLE
Returns
_0
bytes32
undefined
MINTER_ROLE
Returns
_0
bytes32
undefined
MODERATOR_ROLE
Returns
_0
bytes32
undefined
PAUSER_ROLE
Returns
_0
bytes32
undefined
STAMINA_ROLE
Returns
_0
bytes32
undefined
approve
Parameters
to
address
undefined
tokenId
uint256
undefined
assistingAuction
Returns
_0
address
undefined
balanceOf
Parameters
owner
address
undefined
Returns
_0
uint256
undefined
baseCooldown
Returns
_0
uint256
undefined
baseSummonFee
Returns
_0
uint256
undefined
bridgeMint
Parameters
_id
uint256
undefined
_to
address
undefined
burn
Parameters
tokenId
uint256
undefined
calculateSummoningCost
Parameters
_heroId
uint256
undefined
Returns
_0
uint256
undefined
cooldownPerGen
Returns
_0
uint256
undefined
cooldownPerSummon
Returns
_0
uint256
undefined
cooldowns
Parameters
_0
uint256
undefined
Returns
_0
uint32
undefined
createAssistingAuction
Parameters
_heroId
uint256
undefined
_startingPrice
uint256
undefined
_endingPrice
uint256
undefined
_duration
uint256
undefined
createHero
Parameters
_statGenes
uint256
undefined
_visualGenes
uint256
undefined
_rarity
enum Rarity
undefined
_shiny
bool
undefined
_crystal
HeroCrystal
undefined
_crystalId
uint256
undefined
Returns
_0
uint256
undefined
createSaleAuction
Parameters
_heroId
uint256
undefined
_startingPrice
uint256
undefined
_endingPrice
uint256
undefined
_duration
uint256
undefined
crystalToken
Returns
_0
address
undefined
deductStamina
Parameters
_heroId
uint256
undefined
_staminaDeduction
uint256
undefined
extractNumber
Parameters
randomNumber
uint256
undefined
digits
uint256
undefined
offset
uint256
undefined
Returns
result
uint256
undefined
geneScience
Returns
_0
address
undefined
getApproved
Parameters
tokenId
uint256
undefined
Returns
_0
address
undefined
getCurrentStamina
Parameters
_heroId
uint256
undefined
Returns
_0
uint256
undefined
getHero
Parameters
_id
uint256
undefined
Returns
_0
Hero
undefined
getRoleAdmin
Parameters
role
bytes32
undefined
Returns
_0
bytes32
undefined
getRoleMember
Parameters
role
bytes32
undefined
index
uint256
undefined
Returns
_0
address
undefined
getRoleMemberCount
Parameters
role
bytes32
undefined
Returns
_0
uint256
undefined
grantRole
Parameters
role
bytes32
undefined
account
address
undefined
hasRole
Parameters
role
bytes32
undefined
account
address
undefined
Returns
_0
bool
undefined
increasePerGen
Returns
_0
uint256
undefined
increasePerSummon
Returns
_0
uint256
undefined
initialize
Parameters
name
string
undefined
symbol
string
undefined
baseTokenURI
string
undefined
initialize
Parameters
_crystalAddress
address
undefined
isApprovedForAll
Parameters
owner
address
undefined
operator
address
undefined
Returns
_0
bool
undefined
isReadyToSummon
Parameters
_heroId
uint256
undefined
Returns
_0
bool
undefined
mint
Parameters
to
address
undefined
name
Returns
_0
string
undefined
openCrystal
Parameters
_crystalId
uint256
undefined
Returns
_0
uint256
undefined
ownerOf
Parameters
tokenId
uint256
undefined
Returns
_0
address
undefined
pause
paused
Returns
_0
bool
undefined
renounceRole
Parameters
role
bytes32
undefined
account
address
undefined
revokeRole
Parameters
role
bytes32
undefined
account
address
undefined
safeTransferFrom
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
safeTransferFrom
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
_data
bytes
undefined
saleAuction
Returns
_0
address
undefined
setApprovalForAll
Parameters
operator
address
undefined
approved
bool
undefined
setAssistingAuctionAddress
Parameters
_address
address
undefined
setFees
Parameters
_feeAddresses
address[]
undefined
_feePercents
uint256[]
undefined
setSaleAuctionAddress
Parameters
_address
address
undefined
setSummonCooldowns
Parameters
_baseCooldown
uint256
undefined
_cooldownPerSummon
uint256
undefined
_cooldownPerGen
uint256
undefined
setSummonFees
Parameters
_baseSummonFee
uint256
undefined
_increasePerSummon
uint256
undefined
_increasePerGen
uint256
undefined
setTimePerStamina
Parameters
_timePerStamina
uint256
undefined
summonCrystal
Parameters
_summonerId
uint256
undefined
_assistantId
uint256
undefined
_summonerTears
uint8
undefined
_assistantTears
uint8
undefined
_enhancementStone
address
undefined
supportsInterface
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
symbol
Returns
_0
string
undefined
timePerStamina
Returns
_0
uint256
undefined
tokenByIndex
Parameters
index
uint256
undefined
Returns
_0
uint256
undefined
tokenOfOwnerByIndex
Parameters
owner
address
undefined
index
uint256
undefined
Returns
_0
uint256
undefined
tokenURI
Parameters
tokenId
uint256
undefined
Returns
_0
string
undefined
totalSupply
Returns
_0
uint256
undefined
transferFrom
Parameters
from
address
undefined
to
address
undefined
tokenId
uint256
undefined
unpause
updateHero
Parameters
_hero
Hero
undefined
vrf
Parameters
blockNumber
uint256
undefined
Returns
result
bytes32
undefined
Last updated