forked from HausDAO/daohaus-v3-subgraph-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
109 lines (98 loc) · 2.05 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
type Dao @entity {
id: ID!
createdAt: String!
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!
}
type MemberUri @entity {
id: ID!
members: [Member!] @derivedFrom(field: "dao")
}
type Member @entity {
id: ID!
createdAt: String!
dao: MemberUri!
memberAddress: Bytes!
shares: BigInt!
loot: BigInt!
delegatingTo: Bytes!
delegateShares: BigInt!
}
type ProposalUri @entity {
id: ID!
proposals: [Proposal!] @derivedFrom(field: "dao")
}
type Proposal @entity {
id: ID!
createdAt: String!
createdBy: Bytes!
dao: ProposalUri!
proposalId: BigInt!
prevProposalId: BigInt!
proposalDataHash: Bytes!
votingPeriod: BigInt!
votingStarts: BigInt!
votingEnds: BigInt!
graceEnds: BigInt!
proposalData: Bytes!
expiration: BigInt!
details: String!
selfSponsor: Boolean!
sponsored: Boolean!
cancelled: Boolean!
processed: Boolean!
sponsor: Bytes!
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 ActivityUri @entity {
id: ID!
activites: [Activity!] @derivedFrom(field: "dao")
}
type Activity @entity {
id: ID!
createdAt: String!
member: Bytes!
dao: ActivityUri!
activityType: String!
proposalId: BigInt!
value: String!
}