@merkl/api 0.20.4 → 0.20.6

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.
Files changed (35) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +0 -102
  2. package/dist/database/api/.generated/drizzle/schema.js +5 -11
  3. package/dist/database/api/.generated/drizzle/schema.ts +5 -11
  4. package/dist/database/api/.generated/edge.js +8 -15
  5. package/dist/database/api/.generated/index-browser.js +5 -12
  6. package/dist/database/api/.generated/index.d.ts +149 -464
  7. package/dist/database/api/.generated/index.js +8 -15
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +5 -11
  10. package/dist/database/api/.generated/wasm.js +5 -12
  11. package/dist/src/eden/index.d.ts +65 -90
  12. package/dist/src/index.d.ts +13 -18
  13. package/dist/src/jobs/update-dynamic-data.js +2 -0
  14. package/dist/src/modules/v4/apr/apr.model.d.ts +3 -3
  15. package/dist/src/modules/v4/apr/apr.model.js +1 -1
  16. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -3
  17. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -3
  18. package/dist/src/modules/v4/computedValue/computedValue.repository.js +0 -2
  19. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -3
  20. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +2 -5
  21. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +12 -15
  22. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +6 -6
  23. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +19 -36
  24. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +17 -26
  25. package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
  26. package/dist/src/modules/v4/reward/reward.model.d.ts +4 -4
  27. package/dist/src/modules/v4/reward/reward.model.js +1 -1
  28. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -4
  29. package/dist/src/modules/v4/reward/reward.service.d.ts +5 -10
  30. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  31. package/dist/src/modules/v4/router.d.ts +13 -18
  32. package/dist/src/modules/v4/tvl/tvl.model.d.ts +3 -3
  33. package/dist/src/modules/v4/tvl/tvl.model.js +1 -1
  34. package/dist/tsconfig.package.tsbuildinfo +1 -1
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-f1c1902d4e330b0053b3b09f70cd8337a4cdd6ce1011a3bf90fa3f4178e91213",
2
+ "name": "prisma-client-b3a49eaef4338f6531564f0926e7f54f7af4de8f748f26db3a9850d2d66bdff7",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -73,9 +73,7 @@ model CampaignComputedValue {
73
73
  }
74
74
 
75
75
  model UserComputedValue {
76
- id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
77
- stringId String @default("")
78
- uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
76
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
79
77
  campaignId String
80
78
  Campaign Campaign @relation(fields: [campaignId], references: [id])
81
79
  address String @db.Char(42)
@@ -196,8 +194,7 @@ model AprRecord {
196
194
  }
197
195
 
198
196
  model AprBreakdown {
199
- id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
200
- uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
197
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
201
198
  identifier String
202
199
  type AprType
203
200
  value Float
@@ -221,8 +218,7 @@ model TVLRecord {
221
218
  }
222
219
 
223
220
  model TVLBreakdown {
224
- id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
225
- uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
221
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
226
222
  identifier String
227
223
  type TvlType
228
224
  value Float
@@ -247,8 +243,7 @@ model DailyRewardsRecord {
247
243
  }
248
244
 
249
245
  model DailyRewardsBreakdown {
250
- id Int @default(autoincrement()) // TODO Migrate to something smarter than Int ids
251
- uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
246
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
252
247
  value Float
253
248
  campaignId String
254
249
  Campaign Campaign @relation(fields: [campaignId], references: [id])
@@ -298,8 +293,7 @@ model Reward {
298
293
  }
299
294
 
300
295
  model RewardBreakdown {
301
- id Int @default(autoincrement())
302
- uuid String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
296
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
303
297
  Protocol Protocol? @relation(fields: [protocolId], references: [id])
304
298
  protocolId String?
305
299
  reason String
@@ -158,8 +158,6 @@ exports.Prisma.CampaignComputedValueScalarFieldEnum = {
158
158
 
159
159
  exports.Prisma.UserComputedValueScalarFieldEnum = {
160
160
  id: 'id',
161
- stringId: 'stringId',
162
- uuid: 'uuid',
163
161
  campaignId: 'campaignId',
164
162
  address: 'address',
165
163
  reason: 'reason',
@@ -230,7 +228,6 @@ exports.Prisma.AprRecordScalarFieldEnum = {
230
228
 
231
229
  exports.Prisma.AprBreakdownScalarFieldEnum = {
232
230
  id: 'id',
233
- uuid: 'uuid',
234
231
  identifier: 'identifier',
235
232
  type: 'type',
236
233
  value: 'value',
@@ -246,7 +243,6 @@ exports.Prisma.TVLRecordScalarFieldEnum = {
246
243
 
247
244
  exports.Prisma.TVLBreakdownScalarFieldEnum = {
248
245
  id: 'id',
249
- uuid: 'uuid',
250
246
  identifier: 'identifier',
251
247
  type: 'type',
252
248
  value: 'value',
@@ -262,7 +258,6 @@ exports.Prisma.DailyRewardsRecordScalarFieldEnum = {
262
258
 
263
259
  exports.Prisma.DailyRewardsBreakdownScalarFieldEnum = {
264
260
  id: 'id',
265
- uuid: 'uuid',
266
261
  value: 'value',
267
262
  campaignId: 'campaignId',
268
263
  dailyRewardsRecordId: 'dailyRewardsRecordId'
@@ -293,7 +288,6 @@ exports.Prisma.RewardScalarFieldEnum = {
293
288
 
294
289
  exports.Prisma.RewardBreakdownScalarFieldEnum = {
295
290
  id: 'id',
296
- uuid: 'uuid',
297
291
  protocolId: 'protocolId',
298
292
  reason: 'reason',
299
293
  amount: 'amount',
@@ -399,8 +393,7 @@ exports.Prisma.CampaignComputedValueOrderByRelevanceFieldEnum = {
399
393
  };
400
394
 
401
395
  exports.Prisma.UserComputedValueOrderByRelevanceFieldEnum = {
402
- stringId: 'stringId',
403
- uuid: 'uuid',
396
+ id: 'id',
404
397
  campaignId: 'campaignId',
405
398
  address: 'address',
406
399
  reason: 'reason'
@@ -451,7 +444,7 @@ exports.Prisma.AprRecordOrderByRelevanceFieldEnum = {
451
444
  };
452
445
 
453
446
  exports.Prisma.AprBreakdownOrderByRelevanceFieldEnum = {
454
- uuid: 'uuid',
447
+ id: 'id',
455
448
  identifier: 'identifier',
456
449
  aprRecordId: 'aprRecordId'
457
450
  };
@@ -462,7 +455,7 @@ exports.Prisma.TVLRecordOrderByRelevanceFieldEnum = {
462
455
  };
463
456
 
464
457
  exports.Prisma.TVLBreakdownOrderByRelevanceFieldEnum = {
465
- uuid: 'uuid',
458
+ id: 'id',
466
459
  identifier: 'identifier',
467
460
  tvlRecordId: 'tvlRecordId'
468
461
  };
@@ -473,7 +466,7 @@ exports.Prisma.DailyRewardsRecordOrderByRelevanceFieldEnum = {
473
466
  };
474
467
 
475
468
  exports.Prisma.DailyRewardsBreakdownOrderByRelevanceFieldEnum = {
476
- uuid: 'uuid',
469
+ id: 'id',
477
470
  campaignId: 'campaignId',
478
471
  dailyRewardsRecordId: 'dailyRewardsRecordId'
479
472
  };
@@ -502,7 +495,7 @@ exports.Prisma.RewardOrderByRelevanceFieldEnum = {
502
495
  };
503
496
 
504
497
  exports.Prisma.RewardBreakdownOrderByRelevanceFieldEnum = {
505
- uuid: 'uuid',
498
+ id: 'id',
506
499
  protocolId: 'protocolId',
507
500
  reason: 'reason',
508
501
  amount: 'amount',