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