Skip to content

Commit

Permalink
fix: I8: HashConsensus should inherit from IConsensusContract
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko authored and dgusakov committed Sep 11, 2024
1 parent 8bd1e0e commit 3b268f9
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/lib/base-oracle/HashConsensus.sol
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import { SafeCast } from "@openzeppelin/contracts/utils/math/SafeCast.sol";
import { AccessControlEnumerableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/extensions/AccessControlEnumerableUpgradeable.sol";

import { IReportAsyncProcessor } from "./interfaces/IReportAsyncProcessor.sol";
import { IConsensusContract } from "./interfaces/IConsensusContract.sol";

/// @notice A contract managing oracle members committee and allowing the members to reach
/// consensus on a hash for each reporting frame.
@@ -25,7 +26,10 @@ import { IReportAsyncProcessor } from "./interfaces/IReportAsyncProcessor.sol";
/// might be impractical or even impossible to transmit and process.
///
// solhint-disable ordering
contract HashConsensus is AccessControlEnumerableUpgradeable {
contract HashConsensus is
IConsensusContract,
AccessControlEnumerableUpgradeable
{
using SafeCast for uint256;

struct FrameConfig {
5 changes: 0 additions & 5 deletions src/lib/base-oracle/interfaces/IConsensusContract.sol
Original file line number Diff line number Diff line change
@@ -19,10 +19,5 @@ interface IConsensusContract {
uint256 genesisTime
);

function getFrameConfig()
external
view
returns (uint256 initialEpoch, uint256 epochsPerFrame);

function getInitialRefSlot() external view returns (uint256);
}

0 comments on commit 3b268f9

Please sign in to comment.