Skip to content

Commit

Permalink
fix: expose disputePeriod via DisputeManager contract/interface
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Oct 1, 2024
1 parent 1bbb345 commit 0dce797
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/subgraph-service/contracts/DisputeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0dce797

Please sign in to comment.