forked from HausDAO/daohaus-supergraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
200 lines (190 loc) · 4.19 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
type Moloch @entity {
id: ID!
title: String
version: String
summoner: Bytes!
newContract: String
deleted: Boolean
summoningTime: BigInt!
createdAt: String!
periodDuration: BigInt!
votingPeriodLength: BigInt!
gracePeriodLength: BigInt!
proposalDeposit: BigInt!
dilutionBound: BigInt!
processingReward: BigInt!
depositToken: Token
approvedTokens: [Token!]!
guildBankAddress: Bytes
guildBankBalanceV1: BigInt
tokens: [Token!] @derivedFrom(field: "moloch")
members: [Member!] @derivedFrom(field: "moloch")
tokenBalances: [TokenBalance!] @derivedFrom(field: "moloch")
proposals: [Proposal!] @derivedFrom(field: "moloch")
rageQuits: [RageQuit!] @derivedFrom(field: "moloch")
minions: [Minion!] @derivedFrom(field: "moloch")
totalShares: BigInt!
totalLoot: BigInt!
}
type TokenBalance @entity {
id: ID!
moloch: Moloch!
token: Token!
tokenBalance: BigInt!
member: Member
guildBank: Boolean!
ecrowBank: Boolean!
memberBank: Boolean!
}
type Token @entity {
id: ID!
moloch: Moloch!
tokenAddress: Bytes!
whitelisted: Boolean!
symbol: String
decimals: BigInt
}
type Member @entity {
id: ID!
createdAt: String!
moloch: Moloch!
molochAddress: Bytes!
memberAddress: Bytes!
delegateKey: Bytes!
shares: BigInt!
loot: BigInt
exists: Boolean!
highestIndexYesVote: Proposal
tokenTribute: BigInt!
didRagequit: Boolean!
votes: [Vote!] @derivedFrom(field: "member")
submissions: [Proposal!] @derivedFrom(field: "member")
tokenBalances: [TokenBalance!] @derivedFrom(field: "member")
rageQuits: [RageQuit!] @derivedFrom(field: "member")
proposedToKick: Boolean
kicked: Boolean
jailed: BigInt
}
type Vote @entity {
id: ID!
createdAt: String!
proposal: Proposal!
member: Member!
uintVote: Int!
molochAddress: Bytes!
memberAddress: Bytes
memberPower: BigInt
proposalIndex: BigInt
delegateKey: Bytes
}
type Proposal @entity {
id: ID!
createdAt: String!
proposalIndex: BigInt
proposalId: BigInt!
moloch: Moloch!
molochAddress: Bytes!
member: Member!
memberAddress: Bytes!
delegateKey: Bytes!
applicant: Bytes!
proposer: Bytes
sponsor: Bytes!
processor: Bytes
sharesRequested: BigInt!
lootRequested: BigInt!
tributeOffered: BigInt!
tributeToken: Bytes!
tributeTokenSymbol: String
tributeTokenDecimals: BigInt
paymentRequested: BigInt!
paymentToken: Bytes!
paymentTokenSymbol: String
paymentTokenDecimals: BigInt
startingPeriod: BigInt
yesVotes: BigInt!
noVotes: BigInt!
sponsored: Boolean!
sponsoredAt: String
processed: Boolean!
processedAt: String
didPass: Boolean!
cancelled: Boolean
cancelledAt: String
aborted: Boolean
whitelist: Boolean
guildkick: Boolean
newMember: Boolean
trade: Boolean
details: String
maxTotalSharesAndLootAtYesVote: BigInt
votes: [Vote!] @derivedFrom(field: "proposal")
yesShares: BigInt!
noShares: BigInt!
votingPeriodStarts: BigInt!
votingPeriodEnds: BigInt!
gracePeriodEnds: BigInt!
molochVersion: String!
isMinion: Boolean!
uberHausMinionExecuted: Boolean
minionAddress: Bytes
minion: Minion
}
type RageQuit @entity {
id: ID!
createdAt: String!
moloch: Moloch!
molochAddress: Bytes!
member: Member!
memberAddress: Bytes!
shares: BigInt!
loot: BigInt!
}
type DaoMeta @entity {
id: ID!
title: String
version: String
newContract: String
http: String
}
type Minion @entity {
id: ID!
createdAt: String!
minionAddress: Bytes!
molochAddress: Bytes!
moloch: Moloch!
details: String!
minionType: String!
proposals: [Proposal!] @derivedFrom(field: "minion")
uberHausAddress: Bytes
uberHaus: Moloch
uberHausDelegateRewardFactor: BigInt
uberHausDelegate: Bytes
version: String
minQuorum: BigInt
streams: [MinionStream!] @derivedFrom(field: "minion")
}
type MinionStream @entity {
id: ID!
proposalId: String!
createdAt: String!
to: Bytes!
tokenAddress: Bytes!
superTokenAddress: Bytes!
rate: BigInt!
minDeposit: BigInt!
proposer: Bytes!
executed: Boolean!
executedBlock: BigInt
executedAt: String
execTxHash: Bytes
active: Boolean!
ctx: Bytes!
canceledAt: String
canceledBy: Bytes
minion: Minion!
}
type MolochTransaction @entity {
id: ID!
createdAt: String!
}