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 and pay for the fees in the native currency, typically ETH.
33
+
/// Must be called by the arbitrable contract.
34
+
/// Must pay at least arbitrationCost(_extraData).
35
+
/// @param _numberOfChoices The number of choices the arbitrator can choose from in this dispute.
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).
37
+
/// @return disputeID The identifier of the dispute created.
38
+
function createDispute(
39
+
uint256_numberOfChoices,
40
+
bytescalldata_extraData
41
+
) externalpayablereturns (uint256disputeID);
42
+
43
+
/// @dev Create a dispute and pay for the fees in a supported ERC20 token.
27
44
/// Must be called by the arbitrable contract.
28
45
/// 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.
46
+
/// @param _numberOfChoices The number of choices the arbitrator can choose from in this dispute.
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).
48
+
/// @param _feeToken The ERC20 token used to pay fees.
49
+
/// @param _feeAmount Amount of the ERC20 token used to pay fees.
31
50
/// @return disputeID The identifier of the dispute created.
32
-
function createDispute(uint256_choices, bytescalldata_extraData) externalpayablereturns (uint256disputeID);
51
+
function createDispute(
52
+
uint256_numberOfChoices,
53
+
bytescalldata_extraData,
54
+
IERC20_feeToken,
55
+
uint256_feeAmount
56
+
) externalreturns (uint256disputeID);
33
57
34
-
/// @dev Compute the cost of arbitration.
58
+
/// @dev Compute the cost of arbitration denominated in the native currency, typically ETH.
35
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.
36
-
/// @param _extraData Can be used to give additional info on the dispute to be created.
37
-
/// @return cost Required cost of arbitration.
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.
38
62
function arbitrationCost(bytescalldata_extraData) externalviewreturns (uint256cost);
39
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);
70
+
40
71
/// @dev Return the current ruling of a dispute.
41
72
/// This is useful for parties to know if they should appeal.
42
73
/// @param _disputeID The identifer of the dispute.
0 commit comments