-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.graphql
53 lines (48 loc) · 1016 Bytes
/
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
type Claim @entity {
id: ID!
outbox: Outbox! # address
epoch: BigInt! # uint64
stateroot: Bytes! # bytes32
bridger: Bytes! # address
timestamp: BigInt!
challenged: Boolean!
challenge: Challenge @derivedFrom(field: "claim")
verification: Verification @derivedFrom(field: "claim")
verified: Boolean!
honest: Boolean!
txHash: Bytes!
}
type Outbox @entity(immutable: true) {
id: Bytes! # address
claims: [Claim!]! @derivedFrom(field: "outbox")
}
type Challenge @entity {
id: ID!
claim: Claim!
txHash: Bytes!
timestamp: BigInt!
challenger: Bytes! # address
honest: Boolean!
}
type Verification @entity {
id: ID!
claim: Claim!
timestamp: BigInt!
caller: Bytes! # address
txHash: Bytes!
}
type Message @entity {
id: ID!
outbox: Outbox! # address
timestamp: BigInt!
txHash: Bytes!
relayer: Bytes! # address
proof: Bytes!
}
type Ref @entity {
id: ID!
outbox: Outbox! # address
totalClaims: BigInt!
totalMessages: BigInt!
totalChallenges: BigInt!
}