-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
63 lines (57 loc) · 1.15 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
type Transfer @entity {
id: ID!
transferId: BigInt!
node: Bytes
srcChain: BigInt!
liquidityProvider: Bytes
liquidityWithdrawn: Boolean!
"false for TransferInitiated and true for TransferCompleted"
completed: Boolean!
transferData: TransferData! @derivedFrom(field: "transfer")
}
type TransferData @entity(immutable: true) {
id: ID!
tokenAddress: Bytes!
destination: Bytes!
amount: BigInt!
fee: BigInt!
startTime: BigInt!
feeRampup: BigInt!
chain: BigInt!
transfer: Transfer!
}
type Ticket @entity {
id: ID!
confirmed: Boolean!
ticket: Bytes!
destChain: BigInt!
ticketTokens: [TicketToken!]! @derivedFrom(field: "ticket")
firstId: BigInt!
lastId: BigInt!
stateRoot: Bytes!
}
type TicketToken @entity (immutable: true) {
id: ID!
token: Bytes!
amount: BigInt!
bounty: BigInt!
ticket: Ticket!
}
type TicketTransfer @entity {
id: ID!
ticket: Ticket!
timestamp: BigInt!
}
type ApprovedRoot @entity (immutable: true) {
id: ID!
time: BigInt!
srcChain: BigInt!
stateRoot: Bytes!
}
type ContractOwner @entity (immutable: true) {
id: ID!
contract: Bytes!
owner: Bytes!
time: BigInt!
block: BigInt!
}