-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathschema.graphql
42 lines (39 loc) · 1.04 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
type GlobalState @entity {
id: ID!
oracles: [Oracle!]! @derivedFrom(field: "state")
activeOracles: [Oracle!]!
}
type Oracle @entity {
id: Bytes! # address
index: String! # oracle_index
state: GlobalState!
latestConfig: OracleConfiguration!
configurations: [OracleConfiguration!]! @derivedFrom(field: "oracle")
votes: [OracleVote!]! @derivedFrom(field: "oracle")
active: Boolean!
activeSince: BigInt!
activeUntil: BigInt! # 0 means active
}
type OracleVote @entity(immutable: true) {
id: ID!
oracle: Oracle!
subgraphDeploymentID: Bytes! # bytes32
deny: Boolean! # bool
timestamp: BigInt! # uint256
}
type OracleConfiguration @entity(immutable: true) {
id: ID!
oracle: Oracle!
version: String!
ipfsConcurrency: String!
ipfsTimeout: String!
minSignal: String!
period: String!
gracePeriod: String!
supportedDataSourceKinds: String!
networkSubgraphDeploymentId: String!
epochBlockOracleSubgraphDeploymentId: String!
subgraphAvailabilityManagerContract: String!
oracleIndex: String!
createdAt: BigInt!
}