SynMessagingReceiver

Methods

executeMessage

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

function getTrustedRemote(uint256 _chainId) external view returns (bytes32 trustedRemote)

Parameters

Returns

messageBus

function messageBus() external view returns (address)

Returns

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

renounceOwnership

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.

setMessageBus

function setMessageBus(address _messageBus) external nonpayable

Parameters

setTrustedRemote

function setTrustedRemote(uint256 _srcChainId, bytes32 _srcAddress) external nonpayable

Parameters

transferOwnership

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

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

SetTrustedRemote

event SetTrustedRemote(uint256 _srcChainId, bytes32 _srcAddress)

Parameters

Last updated