-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
45 lines (41 loc) · 921 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
type AutoListing @entity(immutable: false) {
id: ID!
owner: String
name: String!
url: String
meta: Bytes
pricesDetail: [PriceDetail!]! @derivedFrom(field: "autoListing")
lastUpdated: BigInt!
totalTokens: BigInt!
tokens: [TokenListed!]! @derivedFrom(field: "authListing")
}
type PriceDetail @entity {
id: ID!
price: BigInt!
feeTokenAddress: FeeToken!
autoListing: AutoListing!
}
type Token @entity(immutable: false) {
id: ID!
addressERC20: String!
addressERC223: String!
name: String!
symbol: String!
decimals: BigInt!
inConverter: Boolean!
numberAdditions: BigInt!
}
type FeeToken @entity(immutable: false) {
id: ID!
address: String!
name: String!
symbol: String!
decimals: BigInt!
inConverter: Boolean!
}
type TokenListed @entity(immutable: true) {
id: String!
authListing: AutoListing! # Ссылка на AuthListing
token: Token!
timestamp: BigInt!
}