The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/solidity/optics-core/contracts/test/TestHome.sol

31 lines
782 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
import "../Home.sol";
contract TestHome is Home {
using QueueLib for QueueLib.Queue;
using MerkleLib for MerkleLib.Tree;
constructor(uint32 _localDomain) Home(_localDomain) {} // solhint-disable-line no-empty-blocks
function nextLeafIndex() external view returns (uint256) {
return count();
}
function testHomeDomainHash() external view returns (bytes32) {
return homeDomainHash();
}
function testDestinationAndSequence(uint32 _destination, uint32 _sequence)
external
pure
returns (uint64)
{
return _destinationAndSequence(_destination, _sequence);
}
function setFailed() public {
_setFailed();
}
}