diff --git a/packages/subgraph-service/contracts/DisputeManager.sol b/packages/subgraph-service/contracts/DisputeManager.sol index b90a307b3..6a8bc8b77 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 @@ -309,7 +317,7 @@ contract DisputeManager is /** * @notice Set the dispute period. * @dev Update the dispute period to `_disputePeriod` in seconds - * @param disputePeriod Dispute period in seconds + * @param _disputePeriod Dispute period in seconds */ function setDisputePeriod(uint64 _disputePeriod) external override onlyOwner { _setDisputePeriod(_disputePeriod); diff --git a/packages/subgraph-service/contracts/DisputeManagerStorage.sol b/packages/subgraph-service/contracts/DisputeManagerStorage.sol index a8790230d..ca1810f04 100644 --- a/packages/subgraph-service/contracts/DisputeManagerStorage.sol +++ b/packages/subgraph-service/contracts/DisputeManagerStorage.sol @@ -13,7 +13,7 @@ abstract contract DisputeManagerV1Storage { address public arbitrator; /// @notice dispute period in seconds - uint64 public disputePeriod; + uint64 internal disputePeriod; /// @notice Deposit required to create a Dispute uint256 public disputeDeposit;