-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
131 lines (104 loc) · 2.13 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
type Blueprint @entity {
id: ID! # tokenID
score : Int!
numericId: Int!
scoreCategory: String!
emojiString: String!
emojiStringParsed: String!
bids: [Bid!] @derivedFrom (field: "blueprint")
emojis: [EmojiLeaderBoard!]!
owner: String!
ownerId: Owner!
history: [Activity!] @derivedFrom (field: "blueprint")
combined: Int!
hasBids: Boolean!
listed: Boolean!
price : BigInt!
searchString: String!
emojisWithFEOF: [String!]!
totalScore: BigInt!
rank: RankHelperBP @derivedFrom (field: "bpId")
}
type Bid @entity {
id: ID! # TokenId_BidderAddy
tokenID : BigInt!
bidPrice : BigInt!
bidder : String!
owner : String!
blueprint: Blueprint
date: BigInt!
}
type Stat @entity {
id: ID!
totalBlueprint: Int!
totalVolume: BigInt!
totalOwners: Int!
totalEmojiCount: Int!
}
type Owner @entity{ # count entities somehow
id: ID!
numberOfBlueprints: Int!
blueprints: [Blueprint!] @derivedFrom (field: "ownerId")
}
type Activity @entity{
id: ID! # blueprintId + txid
name: String
eventCategory: String
blueprint: Blueprint
date: BigInt
from: String
to: String
price: BigInt
txHash: Bytes
}
type BidRefundHelper @entity{
id: ID! # blueprintId
bidCount: Int!
readyForRefund: Boolean!
}
type EmojiPricesList @entity {
id: ID!
prices: [BigInt!]!
}
type EmojiLeaderBoard @entity {
id: ID! # emoji name
suply: Int!
floor: BigInt!
available : Int!
avarageSale : BigInt!
totalSold: Int!
totalVolume: BigInt!
blueprints: [Blueprint!]! @derivedFrom(field: "emojis") # reverse look up from a list
}
type ClassLeaderBoard @entity {
id: ID! # common, big, epic, enormous, colossal
suply: Int! # out for nowfloor: BigInt
available : Int!
avarageSale : BigInt!
totalSold: Int!
totalVolume: BigInt!
}
type Rank @entity {
id: ID!
count: Int!
score: Int!
}
type RankBPList @entity {
id: ID!
bpList : [Int!]!
}
type EmojiScoreInfo @entity {
id: ID!
score: Int!
tier: Int!
}
type RankHelperBP @entity {
id: ID! # bp ID
inScoreExtraPoint: BigInt!
inScoreRank: Int!
bpId: Blueprint!
}
type RankingHelper @entity {
id: ID!
rankingCount: Int!
}