HeroBridgeUpgradeable
Last updated
Last updated
Core app for handling cross chain messaging passing to bridge Hero NFTs
Name | Type | Description |
---|---|---|
Executes a message called by MessageBus (MessageBusReceiver)
Must be called by MessageBug & sent from src chain by a trusted srcApp
Name | Type | Description |
---|---|---|
Returns the address of the current owner.
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.
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. *
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_0
address
undefined
_srcAddress
bytes32
The bytes32 address of the source app contract
_srcChainId
uint256
The source chain ID where the transfer is originated from
_message
bytes
Arbitrary message bytes originated from and encoded by the source app contract
_executor
address
Address who called the MessageBus execution function
_chainId
uint256
undefined
trustedRemote
bytes32
undefined
_0
address
undefined
_messageBus
address
undefined
_heroes
address
undefined
_assistingAuction
address
undefined
_0
address
undefined
_0
uint256
undefined
_0
address
undefined
_heroId
uint256
specifics which hero msg.sender already holds and will transfer to the bridge contract
_dstChainId
uint256
The destination chain ID - typically, standard EVM chain ID, but differs on nonEVM chains
_assistingAuction
address
undefined
_messageBus
address
undefined
_msgGasLimit
uint256
undefined
_srcChainId
uint256
undefined
_srcAddress
bytes32
undefined
newOwner
address
undefined
heroId indexed
uint256
undefined
arrivalChainId
uint256
undefined
heroId indexed
uint256
undefined
arrivalChainId
uint256
undefined
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
_srcChainId
uint256
undefined
_srcAddress
bytes32
undefined