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/IArbitratorV2.sol
+28-37Lines changed: 28 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -4,51 +4,42 @@ pragma solidity ^0.8;
4
4
5
5
import"./IArbitrableV2.sol";
6
6
7
-
/**
8
-
* @title Arbitrator
9
-
* Arbitrator interface that implements the new arbitration standard.
10
-
* Unlike the ERC-792 this standard is not concerned with appeals, so each arbitrator can implement an appeal system that suits it the most.
11
-
* When developing arbitrator contracts we need to:
12
-
* - Define the functions for dispute creation (createDispute). Don't forget to store the arbitrated contract and the disputeID (which should be unique, may nbDisputes).
13
-
* - Define the functions for cost display (arbitrationCost).
14
-
* - Allow giving rulings. For this a function must call arbitrable.rule(disputeID, ruling).
15
-
*/
7
+
/// @title Arbitrator
8
+
/// Arbitrator interface that implements the new arbitration standard.
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
+
/// When developing arbitrator contracts we need to:
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
+
/// - Define the functions for cost display (arbitrationCost).
13
+
/// - Allow giving rulings. For this a function must call arbitrable.rule(disputeID, ruling).
16
14
interfaceIArbitratorV2 {
17
-
/**
18
-
* @dev To be emitted when a dispute is created.
19
-
* @param _disputeID Identifier of the dispute.
20
-
* @param _arbitrable The contract which created the dispute.
21
-
*/
15
+
/// @dev To be emitted when a dispute is created.
16
+
/// @param _disputeID Identifier of the dispute.
17
+
/// @param _arbitrable The contract which created the dispute.
* @dev Create a dispute. Must be called by the arbitrable contract.
34
-
* Must pay at least arbitrationCost(_extraData).
35
-
* @param _choices Amount of choices the arbitrator can make in this dispute.
36
-
* @param _extraData Can be used to give additional info on the dispute to be created.
37
-
* @return disputeID Identifier of the dispute created.
38
-
*/
26
+
/// @dev Create a dispute.
27
+
/// Must be called by the arbitrable contract.
28
+
/// Must pay at least arbitrationCost(_extraData).
29
+
/// @param _choices Amount of choices the arbitrator can make in this dispute.
30
+
/// @param _extraData Can be used to give additional info on the dispute to be created.
31
+
/// @return disputeID Identifier of the dispute created.
39
32
function createDispute(uint256_choices, bytescalldata_extraData) externalpayablereturns (uint256disputeID);
40
33
41
-
/**
42
-
* @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.
43
-
* @param _extraData Can be used to give additional info on the dispute to be created.
44
-
* @return cost Required cost of arbitration.
45
-
*/
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.
36
+
/// @param _extraData Can be used to give additional info on the dispute to be created.
37
+
/// @return cost Required cost of arbitration.
46
38
function arbitrationCost(bytescalldata_extraData) externalviewreturns (uint256cost);
47
39
48
-
/**
49
-
* @dev Return the current ruling of a dispute. This is useful for parties to know if they should appeal.
50
-
* @param _disputeID ID of the dispute.
51
-
* @return ruling The ruling which has been given or the one which will be given if there is no appeal.
52
-
*/
40
+
/// @dev Return the current ruling of a dispute.
41
+
/// This is useful for parties to know if they should appeal.
42
+
/// @param _disputeID ID of the dispute.
43
+
/// @return ruling The ruling which has been given or the one which will be given if there is no appeal.
53
44
function currentRuling(uint_disputeID) externalviewreturns (uintruling);
0 commit comments