@merkl/api 0.20.3 → 0.20.5

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 (47) 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/cache/declaration.d.ts +2 -2
  12. package/dist/src/cache/declaration.js +2 -2
  13. package/dist/src/eden/index.d.ts +65 -90
  14. package/dist/src/engine/dynamicData/utils/getEulerV2Vaults.d.ts +0 -1
  15. package/dist/src/engine/dynamicData/utils/getEulerV2Vaults.js +77 -40
  16. package/dist/src/engine/erc20SubTypeProcessors/implementations/EulerLendProcessor.js +6 -1
  17. package/dist/src/index.d.ts +13 -18
  18. package/dist/src/jobs/update-euler-vaults.d.ts +1 -1
  19. package/dist/src/jobs/update-euler-vaults.js +5 -121
  20. package/dist/src/modules/v4/apr/apr.model.d.ts +3 -3
  21. package/dist/src/modules/v4/apr/apr.model.js +1 -1
  22. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -3
  23. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -3
  24. package/dist/src/modules/v4/computedValue/computedValue.repository.js +0 -2
  25. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -3
  26. package/dist/src/modules/v4/icon/icon.model.d.ts +4 -0
  27. package/dist/src/modules/v4/icon/icon.model.js +1 -0
  28. package/dist/src/modules/v4/icon/icon.service.d.ts +5 -0
  29. package/dist/src/modules/v4/icon/icon.service.js +15 -0
  30. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +12 -15
  31. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +6 -6
  32. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +17 -34
  33. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -24
  34. package/dist/src/modules/v4/programPayload/programPayload.repository.js +4 -0
  35. package/dist/src/modules/v4/reward/reward.model.d.ts +4 -4
  36. package/dist/src/modules/v4/reward/reward.model.js +1 -1
  37. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -4
  38. package/dist/src/modules/v4/reward/reward.service.d.ts +5 -10
  39. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  40. package/dist/src/modules/v4/router.d.ts +13 -18
  41. package/dist/src/modules/v4/token/token.service.js +6 -9
  42. package/dist/src/modules/v4/tvl/tvl.model.d.ts +3 -3
  43. package/dist/src/modules/v4/tvl/tvl.model.js +1 -1
  44. package/dist/src/routes/v3/euler.d.ts +0 -6
  45. package/dist/src/routes/v3/euler.js +3 -3
  46. package/dist/tsconfig.package.tsbuildinfo +1 -1
  47. package/package.json +1 -1
@@ -140,9 +140,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
140
140
  cumulated: number;
141
141
  timestamp: bigint;
142
142
  breakdowns: {
143
- id: number;
143
+ id: string;
144
144
  type: import("@db/api").$Enums.AprType;
145
- uuid: string;
146
145
  identifier: string;
147
146
  value: number;
148
147
  aprRecordId: string;
@@ -153,9 +152,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
153
152
  total: number;
154
153
  timestamp: bigint;
155
154
  breakdowns: {
156
- id: number;
155
+ id: string;
157
156
  type: import("@db/api").$Enums.TvlType;
158
- uuid: string;
159
157
  identifier: string;
160
158
  value: number;
161
159
  tvlRecordId: string;
@@ -166,8 +164,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
166
164
  total: number;
167
165
  timestamp: bigint;
168
166
  breakdowns: {
169
- id: number;
170
- uuid: string;
167
+ id: string;
171
168
  value: number;
172
169
  campaignId: string;
173
170
  dailyRewardsRecordId: string;
@@ -368,7 +365,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
368
365
  timestamp: string | bigint;
369
366
  cumulated: number;
370
367
  breakdowns: {
371
- id: number;
368
+ id: string;
372
369
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
373
370
  identifier: string;
374
371
  value: number;
@@ -379,7 +376,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
379
376
  total: number;
380
377
  timestamp: string | bigint;
381
378
  breakdowns: {
382
- id: number;
379
+ id: string;
383
380
  type: "TOKEN" | "PROTOCOL";
384
381
  identifier: string;
385
382
  value: number;
@@ -391,7 +388,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
391
388
  total: number;
392
389
  timestamp: string | bigint;
393
390
  breakdowns: {
394
- id: number;
391
+ id: string;
395
392
  token: {
396
393
  price?: number | null | undefined;
397
394
  symbol: string;
@@ -499,7 +496,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
499
496
  timestamp: string | bigint;
500
497
  cumulated: number;
501
498
  breakdowns: {
502
- id: number;
499
+ id: string;
503
500
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
504
501
  identifier: string;
505
502
  value: number;
@@ -510,7 +507,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
510
507
  total: number;
511
508
  timestamp: string | bigint;
512
509
  breakdowns: {
513
- id: number;
510
+ id: string;
514
511
  type: "TOKEN" | "PROTOCOL";
515
512
  identifier: string;
516
513
  value: number;
@@ -522,7 +519,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
522
519
  total: number;
523
520
  timestamp: string | bigint;
524
521
  breakdowns: {
525
- id: number;
522
+ id: string;
526
523
  token: {
527
524
  price?: number | null | undefined;
528
525
  symbol: string;
@@ -664,7 +661,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
664
661
  timestamp: string | bigint;
665
662
  cumulated: number;
666
663
  breakdowns: {
667
- id: number;
664
+ id: string;
668
665
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
669
666
  identifier: string;
670
667
  value: number;
@@ -675,7 +672,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
675
672
  total: number;
676
673
  timestamp: string | bigint;
677
674
  breakdowns: {
678
- id: number;
675
+ id: string;
679
676
  type: "TOKEN" | "PROTOCOL";
680
677
  identifier: string;
681
678
  value: number;
@@ -687,7 +684,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
687
684
  total: number;
688
685
  timestamp: string | bigint;
689
686
  breakdowns: {
690
- id: number;
687
+ id: string;
691
688
  token: {
692
689
  price?: number | null | undefined;
693
690
  symbol: string;
@@ -65,7 +65,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
65
65
  cumulated: import("@sinclair/typebox").TNumber;
66
66
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
67
67
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
68
- id: import("@sinclair/typebox").TNumber;
68
+ id: import("@sinclair/typebox").TString;
69
69
  type: import("@sinclair/typebox").TEnum<{
70
70
  CAMPAIGN: "CAMPAIGN";
71
71
  TOKEN: "TOKEN";
@@ -80,7 +80,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
80
80
  total: import("@sinclair/typebox").TNumber;
81
81
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
82
82
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
83
- id: import("@sinclair/typebox").TNumber;
83
+ id: import("@sinclair/typebox").TString;
84
84
  type: import("@sinclair/typebox").TEnum<{
85
85
  TOKEN: "TOKEN";
86
86
  PROTOCOL: "PROTOCOL";
@@ -95,7 +95,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
95
95
  total: import("@sinclair/typebox").TNumber;
96
96
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
97
97
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
98
- id: import("@sinclair/typebox").TNumber;
98
+ id: import("@sinclair/typebox").TString;
99
99
  campaignId: import("@sinclair/typebox").TString;
100
100
  value: import("@sinclair/typebox").TNumber;
101
101
  dailyRewardsRecordId: import("@sinclair/typebox").TString;
@@ -166,7 +166,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
166
166
  cumulated: import("@sinclair/typebox").TNumber;
167
167
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
168
168
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
169
- id: import("@sinclair/typebox").TNumber;
169
+ id: import("@sinclair/typebox").TString;
170
170
  type: import("@sinclair/typebox").TEnum<{
171
171
  CAMPAIGN: "CAMPAIGN";
172
172
  TOKEN: "TOKEN";
@@ -181,7 +181,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
181
181
  total: import("@sinclair/typebox").TNumber;
182
182
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
183
183
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
184
- id: import("@sinclair/typebox").TNumber;
184
+ id: import("@sinclair/typebox").TString;
185
185
  type: import("@sinclair/typebox").TEnum<{
186
186
  TOKEN: "TOKEN";
187
187
  PROTOCOL: "PROTOCOL";
@@ -196,7 +196,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
196
196
  total: import("@sinclair/typebox").TNumber;
197
197
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
198
198
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
199
- id: import("@sinclair/typebox").TNumber;
199
+ id: import("@sinclair/typebox").TString;
200
200
  campaignId: import("@sinclair/typebox").TString;
201
201
  value: import("@sinclair/typebox").TNumber;
202
202
  dailyRewardsRecordId: import("@sinclair/typebox").TString;
@@ -95,9 +95,8 @@ export declare abstract class OpportunityRepository {
95
95
  } | null;
96
96
  TvlRecords: ({
97
97
  TvlBreakdown: {
98
- id: number;
98
+ id: string;
99
99
  type: import("@db/api").$Enums.TvlType;
100
- uuid: string;
101
100
  identifier: string;
102
101
  value: number;
103
102
  tvlRecordId: string;
@@ -110,9 +109,8 @@ export declare abstract class OpportunityRepository {
110
109
  })[];
111
110
  AprRecords: ({
112
111
  AprBreakdown: {
113
- id: number;
112
+ id: string;
114
113
  type: import("@db/api").$Enums.AprType;
115
- uuid: string;
116
114
  identifier: string;
117
115
  value: number;
118
116
  aprRecordId: string;
@@ -154,8 +152,7 @@ export declare abstract class OpportunityRepository {
154
152
  }[];
155
153
  };
156
154
  } & {
157
- id: number;
158
- uuid: string;
155
+ id: string;
159
156
  value: number;
160
157
  campaignId: string;
161
158
  dailyRewardsRecordId: string;
@@ -238,9 +235,8 @@ export declare abstract class OpportunityRepository {
238
235
  } | null;
239
236
  TvlRecords: ({
240
237
  TvlBreakdown: {
241
- id: number;
238
+ id: string;
242
239
  type: import("@db/api").$Enums.TvlType;
243
- uuid: string;
244
240
  identifier: string;
245
241
  value: number;
246
242
  tvlRecordId: string;
@@ -253,9 +249,8 @@ export declare abstract class OpportunityRepository {
253
249
  })[];
254
250
  AprRecords: ({
255
251
  AprBreakdown: {
256
- id: number;
252
+ id: string;
257
253
  type: import("@db/api").$Enums.AprType;
258
- uuid: string;
259
254
  identifier: string;
260
255
  value: number;
261
256
  aprRecordId: string;
@@ -297,8 +292,7 @@ export declare abstract class OpportunityRepository {
297
292
  }[];
298
293
  };
299
294
  } & {
300
- id: number;
301
- uuid: string;
295
+ id: string;
302
296
  value: number;
303
297
  campaignId: string;
304
298
  dailyRewardsRecordId: string;
@@ -439,9 +433,8 @@ export declare abstract class OpportunityRepository {
439
433
  } | null;
440
434
  TvlRecords: ({
441
435
  TvlBreakdown: {
442
- id: number;
436
+ id: string;
443
437
  type: import("@db/api").$Enums.TvlType;
444
- uuid: string;
445
438
  identifier: string;
446
439
  value: number;
447
440
  tvlRecordId: string;
@@ -454,9 +447,8 @@ export declare abstract class OpportunityRepository {
454
447
  })[];
455
448
  AprRecords: ({
456
449
  AprBreakdown: {
457
- id: number;
450
+ id: string;
458
451
  type: import("@db/api").$Enums.AprType;
459
- uuid: string;
460
452
  identifier: string;
461
453
  value: number;
462
454
  aprRecordId: string;
@@ -498,8 +490,7 @@ export declare abstract class OpportunityRepository {
498
490
  }[];
499
491
  };
500
492
  } & {
501
- id: number;
502
- uuid: string;
493
+ id: string;
503
494
  value: number;
504
495
  campaignId: string;
505
496
  dailyRewardsRecordId: string;
@@ -589,9 +580,8 @@ export declare abstract class OpportunityRepository {
589
580
  } | null;
590
581
  TvlRecords: ({
591
582
  TvlBreakdown: {
592
- id: number;
583
+ id: string;
593
584
  type: import("@db/api").$Enums.TvlType;
594
- uuid: string;
595
585
  identifier: string;
596
586
  value: number;
597
587
  tvlRecordId: string;
@@ -604,9 +594,8 @@ export declare abstract class OpportunityRepository {
604
594
  })[];
605
595
  AprRecords: ({
606
596
  AprBreakdown: {
607
- id: number;
597
+ id: string;
608
598
  type: import("@db/api").$Enums.AprType;
609
- uuid: string;
610
599
  identifier: string;
611
600
  value: number;
612
601
  aprRecordId: string;
@@ -648,8 +637,7 @@ export declare abstract class OpportunityRepository {
648
637
  }[];
649
638
  };
650
639
  } & {
651
- id: number;
652
- uuid: string;
640
+ id: string;
653
641
  value: number;
654
642
  campaignId: string;
655
643
  dailyRewardsRecordId: string;
@@ -790,9 +778,8 @@ export declare abstract class OpportunityRepository {
790
778
  } | null;
791
779
  TvlRecords: ({
792
780
  TvlBreakdown: {
793
- id: number;
781
+ id: string;
794
782
  type: import("@db/api").$Enums.TvlType;
795
- uuid: string;
796
783
  identifier: string;
797
784
  value: number;
798
785
  tvlRecordId: string;
@@ -805,9 +792,8 @@ export declare abstract class OpportunityRepository {
805
792
  })[];
806
793
  AprRecords: ({
807
794
  AprBreakdown: {
808
- id: number;
795
+ id: string;
809
796
  type: import("@db/api").$Enums.AprType;
810
- uuid: string;
811
797
  identifier: string;
812
798
  value: number;
813
799
  aprRecordId: string;
@@ -849,8 +835,7 @@ export declare abstract class OpportunityRepository {
849
835
  }[];
850
836
  };
851
837
  } & {
852
- id: number;
853
- uuid: string;
838
+ id: string;
854
839
  value: number;
855
840
  campaignId: string;
856
841
  dailyRewardsRecordId: string;
@@ -897,9 +882,8 @@ export declare abstract class OpportunityRepository {
897
882
  };
898
883
  tvlRecord: {
899
884
  TvlBreakdown: {
900
- id: number;
885
+ id: string;
901
886
  type: import("@db/api").$Enums.TvlType;
902
- uuid: string;
903
887
  identifier: string;
904
888
  value: number;
905
889
  tvlRecordId: string;
@@ -912,8 +896,7 @@ export declare abstract class OpportunityRepository {
912
896
  };
913
897
  dailyRewardsRecord: {
914
898
  DailyRewardsBreakdown: {
915
- id: number;
916
- uuid: string;
899
+ id: string;
917
900
  value: number;
918
901
  campaignId: string;
919
902
  dailyRewardsRecordId: string;
@@ -129,7 +129,7 @@ export declare abstract class OpportunityService {
129
129
  timestamp: string | bigint;
130
130
  cumulated: number;
131
131
  breakdowns: {
132
- id: number;
132
+ id: string;
133
133
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
134
134
  identifier: string;
135
135
  value: number;
@@ -140,7 +140,7 @@ export declare abstract class OpportunityService {
140
140
  total: number;
141
141
  timestamp: string | bigint;
142
142
  breakdowns: {
143
- id: number;
143
+ id: string;
144
144
  type: "TOKEN" | "PROTOCOL";
145
145
  identifier: string;
146
146
  value: number;
@@ -152,7 +152,7 @@ export declare abstract class OpportunityService {
152
152
  total: number;
153
153
  timestamp: string | bigint;
154
154
  breakdowns: {
155
- id: number;
155
+ id: string;
156
156
  token: {
157
157
  price?: number | null | undefined;
158
158
  symbol: string;
@@ -266,7 +266,7 @@ export declare abstract class OpportunityService {
266
266
  timestamp: string | bigint;
267
267
  cumulated: number;
268
268
  breakdowns: {
269
- id: number;
269
+ id: string;
270
270
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
271
271
  identifier: string;
272
272
  value: number;
@@ -277,7 +277,7 @@ export declare abstract class OpportunityService {
277
277
  total: number;
278
278
  timestamp: string | bigint;
279
279
  breakdowns: {
280
- id: number;
280
+ id: string;
281
281
  type: "TOKEN" | "PROTOCOL";
282
282
  identifier: string;
283
283
  value: number;
@@ -289,7 +289,7 @@ export declare abstract class OpportunityService {
289
289
  total: number;
290
290
  timestamp: string | bigint;
291
291
  breakdowns: {
292
- id: number;
292
+ id: string;
293
293
  token: {
294
294
  price?: number | null | undefined;
295
295
  symbol: string;
@@ -400,9 +400,8 @@ export declare abstract class OpportunityService {
400
400
  cumulated: number;
401
401
  timestamp: bigint;
402
402
  breakdowns: {
403
- id: number;
403
+ id: string;
404
404
  type: import("@db/api").$Enums.AprType;
405
- uuid: string;
406
405
  identifier: string;
407
406
  value: number;
408
407
  aprRecordId: string;
@@ -413,9 +412,8 @@ export declare abstract class OpportunityService {
413
412
  total: number;
414
413
  timestamp: bigint;
415
414
  breakdowns: {
416
- id: number;
415
+ id: string;
417
416
  type: import("@db/api").$Enums.TvlType;
418
- uuid: string;
419
417
  identifier: string;
420
418
  value: number;
421
419
  tvlRecordId: string;
@@ -426,8 +424,7 @@ export declare abstract class OpportunityService {
426
424
  total: number;
427
425
  timestamp: bigint;
428
426
  breakdowns: {
429
- id: number;
430
- uuid: string;
427
+ id: string;
431
428
  value: number;
432
429
  campaignId: string;
433
430
  dailyRewardsRecordId: string;
@@ -573,9 +570,8 @@ export declare abstract class OpportunityService {
573
570
  cumulated: number;
574
571
  timestamp: bigint;
575
572
  breakdowns: {
576
- id: number;
573
+ id: string;
577
574
  type: import("@db/api").$Enums.AprType;
578
- uuid: string;
579
575
  identifier: string;
580
576
  value: number;
581
577
  aprRecordId: string;
@@ -586,9 +582,8 @@ export declare abstract class OpportunityService {
586
582
  total: number;
587
583
  timestamp: bigint;
588
584
  breakdowns: {
589
- id: number;
585
+ id: string;
590
586
  type: import("@db/api").$Enums.TvlType;
591
- uuid: string;
592
587
  identifier: string;
593
588
  value: number;
594
589
  tvlRecordId: string;
@@ -599,8 +594,7 @@ export declare abstract class OpportunityService {
599
594
  total: number;
600
595
  timestamp: bigint;
601
596
  breakdowns: {
602
- id: number;
603
- uuid: string;
597
+ id: string;
604
598
  value: number;
605
599
  campaignId: string;
606
600
  dailyRewardsRecordId: string;
@@ -742,9 +736,8 @@ export declare abstract class OpportunityService {
742
736
  cumulated: number;
743
737
  timestamp: bigint;
744
738
  breakdowns: {
745
- id: number;
739
+ id: string;
746
740
  type: import("@db/api").$Enums.AprType;
747
- uuid: string;
748
741
  identifier: string;
749
742
  value: number;
750
743
  aprRecordId: string;
@@ -755,9 +748,8 @@ export declare abstract class OpportunityService {
755
748
  total: number;
756
749
  timestamp: bigint;
757
750
  breakdowns: {
758
- id: number;
751
+ id: string;
759
752
  type: import("@db/api").$Enums.TvlType;
760
- uuid: string;
761
753
  identifier: string;
762
754
  value: number;
763
755
  tvlRecordId: string;
@@ -768,8 +760,7 @@ export declare abstract class OpportunityService {
768
760
  total: number;
769
761
  timestamp: bigint;
770
762
  breakdowns: {
771
- id: number;
772
- uuid: string;
763
+ id: string;
773
764
  value: number;
774
765
  campaignId: string;
775
766
  dailyRewardsRecordId: string;
@@ -96,6 +96,10 @@ const blacklistEtherlink = [
96
96
  "0x9D0E0e95305872E0f8065093b66E5FA224B5826f",
97
97
  "0xa0E147eA78D8d696D73bbd43dE353b3ab076B3a0",
98
98
  "0x196A8F57ff3AfB509f0014EDBa108A0BFeF0a84a",
99
+ "0x8F6dcd0db53029d1116E86DA6d38Bf047f504e08",
100
+ "0x1CC9F701399f586568F2B0498b137c561B288F6B",
101
+ "0xB387D0A73619791420De4a1e5e710023Cb0f49c0",
102
+ "0xA0fc58e4EE3a3E183dfa492147C97e81D42f5C86",
99
103
  ];
100
104
  export var swapxCampaigns;
101
105
  (function (swapxCampaigns) {
@@ -17,7 +17,7 @@ export type Reward = Resource<"Reward", "rewardTokenId" | "id", {
17
17
  * @description Describes one reward amount for one token and campaign
18
18
  * @see {@link Resource}
19
19
  */
20
- export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId" | "uuid">;
20
+ export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId">;
21
21
  /**
22
22
  * Daily Rewards
23
23
  * @description Describes rewards breakdown from the opportunity view
@@ -31,12 +31,12 @@ export type DailyRewardsRecord = Resource<"DailyRewardsRecord", "opportunityId"
31
31
  * @description Describes one rewards value of a campaign
32
32
  * @see {@link Resource}
33
33
  */
34
- export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "dailyRewardsRecordId" | "uuid", {
34
+ export type DailyRewardsBreakdown = Resource<"DailyRewardsBreakdown", "id" | "dailyRewardsRecordId", {
35
35
  token: Token["model"];
36
36
  amount: bigint;
37
37
  }>;
38
38
  export declare const DailyRewardsBreakdownRecordResourceDto: import("@sinclair/typebox").TObject<{
39
- id: import("@sinclair/typebox").TNumber;
39
+ id: import("@sinclair/typebox").TString;
40
40
  campaignId: import("@sinclair/typebox").TString;
41
41
  value: import("@sinclair/typebox").TNumber;
42
42
  dailyRewardsRecordId: import("@sinclair/typebox").TString;
@@ -59,7 +59,7 @@ export declare const DailyRewardsRecordResourceDto: import("@sinclair/typebox").
59
59
  total: import("@sinclair/typebox").TNumber;
60
60
  timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>;
61
61
  breakdowns: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
62
- id: import("@sinclair/typebox").TNumber;
62
+ id: import("@sinclair/typebox").TString;
63
63
  campaignId: import("@sinclair/typebox").TString;
64
64
  value: import("@sinclair/typebox").TNumber;
65
65
  dailyRewardsRecordId: import("@sinclair/typebox").TString;
@@ -2,7 +2,7 @@ import { t } from "elysia";
2
2
  import { TokenResourceDto } from "../token/token.model";
3
3
  // ─── DTOs ────────────────────────────────────────────────────────────────────
4
4
  export const DailyRewardsBreakdownRecordResourceDto = t.Object({
5
- id: t.Number(),
5
+ id: t.String(),
6
6
  campaignId: t.String(),
7
7
  value: t.Number(),
8
8
  dailyRewardsRecordId: t.String(),
@@ -78,9 +78,8 @@ export declare abstract class RewardRepository {
78
78
  };
79
79
  } & {
80
80
  pending: string;
81
- id: number;
81
+ id: string;
82
82
  reason: string;
83
- uuid: string;
84
83
  campaignId: string;
85
84
  amount: string;
86
85
  claimed: string;
@@ -104,9 +103,8 @@ export declare abstract class RewardRepository {
104
103
  };
105
104
  } & {
106
105
  pending: string;
107
- id: number;
106
+ id: string;
108
107
  reason: string;
109
- uuid: string;
110
108
  campaignId: string;
111
109
  amount: string;
112
110
  claimed: string;
@@ -15,9 +15,8 @@ export declare abstract class RewardService {
15
15
  cumulated: number;
16
16
  timestamp: bigint;
17
17
  breakdowns: {
18
- id: number;
18
+ id: string;
19
19
  type: import("@db/api").$Enums.AprType;
20
- uuid: string;
21
20
  identifier: string;
22
21
  value: number;
23
22
  aprRecordId: string;
@@ -28,9 +27,8 @@ export declare abstract class RewardService {
28
27
  total: number;
29
28
  timestamp: bigint;
30
29
  breakdowns: {
31
- id: number;
30
+ id: string;
32
31
  type: import("@db/api").$Enums.TvlType;
33
- uuid: string;
34
32
  identifier: string;
35
33
  value: number;
36
34
  tvlRecordId: string;
@@ -41,8 +39,7 @@ export declare abstract class RewardService {
41
39
  total: number;
42
40
  timestamp: bigint;
43
41
  breakdowns: {
44
- id: number;
45
- uuid: string;
42
+ id: string;
46
43
  value: number;
47
44
  campaignId: string;
48
45
  dailyRewardsRecordId: string;
@@ -408,9 +405,8 @@ export declare abstract class RewardService {
408
405
  };
409
406
  } & {
410
407
  pending: string;
411
- id: number;
408
+ id: string;
412
409
  reason: string;
413
- uuid: string;
414
410
  campaignId: string;
415
411
  amount: string;
416
412
  claimed: string;
@@ -713,9 +709,8 @@ export declare abstract class RewardService {
713
709
  };
714
710
  } & {
715
711
  pending: string;
716
- id: number;
712
+ id: string;
717
713
  reason: string;
718
- uuid: string;
719
714
  campaignId: string;
720
715
  amount: string;
721
716
  claimed: string;
@@ -79,7 +79,7 @@ export class RewardService {
79
79
  * @returns a RewardBreakdown model
80
80
  */
81
81
  static formatBreakdown(breakdown) {
82
- const { Campaign, id, uuid, rewardId, protocolId, ...rest } = breakdown;
82
+ const { Campaign, id, rewardId, protocolId, ...rest } = breakdown;
83
83
  return {
84
84
  ...rest,
85
85
  campaignId: Campaign.campaignId,