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
/* solium-disable security/no-send */// It is the user responsibility to accept ETH.
19
19
20
+
// hack for v2 compatibility
21
+
interfaceIArbitratorV2 {
22
+
enum Period {
23
+
evidence, // Evidence can be submitted. This is also when drawing has to take place.
24
+
commit, // Jurors commit a hashed vote. This is skipped for courts without hidden votes.
25
+
vote, // Jurors reveal/cast their vote depending on whether the court has hidden votes or not.
26
+
appeal, // The dispute can be appealed.
27
+
execution // Tokens are redistributed and the ruling is executed.
28
+
}
29
+
30
+
function disputes(uint256_disputeID) externalviewreturns(uint96, address, uint8, bool);
31
+
/**
32
+
* @dev Compute the cost of appeal. It is recommended not to increase it often, as it can be higly time and gas consuming for the arbitrated contracts to cope with fee augmentation.
33
+
* @param _disputeID ID of the dispute to be appealed.
34
+
* @return cost Amount to be paid.
35
+
*/
36
+
function appealCost(uint256_disputeID) externalviewreturns (uint256cost);
37
+
}
38
+
20
39
/**
21
40
* @title GeneralizedTCRView
22
41
* A view contract to fetch, batch, parse and return GTCR contract data efficiently.
Copy file name to clipboardExpand all lines: contracts/view/LightGeneralizedTCRView.sol
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,25 @@ import {LightGeneralizedTCR, IArbitrator} from "../LightGeneralizedTCR.sol";
16
16
/* solium-disable security/no-send */
17
17
// It is the user responsibility to accept ETH.
18
18
19
+
// hack for v2 compatibility
20
+
interfaceIArbitratorV2 {
21
+
enum Period {
22
+
evidence, // Evidence can be submitted. This is also when drawing has to take place.
23
+
commit, // Jurors commit a hashed vote. This is skipped for courts without hidden votes.
24
+
vote, // Jurors reveal/cast their vote depending on whether the court has hidden votes or not.
25
+
appeal, // The dispute can be appealed.
26
+
execution // Tokens are redistributed and the ruling is executed.
27
+
}
28
+
29
+
function disputes(uint256_disputeID) externalviewreturns(uint96, address, uint8, bool);
30
+
/**
31
+
* @dev Compute the cost of appeal. It is recommended not to increase it often, as it can be higly time and gas consuming for the arbitrated contracts to cope with fee augmentation.
32
+
* @param _disputeID ID of the dispute to be appealed.
33
+
* @return cost Amount to be paid.
34
+
*/
35
+
function appealCost(uint256_disputeID) externalviewreturns (uint256cost);
36
+
}
37
+
19
38
/**
20
39
* @title LightGeneralizedTCRView
21
40
* A view contract to fetch, batch, parse and return GTCR contract data efficiently.
0 commit comments