MyCryptoHeroes / Sale

HeroCrowdsale

0xa1d2c7e6de2fa512f1fdf486ca17ab79b4dc5d01
ERC165
constructor

HeroCrowdsale

nonpayable

Inputs

(void)

Outputs

(void)
HeroCrowdsale
function

changeEthBackRate

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_newEthBackRateuint256

Outputs

(void)
function

setHeroAssetAddress

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_heroAssetAddressaddress

Outputs

(void)
function

withdrawEther

nonpayable
Restricted (onlyOwner)

Inputs

(void)

Outputs

(void)
function

addSales

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_heroTypeuint16
_startPriceuint128
_lowestPriceRateuint16
_decreaseRateuint16
_sinceuint64
_untiluint64
_supplyLimituint16
_currencyuint8

Outputs

(void)
function

airDrop

nonpayable
Restricted (whenNotPaused)

Inputs

ParameterTypeDescription
_heroTypeuint16
_referreraddress

Outputs

(void)
function

purchase

payable
Restricted (whenNotPaused, nonReentrant)

Inputs

ParameterTypeDescription
_heroTypeuint16
_referreraddress

Outputs

(void)
function

computeCurrentPrice

view

Inputs

ParameterTypeDescription
_heroTypeuint16

Outputs

TypeDescription
uint8
uint256
event

SoldHeroEvent

Inputs

ParameterTypeDescription
heroTypeuint16
soldPriceuint256
soldAtuint64
priceIncreaseTouint256
lowestPriceuint256
becomeLowestAtuint256
purchasedByaddress
referreraddress
currencyuint8

Outputs

(void)
event

AddSalesEvent

Inputs

ParameterTypeDescription
heroTypeuint16
startPriceuint128
lowestPriceuint256
becomeLowestAtuint256

Outputs

(void)
Ownable
function

transferOwnership

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
newOwneraddress

Outputs

(void)
function

renounceOwnership

nonpayable
Restricted (onlyOwner)

Inputs

(void)

Outputs

(void)
function

isOwner

view

Inputs

(void)

Outputs

TypeDescription
bool
function

owner

view

Inputs

(void)

Outputs

TypeDescription
address
event

OwnershipTransferred

Inputs

ParameterTypeDescription
previousOwneraddress
newOwneraddress

Outputs

(void)
event

OwnershipRenounced

Inputs

ParameterTypeDescription
previousOwneraddress

Outputs

(void)
Pausable
function

pause

nonpayable
Restricted (onlyPauser, whenNotPaused)

Inputs

(void)

Outputs

(void)
function

unpause

nonpayable
Restricted (onlyPauser, whenPaused)

Inputs

(void)

Outputs

(void)
function

paused

view

Inputs

(void)

Outputs

TypeDescription
bool
event

Unpaused

Inputs

(void)

Outputs

(void)
event

Paused

Inputs

(void)

Outputs

(void)
PauserRole
function

addPauser

nonpayable
Restricted (onlyPauser)

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
function

renouncePauser

nonpayable

Inputs

(void)

Outputs

(void)
function

isPauser

view

Inputs

ParameterTypeDescription
accountaddress

Outputs

TypeDescription
bool
event

PauserRemoved

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
event

PauserAdded

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
ReferrerRole
function

addReferrer

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
function

removeReferrer

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
function

isReferrer

view

Inputs

ParameterTypeDescription
accountaddress

Outputs

TypeDescription
bool
event

ReferrerRemoved

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
event

ReferrerAdded

Inputs

ParameterTypeDescription
accountaddress

Outputs

(void)
function

hasAirDropHero

view

Inputs

ParameterTypeDescription
uint16
address

Outputs

TypeDescription
bool
function

heroTypeIds

view

Inputs

ParameterTypeDescription
uint16
uint256

Outputs

TypeDescription
uint256
function

heroTypeToHeroSales

view

Inputs

ParameterTypeDescription
uint16

Outputs

TypeDescription
uint128
uint128
uint128
uint64
uint64
uint64
uint16
uint16
uint16
uint16
uint8
bool
function

heroAsset

view

Inputs

(void)

Outputs

TypeDescription
address