1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use codec::{Decode, Encode};
use sp_runtime::RuntimeDebug;
use sp_std::prelude::*;
#[derive(PartialEq, Eq, Default, Clone, Encode, Decode, RuntimeDebug)]
pub struct Evidence<AccountId, Hash> {
poster: AccountId,
evidence: Hash,
acknowledge_by_all_parties: bool,
}
impl<AccountId, Hash> Evidence<AccountId, Hash> {
pub fn new(poster: AccountId, evidence: Hash) -> Evidence<AccountId, Hash> {
Evidence {
poster,
evidence,
acknowledge_by_all_parties: false,
}
}
pub fn was_acknowledged_by_all_parties(&self) -> bool {
self.acknowledge_by_all_parties
}
}
#[derive(PartialEq, Eq, Copy, Clone, Encode, Decode, RuntimeDebug)]
pub enum ExternalDisputeTypes<AccountId> {
Veto(AccountId),
ContractCancelled,
}
#[derive(PartialEq, Eq, Copy, Clone, Encode, Decode, RuntimeDebug)]
pub enum MilestoneTeamResponse<Hash> {
UpdateSubmissionForFeedback(Hash),
ProposeMilestoneAdjustment(Hash),
ClaimDeliverableMeetsRequirements,
}