RealitioHomeArbitrationProxy
This contract is meant to be deployed to side-chains (i.e.: xDAI) in which Reality.eth is deployed.
Variables
realitio
The address of the Realitio contract (v2.1+ required). TRUSTED.
amb
ArbitraryMessageBridge contract address. TRUSTED.
foreignProxy
Address of the counter-party proxy on the Foreign Chain. TRUSTED.
foreignChainId
The chain ID where the foreign proxy is deployed.
metadata
Metadata for Realitio interface.
Status
Request
requests
Associates an arbitration request with a question ID and a requester address. requests[questionID][requester]
questionIDToRequester
Associates a question ID with the requester who succeeded in requesting arbitration. questionIDToRequester[questionID]
Modifiers
onlyForeignProxy
Functions
constructor
Creates an arbitration proxy on the home chain.
Parameters
receiveArbitrationRequest
Receives the requested arbitration for a question. TRUSTED.
Parameters
handleNotifiedRequest
Handles arbitration request after it has been notified to Realitio for a given question.
This method exists because receiveArbitrationRequest
is called by the AMB and cannot send messages back to it.
Parameters
handleRejectedRequest
Handles arbitration request after it has been rejected.
_This method exists because receiveArbitrationRequest
is called by the AMB and cannot send messages back to it. Reasons why the request might be rejected:
The question does not exist
The question was not answered yet
The question bond value changed while the arbitration was being requested
Another request was already accepted_
Parameters
receiveArbitrationFailure
Receives a failed attempt to request arbitration. TRUSTED.
Currently this can happen only if the arbitration cost increased.
Parameters
receiveArbitrationAnswer
Receives the answer to a specified question. TRUSTED.
Parameters
reportArbitrationAnswer
Reports the answer provided by the arbitrator to a specified question.
The Realitio contract validates the input parameters passed to this method, so making this publicly accessible is safe.
Parameters
Last updated