HeroGatewayV2
function
withdrawHeroToAssetOwnerByAdmin
nonpayable
Restricted (onlyOperator)
Inputs
Parameter | Type | Description |
---|---|---|
_assetOwner | address | |
_tokenId | uint256 | |
_eventHash | bytes32 |
Outputs
(void)
function
setPastEventHash
nonpayable
Restricted (onlyOperator)
Inputs
Parameter | Type | Description |
---|---|---|
_eventHash | bytes32 | |
_desired | bool |
Outputs
(void)
function
mintHero
nonpayable
Restricted (onlyOperator)
Inputs
Parameter | Type | Description |
---|---|---|
_assetOwner | address | |
_tokenId | uint256 | |
_eventHash | bytes32 |
Outputs
(void)
function
setHeroAssetAddress
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_heroAssetAddress | address |
Outputs
(void)
function
transferAllTokensOfGateway
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
_newAddress | address |
Outputs
(void)
function
depositHero
nonpayable
Restricted (whenNotPaused)
Inputs
Parameter | Type | Description |
---|---|---|
_tokenId | uint256 |
Outputs
(void)
function
onERC721Received
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
operator | address | |
from | address | |
tokenId | uint256 | |
data | bytes |
Outputs
Type | Description |
---|---|
bytes4 |
function
checkIsPastEvent
view
Inputs
Parameter | Type | Description |
---|---|---|
_eventHash | bytes32 |
Outputs
Type | Description |
---|---|
bool |
event
OutgoingEvent
Inputs
Parameter | Type | Description |
---|---|---|
assetOwner | address | |
tokenId | uint256 | |
at | uint256 | |
eventHash | bytes32 | |
eventType | uint8 |
Outputs
(void)
event
InComingEvent
Inputs
Parameter | Type | Description |
---|---|---|
locker | address | |
tokenId | uint256 | |
at | uint256 |
Outputs
(void)
OperatorRole
function
removeOperator
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
function
addOperator
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
function
isOperator
view
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
Type | Description |
---|---|
bool |
event
OperatorRemoved
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
Outputs
(void)
event
OperatorAdded
Inputs
Parameter | Type | Description |
---|---|---|
account | address |
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)
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
LIMIT
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
heroAsset
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |