-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
125 lines (118 loc) · 2.54 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
type Dao @entity {
id: ID!
createdAt: String!
transactionHashSummon: Bytes!
lootAddress: Bytes!
safeAddress: Bytes!
lootPaused: Boolean!
sharesPaused: Boolean!
gracePeriod: BigInt!
votingPeriod: BigInt!
proposalOffering: BigInt!
quorumPercent: BigInt!
sponsorThreshold: BigInt!
minRetentionPercent: BigInt!
shareTokenName: String
shareTokenSymbol: String
totalShares: BigInt!
totalLoot: BigInt!
latestSponsoredProposalId: BigInt!
proposalCount: BigInt!
activeMemberCount: BigInt!
proposals: [Proposal!] @derivedFrom(field: "dao")
members: [Member!] @derivedFrom(field: "dao")
rageQuits: [RageQuit!] @derivedFrom(field: "dao")
shaman: [Shaman!] @derivedFrom(field: "dao")
metaData: MetaData @derivedFrom(field: "dao")
eventTransactions: EventTransaction @derivedFrom(field: "dao")
}
type Proposal @entity {
id: ID!
createdAt: String!
createdBy: Bytes!
dao: Dao!
proposalId: BigInt!
prevProposalId: BigInt!
proposalDataHash: Bytes!
votingPeriod: BigInt!
votingStarts: BigInt!
votingEnds: BigInt!
graceEnds: BigInt!
proposalData: Bytes!
expiration: BigInt!
details: String!
selfSponsor: Boolean!
sponsored: Boolean!
sponsor: Bytes!
cancelled: Boolean!
processed: Boolean!
actionFailed: Boolean!
passed: Boolean!
proposalOffering: BigInt!
yesVotes: BigInt!
noVotes: BigInt!
yesBalance: BigInt!
noBalance: BigInt!
maxTotalSharesAndLootAtYesVote: BigInt!
tributeToken: Bytes
tributeOffered: BigInt
tributeTokenSymbol: String
tributeTokenDecimals: BigInt
tributeEscrowRecipient: Bytes
proposalType: String!
title: String
description: String
contentURI: String
contentURIType: String
votes: [Vote!] @derivedFrom(field: "proposal")
}
type Vote @entity {
id: ID!
createdAt: String!
daoAddress: Bytes!
approved: Boolean!
balance: BigInt!
proposal: Proposal!
member: Member!
}
type MetaData @entity {
id: ID!
createdAt: String!
createdBy: Bytes!
dao: Dao
name: String
rawContent: String!
}
type Member @entity {
id: ID!
createdAt: String!
dao: Dao!
memberAddress: Bytes!
shares: BigInt!
loot: BigInt!
delegatingTo: Bytes!
delegateShares: BigInt!
votes: [Vote!] @derivedFrom(field: "member")
}
type RageQuit @entity {
id: ID!
createdAt: String!
dao: Dao!
member: Member!
to: Bytes!
shares: BigInt!
loot: BigInt!
tokens: [Bytes!]!
}
type Shaman @entity {
id: ID!
createdAt: String!
dao: Dao!
shamanAddress: Bytes!
permissions: BigInt!
}
type EventTransaction @entity {
id: ID!
createdAt: String!
dao: Dao!
}