IArbitrator
Functions
createDispute
Create a dispute. Must be called by the arbitrable contract. Must pay at least arbitrationCost(_extraData).
function createDispute(uint256 _choices, bytes calldata _extraData) external payable returns (uint256 disputeID);
Parameters
Name | Type | Description |
---|---|---|
_choices | uint256 | Amount of choices the arbitrator can make in this dispute. |
_extraData | bytes | Can be used to give additional info on the dispute to be created. |
Returns
Name | Type | Description |
---|---|---|
disputeID | uint256 | ID of the dispute created. |
arbitrationCost
Compute the cost of arbitration. It is recommended not to increase it often, as it can be highly time and gas consuming for the arbitrated contracts to cope with fee augmentation.
function arbitrationCost(bytes calldata _extraData) external view returns (uint256 cost);
Parameters
Name | Type | Description |
---|---|---|
_extraData | bytes | Can be used to give additional info on the dispute to be created. |
Returns
Name | Type | Description |
---|---|---|
cost | uint256 | Required cost of arbitration. |
Events
DisputeCreation
To be emitted when a dispute is created.
event DisputeCreation(uint256 indexed _disputeID, IArbitrable indexed _arbitrable);
Ruling
To be raised when a ruling is given.
event Ruling(IArbitrable indexed _arbitrable, uint256 indexed _disputeID, uint256 _ruling);