Skip to main content

IHeaderSync

Interface implemented by both the MXCL1 and MXCL2 contracts. It exposes the methods needed to access the block hashes of the other chain.

HeaderSynced​

event HeaderSynced(uint256 srcHeight, bytes32 srcHash)

getSyncedHeader​

function getSyncedHeader(uint256 number) external view returns (bytes32)

getLatestSyncedHeader​

function getLatestSyncedHeader() external view returns (bytes32)