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

2.1.x/trustlessness #446

Open
wants to merge 62 commits into
base: 2.1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
4e8d1de
feat: prepare for wit/2.1
guidiaz Oct 7, 2024
0335b08
refactor: WRB.postRequest* -> WRB.postQuery*
guidiaz Oct 7, 2024
7e7017e
chore: lighten WitOracleTrustableBase
guidiaz Oct 7, 2024
2a6734c
feat: WRB.getQuery*StatusTag
guidiaz Oct 7, 2024
3ac2b5c
feat: Escrowable pattern
guidiaz Oct 7, 2024
3ae839b
chore/feat: prepare for trustlessness
guidiaz Oct 8, 2024
753644e
chore: fmt!
guidiaz Oct 8, 2024
e8f8ba4
feat: IWOReporterTrustless.extractQueryRelayData*
guidiaz Oct 9, 2024
776c9f1
refactor: rearrange core into base, trustable, upgradable and trustle…
guidiaz Oct 21, 2024
7554f00
feat(libs): into mem array helper methods
guidiaz Oct 21, 2024
5ed07c6
fix(wsb): way specs() is calculated
guidiaz Oct 21, 2024
92859b4
refactor: appss/WitnetPriceFeedsV21 -> apps/WitnetPriceFeedsUpgradable
guidiaz Oct 21, 2024
9ece990
refactor: WitnetDeployerCfxCore -> WitnetDeployerConfluxCore
guidiaz Oct 21, 2024
e73a905
feat(migrations): defrost WitnetDeployer + WitnetProxy artifacs
guidiaz Oct 21, 2024
51a6991
feat(migrations): agnotisticize core vs apps - trustable vs upgradabl…
guidiaz Oct 21, 2024
0d73169
fix(test): latest refactorings
guidiaz Oct 21, 2024
af672fb
chore: revisit pnpm package deps lock
guidiaz Oct 21, 2024
4d619ea
chore: fmt!
guidiaz Oct 21, 2024
bd1a73a
refactor: Upgradable --> WitOracle*Upgradable*
guidiaz Oct 21, 2024
39cf7dc
chore: move deps compliancy to base constructors
guidiaz Oct 21, 2024
90e1eab
chore: polish migrations console colors
guidiaz Oct 21, 2024
7b40891
chore: vanity2gen: read constructorArgs from file if not specified on…
guidiaz Oct 21, 2024
ade4534
chore: fix tests
guidiaz Oct 21, 2024
72ad7eb
chore: fmt!
guidiaz Oct 21, 2024
191b03f
chore: polish migration scripts
guidiaz Oct 21, 2024
c60a1aa
fix(wpf): missing legacy method
guidiaz Oct 22, 2024
6441ad6
feat: add compilation-codehash to version of WSB artifacts
guidiaz Oct 22, 2024
8bf3ac7
chore: move IWitOracleLegacy impl from WitOracleBase to WitOracleTrus…
guidiaz Oct 22, 2024
d834631
feat: IWitFeedsLegacy.witnet()
guidiaz Oct 22, 2024
89e9ff2
feat: IWitFeedsLegacy.lookupWitnetBytecode(bytes4)
guidiaz Oct 22, 2024
4280fbd
fix(pfs): default SLA if upgrading from legacy branch
guidiaz Oct 22, 2024
357c753
feat(wrb): event IWitOracleLegacy.WitnetQuery
guidiaz Oct 23, 2024
253d4ec
feat(pfs): IWitFeedsLegacy.latestUpdateResponseStatus(bytes4)
guidiaz Oct 23, 2024
7b9c7e4
fix(libs): WitOracleDataLib.getQueryStatus(uint)
guidiaz Oct 23, 2024
5c92769
feat(pfs): IWitFeedsLegacy.latestUpdateResponse(bytes4)
guidiaz Oct 23, 2024
d904924
fix/feat: polish migration scripts
guidiaz Oct 23, 2024
0de4f71
chore: remove source path from frosted artifacts
guidiaz Oct 23, 2024
063493b
chore: package script ops:drp:wrb
guidiaz Oct 23, 2024
86868b4
chore: frost WitnetRandomnessV2 -> WitRandomnessV2
guidiaz Oct 24, 2024
a4ee74c
feat(migrations): --changelog
guidiaz Oct 24, 2024
ef96615
feat: subscribable SLA's capable committees
guidiaz Oct 26, 2024
7bc5412
feat: IWitOracleTrustable.pushData(..)
guidiaz Oct 26, 2024
27dab5a
feat: IWitOracleTrustless.pushData(..)
guidiaz Oct 26, 2024
5936855
refactor: IWitOracle.postQuery*
guidiaz Oct 26, 2024
027af81
chore: revisit solidity pragmas
guidiaz Oct 28, 2024
f66d5db
refactor: Witnet.Result*
guidiaz Oct 28, 2024
4bafc58
feat: IWitOracleTrustable.pushData(..)
guidiaz Oct 28, 2024
e715948
feat: IWitOracleTrustless.pushData(..)
guidiaz Oct 28, 2024
5cf7c8b
refactor: IWitOracle.fetchQueryResponse -> IWitOracle.deleteQuery
guidiaz Oct 28, 2024
3ab1c81
refactor: IWitOracleConsumer.*
guidiaz Oct 28, 2024
fbaaa3f
refactor: WitOracleResultErrorsLib -> WitOracleResultStatusLib
guidiaz Oct 28, 2024
a69e493
refactor: Witnet global type defs
guidiaz Oct 28, 2024
14a1a8d
chore: remove test/mocks/MyDapp.sol
guidiaz Oct 28, 2024
8917160
fix: libs migration script
guidiaz Oct 28, 2024
99f1204
fix(wrb): minimum common specs()
guidiaz Oct 28, 2024
b6adfb2
chore: lighten WitPriceFeedsUpgradable
guidiaz Oct 29, 2024
6735086
fix(libs): Witnet.ResultStatus missing enum value
guidiaz Oct 30, 2024
4e0470a
fix(pfs): initialization upon major upgrade
guidiaz Oct 30, 2024
852c01a
fix(pfs): IWitPriceFeedsSolver.Price.latestStatus
guidiaz Oct 30, 2024
e3d1824
feat(pfs): let requester settle the reward
guidiaz Nov 4, 2024
355db94
chore: implement pending IWitOracleLegacy methods
guidiaz Nov 4, 2024
240acb3
refactor: verification scripts
guidiaz Nov 4, 2024
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/WitFeeds.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/IWitFeeds.sol";
import "./interfaces/IWitFeedsEvents.sol";
Expand Down
11 changes: 9 additions & 2 deletions contracts/WitOracle.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.0 <0.9.0;

import "./WitOracleRadonRegistry.sol";
import "./WitOracleRequestFactory.sol";
Expand All @@ -16,4 +16,11 @@ abstract contract WitOracle
IWitAppliance,
IWitOracle,
IWitOracleEvents
{}
{
function specs() virtual override external pure returns (bytes4) {
return (
type(IWitAppliance).interfaceId
^ type(IWitOracle).interfaceId
);
}
}
12 changes: 9 additions & 3 deletions contracts/WitOracleRadonRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;
pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/IWitAppliance.sol";
import "./interfaces/IWitOracleRadonRegistry.sol";
Expand All @@ -12,4 +11,11 @@ abstract contract WitOracleRadonRegistry
IWitAppliance,
IWitOracleRadonRegistry,
IWitOracleRadonRegistryEvents
{}
{
function specs() virtual override external pure returns (bytes4) {
return (
type(IWitAppliance).interfaceId
^ type(IWitOracleRadonRegistry).interfaceId
);
}
}
3 changes: 1 addition & 2 deletions contracts/WitOracleRequest.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;
pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/IWitOracleAppliance.sol";
import "./interfaces/IWitOracleRequest.sol";
Expand Down
3 changes: 1 addition & 2 deletions contracts/WitOracleRequestFactory.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;
pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/IWitOracleAppliance.sol";
import "./interfaces/IWitOracleRadonRegistryEvents.sol";
Expand Down
3 changes: 1 addition & 2 deletions contracts/WitOracleRequestTemplate.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;
pragma solidity >=0.8.0 <0.9.0;

import "./interfaces/IWitOracleAppliance.sol";
import "./interfaces/IWitOracleRadonRegistryEvents.sol";
Expand Down
13 changes: 11 additions & 2 deletions contracts/WitPriceFeeds.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma solidity >=0.8.0 <0.9.0;

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

/// @title WitPriceFeeds: Price Feeds live repository reliant on the Witnet Oracle blockchain.
/// @title WitPriceFeeds: Price Feeds live repository reliant on the Wit/oracle blockchain.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @title WitPriceFeeds: Price Feeds live repository reliant on the Wit/oracle blockchain.
/// @title WitPriceFeeds: Price Feeds live repository reliant on the Wit/Oracle blockchain.

/// @author The Witnet Foundation.
abstract contract WitPriceFeeds
is
Expand All @@ -18,4 +18,13 @@ abstract contract WitPriceFeeds
"Price-"
)
{}

function specs() virtual override external pure returns (bytes4) {
return (
type(IWitOracleAppliance).interfaceId
^ type(IERC2362).interfaceId
^ type(IWitFeeds).interfaceId
^ type(IWitPriceFeeds).interfaceId
);
}
}
9 changes: 8 additions & 1 deletion contracts/WitRandomness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ abstract contract WitRandomness
IWitOracleEvents,
IWitRandomness,
IWitRandomnessEvents
{}
{
function specs() virtual override external pure returns (bytes4) {
return (
type(IWitOracleAppliance).interfaceId
^ type(IWitRandomness).interfaceId
);
}
}
Loading