You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/src/arbitration/IArbitrator.sol
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,33 @@ import "./IArbitrable.sol";
6
6
7
7
/// @title Arbitrator
8
8
/// Arbitrator interface that implements the new arbitration standard.
9
-
/// Unlike the ERC-792 this standard doesn't have anything related to appeals, so each arbitrator can implement an appeal system that suits it the most.
9
+
/// Unlike the ERC-792 this standard is not concerned with appeals, so each arbitrator can implement an appeal system that suits it the most.
10
10
/// When developing arbitrator contracts we need to:
11
11
/// - Define the functions for dispute creation (createDispute). Don't forget to store the arbitrated contract and the disputeID (which should be unique, may nbDisputes).
12
12
/// - Define the functions for cost display (arbitrationCost).
13
13
/// - Allow giving rulings. For this a function must call arbitrable.rule(disputeID, ruling).
14
14
interfaceIArbitrator {
15
15
/// @dev To be emitted when a dispute is created.
16
-
/// @param _disputeID ID of the dispute.
16
+
/// @param _disputeID The identifier of the dispute.
17
17
/// @param _arbitrable The contract which created the dispute.
/// @dev Create a dispute. Must be called by the arbitrable contract.
27
-
/// Must pay at least arbitrationCost(_extraData).
26
+
/// @dev Create a dispute.
27
+
/// Must be called by the arbitrable contract.
28
+
/// Must pay at least arbitrationCost(_extraData).
28
29
/// @param _choices Amount of choices the arbitrator can make in this dispute.
29
30
/// @param _extraData Can be used to give additional info on the dispute to be created.
30
-
/// @return disputeID ID of the dispute created.
31
+
/// @return disputeID The identifier of the dispute created.
31
32
function createDispute(uint256_choices, bytescalldata_extraData) externalpayablereturns (uint256disputeID);
32
33
33
-
/// @dev 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.
34
+
/// @dev Compute the cost of arbitration.
35
+
/// 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.
34
36
/// @param _extraData Can be used to give additional info on the dispute to be created.
35
37
/// @return cost Required cost of arbitration.
36
38
function arbitrationCost(bytescalldata_extraData) externalviewreturns (uint256cost);
0 commit comments