-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvalidator.graphql
More file actions
61 lines (53 loc) · 1.01 KB
/
validator.graphql
File metadata and controls
61 lines (53 loc) · 1.01 KB
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
enum ValidatorStatusFilter {
Active
Inactive
}
enum ValidatorBondingStatus {
Bonded
Unbonded
Unbonding
}
type Validator implements Node {
id: ID!
consensusAddress: String!
operatorAddress: String
selfDelegationAddress: String
moniker: String
identity: String
avatarUrl: String
website: String
securityContact: String
details: String
jailed: Boolean
status: ValidatorBondingStatus
votingPower: Float!
expectedReturns: Float!
uptime: Float!
participatedProposalCount: Int!
relativeTotalProposalCount: Int!
}
type ValidatorEdge {
cursor: String!
node: Validator!
}
type ValidatorConnection {
pageInfo: PageInfo!
edges: [ValidatorEdge!]!
totalCount: Int!
}
input ValidatorSort {
name: Sort
votingPower: Sort
expectedReturns: Sort
uptime: Sort
}
input QueryValidatorsInput {
first: Int!
after: Int!
status: ValidatorStatusFilter
searchTerm: String
order: ValidatorSort
}
extend type Query {
validators(input: QueryValidatorsInput!): ValidatorConnection!
}