IHeroCoreUpgradeable

Methods

DEFAULT_ADMIN_ROLE

function DEFAULT_ADMIN_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

HERO_MODERATOR_ROLE

function HERO_MODERATOR_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

MINTER_ROLE

function MINTER_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

MODERATOR_ROLE

function MODERATOR_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

PAUSER_ROLE

function PAUSER_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

STAMINA_ROLE

function STAMINA_ROLE() external view returns (bytes32)

Returns

Name
Type
Description

_0

bytes32

undefined

approve

function approve(address to, uint256 tokenId) external nonpayable

Parameters

Name
Type
Description

to

address

undefined

tokenId

uint256

undefined

assistingAuction

function assistingAuction() external view returns (address)

Returns

Name
Type
Description

_0

address

undefined

balanceOf

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

Parameters

Name
Type
Description

owner

address

undefined

Returns

Name
Type
Description

_0

uint256

undefined

baseCooldown

function baseCooldown() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

baseSummonFee

function baseSummonFee() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

bridgeMint

function bridgeMint(uint256 _id, address _to) external nonpayable

Parameters

Name
Type
Description

_id

uint256

undefined

_to

address

undefined

burn

function burn(uint256 tokenId) external nonpayable

Parameters

Name
Type
Description

tokenId

uint256

undefined

calculateSummoningCost

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

Parameters

Name
Type
Description

_heroId

uint256

undefined

Returns

Name
Type
Description

_0

uint256

undefined

cooldownPerGen

function cooldownPerGen() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

cooldownPerSummon

function cooldownPerSummon() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

cooldowns

function cooldowns(uint256) external view returns (uint32)

Parameters

Name
Type
Description

_0

uint256

undefined

Returns

Name
Type
Description

_0

uint32

undefined

createAssistingAuction

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

Parameters

Name
Type
Description

_heroId

uint256

undefined

_startingPrice

uint256

undefined

_endingPrice

uint256

undefined

_duration

uint256

undefined

createHero

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

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

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

Parameters

Name
Type
Description

_heroId

uint256

undefined

_startingPrice

uint256

undefined

_endingPrice

uint256

undefined

_duration

uint256

undefined

crystalToken

function crystalToken() external view returns (address)

Returns

Name
Type
Description

_0

address

undefined

deductStamina

function deductStamina(uint256 _heroId, uint256 _staminaDeduction) external nonpayable

Parameters

Name
Type
Description

_heroId

uint256

undefined

_staminaDeduction

uint256

undefined

extractNumber

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

Parameters

Name
Type
Description

randomNumber

uint256

undefined

digits

uint256

undefined

offset

uint256

undefined

Returns

Name
Type
Description

result

uint256

undefined

geneScience

function geneScience() external view returns (address)

Returns

Name
Type
Description

_0

address

undefined

getApproved

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

Parameters

Name
Type
Description

tokenId

uint256

undefined

Returns

Name
Type
Description

_0

address

undefined

getCurrentStamina

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

Parameters

Name
Type
Description

_heroId

uint256

undefined

Returns

Name
Type
Description

_0

uint256

undefined

getHero

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

Parameters

Name
Type
Description

_id

uint256

undefined

Returns

Name
Type
Description

_0

Hero

undefined

getRoleAdmin

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

Parameters

Name
Type
Description

role

bytes32

undefined

Returns

Name
Type
Description

_0

bytes32

undefined

getRoleMember

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

Parameters

Name
Type
Description

role

bytes32

undefined

index

uint256

undefined

Returns

Name
Type
Description

_0

address

undefined

getRoleMemberCount

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

Parameters

Name
Type
Description

role

bytes32

undefined

Returns

Name
Type
Description

_0

uint256

undefined

grantRole

function grantRole(bytes32 role, address account) external nonpayable

Parameters

Name
Type
Description

role

bytes32

undefined

account

address

undefined

hasRole

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

Parameters

Name
Type
Description

role

bytes32

undefined

account

address

undefined

Returns

Name
Type
Description

_0

bool

undefined

increasePerGen

function increasePerGen() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

increasePerSummon

function increasePerSummon() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

initialize

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

Parameters

Name
Type
Description

name

string

undefined

symbol

string

undefined

baseTokenURI

string

undefined

initialize

function initialize(address _crystalAddress) external nonpayable

Parameters

Name
Type
Description

_crystalAddress

address

undefined

isApprovedForAll

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

Parameters

Name
Type
Description

owner

address

undefined

operator

address

undefined

Returns

Name
Type
Description

_0

bool

undefined

isReadyToSummon

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

Parameters

Name
Type
Description

_heroId

uint256

undefined

Returns

Name
Type
Description

_0

bool

undefined

mint

function mint(address to) external nonpayable

Parameters

Name
Type
Description

to

address

undefined

name

function name() external view returns (string)

Returns

Name
Type
Description

_0

string

undefined

openCrystal

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

Parameters

Name
Type
Description

_crystalId

uint256

undefined

Returns

Name
Type
Description

_0

uint256

undefined

ownerOf

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

Parameters

Name
Type
Description

tokenId

uint256

undefined

Returns

Name
Type
Description

_0

address

undefined

pause

function pause() external nonpayable

paused

function paused() external view returns (bool)

Returns

Name
Type
Description

_0

bool

undefined

renounceRole

function renounceRole(bytes32 role, address account) external nonpayable

Parameters

Name
Type
Description

role

bytes32

undefined

account

address

undefined

revokeRole

function revokeRole(bytes32 role, address account) external nonpayable

Parameters

Name
Type
Description

role

bytes32

undefined

account

address

undefined

safeTransferFrom

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

Parameters

Name
Type
Description

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

safeTransferFrom

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

Parameters

Name
Type
Description

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

_data

bytes

undefined

saleAuction

function saleAuction() external view returns (address)

Returns

Name
Type
Description

_0

address

undefined

setApprovalForAll

function setApprovalForAll(address operator, bool approved) external nonpayable

Parameters

Name
Type
Description

operator

address

undefined

approved

bool

undefined

setAssistingAuctionAddress

function setAssistingAuctionAddress(address _address) external nonpayable

Parameters

Name
Type
Description

_address

address

undefined

setFees

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

Parameters

Name
Type
Description

_feeAddresses

address[]

undefined

_feePercents

uint256[]

undefined

setSaleAuctionAddress

function setSaleAuctionAddress(address _address) external nonpayable

Parameters

Name
Type
Description

_address

address

undefined

setSummonCooldowns

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

Parameters

Name
Type
Description

_baseCooldown

uint256

undefined

_cooldownPerSummon

uint256

undefined

_cooldownPerGen

uint256

undefined

setSummonFees

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

Parameters

Name
Type
Description

_baseSummonFee

uint256

undefined

_increasePerSummon

uint256

undefined

_increasePerGen

uint256

undefined

setTimePerStamina

function setTimePerStamina(uint256 _timePerStamina) external nonpayable

Parameters

Name
Type
Description

_timePerStamina

uint256

undefined

summonCrystal

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

Parameters

Name
Type
Description

_summonerId

uint256

undefined

_assistantId

uint256

undefined

_summonerTears

uint8

undefined

_assistantTears

uint8

undefined

_enhancementStone

address

undefined

supportsInterface

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

Parameters

Name
Type
Description

interfaceId

bytes4

undefined

Returns

Name
Type
Description

_0

bool

undefined

symbol

function symbol() external view returns (string)

Returns

Name
Type
Description

_0

string

undefined

timePerStamina

function timePerStamina() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

tokenByIndex

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

Parameters

Name
Type
Description

index

uint256

undefined

Returns

Name
Type
Description

_0

uint256

undefined

tokenOfOwnerByIndex

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

Parameters

Name
Type
Description

owner

address

undefined

index

uint256

undefined

Returns

Name
Type
Description

_0

uint256

undefined

tokenURI

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

Parameters

Name
Type
Description

tokenId

uint256

undefined

Returns

Name
Type
Description

_0

string

undefined

totalSupply

function totalSupply() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

transferFrom

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

Parameters

Name
Type
Description

from

address

undefined

to

address

undefined

tokenId

uint256

undefined

unpause

function unpause() external nonpayable

updateHero

function updateHero(Hero _hero) external nonpayable

Parameters

Name
Type
Description

_hero

Hero

undefined

vrf

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

Parameters

Name
Type
Description

blockNumber

uint256

undefined

Returns

Name
Type
Description

result

bytes32

undefined

Last updated