-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.graphql
124 lines (121 loc) · 3.18 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
type History @entity {
id: ID!
"Disclaimer"
disclaimer: String!
"Total Proposal Count"
totalProposalCount: BigInt!
"All Proposals"
allProposals: [Proposal!]!
"Total Voters"
totalVoterCount: BigInt!
"Total Votes"
totalVotes: BigInt!
"Total number of voters Staked"
totalStakers: BigInt!
"Total Amount Staked"
totalStakedAmount: BigInt!
"Total Reward"
totalReward: BigInt!
"Paid Rewards"
paidRewards: BigInt!
"Current Owner"
currentOwner: Bytes!
"Previous Owner"
previousOwner: Bytes!
"Ownership Handover"
blockOwnershipChange: BigInt!
}
type Proposal @entity {
"Integer for the Proposal ID"
id: ID!
"Timestamp of Proposal"
timestamp: BigInt!
"Blocknumber of Proposal"
blockNumber: BigInt!
"Metadata for proposal: for Yearn Finance this is proposal.hash"
metadata: String!
"The address of the proposer"
proposer: Voter!
# "An ordered list of target addresses for calls to be made"
# targets: [Bytes!]!
# "An ordered list of value that is passed to each call"
# values: [BigInt!]!
# "An ordered list of function signatures to be called"
# signatures: [String!]!
# "An ordered list of callData to be passed to the calls"
# calldatas: [Bytes!]!
# "The timestamp of when the proposal will be availible for execution"
# eta: BigInt!
"The block at which voting begins"
startBlock: BigInt!
"The block at which voting ends, votes must be cast prior to this block"
endBlock: BigInt!
"The number of votes supportive of the proposal"
forVotes: BigInt!
"The number of votes against the proposal"
againstVotes: BigInt!
"An array of Ballots cast"
ballots: [Ballot!]!
# "Has the vote been Canceled (Boolean)"
# cancelled: Boolean
# "If cancelled, executed in TX hash:"
# cancelledTx: Bytes!
# "Has the vote been Executed (Boolean)"
# executed: Boolean!
# "If executed, executed in TX hash:"
# executionTx: Bytes!
"Participents"
participentCount: BigInt!
"Is the proposal Open"
open: Boolean!
"Quorum"
quorum: BigInt!
"Quorum Required"
quorumRequired: BigInt!
"Total Votes Availible"
totalVotesAvailible: BigInt!
"Address of Executor"
executor: Bytes!
"Quorum reached"
quorumReached: Boolean!
}
type Ballot @entity {
"Transaction Hash from the Vote action"
id: ID!
"Timestamp of Proposal"
timestamp: BigInt!
"Blocknumber of Proposal"
blockNumber: BigInt!
"The Voter who has cast this ballot"
voter: Voter!
"Support: True if a yes vote, false if a no vote"
support: Boolean!
# "Number of Votes the voter has cast"
# votesCast: BigInt!
"Voters Vote Weight"
voteWeight: BigInt!
"Proposal for which this ballot is cast"
proposal: Proposal!
}
type Voter @entity {
"Address of the Voter"
id: ID!
"Proposals the Voter has created"
proposalsProposed: [Proposal!]!
"Number of Proposals the Voter has Created"
proposalsProposedCount: BigInt!
"Proposals Participated in."
ballotsCast: [Ballot!]!
"Number of Proposals the voter has voted"
proposalsParticipatedCount: BigInt!
"Vote Count"
voteCount: BigInt!
"Is Voter Registered"
voterRegistered: Boolean!
"Is Staked?"
staking: Boolean!
"Staked Amount"
stakedAmount: BigInt!
"Paid Rewards"
paidReward: BigInt!
}