Skip to content

Conversation

@guidiaz
Copy link
Collaborator

@guidiaz guidiaz commented Dec 1, 2025

No description provided.

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;
Copy link
Member

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?

Suggested change
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;
Copy link
Member

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?

Suggested change
reducer.filters[0].opcode = Witnet.RadonFilterMethods.StandardDeviation;
reducer.filters[0].method = Witnet.RadonFilterMethods.StandardDeviation;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nop, method instead


/**
* 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
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
* `IWitOracleRadonRequestTemplate` contracts enable smart contracts to formally verify Radon Requests
* `IWitOracleRadonRequestTemplateFactory` contracts enable smart contracts to formally verify Radon Requests

}

public async lookupPriceFeedID(id4: Witnet.HexString): Promise<Witnet.Hash> {
return this.contract.lookupPriceFeedID.staticCall(id4);
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
return this.contract.lookupPriceFeedID.staticCall(id4);
return this.contract.lookupPriceFeedID32.staticCall(id4);

public async lookupPriceFeedQualityMetrics(id4: Witnet.HexString): Promise<PriceFeedQoS> {
return this.contract.lookupPriceFeedQualityMetrics.staticCall(id4).then((result: any) => ({
computesEMA: result[0],
maxDeviationPercentage: Number(result[1]),
Copy link
Member

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 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Absolutely right!

@guidiaz guidiaz merged commit 46dc431 into witnet:master Dec 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants