Tellor Docs
Search…
Disputing / Monitoring
how to check for bad values
A data feed of Tellor submissions can be found at: coming soon data feed link
Every time a new value is submitted to the Tellor contract, the following event is emitted:
1
event NewReport(
2
bytes32 _queryId,
3
uint256 _time,
4
bytes _value,
5
uint256 _nonce,
6
bytes _queryData,
7
address _reporter
8
);
Copied!
The value is the requested data, with the _queryData being the description of the data.
To dispute a value, go to the governance contract and run:
1
/**
2
* @dev Helps initialize a dispute by assigning it a disputeId
3
* @param _queryId being disputed
4
* @param _timestamp being disputed
5
*/
6
function beginDispute(bytes32 _queryId, uint256 _timestamp) external {
Copied!
Note that before beginning a dispute, the proper amount of TRB tokens must be approved to the contract to cover the disputeFee. The disputeFee is a constant public variable in the contracts, however doubles with each voting round or with each open dispute on a given ID.
To get the number of openDisputes on an ID:
1
/**
2
* @dev Returns the number of open disputes for a specific query ID
3
* @param _queryId is the ID of a specific data feed
4
* @return uint256 of the number of open disputes for the query ID
5
*/
6
function getOpenDisputesOnId(bytes32 _queryId)
7
external
8
view
9
returns (uint256)
10
{
Copied!
To open a dispute on a previously dispute (challenge the result of the vote), simply run beginDispute() with the same parameters (same timestamp/ queryID). Note that the disputeFee will need to be doubled from the previous round.
Copy link