sunshine-protocol / sunshine

Governance + Bounty Platform
Other
41 stars 16 forks source link

new court module #90

Closed 4meta5 closed 4 years ago

4meta5 commented 4 years ago

for dispute resolution as mentioned in the original issue #6

but now we can use the base org, vote modules to configure the dispute resolution mechanism

map DisputeId => LinkedList<(OrgId, Threshold)>;

LinkedList because we need hierarchical appeals

(OrgId, Threshold) should actually be a struct which should be really easy to dispatch votes with...

This defines the order for dispute resolution related votes. The basic idea would be that one party raises the dispute as a claim of due payment from another party with evidence.

In order for this structure to work, every dispute must define the terms for dispute resolution before any other interaction occurs. This allows us to define a permissioned trigger in the calling module which references a specific DisputeId already created.

There should also be an unordered set to track all the agreements for which every dispute pertains so that we effectively register these agreements as being compatible with the given dispute resolution mechanism

double_map 
  hasher DisputeId, 
  hasher Agreement => bool;
4meta5 commented 4 years ago

done