-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
75 lines (68 loc) · 1.4 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
68
69
70
71
72
73
74
75
type Transfer @entity {
id: ID!
depositNonce: BigInt!
resource: Resource
resourceID: String
fromDomain: Domain!
fromDomainID: Int!
toDomain: Domain
toDomainID: Int
destination: String
amount: String
status: TransferStatus!
deposit: Deposit @unique
execution: Execution @unique
fee: Fee @unique
account: Account
accountID: String
message: String
usdValue: Float
}
type Deposit @entity {
id: ID!
transfer: Transfer @derivedFrom(field: "deposit")
type: String!
txHash: String!
blockNumber: String!
depositData: String!
timestamp: DateTime
handlerResponse: String!
}
type Execution @entity {
id: ID!
transfer: Transfer @derivedFrom(field: "execution")
txHash: String!
timestamp: DateTime
blockNumber: String!
}
enum TransferStatus {
pending
executed
failed
}
type Account @entity {
id: ID!
addressStatus: String
transfers: [Transfer!] @derivedFrom(field: "account")
}
type Resource @entity {
id: ID!
type: String!
decimals: Int
transfers: [Transfer!] @derivedFrom(field: "resource")
}
type Domain @entity {
id: ID!
name: String!
lastIndexedBlock: String!
transfersFrom: [Transfer!] @derivedFrom(field: "fromDomain")
transfersTo: [Transfer!] @derivedFrom(field: "toDomain")
}
type Fee @entity {
id: ID!
amount: String!
tokenAddress: String!
tokenSymbol: String!
decimals: Int
transfer: Transfer @derivedFrom(field: "fee")
}