-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
72 lines (66 loc) · 1.25 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
type NFT @entity {
id: ID!
tokenID: BigInt
owner: Bytes
value: BigInt
price: BigInt
rarity: Int
color: [Int!]
quadrants: [Int!]
miningPeriod: BigInt
cooldownDueDate: BigInt
isMining: Boolean
isForSale: Boolean
gemCooldownInitTime: BigInt
miningStartTime: BigInt
miningTry: Int
creationDate: BigInt
minter: Bytes
}
type Customer @entity {
id: ID!
address: Bytes
isMining: Boolean
}
type GemCooldown @entity {
id: ID!
RareGemsCooldownPeriod: BigInt
UniqueGemsCooldownPeriod: BigInt
EpicGemsCooldownPeriod: BigInt
LegendaryGemsCooldownPeriod: BigInt
MythicGemsCooldownPeriod: BigInt
}
type GemMiningPeriod @entity {
id: ID!
RareGemsMiningPeriod: BigInt
UniqueGemsMiningPeriod: BigInt
EpicGemsMiningPeriod: BigInt
LegendaryGemsMiningPeriod: BigInt
MythicGemsMiningPeriod: BigInt
}
type GemMiningTry @entity {
id: ID!
RareminingTry: Int
UniqueminingTry: Int
EpicminingTry: Int
LegendaryminingTry: Int
MythicminingTr: Int
}
type TradeHistory @entity {
id: Bytes!
tradeType: String
value: BigInt
gemIds: [BigInt!]
newId: BigInt
trader: Bytes
payer: Bytes
date: BigInt
txHash: Bytes
}
type Approval @entity {
id: ID!
from: Bytes
to: Bytes
tokenID: BigInt
forAll: Boolean
}