From 0dce797fdfb6ef6f204d79669743de30ba8ee8b4 Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Tue, 1 Oct 2024 18:33:46 +0100 Subject: [PATCH] fix: expose disputePeriod via DisputeManager contract/interface --- packages/subgraph-service/contracts/DisputeManager.sol | 8 ++++++++ .../contracts/interfaces/IDisputeManager.sol | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/packages/subgraph-service/contracts/DisputeManager.sol b/packages/subgraph-service/contracts/DisputeManager.sol index b49a0ded7..84f0d3482 100644 --- a/packages/subgraph-service/contracts/DisputeManager.sol +++ b/packages/subgraph-service/contracts/DisputeManager.sol @@ -168,6 +168,14 @@ contract DisputeManager is ); } + /** + * @notice Returns the current dispute period. + * @return The dispute period in seconds as a uint64. + */ + function disputePeriod() external view override returns (uint64) { + return disputePeriod; + } + /** * @notice Create query disputes for two conflicting attestations. * A conflicting attestation is a proof presented by two different indexers diff --git a/packages/subgraph-service/contracts/interfaces/IDisputeManager.sol b/packages/subgraph-service/contracts/interfaces/IDisputeManager.sol index 01cc10a25..9b6557373 100644 --- a/packages/subgraph-service/contracts/interfaces/IDisputeManager.sol +++ b/packages/subgraph-service/contracts/interfaces/IDisputeManager.sol @@ -42,6 +42,12 @@ interface IDisputeManager { uint256 stakeSnapshot; } + /** + * @notice Returns the current dispute period. + * @return The dispute period in seconds as a uint64. + */ + function disputePeriod() external view returns (uint64); + /** * @notice Emitted when arbitrator is set. * @param arbitrator The address of the arbitrator.