@merkl/api 0.10.99 → 0.10.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,6 +127,7 @@ model AprRecord {
|
|
127
127
|
opportunityId String
|
128
128
|
|
129
129
|
@@unique([opportunityId, timestamp])
|
130
|
+
@@index([opportunityId], type: Hash)
|
130
131
|
}
|
131
132
|
|
132
133
|
model AprBreakdown {
|
@@ -136,6 +137,8 @@ model AprBreakdown {
|
|
136
137
|
value Float
|
137
138
|
AprRecord AprRecord @relation(fields: [aprRecordId], references: [id])
|
138
139
|
aprRecordId String
|
140
|
+
|
141
|
+
@@index([aprRecordId], type: Hash)
|
139
142
|
}
|
140
143
|
|
141
144
|
model TVLRecord {
|
@@ -148,6 +151,7 @@ model TVLRecord {
|
|
148
151
|
opportunityId String
|
149
152
|
|
150
153
|
@@unique([opportunityId, timestamp])
|
154
|
+
@@index([opportunityId], type: Hash)
|
151
155
|
}
|
152
156
|
|
153
157
|
model TVLBreakdown {
|
@@ -158,6 +162,8 @@ model TVLBreakdown {
|
|
158
162
|
|
159
163
|
TvlRecord TVLRecord @relation(fields: [tvlRecordId], references: [id])
|
160
164
|
tvlRecordId String
|
165
|
+
|
166
|
+
@@index([tvlRecordId], type: Hash)
|
161
167
|
}
|
162
168
|
|
163
169
|
model DailyRewardsRecord {
|
@@ -179,6 +185,8 @@ model DailyRewardsBreakdown {
|
|
179
185
|
Campaign Campaign @relation(fields: [campaignId], references: [id])
|
180
186
|
DailyRewardsRecord DailyRewardsRecord @relation(fields: [dailyRewardsRecordId], references: [id])
|
181
187
|
dailyRewardsRecordId String
|
188
|
+
|
189
|
+
@@index([dailyRewardsRecordId], type: Hash)
|
182
190
|
}
|
183
191
|
|
184
192
|
model User {
|
@@ -201,9 +209,8 @@ model Reward {
|
|
201
209
|
Breakdown RewardBreakdown[]
|
202
210
|
|
203
211
|
@@unique([root, recipient, rewardTokenId])
|
204
|
-
@@index([root])
|
205
|
-
@@index([
|
206
|
-
@@index([root, rewardTokenId])
|
212
|
+
@@index([root], type: Hash)
|
213
|
+
@@index([recipient, rewardTokenId])
|
207
214
|
}
|
208
215
|
|
209
216
|
model RewardBreakdown {
|
@@ -222,7 +229,7 @@ model RewardBreakdown {
|
|
222
229
|
Campaign Campaign @relation(fields: [campaignId], references: [id])
|
223
230
|
|
224
231
|
@@unique([rewardId, campaignId, reason])
|
225
|
-
@@index([rewardId])
|
232
|
+
@@index([rewardId], type: Hash)
|
226
233
|
}
|
227
234
|
|
228
235
|
model MerklRoot {
|
@@ -233,9 +240,9 @@ model MerklRoot {
|
|
233
240
|
timestamp BigInt
|
234
241
|
Rewards Reward[]
|
235
242
|
|
236
|
-
@@index([
|
237
|
-
@@index([
|
238
|
-
@@index([
|
243
|
+
@@index([root], type: Hash)
|
244
|
+
@@index([chainId], type: Hash)
|
245
|
+
@@index([epoch(ops: Int4BloomOps)], type: Brin)
|
239
246
|
}
|
240
247
|
|
241
248
|
model PriceSource {
|