There are three statuses that the function
disputeStatus can return;
- A dispute is in
Waitingstate when it arises (gets created, by
- Is in
Appealablestate when it got a ruling and the
Arbitratorallows to appeal it. When the
Arbitratorallows to appeal, it often gives a time period to do so. If a dispute is not appealed within that time,
- Is in
Solvedstate when it got a ruling and the ruling is final. Note that this doesn't imply
rulefunction on the
Arbitrablehas been called to enforce (execute) the ruling. It means that the decision on the dispute is final and to be executed.
There are three events to be emitted:
DisputeCreationwhen a dispute gets created by
AppealPossiblewhen appealing a dispute becomes possible.
AppealDecisionwhen current ruling is appealed.
And seven functions:
createDisputeshould create a dispute with given number of possible
_extraDatais for passing any extra information for any kind of custom handling. While calling
createDispute, caller has to pass required arbitration fee, otherwise
createDisputeshould be called by an
Arbitrable. Lastly, it should emit
arbitrationCostshould return the arbitration cost that is required to create a dispute, in weis.
appealshould appeal a dispute and should require the caller to pass the required appeal fee.
appealshould be called by an
Arbitrableand should emit the
appealCostshould return the appeal fee that is required to appeal, in weis.
appealPeriodshould return the time window, in
(start, end)format, for appealing a ruling, if known in advance. If not known or appeal is impossible: should return
disputeStatusshould return the status of dispute;
currentRulingshould return the current ruling of a dispute.