I Header Sync
IHeaderSync
Section titled “IHeaderSync”Interface implemented by both the MCHL1 and MCHL2 contracts. It exposes the methods needed to access the block hashes of the other chain.
HeaderSynced
Section titled “HeaderSynced”event HeaderSynced(uint256 srcHeight, bytes32 srcHash)
getSyncedHeader
Section titled “getSyncedHeader”function getSyncedHeader(uint256 number) external view returns (bytes32)
getLatestSyncedHeader
Section titled “getLatestSyncedHeader”function getLatestSyncedHeader() external view returns (bytes32)