MyCryptoHeroes / Sale

HeroPresale

0x946048a75af11c300a274344887ec39452218b3d
HeroPresale
function

setCoinAddress

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_coinAddressaddress

Outputs

(void)
function

setHeroAssetAddress

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_heroAssetAddressaddress

Outputs

(void)
function

withdrawEther

nonpayable
Restricted (onlyOwner)

Inputs

(void)

Outputs

(void)
function

withdrawEMONT

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

Outputs

(void)
function

purchaseByEMONT

nonpayable
Restricted (whenNotPaused)

Inputs

ParameterTypeDescription
_heroTypeuint16
_priceuint256
_codeaddress

Outputs

(void)
function

purchase

payable
Restricted (whenNotPaused, nonReentrant)

Inputs

ParameterTypeDescription
_heroTypeuint16
_codeaddress

Outputs

(void)
function

computeCurrentPrice

view

Inputs

ParameterTypeDescription
_heroTypeuint16

Outputs

TypeDescription
uint8
uint256
event

SoldHeroEvent

Inputs

ParameterTypeDescription
heroTypeuint16
soldPriceuint256
soldAtuint64
priceIncreaseTouint256
lowestPriceuint256
becomeLowestAtuint256
purchasedByaddress
codeaddress
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)
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
function

coin

view

Inputs

(void)

Outputs

TypeDescription
address