-
Notifications
You must be signed in to change notification settings - Fork 22
Wof/3.1.0 #484
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
Wof/3.1.0 #484
Conversation
As all price feeds require explicit update conditions upon settlement.
| function testEncodeRadonReducer1Filter() external { | ||
| Witnet.RadonReducer memory reducer; | ||
| reducer.opcode = Witnet.RadonReduceOpcodes.Mode; | ||
| reducer.opcode = Witnet.RadonReducerMethods.Mode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does RadonReducer still have opcode?
| reducer.opcode = Witnet.RadonReducerMethods.Mode; | |
| reducer.method = Witnet.RadonReducerMethods.Mode; |
| reducer.opcode = Witnet.RadonReducerMethods.Mode; | ||
| reducer.filters = new Witnet.RadonFilter[](1); | ||
| reducer.filters[0].opcode = Witnet.RadonFilterOpcodes.StandardDeviation; | ||
| reducer.filters[0].opcode = Witnet.RadonFilterMethods.StandardDeviation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does RadonFilter still have opcode?
| reducer.filters[0].opcode = Witnet.RadonFilterMethods.StandardDeviation; | |
| reducer.filters[0].method = Witnet.RadonFilterMethods.StandardDeviation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nop, method instead
src/lib/wrappers/WitOracle.ts
Outdated
|
|
||
| /** | ||
| * Wrapper class for Wit/Oracle Radon Template artifacts as deployed in some supported EVM network. | ||
| * `IWitOracleRadonRequestTemplate` contracts enable smart contracts to formally verify Radon Requests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * `IWitOracleRadonRequestTemplate` contracts enable smart contracts to formally verify Radon Requests | |
| * `IWitOracleRadonRequestTemplateFactory` contracts enable smart contracts to formally verify Radon Requests |
src/lib/wrappers/WitPriceFeeds.ts
Outdated
| } | ||
|
|
||
| public async lookupPriceFeedID(id4: Witnet.HexString): Promise<Witnet.Hash> { | ||
| return this.contract.lookupPriceFeedID.staticCall(id4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return this.contract.lookupPriceFeedID.staticCall(id4); | |
| return this.contract.lookupPriceFeedID32.staticCall(id4); |
src/lib/wrappers/WitPriceFeeds.ts
Outdated
| public async lookupPriceFeedQualityMetrics(id4: Witnet.HexString): Promise<PriceFeedQoS> { | ||
| return this.contract.lookupPriceFeedQualityMetrics.staticCall(id4).then((result: any) => ({ | ||
| computesEMA: result[0], | ||
| maxDeviationPercentage: Number(result[1]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be divided by 10 like in line 441 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely right!
No description provided.