-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
54 lines (51 loc) · 903 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
54
type Contract @entity {
id: ID!
address: Bytes!
totalSupply: BigInt!
removedTraits: [Int!]
}
type Character @entity {
id: ID!
tokenId: BigInt!
owner: Owner!
name: String
nameHistory: [String!]
createdAt: BigInt!
transactionHash: String!
traits: TraitMap!
}
type TraitMap @entity {
id: ID!
tokenId: BigInt!
character: Character! @derivedFrom(field: "traits")
tribe: Int!
skinColor: Int!
furColor: Int!
eyeColor: Int!
pupilColor: Int!
hair: Int!
mouth: Int!
beard: Int!
top: Int!
outerwear: Int!
print: Int!
bottom: Int!
footwear: Int!
belt: Int!
hat: Int!
eyewear: Int!
piercing: Int!
wrist: Int!
hands: Int!
neckwear: Int!
leftItem: Int!
rightItem: Int!
background: Int!
}
type Owner @entity {
id: ID!
address: Bytes!
createdAt: BigInt!
characters: [Character!] @derivedFrom(field: "owner")
characterCount: Int!
}