Core app for handling cross chain messaging passing to bridge Hero NFTs
Methods
assistingAuction
Copy function assistingAuction () external view returns ( address )
Returns
executeMessage
Copy function executeMessage(bytes32 _srcAddress, uint256 _srcChainId, bytes _message, address _executor) external nonpayable
Executes a message called by MessageBus (MessageBusReceiver)
Must be called by MessageBug & sent from src chain by a trusted srcApp
Parameters
getTrustedRemote
Copy function getTrustedRemote ( uint256 _chainId ) external view returns ( bytes32 trustedRemote)
Parameters
Returns
heroes
Copy function heroes () external view returns ( address )
Returns
initialize
Copy function initialize ( address _messageBus , address _heroes , address _assistingAuction ) external nonpayable
Parameters
messageBus
Copy function messageBus () external view returns ( address )
Returns
msgGasLimit
Copy function msgGasLimit () external view returns ( uint256 )
Returns
owner
Copy function owner () external view returns ( address )
Returns the address of the current owner.
Returns
renounceOwnership
Copy function renounceOwnership () external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
sendHero
Copy function sendHero ( uint256 _heroId , uint256 _dstChainId ) external payable
User must have an existing hero minted to bridge it.
*This function enforces the caller to receive the Hero being bridged to the same address on another chain.Do NOT call this from other contracts, unless the contract is deployed on another chain to the same address, and can receive ERC721s. *
Parameters
setAssistingAuctionAddress
Copy function setAssistingAuctionAddress ( address _assistingAuction ) external nonpayable
Parameters
setMessageBus
Copy function setMessageBus ( address _messageBus ) external nonpayable
Parameters
setMsgGasLimit
Copy function setMsgGasLimit ( uint256 _msgGasLimit ) external nonpayable
Parameters
setTrustedRemote
Copy function setTrustedRemote ( uint256 _srcChainId , bytes32 _srcAddress ) external nonpayable
Parameters
transferOwnership
Copy function transferOwnership ( address newOwner) external nonpayable
Transfers ownership of the contract to a new account ( newOwner
). Can only be called by the current owner.
Parameters
Events
HeroArrived
Copy event HeroArrived ( uint256 indexed heroId, uint256 arrivalChainId)
Parameters
HeroSent
Copy event HeroSent ( uint256 indexed heroId, uint256 arrivalChainId)
Parameters
OwnershipTransferred
Copy event OwnershipTransferred ( address indexed previousOwner, address indexed newOwner)
Parameters
SetTrustedRemote
Copy event SetTrustedRemote ( uint256 _srcChainId, bytes32 _srcAddress)
Parameters