forked from Yield-Supply/Subgraph-Moloch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
97 lines (90 loc) · 1.75 KB
/
schema.graphql
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
type Vote @entity {
id: ID!
timestamp: String!
proposalIndex: BigInt!
delegateKey: Bytes!
memberAddress: Bytes!
uintVote: Int!
proposal: Proposal!
member: Member!
}
enum ProposalStatus {
IN_QUEUE
VOTING_PERIOD
PASSED
FAILED
ABORTED
}
type Proposal @entity {
id: ID!
timestamp: String!
proposalIndex: BigInt!
startingPeriod: BigInt!
delegateKey: Bytes!
member: Member!
memberAddress: Bytes!
applicant: Applicant!
applicantAddress: Bytes!
tokenTribute: BigInt!
sharesRequested: BigInt!
yesVotes: BigInt!
noVotes: BigInt!
yesShares: BigInt!
noShares: BigInt!
processed: Boolean!
votes: [Vote!]!
details: String!
maxTotalSharesAtYesVote: BigInt!
status: ProposalStatus!
votingPeriodBegins: BigInt!
votingPeriodEnds: BigInt!
gracePeriodEnds: BigInt!
}
type Applicant @entity {
id: ID!
timestamp: String!
proposalIndex: BigInt!
delegateKey: Bytes!
member: Member!
memberAddress: Bytes!
applicantAddress: Bytes!
tokenTribute: BigInt!
sharesRequested: BigInt!
didPass: Boolean!
aborted: Boolean!
votes: [Vote!]!
proposal: Proposal!
}
type Member @entity {
id: ID!
delegateKey: Bytes!
shares: BigInt!
isActive: Boolean!
highestIndexYesVote: BigInt!
tokenTribute: BigInt!
didRagequit: Boolean!
votes: [Vote!]!
submissions: [Proposal!]!
}
type Meta @entity {
id: ID!
currentPeriod: BigInt!
totalShares: BigInt!
periodDuration: BigInt!
votingPeriodLength: BigInt!
gracePeriodLength: BigInt!
proposalDeposit: BigInt!
dilutionBound: BigInt!
processingReward: BigInt!
summoningTime: BigInt!
}
type PoolMember @entity {
id: ID!
shares: BigInt!
keepers: [Bytes!]
}
type PoolMeta @entity {
id: ID!
currentPoolIndex: BigInt!
totalPoolShares: BigInt!
}