HeroPresale
function
setCoinAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_coinAddress | address |
Outputs
(void)
function
setHeroAssetAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_heroAssetAddress | address |
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
Parameter | Type | Description |
---|---|---|
_heroType | uint16 | |
_startPrice | uint128 | |
_lowestPriceRate | uint16 | |
_decreaseRate | uint16 | |
_since | uint64 | |
_until | uint64 | |
_supplyLimit | uint16 | |
_currency | uint8 |
Outputs
(void)
function
airDrop
nonpayable
Restricted (whenNotPaused)
Inputs
Parameter | Type | Description |
---|---|---|
_heroType | uint16 |
Outputs
(void)
function
purchaseByEMONT
nonpayable
Restricted (whenNotPaused)
Inputs
Parameter | Type | Description |
---|---|---|
_heroType | uint16 | |
_price | uint256 | |
_code | address |
Outputs
(void)
function
purchase
payable
Restricted (whenNotPaused, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
_heroType | uint16 | |
_code | address |
Outputs
(void)
function
computeCurrentPrice
view
Inputs
Parameter | Type | Description |
---|---|---|
_heroType | uint16 |
Outputs
Type | Description |
---|---|
uint8 | |
uint256 |
event
SoldHeroEvent
Inputs
Parameter | Type | Description |
---|---|---|
heroType | uint16 | |
soldPrice | uint256 | |
soldAt | uint64 | |
priceIncreaseTo | uint256 | |
lowestPrice | uint256 | |
becomeLowestAt | uint256 | |
purchasedBy | address | |
code | address | |
currency | uint8 |
Outputs
(void)
event
AddSalesEvent
Inputs
Parameter | Type | Description |
---|---|---|
heroType | uint16 | |
startPrice | uint128 | |
lowestPrice | uint256 | |
becomeLowestAt | uint256 |
Outputs
(void)
Ownable
function
transferOwnership
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
newOwner | address |
Outputs
(void)
function
renounceOwnership
nonpayable
Restricted (onlyOwner)
Inputs
(void)
Outputs
(void)
function
isOwner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
owner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
event
OwnershipTransferred
Inputs
Parameter | Type | Description |
---|---|---|
previousOwner | address | |
newOwner | address |
Outputs
(void)
event
OwnershipRenounced
Inputs
Parameter | Type | Description |
---|---|---|
previousOwner | address |
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
Type | Description |
---|---|
bool |
event
Unpaused
Inputs
(void)
Outputs
(void)
event
Paused
Inputs
(void)
Outputs
(void)
PauserRole
function
addPauser
nonpayable
Restricted (onlyPauser)
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
function
renouncePauser
nonpayable
Inputs
(void)
Outputs
(void)
function
isPauser
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
bool |
event
PauserRemoved
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
event
PauserAdded
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
function
hasAirDropHero
view
Inputs
Parameter | Type | Description |
---|---|---|
uint16 | ||
address |
Outputs
Type | Description |
---|---|
bool |
function
heroTypeIds
view
Inputs
Parameter | Type | Description |
---|---|---|
uint16 | ||
uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
heroTypeToHeroSales
view
Inputs
Parameter | Type | Description |
---|---|---|
uint16 |
Outputs
Type | Description |
---|---|
uint128 | |
uint128 | |
uint128 | |
uint64 | |
uint64 | |
uint64 | |
uint16 | |
uint16 | |
uint16 | |
uint16 | |
uint8 | |
bool |
function
heroAsset
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
coin
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |