MyCryptoHeroes / Land

MCHLandPool

0x4a627b324189014fa757ed7cc730b180879232d7
MCHLandPool
function

setAllowedAddress

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_addressaddress
desiredbool

Outputs

(void)
function

setLandSectorAssetAddress

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
_landSectorAssetAddressaddress

Outputs

(void)
function

withdrawMyAllRewards

nonpayable
Restricted (whenNotPaused, nonReentrant)

Inputs

(void)

Outputs

(void)
function

withdrawMyReward

nonpayable
Restricted (whenNotPaused, nonReentrant)

Inputs

ParameterTypeDescription
_landSectoruint256

Outputs

(void)
function

addEthToLandPool

payable
Restricted (whenNotPaused, nonReentrant)

Inputs

ParameterTypeDescription
_landTypeuint16
_purchaseByaddress

Outputs

(void)
function

getTotalEthBackAmountPerLandType

view

Inputs

ParameterTypeDescription
_landTypeuint16

Outputs

TypeDescription
uint256
function

getAllowedAddress

view

Inputs

ParameterTypeDescription
_addressaddress

Outputs

TypeDescription
bool
function

getLandSectorWithdrawnAmount

view

Inputs

ParameterTypeDescription
_landSectoruint256

Outputs

TypeDescription
uint256
function

getWithdrawableBalance

view

Inputs

ParameterTypeDescription
_lordAddressaddress

Outputs

TypeDescription
uint256
function

getLandSectorWithdrawableBalance

view

Inputs

ParameterTypeDescription
_landSectoruint256

Outputs

TypeDescription
uint256
event

AllowedAddressSet

Inputs

ParameterTypeDescription
allowedAddressaddress
allowedStatusbool

Outputs

(void)
event

WithdrawEther

Inputs

ParameterTypeDescription
landSectoruint256
lordaddress
valueuint256
atuint256

Outputs

(void)
event

EthAddedToPool

Inputs

ParameterTypeDescription
landTypeuint16
txSenderaddress
purchaseByaddress
valueuint256
atuint256

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)
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

ParameterTypeDescription
accountaddress

Outputs

(void)
event

Paused

Inputs

ParameterTypeDescription
accountaddress

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)
ReentrancyGuard
constructor

MCHLandPool

nonpayable

Inputs

ParameterTypeDescription
_landSectorAssetAddressaddress

Outputs

(void)
function

landSectorAsset

view

Inputs

(void)

Outputs

TypeDescription
address