@merkl/api 0.10.103 → 0.10.105
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,7 @@ model Campaign {
|
|
34
34
|
CampaignStatus CampaignStatus[]
|
35
35
|
|
36
36
|
@@unique([distributionChainId, campaignId])
|
37
|
+
@@index([opportunityId], type: Hash)
|
37
38
|
}
|
38
39
|
|
39
40
|
model Chain {
|
@@ -83,6 +84,7 @@ model Opportunity {
|
|
83
84
|
tags String[] @default([])
|
84
85
|
|
85
86
|
@@unique([chainId, type, identifier])
|
87
|
+
@@index([dailyRewards(sort: Desc)])
|
86
88
|
}
|
87
89
|
|
88
90
|
model Protocol {
|
@@ -115,6 +117,8 @@ model Token {
|
|
115
117
|
DumpFrom Dump[] @relation("from")
|
116
118
|
|
117
119
|
@@unique([chainId, address])
|
120
|
+
@@index([chainId], type: Hash)
|
121
|
+
@@index([symbol, address])
|
118
122
|
}
|
119
123
|
|
120
124
|
model AprRecord {
|
@@ -126,7 +130,7 @@ model AprRecord {
|
|
126
130
|
opportunityId String
|
127
131
|
|
128
132
|
@@unique([opportunityId, timestamp])
|
129
|
-
@@index([opportunityId
|
133
|
+
@@index([opportunityId, timestamp(sort: Desc)])
|
130
134
|
}
|
131
135
|
|
132
136
|
model AprBreakdown {
|
@@ -150,7 +154,7 @@ model TVLRecord {
|
|
150
154
|
opportunityId String
|
151
155
|
|
152
156
|
@@unique([opportunityId, timestamp])
|
153
|
-
@@index([opportunityId
|
157
|
+
@@index([opportunityId, timestamp(sort: Desc)])
|
154
158
|
}
|
155
159
|
|
156
160
|
model TVLBreakdown {
|
@@ -175,6 +179,7 @@ model DailyRewardsRecord {
|
|
175
179
|
opportunityId String
|
176
180
|
|
177
181
|
@@unique([opportunityId, timestamp])
|
182
|
+
@@index([opportunityId, timestamp(sort: Desc)])
|
178
183
|
}
|
179
184
|
|
180
185
|
model DailyRewardsBreakdown {
|
@@ -229,6 +234,8 @@ model RewardBreakdown {
|
|
229
234
|
|
230
235
|
@@unique([rewardId, campaignId, reason])
|
231
236
|
@@index([rewardId], type: Hash)
|
237
|
+
@@index([campaignId], type: Hash)
|
238
|
+
@@index([amount(sort: Desc)])
|
232
239
|
}
|
233
240
|
|
234
241
|
model MerklRoot {
|
@@ -239,9 +246,7 @@ model MerklRoot {
|
|
239
246
|
timestamp BigInt
|
240
247
|
Rewards Reward[]
|
241
248
|
|
242
|
-
@@index([root]
|
243
|
-
@@index([chainId], type: Hash)
|
244
|
-
@@index([epoch(ops: Int4BloomOps)], type: Brin)
|
249
|
+
@@index([chainId, root])
|
245
250
|
}
|
246
251
|
|
247
252
|
model PriceSource {
|
@@ -264,6 +269,7 @@ model Blacklist {
|
|
264
269
|
arrestDetails Json
|
265
270
|
|
266
271
|
@@unique([chainId, userAddress, poolAddress])
|
272
|
+
@@index([userAddress], type: Hash)
|
267
273
|
}
|
268
274
|
|
269
275
|
model Dump {
|