Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

BaseEndpoint

Git Source

State Variables

messageBus

address internal immutable messageBus

inOrder

bool private immutable inOrder

remote

address private remote

remoteChainId

uint256 private remoteChainId

endpoints

mapping(bytes32 => function(bytes calldata) returns (Result)) private endpoints

txSeq

uint256 private txSeq

rxSeq

uint256 private rxSeq

Functions

constructor

constructor(address _remote, uint256 _remoteChainId, address _messageBus, bool _inOrder) ;

registerEndpoint

function registerEndpoint(bytes memory _method, function(bytes calldata) returns (Result) _cb) internal;

postMessage

function postMessage(bytes memory _method) internal returns (uint256);

postMessage

Calls the remote endpoint, returning the amount of native token charged for the operation.

function postMessage(bytes memory _method, bytes memory _message) internal returns (uint256);

executeMessage

Celer message bus callback function.

function executeMessage(
    address _sender,
    uint64 _senderChainId,
    bytes calldata _message,
    address // executor
)
    external
    payable
    returns (uint256);

estimateFee

function estimateFee(uint256 _msgLen) internal view returns (uint256);

_isLocalNetwork

function _isLocalNetwork() internal view returns (bool);