Skip to content

Commit

Permalink
Agreement: Flip ruling outcomes (#1267)
Browse files Browse the repository at this point in the history
* Agreement: Flip ruling outcomes

* agreement: fix rulings-related inline documentation

Co-authored-by: Brett Sun <qisheng.brett.sun@gmail.com>

Co-authored-by: Brett Sun <qisheng.brett.sun@gmail.com>
  • Loading branch information
facuspagnuolo and sohkai committed Sep 7, 2020
1 parent c0b2f61 commit 87eccbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/agreement/contracts/Agreement.sol
Expand Up @@ -31,10 +31,10 @@ contract Agreement is IArbitrable, ILockManager, IAgreement, IACLOracle, AragonA
uint256 internal constant DISPUTES_POSSIBLE_OUTCOMES = 2;
// Note that Aragon Court treats the possible outcomes as arbitrary numbers, leaving the Arbitrable (us) to define how to understand them.
// Some outcomes [0, 1, and 2] are reserved by Aragon Court: "missing", "leaked", and "refused", respectively.
// This Arbitrable introduces the concept of the submitter/challenger (a binary outcome) as 3/4.
// Note that Aragon Court emits the lowest outcome in the event of a tie, and so for us, we prefer the submitter.
uint256 internal constant DISPUTES_RULING_SUBMITTER = 3;
uint256 internal constant DISPUTES_RULING_CHALLENGER = 4;
// This Arbitrable introduces the concept of the challenger/submitter (a binary outcome) as 3/4.
// Note that Aragon Court emits the lowest outcome in the event of a tie, and so for us, we prefer the challenger.
uint256 internal constant DISPUTES_RULING_CHALLENGER = 3;
uint256 internal constant DISPUTES_RULING_SUBMITTER = 4;

/* Validation errors */
string internal constant ERROR_SENDER_NOT_ALLOWED = "AGR_SENDER_NOT_ALLOWED";
Expand Down
4 changes: 2 additions & 2 deletions apps/agreement/test/helpers/utils/enums.js
Expand Up @@ -10,8 +10,8 @@ const CHALLENGES_STATE = {
const RULINGS = {
MISSING: 0,
REFUSED: 2,
IN_FAVOR_OF_SUBMITTER: 3,
IN_FAVOR_OF_CHALLENGER: 4,
IN_FAVOR_OF_CHALLENGER: 3,
IN_FAVOR_OF_SUBMITTER: 4,
}

module.exports = {
Expand Down

0 comments on commit 87eccbd

Please sign in to comment.