-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
41 lines (35 loc) · 978 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
type Balance @entity {
id: ID!
owner: String!
balance: BigDecimal!
# derivedFrom
block: Block!
token: Token!
}
type Supply @entity {
id: ID!
supply: BigDecimal!
max_supply: BigDecimal!
issuer: String!
# derivedFrom
block: Block!
token: Token!
}
type Token @entity {
id: ID!
contract: String!
symcode: String!
sym: String!
precision: BigInt!
# derivedFrom
block: Block!
balances: [Balance!]! @derivedFrom(field: "token")
supply: Supply! @derivedFrom(field: "token")
}
type Block @entity {
id: ID!
number: BigInt!
seconds: BigInt!
# timestamp: Timestamp! # Not yet supported by latest release of Graph Node
date: String!
}