IGTokenOpenPnlFeed
Interface for GTokenOpenPnlFeed contract
Request
struct Request {
bool initiated;
bool active;
uint256 linkFeePerNode;
}nextEpochValuesRequestCount
function nextEpochValuesRequestCount() external view returns (uint256)newOpenPnlRequestOrEpoch
function newOpenPnlRequestOrEpoch() externalfulfill
function fulfill(bytes32 requestId, int256 value) externalNumberParamUpdated
event NumberParamUpdated(string name, uint256 newValue)OracleUpdated
event OracleUpdated(uint256 index, address newValue)OraclesUpdated
event OraclesUpdated(address[] newValues)JobUpdated
event JobUpdated(bytes32 newValue)NextEpochValuesReset
event NextEpochValuesReset(uint256 currEpoch, uint256 requestsResetCount)NewEpochForced
event NewEpochForced(uint256 newEpoch)NextEpochValueRequested
event NextEpochValueRequested(uint256 currEpoch, uint256 requestId, bytes32 job, uint256 oraclesCount, uint256 linkFeePerNode)NewEpoch
event NewEpoch(uint256 newEpoch, uint256 requestId, int256[] epochMedianValues, int256 epochAverageValue, uint256 newEpochPositiveOpenPnl)RequestValueReceived
event RequestValueReceived(bool isLate, uint256 currEpoch, uint256 requestId, bytes32 oracleRequestId, address oracle, int256 requestValue, uint256 linkFee)RequestMedianValueSet
event RequestMedianValueSet(uint256 currEpoch, uint256 requestId, int256[] requestValues, int256 medianValue)Was this helpful?