-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
67 lines (58 loc) · 1.24 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
type Delegate @entity {
id: ID!
accountId: String! @index(unique: true)
delegatorVotes: BigInt!
delegators: Int!
delegations: [Delegation]! @derivedFrom(field: "delegate")
delegateVotes: [CastingVoting]! @derivedFrom(field: "delegate")
}
type Delegation @entity {
id: ID!
delegate: Delegate! @index
delegator: String! @index
delegation: ConvictionVote!
trackId: Int!
}
type ConvictionVote @jsonField {
conviction: String!
amount: String!
}
type Referendum @entity {
id: ID!
trackId: Int! @index
finished: Boolean!
}
type CastingVoting @entity {
id: ID!
at: Int!
voter: String! @index
delegate: Delegate @index
referendum: Referendum!
standardVote: StandardVote
splitVote: SplitVote
splitAbstainVote: SplitAbstainVote
delegatorVotes: [DelegatorVoting]! @derivedFrom(field: "parent")
}
type DelegatorVoting @entity {
id: ID!
parent: CastingVoting!
delegator: String!
vote: ConvictionVote!
}
type PendingMultisig @entity {
id: ID!
callData: String!
}
type StandardVote @jsonField {
aye: Boolean!
vote: ConvictionVote!
}
type SplitVote @jsonField {
ayeAmount: String!
nayAmount: String!
}
type SplitAbstainVote @jsonField {
ayeAmount: String!
nayAmount: String!
abstainAmount: String!
}