@merkl/api 0.10.391 → 0.10.393

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 (147) hide show
  1. package/dist/database/api/.generated/edge.js +9 -7
  2. package/dist/database/api/.generated/index-browser.js +4 -4
  3. package/dist/database/api/.generated/index.d.ts +3687 -491
  4. package/dist/database/api/.generated/index.js +9 -7
  5. package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
  10. package/dist/database/api/.generated/runtime/edge.js +18 -18
  11. package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
  12. package/dist/database/api/.generated/runtime/library.d.ts +107 -38
  13. package/dist/database/api/.generated/runtime/library.js +53 -53
  14. package/dist/database/api/.generated/runtime/react-native.js +26 -26
  15. package/dist/database/api/.generated/runtime/wasm.js +19 -19
  16. package/dist/database/api/.generated/wasm.js +4 -4
  17. package/dist/database/engine/.generated/edge.js +9 -7
  18. package/dist/database/engine/.generated/index-browser.js +4 -4
  19. package/dist/database/engine/.generated/index.d.ts +1891 -257
  20. package/dist/database/engine/.generated/index.js +9 -7
  21. package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  22. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  23. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  24. package/dist/database/engine/.generated/package.json +1 -1
  25. package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
  26. package/dist/database/engine/.generated/runtime/edge.js +18 -18
  27. package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
  28. package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
  29. package/dist/database/engine/.generated/runtime/library.js +53 -53
  30. package/dist/database/engine/.generated/runtime/react-native.js +26 -26
  31. package/dist/database/engine/.generated/runtime/wasm.js +19 -19
  32. package/dist/database/engine/.generated/wasm.js +4 -4
  33. package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
  34. package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
  35. package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
  36. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
  37. package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
  38. package/dist/src/eden/index.d.ts +4021 -117
  39. package/dist/src/entities/opportunity.js +1 -1
  40. package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
  41. package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
  42. package/dist/src/index.d.ts +1343 -49
  43. package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
  44. package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
  45. package/dist/src/jobs/etl/pendings.js +38 -38
  46. package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
  47. package/dist/src/jobs/etl/rewards.js +37 -35
  48. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
  49. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  50. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
  51. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  52. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
  53. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
  54. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
  55. package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
  56. package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
  57. package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
  58. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
  59. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
  60. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  61. package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
  62. package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
  63. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
  64. package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
  65. package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
  66. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
  67. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  68. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
  69. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
  70. package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
  71. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
  72. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
  73. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
  74. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
  75. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
  76. package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
  77. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
  78. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
  79. package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
  80. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
  81. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
  82. package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
  83. package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
  84. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
  85. package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
  86. package/dist/src/modules/v4/router.d.ts +973 -36
  87. package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
  88. package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
  89. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
  90. package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
  91. package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
  92. package/dist/src/plugins/logger.plugin.d.ts +3 -2
  93. package/dist/src/routes/v1/allowances.d.ts +12 -2
  94. package/dist/src/routes/v1/balances.d.ts +12 -2
  95. package/dist/src/routes/v1/prices.d.ts +12 -2
  96. package/dist/src/routes/v1/router.d.ts +39 -2
  97. package/dist/src/routes/v1/tokens.d.ts +12 -2
  98. package/dist/src/routes/v2/merkl.d.ts +12 -2
  99. package/dist/src/routes/v2/router.d.ts +12 -2
  100. package/dist/src/routes/v3/app.d.ts +12 -2
  101. package/dist/src/routes/v3/blacklist.d.ts +12 -2
  102. package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
  103. package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
  104. package/dist/src/routes/v3/campaignReport.d.ts +12 -2
  105. package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
  106. package/dist/src/routes/v3/campaigns.d.ts +12 -2
  107. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
  108. package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
  109. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
  110. package/dist/src/routes/v3/claims.d.ts +12 -2
  111. package/dist/src/routes/v3/compoundV2.d.ts +12 -2
  112. package/dist/src/routes/v3/createCampaign.d.ts +12 -2
  113. package/dist/src/routes/v3/dolomite.d.ts +12 -2
  114. package/dist/src/routes/v3/euler.d.ts +12 -2
  115. package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
  116. package/dist/src/routes/v3/fetch.d.ts +12 -2
  117. package/dist/src/routes/v3/health.d.ts +12 -2
  118. package/dist/src/routes/v3/lostyield.d.ts +12 -2
  119. package/dist/src/routes/v3/merkl.d.ts +3 -2
  120. package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
  121. package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
  122. package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
  123. package/dist/src/routes/v3/opportunity.d.ts +12 -2
  124. package/dist/src/routes/v3/overview.d.ts +12 -2
  125. package/dist/src/routes/v3/parse.d.ts +12 -2
  126. package/dist/src/routes/v3/payload.d.ts +12 -2
  127. package/dist/src/routes/v3/poolInfo.d.ts +12 -2
  128. package/dist/src/routes/v3/positions.d.ts +12 -2
  129. package/dist/src/routes/v3/radiant.d.ts +12 -2
  130. package/dist/src/routes/v3/recipients.d.ts +12 -2
  131. package/dist/src/routes/v3/rewards.d.ts +12 -2
  132. package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
  133. package/dist/src/routes/v3/router.d.ts +328 -3
  134. package/dist/src/routes/v3/silo.d.ts +12 -2
  135. package/dist/src/routes/v3/token.d.ts +12 -2
  136. package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
  137. package/dist/src/routes/v3/twt/participants.d.ts +12 -2
  138. package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
  139. package/dist/src/routes/v3/updates.d.ts +12 -2
  140. package/dist/src/routes/v3/userRewards.d.ts +12 -2
  141. package/dist/src/utils/decodeCalls.js +12 -3
  142. package/dist/src/utils/encodeCalls.js +20 -7
  143. package/dist/src/utils/error.d.ts +3 -2
  144. package/dist/src/utils/generateCardName.js +4 -0
  145. package/dist/src/utils/logger.d.ts +29 -5
  146. package/dist/tsconfig.package.tsbuildinfo +1 -1
  147. package/package.json +24 -24
@@ -1,16 +1,17 @@
1
1
  import Elysia from "elysia";
2
- export declare const OpportunityController: Elysia<"/opportunities", false, {
2
+ export declare const OpportunityController: Elysia<"/opportunities", {
3
3
  decorator: {};
4
4
  store: {};
5
5
  derive: {};
6
6
  resolve: {};
7
7
  }, {
8
- type: {};
8
+ typebox: import("@sinclair/typebox").TModule<{}>;
9
9
  error: {};
10
10
  }, {
11
11
  schema: {};
12
12
  macro: {};
13
13
  macroFn: {};
14
+ parser: {};
14
15
  }, {
15
16
  opportunities: {
16
17
  index: {
@@ -38,8 +39,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
38
39
  };
39
40
  response: {
40
41
  200: {
41
- name: string;
42
42
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
43
+ name: string;
43
44
  id: string;
44
45
  status: import("../../../../database/api/.generated").$Enums.Status;
45
46
  tags: string[];
@@ -52,6 +53,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
52
53
  apr: number;
53
54
  dailyRewards: number;
54
55
  } | null;
56
+ 422: {
57
+ type: "validation";
58
+ on: string;
59
+ summary?: string;
60
+ message?: string;
61
+ found?: unknown;
62
+ property?: string;
63
+ expected?: string;
64
+ };
55
65
  };
56
66
  };
57
67
  };
@@ -95,6 +105,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
95
105
  depositUrl: any;
96
106
  tags: string[];
97
107
  };
108
+ 422: {
109
+ type: "validation";
110
+ on: string;
111
+ summary?: string;
112
+ message?: string;
113
+ found?: unknown;
114
+ property?: string;
115
+ expected?: string;
116
+ };
98
117
  };
99
118
  };
100
119
  };
@@ -107,10 +126,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
107
126
  params: {};
108
127
  query: {
109
128
  sort?: string | undefined;
129
+ items?: number | undefined;
110
130
  name?: string | undefined;
111
131
  tokens?: string | undefined;
112
132
  status?: string | undefined;
113
- items?: number | undefined;
114
133
  tags?: string | undefined;
115
134
  page?: number | undefined;
116
135
  chainId?: string | undefined;
@@ -194,15 +213,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
194
213
  icon: string;
195
214
  };
196
215
  protocol: {
216
+ description: string;
197
217
  name: string;
198
218
  url: string;
199
- description: string;
200
219
  id: string;
201
220
  tags: string[];
202
221
  icon: string;
203
222
  } | undefined;
204
- name: string;
205
223
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
224
+ name: string;
206
225
  status: import("../../../../database/api/.generated").$Enums.Status;
207
226
  tags: string[];
208
227
  identifier: string;
@@ -211,6 +230,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
211
230
  tvl: number;
212
231
  dailyRewards: number;
213
232
  }[];
233
+ 422: {
234
+ type: "validation";
235
+ on: string;
236
+ summary?: string;
237
+ message?: string;
238
+ found?: unknown;
239
+ property?: string;
240
+ expected?: string;
241
+ };
214
242
  };
215
243
  };
216
244
  };
@@ -223,10 +251,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
223
251
  params: {};
224
252
  query: {
225
253
  sort?: string | undefined;
254
+ items?: number | undefined;
226
255
  name?: string | undefined;
227
256
  tokens?: string | undefined;
228
257
  status?: string | undefined;
229
- items?: number | undefined;
230
258
  tags?: string | undefined;
231
259
  page?: number | undefined;
232
260
  chainId?: string | undefined;
@@ -240,6 +268,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
240
268
  headers: unknown;
241
269
  response: {
242
270
  200: number;
271
+ 422: {
272
+ type: "validation";
273
+ on: string;
274
+ summary?: string;
275
+ message?: string;
276
+ found?: unknown;
277
+ property?: string;
278
+ expected?: string;
279
+ };
243
280
  };
244
281
  };
245
282
  };
@@ -259,9 +296,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
259
296
  response: {
260
297
  200: {
261
298
  protocol?: {
299
+ description: string;
262
300
  name: string;
263
301
  url: string;
264
- description: string;
265
302
  id: string;
266
303
  tags: string[];
267
304
  icon: string;
@@ -313,8 +350,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
313
350
  dailyRewardsRecordId: string;
314
351
  }[];
315
352
  } | undefined;
316
- name: string;
317
353
  type: string;
354
+ name: string;
318
355
  tokens: {
319
356
  price?: number | null | undefined;
320
357
  symbol: string;
@@ -351,6 +388,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
351
388
  info: string;
352
389
  httpCode: number;
353
390
  };
391
+ 422: {
392
+ type: "validation";
393
+ on: string;
394
+ summary?: string;
395
+ message?: string;
396
+ found?: unknown;
397
+ property?: string;
398
+ expected?: string;
399
+ };
354
400
  };
355
401
  };
356
402
  };
@@ -383,9 +429,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
383
429
  response: {
384
430
  200: ({
385
431
  protocol?: {
432
+ description: string;
386
433
  name: string;
387
434
  url: string;
388
- description: string;
389
435
  id: string;
390
436
  tags: string[];
391
437
  icon: string;
@@ -437,8 +483,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
437
483
  dailyRewardsRecordId: string;
438
484
  }[];
439
485
  } | undefined;
440
- name: string;
441
486
  type: string;
487
+ name: string;
442
488
  tokens: {
443
489
  price?: number | null | undefined;
444
490
  symbol: string;
@@ -522,6 +568,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
522
568
  info: string;
523
569
  httpCode: number;
524
570
  };
571
+ 422: {
572
+ type: "validation";
573
+ on: string;
574
+ summary?: string;
575
+ message?: string;
576
+ found?: unknown;
577
+ property?: string;
578
+ expected?: string;
579
+ };
525
580
  };
526
581
  };
527
582
  };
@@ -542,9 +597,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
542
597
  response: {
543
598
  200: {
544
599
  protocol?: {
600
+ description: string;
545
601
  name: string;
546
602
  url: string;
547
- description: string;
548
603
  id: string;
549
604
  tags: string[];
550
605
  icon: string;
@@ -596,8 +651,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
596
651
  dailyRewardsRecordId: string;
597
652
  }[];
598
653
  } | undefined;
599
- name: string;
600
654
  type: string;
655
+ name: string;
601
656
  tokens: {
602
657
  price?: number | null | undefined;
603
658
  symbol: string;
@@ -638,9 +693,9 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
638
693
  id: number;
639
694
  icon: string;
640
695
  } | undefined;
696
+ params: any;
641
697
  type: string;
642
698
  id: string;
643
- params: any;
644
699
  subType: number | null;
645
700
  chain: {
646
701
  name: string;
@@ -679,6 +734,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
679
734
  info: string;
680
735
  httpCode: number;
681
736
  };
737
+ 422: {
738
+ type: "validation";
739
+ on: string;
740
+ summary?: string;
741
+ message?: string;
742
+ found?: unknown;
743
+ property?: string;
744
+ expected?: string;
745
+ };
682
746
  };
683
747
  };
684
748
  };
@@ -695,10 +759,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
695
759
  };
696
760
  query: {
697
761
  sort?: string | undefined;
762
+ items?: number | undefined;
698
763
  name?: string | undefined;
699
764
  tokens?: string | undefined;
700
765
  status?: string | undefined;
701
- items?: number | undefined;
702
766
  tags?: string | undefined;
703
767
  page?: number | undefined;
704
768
  chainId?: string | undefined;
@@ -714,6 +778,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
714
778
  200: {
715
779
  sum: string;
716
780
  };
781
+ 422: {
782
+ type: "validation";
783
+ on: string;
784
+ summary?: string;
785
+ message?: string;
786
+ found?: unknown;
787
+ property?: string;
788
+ expected?: string;
789
+ };
717
790
  };
718
791
  };
719
792
  };
@@ -731,10 +804,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
731
804
  };
732
805
  query: {
733
806
  sort?: string | undefined;
807
+ items?: number | undefined;
734
808
  name?: string | undefined;
735
809
  tokens?: string | undefined;
736
810
  status?: string | undefined;
737
- items?: number | undefined;
738
811
  tags?: string | undefined;
739
812
  page?: number | undefined;
740
813
  chainId?: string | undefined;
@@ -750,6 +823,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
750
823
  200: {
751
824
  max: string;
752
825
  };
826
+ 422: {
827
+ type: "validation";
828
+ on: string;
829
+ summary?: string;
830
+ message?: string;
831
+ found?: unknown;
832
+ property?: string;
833
+ expected?: string;
834
+ };
753
835
  };
754
836
  };
755
837
  };
@@ -768,10 +850,10 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
768
850
  };
769
851
  query: {
770
852
  sort?: string | undefined;
853
+ items?: number | undefined;
771
854
  name?: string | undefined;
772
855
  tokens?: string | undefined;
773
856
  status?: string | undefined;
774
- items?: number | undefined;
775
857
  tags?: string | undefined;
776
858
  page?: number | undefined;
777
859
  chainId?: string | undefined;
@@ -787,6 +869,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
787
869
  200: {
788
870
  min: string;
789
871
  };
872
+ 422: {
873
+ type: "validation";
874
+ on: string;
875
+ summary?: string;
876
+ message?: string;
877
+ found?: unknown;
878
+ property?: string;
879
+ expected?: string;
880
+ };
790
881
  };
791
882
  };
792
883
  };
@@ -810,8 +901,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
810
901
  };
811
902
  response: {
812
903
  200: {
813
- name: string;
814
904
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
905
+ name: string;
815
906
  id: string;
816
907
  status: import("../../../../database/api/.generated").$Enums.Status;
817
908
  tags: string[];
@@ -824,6 +915,15 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
824
915
  apr: number;
825
916
  dailyRewards: number;
826
917
  };
918
+ 422: {
919
+ type: "validation";
920
+ on: string;
921
+ summary?: string;
922
+ message?: string;
923
+ found?: unknown;
924
+ property?: string;
925
+ expected?: string;
926
+ };
827
927
  };
828
928
  };
829
929
  };
@@ -133,6 +133,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
133
133
  }>, import("@sinclair/typebox").TNull]>>;
134
134
  }>;
135
135
  export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/typebox").TObject<{
136
+ type: import("@sinclair/typebox").TString;
136
137
  protocol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
137
138
  id: import("@sinclair/typebox").TString;
138
139
  name: import("@sinclair/typebox").TString;
@@ -142,7 +143,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
142
143
  url: import("@sinclair/typebox").TString;
143
144
  }>, import("@sinclair/typebox").TNull]>>;
144
145
  name: import("@sinclair/typebox").TString;
145
- type: import("@sinclair/typebox").TString;
146
146
  tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
147
147
  id: import("@sinclair/typebox").TString;
148
148
  name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
@@ -8,8 +8,8 @@ import type { CreateOpportunityModel, GetOpportunitiesQueryModel, UpdateOpportun
8
8
  export declare abstract class OpportunityRepository {
9
9
  #private;
10
10
  static create(newOpp: CreateOpportunityModel, upsert?: boolean): Promise<{
11
- name: string;
12
11
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
12
+ name: string;
13
13
  id: string;
14
14
  status: import("../../../../database/api/.generated").$Enums.Status;
15
15
  tags: string[];
@@ -43,9 +43,9 @@ export declare abstract class OpportunityRepository {
43
43
  price: number | null;
44
44
  };
45
45
  } & {
46
+ params: Prisma.JsonValue;
46
47
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
47
48
  id: string;
48
- params: Prisma.JsonValue;
49
49
  subType: number | null;
50
50
  startTimestamp: bigint;
51
51
  endTimestamp: bigint;
@@ -71,17 +71,17 @@ export declare abstract class OpportunityRepository {
71
71
  price: number | null;
72
72
  }[];
73
73
  Protocols: {
74
+ description: string;
74
75
  name: string;
75
76
  url: string;
76
- description: string;
77
77
  id: string;
78
78
  tags: string[];
79
79
  icon: string;
80
80
  }[];
81
81
  MainProtocol: {
82
+ description: string;
82
83
  name: string;
83
84
  url: string;
84
- description: string;
85
85
  id: string;
86
86
  tags: string[];
87
87
  icon: string;
@@ -155,8 +155,8 @@ export declare abstract class OpportunityRepository {
155
155
  opportunityId: string;
156
156
  })[];
157
157
  } & {
158
- name: string;
159
158
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
159
+ name: string;
160
160
  id: string;
161
161
  status: import("../../../../database/api/.generated").$Enums.Status;
162
162
  tags: string[];
@@ -189,17 +189,17 @@ export declare abstract class OpportunityRepository {
189
189
  price: number | null;
190
190
  }[];
191
191
  Protocols: {
192
+ description: string;
192
193
  name: string;
193
194
  url: string;
194
- description: string;
195
195
  id: string;
196
196
  tags: string[];
197
197
  icon: string;
198
198
  }[];
199
199
  MainProtocol: {
200
+ description: string;
200
201
  name: string;
201
202
  url: string;
202
- description: string;
203
203
  id: string;
204
204
  tags: string[];
205
205
  icon: string;
@@ -273,8 +273,8 @@ export declare abstract class OpportunityRepository {
273
273
  opportunityId: string;
274
274
  })[];
275
275
  } & {
276
- name: string;
277
276
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
277
+ name: string;
278
278
  id: string;
279
279
  status: import("../../../../database/api/.generated").$Enums.Status;
280
280
  tags: string[];
@@ -340,9 +340,9 @@ export declare abstract class OpportunityRepository {
340
340
  processingStarted: bigint;
341
341
  }[];
342
342
  } & {
343
+ params: Prisma.JsonValue;
343
344
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
344
345
  id: string;
345
- params: Prisma.JsonValue;
346
346
  subType: number | null;
347
347
  startTimestamp: bigint;
348
348
  endTimestamp: bigint;
@@ -368,17 +368,17 @@ export declare abstract class OpportunityRepository {
368
368
  price: number | null;
369
369
  }[];
370
370
  Protocols: {
371
+ description: string;
371
372
  name: string;
372
373
  url: string;
373
- description: string;
374
374
  id: string;
375
375
  tags: string[];
376
376
  icon: string;
377
377
  }[];
378
378
  MainProtocol: {
379
+ description: string;
379
380
  name: string;
380
381
  url: string;
381
- description: string;
382
382
  id: string;
383
383
  tags: string[];
384
384
  icon: string;
@@ -452,8 +452,8 @@ export declare abstract class OpportunityRepository {
452
452
  opportunityId: string;
453
453
  })[];
454
454
  } & {
455
- name: string;
456
455
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
456
+ name: string;
457
457
  id: string;
458
458
  status: import("../../../../database/api/.generated").$Enums.Status;
459
459
  tags: string[];
@@ -524,9 +524,9 @@ export declare abstract class OpportunityRepository {
524
524
  processingStarted: bigint;
525
525
  }[];
526
526
  } & {
527
+ params: Prisma.JsonValue;
527
528
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
528
529
  id: string;
529
- params: Prisma.JsonValue;
530
530
  subType: number | null;
531
531
  startTimestamp: bigint;
532
532
  endTimestamp: bigint;
@@ -552,17 +552,17 @@ export declare abstract class OpportunityRepository {
552
552
  price: number | null;
553
553
  }[];
554
554
  Protocols: {
555
+ description: string;
555
556
  name: string;
556
557
  url: string;
557
- description: string;
558
558
  id: string;
559
559
  tags: string[];
560
560
  icon: string;
561
561
  }[];
562
562
  MainProtocol: {
563
+ description: string;
563
564
  name: string;
564
565
  url: string;
565
- description: string;
566
566
  id: string;
567
567
  tags: string[];
568
568
  icon: string;
@@ -636,8 +636,8 @@ export declare abstract class OpportunityRepository {
636
636
  opportunityId: string;
637
637
  })[];
638
638
  } & {
639
- name: string;
640
639
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
640
+ name: string;
641
641
  id: string;
642
642
  status: import("../../../../database/api/.generated").$Enums.Status;
643
643
  tags: string[];
@@ -666,9 +666,9 @@ export declare abstract class OpportunityRepository {
666
666
  price: number | null;
667
667
  };
668
668
  } & {
669
+ params: Prisma.JsonValue;
669
670
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
670
671
  id: string;
671
- params: Prisma.JsonValue;
672
672
  subType: number | null;
673
673
  startTimestamp: bigint;
674
674
  endTimestamp: bigint;
@@ -681,8 +681,8 @@ export declare abstract class OpportunityRepository {
681
681
  creatorAddress: string;
682
682
  })[];
683
683
  } & {
684
- name: string;
685
684
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
685
+ name: string;
686
686
  id: string;
687
687
  status: import("../../../../database/api/.generated").$Enums.Status;
688
688
  tags: string[];
@@ -715,17 +715,17 @@ export declare abstract class OpportunityRepository {
715
715
  price: number | null;
716
716
  }[];
717
717
  Protocols: {
718
+ description: string;
718
719
  name: string;
719
720
  url: string;
720
- description: string;
721
721
  id: string;
722
722
  tags: string[];
723
723
  icon: string;
724
724
  }[];
725
725
  MainProtocol: {
726
+ description: string;
726
727
  name: string;
727
728
  url: string;
728
- description: string;
729
729
  id: string;
730
730
  tags: string[];
731
731
  icon: string;
@@ -799,8 +799,8 @@ export declare abstract class OpportunityRepository {
799
799
  opportunityId: string;
800
800
  })[];
801
801
  } & {
802
- name: string;
803
802
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
803
+ name: string;
804
804
  id: string;
805
805
  status: import("../../../../database/api/.generated").$Enums.Status;
806
806
  tags: string[];
@@ -852,9 +852,9 @@ export declare abstract class OpportunityRepository {
852
852
  processingStarted: bigint;
853
853
  }[];
854
854
  } & {
855
+ params: Prisma.JsonValue;
855
856
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
856
857
  id: string;
857
- params: Prisma.JsonValue;
858
858
  subType: number | null;
859
859
  startTimestamp: bigint;
860
860
  endTimestamp: bigint;
@@ -880,17 +880,17 @@ export declare abstract class OpportunityRepository {
880
880
  price: number | null;
881
881
  }[];
882
882
  Protocols: {
883
+ description: string;
883
884
  name: string;
884
885
  url: string;
885
- description: string;
886
886
  id: string;
887
887
  tags: string[];
888
888
  icon: string;
889
889
  }[];
890
890
  MainProtocol: {
891
+ description: string;
891
892
  name: string;
892
893
  url: string;
893
- description: string;
894
894
  id: string;
895
895
  tags: string[];
896
896
  icon: string;
@@ -964,8 +964,8 @@ export declare abstract class OpportunityRepository {
964
964
  opportunityId: string;
965
965
  })[];
966
966
  } & {
967
- name: string;
968
967
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
968
+ name: string;
969
969
  id: string;
970
970
  status: import("../../../../database/api/.generated").$Enums.Status;
971
971
  tags: string[];
@@ -1024,8 +1024,8 @@ export declare abstract class OpportunityRepository {
1024
1024
  opportunityId: string;
1025
1025
  };
1026
1026
  opportunity: {
1027
- name: string;
1028
1027
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
1028
+ name: string;
1029
1029
  id: string;
1030
1030
  status: import("../../../../database/api/.generated").$Enums.Status;
1031
1031
  tags: string[];
@@ -1040,8 +1040,8 @@ export declare abstract class OpportunityRepository {
1040
1040
  };
1041
1041
  }>;
1042
1042
  static updateStatus(id: string, status: Status): Promise<{
1043
- name: string;
1044
1043
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
1044
+ name: string;
1045
1045
  id: string;
1046
1046
  status: import("../../../../database/api/.generated").$Enums.Status;
1047
1047
  tags: string[];
@@ -1055,8 +1055,8 @@ export declare abstract class OpportunityRepository {
1055
1055
  dailyRewards: number;
1056
1056
  }>;
1057
1057
  static updateName(id: string, name: string): Promise<{
1058
- name: string;
1059
1058
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
1059
+ name: string;
1060
1060
  id: string;
1061
1061
  status: import("../../../../database/api/.generated").$Enums.Status;
1062
1062
  tags: string[];
@@ -1070,8 +1070,8 @@ export declare abstract class OpportunityRepository {
1070
1070
  dailyRewards: number;
1071
1071
  }>;
1072
1072
  static updateChainId(id: string, chainId: MerklChainId): Promise<{
1073
- name: string;
1074
1073
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
1074
+ name: string;
1075
1075
  id: string;
1076
1076
  status: import("../../../../database/api/.generated").$Enums.Status;
1077
1077
  tags: string[];
@@ -1094,8 +1094,8 @@ export declare abstract class OpportunityRepository {
1094
1094
  max: string;
1095
1095
  }>;
1096
1096
  static update(id: string, data: UpdateOpportunityModel): Promise<{
1097
- name: string;
1098
1097
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
1098
+ name: string;
1099
1099
  id: string;
1100
1100
  status: import("../../../../database/api/.generated").$Enums.Status;
1101
1101
  tags: string[];