IStatScienceUpgradeable

Methods

DEFAULT_ADMIN_ROLE

function DEFAULT_ADMIN_ROLE() external view returns (bytes32)

Returns

NameTypeDescription

_0

bytes32

undefined

WHITELIST_ROLE

function WHITELIST_ROLE() external view returns (bytes32)

Returns

NameTypeDescription

_0

bytes32

undefined

augmentStat

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

Parameters

NameTypeDescription

_stats

HeroStats

undefined

_stat

uint256

undefined

_increase

uint8

undefined

Returns

NameTypeDescription

_0

HeroStats

undefined

generateStatGrowth

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

Parameters

NameTypeDescription

_statGenes

uint256

undefined

_1

HeroCrystal

undefined

_2

enum Rarity

undefined

_isPrimary

bool

undefined

Returns

NameTypeDescription

_0

HeroStatGrowth

undefined

generateStats

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

Parameters

NameTypeDescription

_statGenes

uint256

undefined

_crystal

HeroCrystal

undefined

_rarity

enum Rarity

undefined

_crystalId

uint256

undefined

Returns

NameTypeDescription

_0

HeroStats

undefined

getGene

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

Parameters

NameTypeDescription

_genes

uint256

undefined

_position

uint8

undefined

Returns

NameTypeDescription

_0

uint8

undefined

getJobTier

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

Parameters

NameTypeDescription

_class

uint8

undefined

Returns

NameTypeDescription

_0

enum JobTier

undefined

getRoleAdmin

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

Parameters

NameTypeDescription

role

bytes32

undefined

Returns

NameTypeDescription

_0

bytes32

undefined

grantRole

function grantRole(bytes32 role, address account) external nonpayable

Parameters

NameTypeDescription

role

bytes32

undefined

account

address

undefined

hasRole

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

Parameters

NameTypeDescription

role

bytes32

undefined

account

address

undefined

Returns

NameTypeDescription

_0

bool

undefined

renounceRole

function renounceRole(bytes32 role, address account) external nonpayable

Parameters

NameTypeDescription

role

bytes32

undefined

account

address

undefined

revokeRole

function revokeRole(bytes32 role, address account) external nonpayable

Parameters

NameTypeDescription

role

bytes32

undefined

account

address

undefined

supportsInterface

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

Parameters

NameTypeDescription

interfaceId

bytes4

undefined

Returns

NameTypeDescription

_0

bool

undefined

Last updated