IHeroCoreUpgradeable

Methods

DEFAULT_ADMIN_ROLE

function DEFAULT_ADMIN_ROLE() external view returns (bytes32)

Returns

HERO_MODERATOR_ROLE

function HERO_MODERATOR_ROLE() external view returns (bytes32)

Returns

MINTER_ROLE

function MINTER_ROLE() external view returns (bytes32)

Returns

MODERATOR_ROLE

function MODERATOR_ROLE() external view returns (bytes32)

Returns

PAUSER_ROLE

function PAUSER_ROLE() external view returns (bytes32)

Returns

STAMINA_ROLE

function STAMINA_ROLE() external view returns (bytes32)

Returns

approve

function approve(address to, uint256 tokenId) external nonpayable

Parameters

assistingAuction

function assistingAuction() external view returns (address)

Returns

balanceOf

function balanceOf(address owner) external view returns (uint256)

Parameters

Returns

baseCooldown

function baseCooldown() external view returns (uint256)

Returns

baseSummonFee

function baseSummonFee() external view returns (uint256)

Returns

bridgeMint

function bridgeMint(uint256 _id, address _to) external nonpayable

Parameters

burn

function burn(uint256 tokenId) external nonpayable

Parameters

calculateSummoningCost

function calculateSummoningCost(uint256 _heroId) external view returns (uint256)

Parameters

Returns

cooldownPerGen

function cooldownPerGen() external view returns (uint256)

Returns

cooldownPerSummon

function cooldownPerSummon() external view returns (uint256)

Returns

cooldowns

function cooldowns(uint256) external view returns (uint32)

Parameters

Returns

createAssistingAuction

function createAssistingAuction(uint256 _heroId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration) external nonpayable

Parameters

createHero

function createHero(uint256 _statGenes, uint256 _visualGenes, enum Rarity _rarity, bool _shiny, HeroCrystal _crystal, uint256 _crystalId) external nonpayable returns (uint256)

Parameters

Returns

createSaleAuction

function createSaleAuction(uint256 _heroId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration) external nonpayable

Parameters

crystalToken

function crystalToken() external view returns (address)

Returns

deductStamina

function deductStamina(uint256 _heroId, uint256 _staminaDeduction) external nonpayable

Parameters

extractNumber

function extractNumber(uint256 randomNumber, uint256 digits, uint256 offset) external pure returns (uint256 result)

Parameters

Returns

geneScience

function geneScience() external view returns (address)

Returns

getApproved

function getApproved(uint256 tokenId) external view returns (address)

Parameters

Returns

getCurrentStamina

function getCurrentStamina(uint256 _heroId) external view returns (uint256)

Parameters

Returns

getHero

function getHero(uint256 _id) external view returns (struct Hero)

Parameters

Returns

getRoleAdmin

function getRoleAdmin(bytes32 role) external view returns (bytes32)

Parameters

Returns

getRoleMember

function getRoleMember(bytes32 role, uint256 index) external view returns (address)

Parameters

Returns

getRoleMemberCount

function getRoleMemberCount(bytes32 role) external view returns (uint256)

Parameters

Returns

grantRole

function grantRole(bytes32 role, address account) external nonpayable

Parameters

hasRole

function hasRole(bytes32 role, address account) external view returns (bool)

Parameters

Returns

increasePerGen

function increasePerGen() external view returns (uint256)

Returns

increasePerSummon

function increasePerSummon() external view returns (uint256)

Returns

initialize

function initialize(string name, string symbol, string baseTokenURI) external nonpayable

Parameters

initialize

function initialize(address _crystalAddress) external nonpayable

Parameters

isApprovedForAll

function isApprovedForAll(address owner, address operator) external view returns (bool)

Parameters

Returns

isReadyToSummon

function isReadyToSummon(uint256 _heroId) external view returns (bool)

Parameters

Returns

mint

function mint(address to) external nonpayable

Parameters

name

function name() external view returns (string)

Returns

openCrystal

function openCrystal(uint256 _crystalId) external nonpayable returns (uint256)

Parameters

Returns

ownerOf

function ownerOf(uint256 tokenId) external view returns (address)

Parameters

Returns

pause

function pause() external nonpayable

paused

function paused() external view returns (bool)

Returns

renounceRole

function renounceRole(bytes32 role, address account) external nonpayable

Parameters

revokeRole

function revokeRole(bytes32 role, address account) external nonpayable

Parameters

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId) external nonpayable

Parameters

safeTransferFrom

function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) external nonpayable

Parameters

saleAuction

function saleAuction() external view returns (address)

Returns

setApprovalForAll

function setApprovalForAll(address operator, bool approved) external nonpayable

Parameters

setAssistingAuctionAddress

function setAssistingAuctionAddress(address _address) external nonpayable

Parameters

setFees

function setFees(address[] _feeAddresses, uint256[] _feePercents) external nonpayable

Parameters

setSaleAuctionAddress

function setSaleAuctionAddress(address _address) external nonpayable

Parameters

setSummonCooldowns

function setSummonCooldowns(uint256 _baseCooldown, uint256 _cooldownPerSummon, uint256 _cooldownPerGen) external nonpayable

Parameters

setSummonFees

function setSummonFees(uint256 _baseSummonFee, uint256 _increasePerSummon, uint256 _increasePerGen) external nonpayable

Parameters

setTimePerStamina

function setTimePerStamina(uint256 _timePerStamina) external nonpayable

Parameters

summonCrystal

function summonCrystal(uint256 _summonerId, uint256 _assistantId, uint8 _summonerTears, uint8 _assistantTears, address _enhancementStone) external nonpayable

Parameters

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Parameters

Returns

symbol

function symbol() external view returns (string)

Returns

timePerStamina

function timePerStamina() external view returns (uint256)

Returns

tokenByIndex

function tokenByIndex(uint256 index) external view returns (uint256)

Parameters

Returns

tokenOfOwnerByIndex

function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256)

Parameters

Returns

tokenURI

function tokenURI(uint256 tokenId) external view returns (string)

Parameters

Returns

totalSupply

function totalSupply() external view returns (uint256)

Returns

transferFrom

function transferFrom(address from, address to, uint256 tokenId) external nonpayable

Parameters

unpause

function unpause() external nonpayable

updateHero

function updateHero(Hero _hero) external nonpayable

Parameters

vrf

function vrf(uint256 blockNumber) external view returns (bytes32 result)

Parameters

Returns

Last updated