RealitioInterface

Events

LogNewAnswer

event LogNewAnswer(bytes32 answer, bytes32 question_id, bytes32 history_hash, address user, uint256 bond, uint256 ts, bool is_commitment)

LogNewTemplate

event LogNewTemplate(uint256 template_id, address user, string question_text)

LogNewQuestion

event LogNewQuestion(bytes32 question_id, address user, uint256 template_id, string question, bytes32 content_hash, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce, uint256 created)

Functions

notifyOfArbitrationRequest

function notifyOfArbitrationRequest(bytes32 question_id, address requester, uint256 max_previous) external

Notify the contract that the arbitrator has been paid for a question, freezing it pending their decision.

The arbitrator contract is trusted to only call this if they've been paid, and tell us who paid them.

Parameters

cancelArbitration

function cancelArbitration(bytes32 question_id) external

Cancel a previously-requested arbitration and extend the timeout

Useful when doing arbitration across chains that can't be requested atomically

Parameters

assignWinnerAndSubmitAnswerByArbitrator

function assignWinnerAndSubmitAnswerByArbitrator(bytes32 question_id, bytes32 answer, address payee_if_wrong, bytes32 last_history_hash, bytes32 last_answer_or_commitment_id, address last_answerer) external

Submit the answer for a question, for use by the arbitrator, working out the appropriate winner based on the last answer details.

Doesn't require (or allow) a bond.

Parameters

Last updated