Files
2022-11-25 15:14:43 +02:00

25 lines
1.1 KiB
Solidity

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;
import "./OracleInterface.sol";
import "./OracleAncillaryInterface.sol";
/**
* @title Financial contract facing extending the Oracle interface with governance actions.
* @dev Interface used by financial contracts to interact with the Oracle extending governance actions. Voters will use a different interface.
*/
abstract contract OracleGovernanceInterface is OracleInterface, OracleAncillaryInterface {
/**
* @notice Enqueues a request (if a request isn't already present) for the given `identifier`, `time` pair.
* @dev Time must be in the past and the identifier must be supported.
* @param identifier uniquely identifies the price requested. eg BTC/USD (encoded as bytes32) could be requested.
* @param ancillaryData arbitrary data appended to a price request to give the voters more info from the caller.
* @param time unix timestamp for the price request.
*/
function requestGovernanceAction(
bytes32 identifier,
uint256 time,
bytes memory ancillaryData
) external virtual;
}