forked from MergeFi/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
98 lines (88 loc) · 2.39 KB
/
Copy pathindex.ts
File metadata and controls
98 lines (88 loc) · 2.39 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
export enum UserRole {
CONTRIBUTOR = 'contributor',
MAINTAINER = 'maintainer',
SPONSOR = 'sponsor',
}
/**
* Lifecycle of a paid issue (bounty).
*
* open -> funds not yet locked, issue published as paid
* funded -> sponsor funded the escrow contract for this bounty
* claimed -> a contributor was assigned / claimed the work
* in_review -> a PR has been opened against the linked issue
* merged -> the linked PR was merged on GitHub
* paid -> escrow release succeeded, contributor(s) paid
* refunded -> escrow refunded back to sponsor (e.g. abandoned)
* expired -> deadline passed with no claim/merge
*/
export enum BountyStatus {
OPEN = 'open',
FUNDED = 'funded',
CLAIMED = 'claimed',
IN_REVIEW = 'in_review',
MERGED = 'merged',
PAID = 'paid',
REFUNDED = 'refunded',
EXPIRED = 'expired',
}
export enum BountyDifficulty {
BEGINNER = 'beginner',
INTERMEDIATE = 'intermediate',
ADVANCED = 'advanced',
EXPERT = 'expert',
}
export enum AssetType {
USDC = 'USDC',
XLM = 'XLM',
}
export enum EscrowStatus {
PENDING = 'pending',
LOCKED = 'locked',
RELEASED = 'released',
REFUNDED = 'refunded',
FAILED = 'failed',
}
export enum EscrowAction {
FUND = 'fund',
RELEASE = 'release',
REFUND = 'refund',
SPLIT_RELEASE = 'split_release',
}
export enum PaymentStatus {
PENDING = 'pending',
SUBMITTED = 'submitted',
CONFIRMED = 'confirmed',
FAILED = 'failed',
}
export enum MilestoneStatus {
OPEN = 'open',
FUNDED = 'funded',
IN_PROGRESS = 'in_progress',
COMPLETED = 'completed',
CLOSED = 'closed',
}
export enum MaintenancePoolStatus {
ACTIVE = 'active',
PAUSED = 'paused',
CLOSED = 'closed',
}
export enum WebhookEventStatus {
RECEIVED = 'received',
PROCESSED = 'processed',
IGNORED = 'ignored',
FAILED = 'failed',
}
/**
* processing -> a request with this key is currently executing; a second
* request with the same key while still processing is
* rejected (409) rather than racing into a duplicate
* execution.
* completed -> the underlying mutation ran to completion (success or a
* deterministic 4xx client error) and its outcome is cached;
* a repeat request with the same key replays it verbatim
* instead of re-executing.
*/
export enum IdempotencyKeyStatus {
PROCESSING = 'processing',
COMPLETED = 'completed',
}