From 3b268f9c9a181998e7d924d66bbfb9d1592f035f Mon Sep 17 00:00:00 2001 From: vgorkavenko Date: Tue, 10 Sep 2024 13:27:05 +0200 Subject: [PATCH] fix: I8: HashConsensus should inherit from IConsensusContract --- src/lib/base-oracle/HashConsensus.sol | 6 +++++- src/lib/base-oracle/interfaces/IConsensusContract.sol | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib/base-oracle/HashConsensus.sol b/src/lib/base-oracle/HashConsensus.sol index 953b32e7..2fe5d807 100644 --- a/src/lib/base-oracle/HashConsensus.sol +++ b/src/lib/base-oracle/HashConsensus.sol @@ -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 { diff --git a/src/lib/base-oracle/interfaces/IConsensusContract.sol b/src/lib/base-oracle/interfaces/IConsensusContract.sol index fc4d1112..2a0d8172 100644 --- a/src/lib/base-oracle/interfaces/IConsensusContract.sol +++ b/src/lib/base-oracle/interfaces/IConsensusContract.sol @@ -19,10 +19,5 @@ interface IConsensusContract { uint256 genesisTime ); - function getFrameConfig() - external - view - returns (uint256 initialEpoch, uint256 epochsPerFrame); - function getInitialRefSlot() external view returns (uint256); }