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/hooks/PausableHook.sol

26 lines
623 B

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import {AbstractHook} from "./AbstractHook.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
contract PausableHook is AbstractHook, Ownable, Pausable {
constructor(address _mailbox) AbstractHook(_mailbox) {}
function _postDispatch(bytes calldata message)
internal
override
whenNotPaused
{}
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
}