IStatScienceUpgradeable

Methods

DEFAULT_ADMIN_ROLE

function DEFAULT_ADMIN_ROLE() external view returns (bytes32)

Returns

WHITELIST_ROLE

function WHITELIST_ROLE() external view returns (bytes32)

Returns

augmentStat

function augmentStat(HeroStats _stats, uint256 _stat, uint8 _increase) external pure returns (struct HeroStats)

Parameters

Returns

generateStatGrowth

function generateStatGrowth(uint256 _statGenes, HeroCrystal, enum Rarity, bool _isPrimary) external pure returns (struct HeroStatGrowth)

Parameters

Returns

generateStats

function generateStats(uint256 _statGenes, HeroCrystal _crystal, enum Rarity _rarity, uint256 _crystalId) external nonpayable returns (struct HeroStats)

Parameters

Returns

getGene

function getGene(uint256 _genes, uint8 _position) external pure returns (uint8)

Parameters

Returns

getJobTier

function getJobTier(uint8 _class) external pure returns (enum JobTier)

Parameters

Returns

getRoleAdmin

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

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

renounceRole

function renounceRole(bytes32 role, address account) external nonpayable

Parameters

revokeRole

function revokeRole(bytes32 role, address account) external nonpayable

Parameters

supportsInterface

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

Parameters

Returns

Last updated