-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.7.5; | ||
|
||
interface IRewardsOracle { | ||
|
||
/** | ||
* @notice Returns the oracle value, agreed upon by all oracle signers. If the signers have not | ||
* agreed upon a value, should return zero for all return values. | ||
* | ||
* @return merkleRoot The Merkle root for the next Merkle distributor update. | ||
* @return ipfsCid An IPFS CID pointing to the Merkle tree data. | ||
* @return epoch The epoch number corresponding to the new Merkle root. | ||
*/ | ||
function read() external virtual view returns (bytes32 merkleRoot, bytes32 ipfsCid, uint256 epoch); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters