MCHGUMGatewayV8
function
setValidater
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_varidater | address |
Outputs
(void)
function
setCampaign
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_since | uint256 | |
_until | uint256 | |
_purchaseType | uint8 |
Outputs
(void)
function
updateLandPercentage
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_newLandPercentage | uint256 |
Outputs
(void)
function
setPayableOption
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_option | uint256 | |
desired | bool |
Outputs
(void)
function
setLandPoolAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_landPoolAddress | address |
Outputs
(void)
function
kill
nonpayable
Restricted (onlyOwner)
Inputs
(void)
Outputs
(void)
function
setLandSectorAssetAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_landSectorAssetAddress | address |
Outputs
(void)
function
buyGUM
payable
Restricted (whenNotPaused)
Inputs
Parameter | Type | Description |
---|---|---|
_referrer | address | |
_referralPercentage | uint256 | |
_landType | uint16 | |
_signature | bytes |
Outputs
(void)
function
encodeData
pure
Inputs
Parameter | Type | Description |
---|---|---|
_sender | address | |
_referrer | address | |
_referralPercentage | uint256 | |
_landType | uint16 |
Outputs
Type | Description |
---|---|
bytes32 |
function
getPurchaseType
view
Inputs
Parameter | Type | Description |
---|---|---|
_block | uint256 |
Outputs
Type | Description |
---|---|
uint8 |
function
validateSig
view
Inputs
Parameter | Type | Description |
---|---|---|
_message | bytes32 | |
_signature | bytes |
Outputs
Type | Description |
---|---|
bool |
event
LandPercentageUpdated
Inputs
Parameter | Type | Description |
---|---|---|
landPercentage | uint256 |
Outputs
(void)
event
CampaignUpdated
Inputs
Parameter | Type | Description |
---|---|---|
since | uint256 | |
until | uint256 | |
purchaseType | uint8 |
Outputs
(void)
event
Sold
Inputs
Parameter | Type | Description |
---|---|---|
user | address | |
referrer | address | |
purchaseType | uint8 | |
grossValue | uint256 | |
referralValue | uint256 | |
landValue | uint256 | |
netValue | uint256 | |
landType | uint16 |
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 |
constructor
MCHGUMGatewayV8
payable
Inputs
Parameter | Type | Description |
---|---|---|
_validater | address | |
_landSectorAssetAddress | address | |
_landPoolAddress | address |
Outputs
(void)
event
OwnershipTransferred
Inputs
Parameter | Type | Description |
---|---|---|
previousOwner | address | |
newOwner | 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
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
event
Paused
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
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)
Withdrawable
function
withdrawToken
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_token | address |
Outputs
(void)
function
withdrawEther
nonpayable
Restricted (onlyOwner)
Inputs
(void)
Outputs
(void)
function
landSectorAsset
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
validater
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
landPool
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
payableOptions
view
Inputs
Parameter | Type | Description |
---|---|---|
uint256 |
Outputs
Type | Description |
---|---|
bool |
function
campaign
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 | |
uint256 | |
uint8 |
function
landPercentage
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |