MessageBusSender

Methods

computeMessageId

function computeMessageId(address _srcAddress, uint256 _srcChainId, bytes32 _dstAddress, uint256 _dstChainId, uint256 _srcNonce, bytes _message) external view returns (bytes32)

Parameters

Returns

estimateFee

function estimateFee(uint256 _dstChainId, bytes _options) external nonpayable returns (uint256)

Parameters

Returns

fees

function fees() external view returns (uint256)

Returns

gasFeePricing

function gasFeePricing() external view returns (address)

Returns

nonce

function nonce() external view returns (uint64)

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.

rescueGas

function rescueGas(address payable to) external nonpayable

Rescues any gas in contract, aside from fees

Parameters

sendMessage

function sendMessage(bytes32 _receiver, uint256 _dstChainId, bytes _message, bytes _options) external payable

Sends a message to a receiving contract address on another chain. Sender must make sure that the message is unique and not a duplicate message.

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

updateGasFeePricing

function updateGasFeePricing(address _gasFeePricing) external nonpayable

Parameters

withdrawGasFees

function withdrawGasFees(address payable to) external nonpayable

Withdraws accumulated fees in native gas token, based on fees variable.

Parameters

Events

MessageSent

event MessageSent(address indexed sender, uint256 srcChainID, bytes32 receiver, uint256 indexed dstChainId, bytes message, uint64 nonce, bytes options, uint256 fee, bytes32 indexed messageId)

Parameters

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

Last updated