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
/// @dev Create a dispute. Must be called by the arbitrable contract.
32
+
/// @dev Create a dispute and pay for the fees in the native currency, typically ETH.
33
+
/// Must be called by the arbitrable contract.
32
34
/// Must pay at least arbitrationCost(_extraData).
33
35
/// @param _numberOfChoices The number of choices the arbitrator can choose from in this dispute.
34
36
/// @param _extraData Additional info about the dispute. We use it to pass the ID of the dispute's court (first 32 bytes), the minimum number of jurors required (next 32 bytes) and the ID of the specific dispute kit (last 32 bytes).
@@ -38,23 +40,31 @@ interface IArbitrator {
38
40
bytescalldata_extraData
39
41
) externalpayablereturns (uint256disputeID);
40
42
41
-
/// @dev Create a dispute with the fees paid in a supported ERC20 token.
43
+
/// @dev Create a dispute and pay for the fees in a supported ERC20 token.
42
44
/// Must be called by the arbitrable contract.
43
45
/// Must pay at least arbitrationCost(_extraData).
44
46
/// @param _numberOfChoices The number of choices the arbitrator can choose from in this dispute.
45
47
/// @param _extraData Additional info about the dispute. We use it to pass the ID of the dispute's court (first 32 bytes), the minimum number of jurors required (next 32 bytes) and the ID of the specific dispute kit (last 32 bytes).
46
-
/// @param _feeToken Address of the ERC20 token used to pay fees.
48
+
/// @param _feeToken The ERC20 token used to pay fees.
47
49
/// @param _feeAmount Amount of the ERC20 token used to pay fees.
48
50
/// @return disputeID ID of the dispute created.
49
51
function createDispute(
50
52
uint256_numberOfChoices,
51
53
bytescalldata_extraData,
52
-
address_feeToken,
54
+
IERC20_feeToken,
53
55
uint256_feeAmount
54
56
) externalreturns (uint256disputeID);
55
57
56
-
/// @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.
57
-
/// @param _extraData Can be used to give additional info on the dispute to be created.
58
-
/// @return cost Required cost of arbitration.
58
+
/// @dev Compute the cost of arbitration denominated in ETH.
59
+
/// 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.
60
+
/// @param _extraData Additional info about the dispute. We use it to pass the ID of the dispute's court (first 32 bytes), the minimum number of jurors required (next 32 bytes) and the ID of the specific dispute kit (last 32 bytes).
61
+
/// @return cost The arbitration cost in ETH.
59
62
function arbitrationCost(bytescalldata_extraData) externalviewreturns (uint256cost);
63
+
64
+
/// @dev Compute the cost of arbitration denominated in `_feeToken`.
65
+
/// 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.
66
+
/// @param _extraData Additional info about the dispute. We use it to pass the ID of the dispute's court (first 32 bytes), the minimum number of jurors required (next 32 bytes) and the ID of the specific dispute kit (last 32 bytes).
67
+
/// @param _feeToken The ERC20 token used to pay fees.
68
+
/// @return cost The arbitration cost in `_feeToken`.
69
+
function arbitrationCost(bytescalldata_extraData, IERC20_feeToken) externalviewreturns (uint256cost);
0 commit comments