Skip to content

Commit

Permalink
chore(pfs): add IWitPriceFeedsSolverFactory as core interface
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Nov 28, 2024
1 parent d51c30a commit eb64121
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 8 additions & 3 deletions contracts/WitPriceFeeds.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
pragma solidity >=0.8.0 <0.9.0;

import "./WitFeeds.sol";

import "./interfaces/IWitPriceFeeds.sol";
import "./interfaces/IWitPriceFeedsSolverFactory.sol";

/// @title WitPriceFeeds: Price Feeds live repository reliant on the Wit/Oracle blockchain.
/// @author The Witnet Foundation.
abstract contract WitPriceFeeds
is
WitFeeds,
IWitPriceFeeds
IWitPriceFeeds,
IWitPriceFeedsSolverFactory
{
constructor()
WitFeeds(
Expand All @@ -21,10 +24,12 @@ abstract contract WitPriceFeeds

function specs() virtual override external pure returns (bytes4) {
return (
type(IWitOracleAppliance).interfaceId
^ type(IERC2362).interfaceId
type(IERC2362).interfaceId
^ type(IWitOracleAppliance).interfaceId
^ type(IWitFeeds).interfaceId
^ type(IWitFeedsAdmin).interfaceId
^ type(IWitPriceFeeds).interfaceId
^ type(IWitPriceFeedsSolverFactory).interfaceId
);
}
}
7 changes: 2 additions & 5 deletions contracts/apps/WitPriceFeedsUpgradable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "../core/WitnetUpgradableBase.sol";
import "../data/WitPriceFeedsDataLib.sol";

import "../interfaces/IWitFeedsLegacy.sol";
import "../interfaces/IWitPriceFeedsSolverFactory.sol";
import "../interfaces/IWitOracleLegacy.sol";

import "../patterns/Ownable2Step.sol";
Expand All @@ -17,19 +16,17 @@ import "../patterns/Ownable2Step.sol";

contract WitPriceFeedsUpgradable
is
Ownable2Step,
WitnetUpgradableBase,
WitPriceFeeds,
IWitFeedsLegacy,
IWitPriceFeedsSolverFactory
Ownable2Step,
WitnetUpgradableBase
{
using Witnet for bytes;
using Witnet for Witnet.DataResult;
using Witnet for Witnet.QueryResponse;
using Witnet for Witnet.QuerySLA;
using Witnet for Witnet.ResultStatus;


function class() virtual override public view returns (string memory) {
return type(WitPriceFeedsUpgradable).name;
}
Expand Down

0 comments on commit eb64121

Please sign in to comment.