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/contracts/test/TestRemoteChallenger.sol

21 lines
637 B

// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.8.0;
import {IRemoteChallenger} from "../interfaces/avs/IRemoteChallenger.sol";
import {HyperlaneServiceManager} from "../avs/HyperlaneServiceManager.sol";
contract TestRemoteChallenger is IRemoteChallenger {
HyperlaneServiceManager internal immutable hsm;
constructor(HyperlaneServiceManager _hsm) {
hsm = _hsm;
}
function challengeDelayBlocks() external pure returns (uint256) {
return 50400; // one week of eth L1 blocks
}
function handleChallenge(address operator) external {
hsm.freezeOperator(operator);
}
}