Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/bypass v20 #416

Merged
merged 17 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/UsingWitnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ abstract contract UsingWitnet {
/// @param _slaParams The SLA params upon which this data request will be solved by Witnet.
/// @return _id The unique identifier of the just posted data request.
/// @return _reward Current reward amount escrowed by the WRB until a result gets reported.
function _witnetPostRequest(bytes32 _radHash, WitnetV2.RadonSLA memory _slaParams)
function _witnetPostRequest(bytes32 _radHash, Witnet.RadonSLA memory _slaParams)
virtual internal
returns (uint256 _id, uint256 _reward)
{
Expand Down
4 changes: 2 additions & 2 deletions contracts/WitnetFeeds.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ abstract contract WitnetFeeds
IWitnetFeedsAdmin,
IWitnetFeedsEvents
{
WitnetV2.RadonDataTypes immutable public override dataType;
Witnet.RadonDataTypes immutable public override dataType;
WitnetBytecodes immutable public override registry;
WitnetRequestBoard immutable public override witnet;

bytes32 immutable internal __prefix;

constructor(
WitnetRequestBoard _wrb,
WitnetV2.RadonDataTypes _dataType,
Witnet.RadonDataTypes _dataType,
string memory _prefix
)
{
Expand Down
2 changes: 1 addition & 1 deletion contracts/WitnetPriceFeeds.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract contract WitnetPriceFeeds
constructor(WitnetRequestBoard _wrb)
WitnetFeeds(
_wrb,
WitnetV2.RadonDataTypes.Integer,
Witnet.RadonDataTypes.Integer,
"Price-"
)
{}
Expand Down
2 changes: 1 addition & 1 deletion contracts/data/WitnetBoardData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ abstract contract WitnetBoardData {

/// Gets current status of given query.
function _statusOf(uint256 _queryId)
internal view
virtual internal view
returns (Witnet.QueryStatus)
{
Witnet.Query storage _query = __storage().queries[_queryId];
Expand Down
16 changes: 11 additions & 5 deletions contracts/data/WitnetBytecodesData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,25 @@ abstract contract WitnetBytecodesData {
string[][] args;
bytes32 aggregator;
bytes32 radHash;
WitnetV2.RadonDataTypes resultDataType;
Witnet.RadonDataTypes resultDataType;
uint16 resultMaxSize;
bytes32[] retrievals;
bytes32 tally;
}

struct DataProvider {
string authority;
uint256 totalEndpoints;
mapping (uint256 => bytes32) endpoints;
}

struct Database {
mapping (uint256 => WitnetV2.DataProvider) providers;
mapping (uint256 => DataProvider) providers;
mapping (bytes32 => uint256) providersIndex;

mapping (bytes32 => WitnetV2.RadonReducer) reducers;
mapping (bytes32 => WitnetV2.RadonRetrieval) retrievals;
mapping (bytes32 => WitnetV2.RadonSLA) slas;
mapping (bytes32 => Witnet.RadonReducer) reducers;
mapping (bytes32 => Witnet.RadonRetrieval) retrievals;
mapping (bytes32 => Witnet.RadonSLA) slas;

mapping (bytes32 => RadonRequest) requests;
mapping (bytes32 => bytes32) rads;
Expand Down
2 changes: 1 addition & 1 deletion contracts/data/WitnetRequestFactoryData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract WitnetRequestFactoryData {
/// @notice Array of retrievals hashes passed upon construction.
bytes32[] retrievals;
/// @notice Result data type.
WitnetV2.RadonDataTypes resultDataType;
Witnet.RadonDataTypes resultDataType;
/// @notice Result max size or rank (if variable type).
uint16 resultDataMaxSize;
}
Expand Down
Loading
Loading