@merkl/api 1.0.43 → 1.0.45

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 (25) hide show
  1. package/dist/src/eden/index.d.ts +2331 -2259
  2. package/dist/src/index.d.ts +794 -800
  3. package/dist/src/modules/v4/accounting/accounting.model.d.ts +2 -2
  4. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
  5. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +301 -313
  7. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
  8. package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
  9. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
  10. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
  11. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
  12. package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
  13. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
  14. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +733 -733
  15. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -167
  16. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +12 -3
  17. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +2 -2
  18. package/dist/src/modules/v4/router.d.ts +794 -800
  19. package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
  20. package/dist/src/modules/v4/token/token.model.d.ts +2 -2
  21. package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
  22. package/dist/src/modules/v4/token/token.service.d.ts +1 -1
  23. package/dist/src/utils/pagination.d.ts +11 -0
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
@@ -24,323 +24,37 @@ export declare const v4: Elysia<"/v4", {
24
24
  } & {
25
25
  v4: {
26
26
  opportunities: {
27
- get: {
28
- body: unknown;
29
- params: {};
30
- query: {
31
- sort?: string | undefined;
32
- name?: string | undefined;
33
- tokens?: string | undefined;
34
- campaignId?: string | undefined;
35
- status?: string | undefined;
36
- chainId?: string | undefined;
37
- campaigns?: boolean | undefined;
38
- items?: number | undefined;
39
- point?: boolean | undefined;
40
- order?: string | undefined;
41
- action?: string | undefined;
42
- type?: string | undefined;
43
- search?: string | undefined;
44
- creatorAddress?: string | undefined;
45
- mainProtocolId?: string | undefined;
46
- identifier?: string | undefined;
47
- tags?: string | undefined;
48
- page?: number | undefined;
49
- test?: boolean | undefined;
50
- excludeSubCampaigns?: boolean | undefined;
51
- minimumTvl?: number | undefined;
52
- maximumTvl?: number | undefined;
53
- minimumApr?: number | undefined;
54
- maximumApr?: number | undefined;
55
- rewardTokenSymbol?: string | undefined;
56
- };
57
- headers: unknown;
58
- response: {
59
- 200: ({
60
- protocol?: {
61
- dailyRewards?: number | undefined;
62
- numberOfLiveCampaigns?: number | undefined;
63
- opportunityLiveTags?: string[] | undefined;
64
- name: string;
65
- description: string;
66
- id: string;
67
- url: string;
68
- icon: string;
69
- tags: string[];
70
- } | null | undefined;
71
- depositUrl?: string | undefined;
72
- explorerAddress?: string | undefined;
73
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
74
- aprRecord?: {
75
- timestamp: string | bigint;
76
- cumulated: number;
77
- breakdowns: {
78
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
79
- value: number;
80
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
81
- identifier: string;
82
- }[];
83
- } | undefined;
84
- tvlRecord?: {
85
- timestamp: string | bigint;
86
- total: number;
87
- breakdowns: {
88
- value: number;
89
- type: "TOKEN" | "PROTOCOL";
90
- identifier: string;
91
- }[];
92
- } | undefined;
93
- rewardsRecord?: {
94
- timestamp: string | bigint;
95
- total: number;
96
- breakdowns: {
97
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
98
- token: {
99
- price?: number | null | undefined;
100
- symbol: string;
101
- name: string | null;
102
- decimals: number;
103
- address: string;
104
- id: string;
105
- chainId: number;
106
- icon: string;
107
- isNative: boolean;
108
- isPoint: boolean;
109
- isPreTGE: boolean;
110
- isTest: boolean;
111
- verified: boolean;
112
- };
113
- campaignId: string;
114
- value: number;
115
- amount: string | bigint;
116
- }[];
117
- } | undefined;
118
- name: string;
119
- apr: number;
120
- tokens: {
121
- price?: number | null | undefined;
122
- symbol: string;
123
- name: string | null;
124
- decimals: number;
125
- address: string;
126
- id: string;
127
- chainId: number;
128
- icon: string;
129
- isNative: boolean;
130
- isPoint: boolean;
131
- isPreTGE: boolean;
132
- isTest: boolean;
133
- verified: boolean;
134
- }[];
135
- tvl: number;
136
- description: string;
137
- id: string;
138
- status: string;
139
- chainId: number;
140
- action: string;
141
- type: string;
142
- howToSteps: string[];
143
- identifier: string;
144
- dailyRewards: number;
145
- tags: string[];
146
- lastCampaignCreatedAt: string;
147
- chain: {
148
- explorers?: {
149
- chainId: number;
150
- type: "ETHERSCAN" | "BLOCKSCOUT";
151
- url: string;
152
- }[] | undefined;
153
- name: string;
154
- id: number;
155
- icon: string;
156
- };
157
- } | null)[];
158
- 422: {
159
- type: "validation";
160
- on: string;
161
- summary?: string;
162
- message?: string;
163
- found?: unknown;
164
- property?: string;
165
- expected?: string;
166
- };
167
- };
168
- };
169
- };
170
- } & {
171
- opportunities: {
172
- count: {
173
- get: {
174
- body: unknown;
175
- params: {};
176
- query: {
177
- sort?: string | undefined;
178
- name?: string | undefined;
179
- tokens?: string | undefined;
180
- campaignId?: string | undefined;
181
- status?: string | undefined;
182
- chainId?: string | undefined;
183
- campaigns?: boolean | undefined;
184
- items?: number | undefined;
185
- point?: boolean | undefined;
186
- order?: string | undefined;
187
- action?: string | undefined;
188
- type?: string | undefined;
189
- search?: string | undefined;
190
- creatorAddress?: string | undefined;
191
- mainProtocolId?: string | undefined;
192
- identifier?: string | undefined;
193
- tags?: string | undefined;
194
- page?: number | undefined;
195
- test?: boolean | undefined;
196
- excludeSubCampaigns?: boolean | undefined;
197
- minimumTvl?: number | undefined;
198
- maximumTvl?: number | undefined;
199
- minimumApr?: number | undefined;
200
- maximumApr?: number | undefined;
201
- rewardTokenSymbol?: string | undefined;
202
- };
203
- headers: unknown;
204
- response: {
205
- 200: number;
206
- 422: {
207
- type: "validation";
208
- on: string;
209
- summary?: string;
210
- message?: string;
211
- found?: unknown;
212
- property?: string;
213
- expected?: string;
214
- };
215
- };
216
- };
217
- };
218
- };
219
- } & {
220
- opportunities: {
221
- bins: {
222
- apr: {
223
- get: {
224
- body: unknown;
225
- params: {};
226
- query: {
227
- sort?: string | undefined;
228
- name?: string | undefined;
229
- tokens?: string | undefined;
230
- campaignId?: string | undefined;
231
- status?: string | undefined;
232
- chainId?: string | undefined;
233
- campaigns?: boolean | undefined;
234
- items?: number | undefined;
235
- point?: boolean | undefined;
236
- order?: string | undefined;
237
- action?: string | undefined;
238
- type?: string | undefined;
239
- search?: string | undefined;
240
- creatorAddress?: string | undefined;
241
- mainProtocolId?: string | undefined;
242
- identifier?: string | undefined;
243
- tags?: string | undefined;
244
- page?: number | undefined;
245
- test?: boolean | undefined;
246
- excludeSubCampaigns?: boolean | undefined;
247
- minimumTvl?: number | undefined;
248
- maximumTvl?: number | undefined;
249
- minimumApr?: number | undefined;
250
- maximumApr?: number | undefined;
251
- rewardTokenSymbol?: string | undefined;
252
- };
253
- headers: unknown;
254
- response: {
255
- 200: {
256
- min: number;
257
- max: number;
258
- overThreshold: number;
259
- binWidth: number;
260
- bins: any[];
261
- };
262
- 422: {
263
- type: "validation";
264
- on: string;
265
- summary?: string;
266
- message?: string;
267
- found?: unknown;
268
- property?: string;
269
- expected?: string;
270
- };
271
- };
272
- };
273
- };
274
- };
275
- };
276
- } & {
277
- opportunities: {
278
- bins: {
279
- tvl: {
280
- get: {
281
- body: unknown;
282
- params: {};
283
- query: {
284
- sort?: string | undefined;
285
- name?: string | undefined;
286
- tokens?: string | undefined;
287
- campaignId?: string | undefined;
288
- status?: string | undefined;
289
- chainId?: string | undefined;
290
- campaigns?: boolean | undefined;
291
- items?: number | undefined;
292
- point?: boolean | undefined;
293
- order?: string | undefined;
294
- action?: string | undefined;
295
- type?: string | undefined;
296
- search?: string | undefined;
297
- creatorAddress?: string | undefined;
298
- mainProtocolId?: string | undefined;
299
- identifier?: string | undefined;
300
- tags?: string | undefined;
301
- page?: number | undefined;
302
- test?: boolean | undefined;
303
- excludeSubCampaigns?: boolean | undefined;
304
- minimumTvl?: number | undefined;
305
- maximumTvl?: number | undefined;
306
- minimumApr?: number | undefined;
307
- maximumApr?: number | undefined;
308
- rewardTokenSymbol?: string | undefined;
309
- };
310
- headers: unknown;
311
- response: {
312
- 200: {
313
- min: number;
314
- max: number;
315
- binWidth: number;
316
- bins: any[];
317
- };
318
- 422: {
319
- type: "validation";
320
- on: string;
321
- summary?: string;
322
- message?: string;
323
- found?: unknown;
324
- property?: string;
325
- expected?: string;
326
- };
327
- };
328
- };
329
- };
330
- };
331
- };
332
- } & {
333
- opportunities: {
334
- ":id": {
27
+ campaigns: {
335
28
  get: {
336
29
  body: unknown;
337
- params: {
338
- id: string;
339
- };
30
+ params: {};
340
31
  query: {
341
- campaigns?: boolean | undefined;
32
+ campaignId?: string | undefined;
33
+ id?: string | undefined;
34
+ tokenAddress?: string | undefined;
35
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
36
+ chainId?: number | undefined;
37
+ startTimestamp?: string | undefined;
38
+ items?: number | undefined;
342
39
  point?: boolean | undefined;
40
+ tokenSymbol?: string | undefined;
41
+ type?: string | undefined;
42
+ endTimestamp?: string | undefined;
43
+ opportunityId?: string | undefined;
44
+ creatorAddress?: string | undefined;
45
+ mainProtocolId?: string | undefined;
46
+ subType?: number | undefined;
47
+ rootCampaignId?: string | undefined;
48
+ parentCampaignId?: string | undefined;
49
+ creatorId?: string | undefined;
50
+ mainParameter?: string | undefined;
343
51
  test?: boolean | undefined;
52
+ page?: number | undefined;
53
+ creatorTag?: string | undefined;
54
+ distributionChainIds?: number[] | undefined;
55
+ types?: string[] | undefined;
56
+ withOpportunity?: boolean | undefined;
57
+ createdAfter?: Date | null | undefined;
344
58
  excludeSubCampaigns?: boolean | undefined;
345
59
  };
346
60
  headers: unknown;
@@ -426,6 +140,74 @@ export declare const v4: Elysia<"/v4", {
426
140
  id: string;
427
141
  status: string;
428
142
  chainId: number;
143
+ campaigns: {
144
+ description?: string | undefined;
145
+ creator?: {
146
+ tags?: string[] | undefined;
147
+ creatorId?: string | null | undefined;
148
+ address: string;
149
+ } | undefined;
150
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
151
+ rootCampaignId?: string | undefined;
152
+ parentCampaignId?: string | undefined;
153
+ campaignStatus?: {
154
+ error?: string | undefined;
155
+ details?: any;
156
+ campaignId: string;
157
+ status: string;
158
+ computedUntil: string | number;
159
+ processingStarted: string | number;
160
+ } | undefined;
161
+ distributionChain?: {
162
+ explorers?: {
163
+ chainId: number;
164
+ type: "ETHERSCAN" | "BLOCKSCOUT";
165
+ url: string;
166
+ }[] | undefined;
167
+ name: string;
168
+ id: number;
169
+ icon: string;
170
+ } | undefined;
171
+ rewardToken: {
172
+ price?: number | null | undefined;
173
+ symbol: string;
174
+ name: string | null;
175
+ decimals: number;
176
+ address: string;
177
+ id: string;
178
+ chainId: number;
179
+ icon: string;
180
+ isNative: boolean;
181
+ isPoint: boolean;
182
+ isPreTGE: boolean;
183
+ isTest: boolean;
184
+ verified: boolean;
185
+ };
186
+ campaignId: string;
187
+ id: string;
188
+ params: any;
189
+ amount: string;
190
+ startTimestamp: string | number;
191
+ type: string;
192
+ computeChainId: number;
193
+ distributionChainId: number;
194
+ endTimestamp: string | number;
195
+ opportunityId: string;
196
+ creatorAddress: string;
197
+ subType: number | null;
198
+ rewardTokenId: string;
199
+ createdAt: string;
200
+ chain: {
201
+ explorers?: {
202
+ chainId: number;
203
+ type: "ETHERSCAN" | "BLOCKSCOUT";
204
+ url: string;
205
+ }[] | undefined;
206
+ name: string;
207
+ id: number;
208
+ icon: string;
209
+ };
210
+ }[];
429
211
  action: string;
430
212
  type: string;
431
213
  howToSteps: string[];
@@ -443,7 +225,7 @@ export declare const v4: Elysia<"/v4", {
443
225
  id: number;
444
226
  icon: string;
445
227
  };
446
- };
228
+ }[];
447
229
  readonly 500: {
448
230
  info: string;
449
231
  code: string;
@@ -468,37 +250,16 @@ export declare const v4: Elysia<"/v4", {
468
250
  };
469
251
  } & {
470
252
  opportunities: {
471
- campaigns: {
253
+ ":id": {
472
254
  get: {
473
255
  body: unknown;
474
- params: {};
256
+ params: {
257
+ id: string;
258
+ };
475
259
  query: {
476
- campaignId?: string | undefined;
477
- id?: string | undefined;
478
- tokenAddress?: string | undefined;
479
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
480
- chainId?: number | undefined;
481
- startTimestamp?: string | undefined;
482
- items?: number | undefined;
260
+ campaigns?: boolean | undefined;
483
261
  point?: boolean | undefined;
484
- tokenSymbol?: string | undefined;
485
- type?: string | undefined;
486
- endTimestamp?: string | undefined;
487
- opportunityId?: string | undefined;
488
- creatorAddress?: string | undefined;
489
- mainProtocolId?: string | undefined;
490
- subType?: number | undefined;
491
- rootCampaignId?: string | undefined;
492
- parentCampaignId?: string | undefined;
493
- creatorId?: string | undefined;
494
- mainParameter?: string | undefined;
495
- page?: number | undefined;
496
262
  test?: boolean | undefined;
497
- creatorTag?: string | undefined;
498
- distributionChainIds?: number[] | undefined;
499
- types?: string[] | undefined;
500
- withOpportunity?: boolean | undefined;
501
- createdAfter?: Date | null | undefined;
502
263
  excludeSubCampaigns?: boolean | undefined;
503
264
  };
504
265
  headers: unknown;
@@ -540,118 +301,50 @@ export declare const v4: Elysia<"/v4", {
540
301
  rewardsRecord?: {
541
302
  timestamp: string | bigint;
542
303
  total: number;
543
- breakdowns: {
544
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
545
- token: {
546
- price?: number | null | undefined;
547
- symbol: string;
548
- name: string | null;
549
- decimals: number;
550
- address: string;
551
- id: string;
552
- chainId: number;
553
- icon: string;
554
- isNative: boolean;
555
- isPoint: boolean;
556
- isPreTGE: boolean;
557
- isTest: boolean;
558
- verified: boolean;
559
- };
560
- campaignId: string;
561
- value: number;
562
- amount: string | bigint;
563
- }[];
564
- } | undefined;
565
- name: string;
566
- apr: number;
567
- tokens: {
568
- price?: number | null | undefined;
569
- symbol: string;
570
- name: string | null;
571
- decimals: number;
572
- address: string;
573
- id: string;
574
- chainId: number;
575
- icon: string;
576
- isNative: boolean;
577
- isPoint: boolean;
578
- isPreTGE: boolean;
579
- isTest: boolean;
580
- verified: boolean;
581
- }[];
582
- tvl: number;
583
- description: string;
584
- id: string;
585
- status: string;
586
- chainId: number;
587
- campaigns: {
588
- description?: string | undefined;
589
- creator?: {
590
- tags?: string[] | undefined;
591
- creatorId?: string | null | undefined;
592
- address: string;
593
- } | undefined;
594
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
595
- rootCampaignId?: string | undefined;
596
- parentCampaignId?: string | undefined;
597
- campaignStatus?: {
598
- error?: string | undefined;
599
- details?: any;
600
- campaignId: string;
601
- status: string;
602
- computedUntil: string | number;
603
- processingStarted: string | number;
604
- } | undefined;
605
- distributionChain?: {
606
- explorers?: {
607
- chainId: number;
608
- type: "ETHERSCAN" | "BLOCKSCOUT";
609
- url: string;
610
- }[] | undefined;
611
- name: string;
612
- id: number;
613
- icon: string;
614
- } | undefined;
615
- rewardToken: {
616
- price?: number | null | undefined;
617
- symbol: string;
618
- name: string | null;
619
- decimals: number;
620
- address: string;
621
- id: string;
622
- chainId: number;
623
- icon: string;
624
- isNative: boolean;
625
- isPoint: boolean;
626
- isPreTGE: boolean;
627
- isTest: boolean;
628
- verified: boolean;
629
- };
630
- campaignId: string;
631
- id: string;
632
- params: any;
633
- amount: string;
634
- startTimestamp: string | number;
635
- type: string;
636
- computeChainId: number;
637
- distributionChainId: number;
638
- endTimestamp: string | number;
639
- opportunityId: string;
640
- creatorAddress: string;
641
- subType: number | null;
642
- rewardTokenId: string;
643
- createdAt: string;
644
- chain: {
645
- explorers?: {
304
+ breakdowns: {
305
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
306
+ token: {
307
+ price?: number | null | undefined;
308
+ symbol: string;
309
+ name: string | null;
310
+ decimals: number;
311
+ address: string;
312
+ id: string;
646
313
  chainId: number;
647
- type: "ETHERSCAN" | "BLOCKSCOUT";
648
- url: string;
649
- }[] | undefined;
650
- name: string;
651
- id: number;
652
- icon: string;
653
- };
314
+ icon: string;
315
+ isNative: boolean;
316
+ isPoint: boolean;
317
+ isPreTGE: boolean;
318
+ isTest: boolean;
319
+ verified: boolean;
320
+ };
321
+ campaignId: string;
322
+ value: number;
323
+ amount: string | bigint;
324
+ }[];
325
+ } | undefined;
326
+ name: string;
327
+ apr: number;
328
+ tokens: {
329
+ price?: number | null | undefined;
330
+ symbol: string;
331
+ name: string | null;
332
+ decimals: number;
333
+ address: string;
334
+ id: string;
335
+ chainId: number;
336
+ icon: string;
337
+ isNative: boolean;
338
+ isPoint: boolean;
339
+ isPreTGE: boolean;
340
+ isTest: boolean;
341
+ verified: boolean;
654
342
  }[];
343
+ tvl: number;
344
+ description: string;
345
+ id: string;
346
+ status: string;
347
+ chainId: number;
655
348
  action: string;
656
349
  type: string;
657
350
  howToSteps: string[];
@@ -669,7 +362,7 @@ export declare const v4: Elysia<"/v4", {
669
362
  id: number;
670
363
  icon: string;
671
364
  };
672
- }[];
365
+ };
673
366
  readonly 500: {
674
367
  info: string;
675
368
  code: string;
@@ -876,14 +569,321 @@ export declare const v4: Elysia<"/v4", {
876
569
  icon: string;
877
570
  };
878
571
  };
879
- readonly 500: {
880
- info: string;
881
- code: string;
882
- httpCode: number;
572
+ readonly 500: {
573
+ info: string;
574
+ code: string;
575
+ httpCode: number;
576
+ };
577
+ readonly 404: {
578
+ name: string;
579
+ message: string;
580
+ };
581
+ 422: {
582
+ type: "validation";
583
+ on: string;
584
+ summary?: string;
585
+ message?: string;
586
+ found?: unknown;
587
+ property?: string;
588
+ expected?: string;
589
+ };
590
+ };
591
+ };
592
+ };
593
+ };
594
+ };
595
+ } & {
596
+ opportunities: {
597
+ get: {
598
+ body: unknown;
599
+ params: {};
600
+ query: {
601
+ sort?: string | undefined;
602
+ name?: string | undefined;
603
+ tokens?: string | undefined;
604
+ campaignId?: string | undefined;
605
+ status?: string | undefined;
606
+ chainId?: string | undefined;
607
+ campaigns?: boolean | undefined;
608
+ items?: number | undefined;
609
+ point?: boolean | undefined;
610
+ order?: string | undefined;
611
+ action?: string | undefined;
612
+ type?: string | undefined;
613
+ search?: string | undefined;
614
+ creatorAddress?: string | undefined;
615
+ mainProtocolId?: string | undefined;
616
+ identifier?: string | undefined;
617
+ tags?: string | undefined;
618
+ test?: boolean | undefined;
619
+ page?: number | undefined;
620
+ excludeSubCampaigns?: boolean | undefined;
621
+ minimumTvl?: number | undefined;
622
+ maximumTvl?: number | undefined;
623
+ minimumApr?: number | undefined;
624
+ maximumApr?: number | undefined;
625
+ rewardTokenSymbol?: string | undefined;
626
+ };
627
+ headers: unknown;
628
+ response: {
629
+ 200: ({
630
+ protocol?: {
631
+ dailyRewards?: number | undefined;
632
+ numberOfLiveCampaigns?: number | undefined;
633
+ opportunityLiveTags?: string[] | undefined;
634
+ name: string;
635
+ description: string;
636
+ id: string;
637
+ url: string;
638
+ icon: string;
639
+ tags: string[];
640
+ } | null | undefined;
641
+ depositUrl?: string | undefined;
642
+ explorerAddress?: string | undefined;
643
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
644
+ aprRecord?: {
645
+ timestamp: string | bigint;
646
+ cumulated: number;
647
+ breakdowns: {
648
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
649
+ value: number;
650
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
651
+ identifier: string;
652
+ }[];
653
+ } | undefined;
654
+ tvlRecord?: {
655
+ timestamp: string | bigint;
656
+ total: number;
657
+ breakdowns: {
658
+ value: number;
659
+ type: "TOKEN" | "PROTOCOL";
660
+ identifier: string;
661
+ }[];
662
+ } | undefined;
663
+ rewardsRecord?: {
664
+ timestamp: string | bigint;
665
+ total: number;
666
+ breakdowns: {
667
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
668
+ token: {
669
+ price?: number | null | undefined;
670
+ symbol: string;
671
+ name: string | null;
672
+ decimals: number;
673
+ address: string;
674
+ id: string;
675
+ chainId: number;
676
+ icon: string;
677
+ isNative: boolean;
678
+ isPoint: boolean;
679
+ isPreTGE: boolean;
680
+ isTest: boolean;
681
+ verified: boolean;
682
+ };
683
+ campaignId: string;
684
+ value: number;
685
+ amount: string | bigint;
686
+ }[];
687
+ } | undefined;
688
+ name: string;
689
+ apr: number;
690
+ tokens: {
691
+ price?: number | null | undefined;
692
+ symbol: string;
693
+ name: string | null;
694
+ decimals: number;
695
+ address: string;
696
+ id: string;
697
+ chainId: number;
698
+ icon: string;
699
+ isNative: boolean;
700
+ isPoint: boolean;
701
+ isPreTGE: boolean;
702
+ isTest: boolean;
703
+ verified: boolean;
704
+ }[];
705
+ tvl: number;
706
+ description: string;
707
+ id: string;
708
+ status: string;
709
+ chainId: number;
710
+ action: string;
711
+ type: string;
712
+ howToSteps: string[];
713
+ identifier: string;
714
+ dailyRewards: number;
715
+ tags: string[];
716
+ lastCampaignCreatedAt: string;
717
+ chain: {
718
+ explorers?: {
719
+ chainId: number;
720
+ type: "ETHERSCAN" | "BLOCKSCOUT";
721
+ url: string;
722
+ }[] | undefined;
723
+ name: string;
724
+ id: number;
725
+ icon: string;
726
+ };
727
+ } | null)[];
728
+ 422: {
729
+ type: "validation";
730
+ on: string;
731
+ summary?: string;
732
+ message?: string;
733
+ found?: unknown;
734
+ property?: string;
735
+ expected?: string;
736
+ };
737
+ };
738
+ };
739
+ };
740
+ } & {
741
+ opportunities: {
742
+ count: {
743
+ get: {
744
+ body: unknown;
745
+ params: {};
746
+ query: {
747
+ sort?: string | undefined;
748
+ name?: string | undefined;
749
+ tokens?: string | undefined;
750
+ campaignId?: string | undefined;
751
+ status?: string | undefined;
752
+ chainId?: string | undefined;
753
+ campaigns?: boolean | undefined;
754
+ items?: number | undefined;
755
+ point?: boolean | undefined;
756
+ order?: string | undefined;
757
+ action?: string | undefined;
758
+ type?: string | undefined;
759
+ search?: string | undefined;
760
+ creatorAddress?: string | undefined;
761
+ mainProtocolId?: string | undefined;
762
+ identifier?: string | undefined;
763
+ tags?: string | undefined;
764
+ test?: boolean | undefined;
765
+ page?: number | undefined;
766
+ excludeSubCampaigns?: boolean | undefined;
767
+ minimumTvl?: number | undefined;
768
+ maximumTvl?: number | undefined;
769
+ minimumApr?: number | undefined;
770
+ maximumApr?: number | undefined;
771
+ rewardTokenSymbol?: string | undefined;
772
+ };
773
+ headers: unknown;
774
+ response: {
775
+ 200: number;
776
+ 422: {
777
+ type: "validation";
778
+ on: string;
779
+ summary?: string;
780
+ message?: string;
781
+ found?: unknown;
782
+ property?: string;
783
+ expected?: string;
784
+ };
785
+ };
786
+ };
787
+ };
788
+ };
789
+ } & {
790
+ opportunities: {
791
+ bins: {
792
+ apr: {
793
+ get: {
794
+ body: unknown;
795
+ params: {};
796
+ query: {
797
+ sort?: string | undefined;
798
+ name?: string | undefined;
799
+ tokens?: string | undefined;
800
+ campaignId?: string | undefined;
801
+ status?: string | undefined;
802
+ chainId?: string | undefined;
803
+ campaigns?: boolean | undefined;
804
+ items?: number | undefined;
805
+ point?: boolean | undefined;
806
+ order?: string | undefined;
807
+ action?: string | undefined;
808
+ type?: string | undefined;
809
+ search?: string | undefined;
810
+ creatorAddress?: string | undefined;
811
+ mainProtocolId?: string | undefined;
812
+ identifier?: string | undefined;
813
+ tags?: string | undefined;
814
+ test?: boolean | undefined;
815
+ page?: number | undefined;
816
+ excludeSubCampaigns?: boolean | undefined;
817
+ minimumTvl?: number | undefined;
818
+ maximumTvl?: number | undefined;
819
+ minimumApr?: number | undefined;
820
+ maximumApr?: number | undefined;
821
+ rewardTokenSymbol?: string | undefined;
822
+ };
823
+ headers: unknown;
824
+ response: {
825
+ 200: {
826
+ min: number;
827
+ max: number;
828
+ overThreshold: number;
829
+ binWidth: number;
830
+ bins: any[];
831
+ };
832
+ 422: {
833
+ type: "validation";
834
+ on: string;
835
+ summary?: string;
836
+ message?: string;
837
+ found?: unknown;
838
+ property?: string;
839
+ expected?: string;
883
840
  };
884
- readonly 404: {
885
- name: string;
886
- message: string;
841
+ };
842
+ };
843
+ };
844
+ };
845
+ };
846
+ } & {
847
+ opportunities: {
848
+ bins: {
849
+ tvl: {
850
+ get: {
851
+ body: unknown;
852
+ params: {};
853
+ query: {
854
+ sort?: string | undefined;
855
+ name?: string | undefined;
856
+ tokens?: string | undefined;
857
+ campaignId?: string | undefined;
858
+ status?: string | undefined;
859
+ chainId?: string | undefined;
860
+ campaigns?: boolean | undefined;
861
+ items?: number | undefined;
862
+ point?: boolean | undefined;
863
+ order?: string | undefined;
864
+ action?: string | undefined;
865
+ type?: string | undefined;
866
+ search?: string | undefined;
867
+ creatorAddress?: string | undefined;
868
+ mainProtocolId?: string | undefined;
869
+ identifier?: string | undefined;
870
+ tags?: string | undefined;
871
+ test?: boolean | undefined;
872
+ page?: number | undefined;
873
+ excludeSubCampaigns?: boolean | undefined;
874
+ minimumTvl?: number | undefined;
875
+ maximumTvl?: number | undefined;
876
+ minimumApr?: number | undefined;
877
+ maximumApr?: number | undefined;
878
+ rewardTokenSymbol?: string | undefined;
879
+ };
880
+ headers: unknown;
881
+ response: {
882
+ 200: {
883
+ min: number;
884
+ max: number;
885
+ binWidth: number;
886
+ bins: any[];
887
887
  };
888
888
  422: {
889
889
  type: "validation";
@@ -926,8 +926,8 @@ export declare const v4: Elysia<"/v4", {
926
926
  mainProtocolId?: string | undefined;
927
927
  identifier?: string | undefined;
928
928
  tags?: string | undefined;
929
- page?: number | undefined;
930
929
  test?: boolean | undefined;
930
+ page?: number | undefined;
931
931
  excludeSubCampaigns?: boolean | undefined;
932
932
  minimumTvl?: number | undefined;
933
933
  maximumTvl?: number | undefined;
@@ -982,8 +982,8 @@ export declare const v4: Elysia<"/v4", {
982
982
  mainProtocolId?: string | undefined;
983
983
  identifier?: string | undefined;
984
984
  tags?: string | undefined;
985
- page?: number | undefined;
986
985
  test?: boolean | undefined;
986
+ page?: number | undefined;
987
987
  excludeSubCampaigns?: boolean | undefined;
988
988
  minimumTvl?: number | undefined;
989
989
  maximumTvl?: number | undefined;
@@ -1039,8 +1039,8 @@ export declare const v4: Elysia<"/v4", {
1039
1039
  mainProtocolId?: string | undefined;
1040
1040
  identifier?: string | undefined;
1041
1041
  tags?: string | undefined;
1042
- page?: number | undefined;
1043
1042
  test?: boolean | undefined;
1043
+ page?: number | undefined;
1044
1044
  excludeSubCampaigns?: boolean | undefined;
1045
1045
  minimumTvl?: number | undefined;
1046
1046
  maximumTvl?: number | undefined;
@@ -1559,158 +1559,30 @@ export declare const v4: Elysia<"/v4", {
1559
1559
  Protocols: {
1560
1560
  name: string;
1561
1561
  description: string;
1562
- id: string;
1563
- url: string;
1564
- icon: string;
1565
- tags: string[];
1566
- }[];
1567
- name: string;
1568
- apr: number;
1569
- tvl: number;
1570
- description: string;
1571
- id: string;
1572
- status: import("@package/databases").Status;
1573
- chainId: number;
1574
- action: import("@package/databases").OpportunityAction;
1575
- type: string;
1576
- depositUrl: string | null;
1577
- explorerAddress: string | null;
1578
- howToSteps: string[];
1579
- mainProtocolId: string | null;
1580
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
1581
- identifier: string;
1582
- dailyRewards: number;
1583
- tags: string[];
1584
- lastCampaignCreatedAt: Date;
1585
- } | undefined;
1586
- 422: {
1587
- type: "validation";
1588
- on: string;
1589
- summary?: string;
1590
- message?: string;
1591
- found?: unknown;
1592
- property?: string;
1593
- expected?: string;
1594
- };
1595
- };
1596
- };
1597
- };
1598
- } & {
1599
- opportunity: {
1600
- patch: {
1601
- body: {
1602
- opportunityIdentifier?: string | undefined;
1603
- campaignId: string;
1604
- distributionChain: number;
1605
- };
1606
- params: {};
1607
- query: unknown;
1608
- headers: {
1609
- authorization: string;
1610
- };
1611
- response: {
1612
- 200: string;
1613
- 422: {
1614
- type: "validation";
1615
- on: string;
1616
- summary?: string;
1617
- message?: string;
1618
- found?: unknown;
1619
- property?: string;
1620
- expected?: string;
1621
- };
1622
- };
1623
- };
1624
- };
1625
- } & {
1626
- creator: {
1627
- patch: {
1628
- body: {
1629
- campaignId: string;
1630
- creatorAddress: string;
1631
- distributionChain: number;
1632
- };
1633
- params: {};
1634
- query: unknown;
1635
- headers: {
1636
- authorization: string;
1637
- };
1638
- response: {
1639
- 200: void;
1640
- 422: {
1641
- type: "validation";
1642
- on: string;
1643
- summary?: string;
1644
- message?: string;
1645
- found?: unknown;
1646
- property?: string;
1647
- expected?: string;
1648
- };
1649
- };
1650
- };
1651
- };
1652
- } & {
1653
- "remove-override": {
1654
- patch: {
1655
- body: {
1656
- campaignId: string;
1657
- distributionChain: number;
1658
- field: "opportunityId" | "creatorAddress";
1659
- };
1660
- params: {};
1661
- query: unknown;
1662
- headers: {
1663
- authorization: string;
1664
- };
1665
- response: {
1666
- 200: void;
1667
- 422: {
1668
- type: "validation";
1669
- on: string;
1670
- summary?: string;
1671
- message?: string;
1672
- found?: unknown;
1673
- property?: string;
1674
- expected?: string;
1675
- };
1676
- };
1677
- };
1678
- };
1679
- } & {
1680
- metadata: {
1681
- patch: {
1682
- body: {
1683
- campaignId: string;
1684
- url: string;
1685
- distributionChain: number;
1686
- };
1687
- params: {};
1688
- query: unknown;
1689
- headers: {
1690
- authorization: string;
1691
- };
1692
- response: {
1693
- 200: {
1694
- campaignId: string;
1695
- description: string | null;
1562
+ id: string;
1563
+ url: string;
1564
+ icon: string;
1565
+ tags: string[];
1566
+ }[];
1567
+ name: string;
1568
+ apr: number;
1569
+ tvl: number;
1570
+ description: string;
1696
1571
  id: string;
1697
- params: import("@prisma/client/runtime/library").JsonValue;
1698
- amount: string;
1699
- startTimestamp: bigint;
1572
+ status: import("@package/databases").Status;
1573
+ chainId: number;
1574
+ action: import("@package/databases").OpportunityAction;
1700
1575
  type: string;
1701
- computeChainId: number;
1702
- distributionChainId: number;
1703
- endTimestamp: bigint;
1704
- opportunityId: string;
1705
- creatorAddress: string;
1706
- distributionType: import("@package/databases").DistributionType;
1707
- subType: number | null;
1708
- rewardTokenId: string;
1709
- manualOverrides: import("@package/databases").CampaignManualOverride[];
1710
- createdAt: Date;
1711
- rootCampaignId: string | null;
1712
- parentCampaignId: string | null;
1713
- };
1576
+ depositUrl: string | null;
1577
+ explorerAddress: string | null;
1578
+ howToSteps: string[];
1579
+ mainProtocolId: string | null;
1580
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
1581
+ identifier: string;
1582
+ dailyRewards: number;
1583
+ tags: string[];
1584
+ lastCampaignCreatedAt: Date;
1585
+ } | undefined;
1714
1586
  422: {
1715
1587
  type: "validation";
1716
1588
  on: string;
@@ -1723,148 +1595,9 @@ export declare const v4: Elysia<"/v4", {
1723
1595
  };
1724
1596
  };
1725
1597
  };
1726
- } & {
1727
- tvls: {
1728
- ":opportunityId": {
1729
- put: {
1730
- body: unknown;
1731
- params: {
1732
- opportunityId: string;
1733
- };
1734
- query: unknown;
1735
- headers: {
1736
- authorization: string;
1737
- };
1738
- response: {
1739
- 200: unknown[];
1740
- 422: {
1741
- type: "validation";
1742
- on: string;
1743
- summary?: string;
1744
- message?: string;
1745
- found?: unknown;
1746
- property?: string;
1747
- expected?: string;
1748
- };
1749
- };
1750
- };
1751
- };
1752
- };
1753
- } & {
1754
- get: {
1755
- body: unknown;
1756
- params: {};
1757
- query: {
1758
- campaignId?: string | undefined;
1759
- id?: string | undefined;
1760
- tokenAddress?: string | undefined;
1761
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
1762
- chainId?: number | undefined;
1763
- startTimestamp?: string | undefined;
1764
- items?: number | undefined;
1765
- point?: boolean | undefined;
1766
- tokenSymbol?: string | undefined;
1767
- type?: string | undefined;
1768
- endTimestamp?: string | undefined;
1769
- opportunityId?: string | undefined;
1770
- creatorAddress?: string | undefined;
1771
- mainProtocolId?: string | undefined;
1772
- subType?: number | undefined;
1773
- rootCampaignId?: string | undefined;
1774
- parentCampaignId?: string | undefined;
1775
- creatorId?: string | undefined;
1776
- mainParameter?: string | undefined;
1777
- page?: number | undefined;
1778
- test?: boolean | undefined;
1779
- creatorTag?: string | undefined;
1780
- distributionChainIds?: number[] | undefined;
1781
- types?: string[] | undefined;
1782
- withOpportunity?: boolean | undefined;
1783
- createdAfter?: Date | null | undefined;
1784
- excludeSubCampaigns?: boolean | undefined;
1785
- };
1786
- headers: unknown;
1787
- response: {
1788
- 200: {
1789
- description?: string | undefined;
1790
- creator?: {
1791
- tags?: string[] | undefined;
1792
- creatorId?: string | null | undefined;
1793
- address: string;
1794
- } | undefined;
1795
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
1796
- rootCampaignId?: string | undefined;
1797
- parentCampaignId?: string | undefined;
1798
- campaignStatus?: {
1799
- error?: string | undefined;
1800
- details?: any;
1801
- campaignId: string;
1802
- status: string;
1803
- computedUntil: string | number;
1804
- processingStarted: string | number;
1805
- } | undefined;
1806
- distributionChain?: {
1807
- explorers?: {
1808
- chainId: number;
1809
- type: "ETHERSCAN" | "BLOCKSCOUT";
1810
- url: string;
1811
- }[] | undefined;
1812
- name: string;
1813
- id: number;
1814
- icon: string;
1815
- } | undefined;
1816
- rewardToken: {
1817
- price?: number | null | undefined;
1818
- symbol: string;
1819
- name: string | null;
1820
- decimals: number;
1821
- address: string;
1822
- id: string;
1823
- chainId: number;
1824
- icon: string;
1825
- isNative: boolean;
1826
- isPoint: boolean;
1827
- isPreTGE: boolean;
1828
- isTest: boolean;
1829
- verified: boolean;
1830
- };
1831
- campaignId: string;
1832
- id: string;
1833
- params: any;
1834
- amount: string;
1835
- startTimestamp: string | number;
1836
- type: string;
1837
- computeChainId: number;
1838
- distributionChainId: number;
1839
- endTimestamp: string | number;
1840
- opportunityId: string;
1841
- creatorAddress: string;
1842
- subType: number | null;
1843
- rewardTokenId: string;
1844
- createdAt: string;
1845
- chain: {
1846
- explorers?: {
1847
- chainId: number;
1848
- type: "ETHERSCAN" | "BLOCKSCOUT";
1849
- url: string;
1850
- }[] | undefined;
1851
- name: string;
1852
- id: number;
1853
- icon: string;
1854
- };
1855
- }[];
1856
- 422: {
1857
- type: "validation";
1858
- on: string;
1859
- summary?: string;
1860
- message?: string;
1861
- found?: unknown;
1862
- property?: string;
1863
- expected?: string;
1864
- };
1865
- };
1866
- };
1867
- } & {
1598
+ };
1599
+ } & {
1600
+ campaigns: {
1868
1601
  ":id": {
1869
1602
  get: {
1870
1603
  body: unknown;
@@ -1954,7 +1687,9 @@ export declare const v4: Elysia<"/v4", {
1954
1687
  };
1955
1688
  };
1956
1689
  };
1957
- } & {
1690
+ };
1691
+ } & {
1692
+ campaigns: {
1958
1693
  ":id": {
1959
1694
  metrics: {
1960
1695
  get: {
@@ -1997,7 +1732,40 @@ export declare const v4: Elysia<"/v4", {
1997
1732
  };
1998
1733
  };
1999
1734
  };
2000
- } & {
1735
+ };
1736
+ } & {
1737
+ campaigns: {
1738
+ "campaigns-to-process": {
1739
+ engine: {
1740
+ post: {
1741
+ body: unknown;
1742
+ params: {};
1743
+ query: {
1744
+ chainId: number;
1745
+ };
1746
+ headers: {
1747
+ authorization: string;
1748
+ };
1749
+ response: {
1750
+ 200: {
1751
+ campaignId: string;
1752
+ };
1753
+ 422: {
1754
+ type: "validation";
1755
+ on: string;
1756
+ summary?: string;
1757
+ message?: string;
1758
+ found?: unknown;
1759
+ property?: string;
1760
+ expected?: string;
1761
+ };
1762
+ };
1763
+ };
1764
+ };
1765
+ };
1766
+ };
1767
+ } & {
1768
+ campaigns: {
2001
1769
  "campaigns-to-process": {
2002
1770
  get: {
2003
1771
  body: unknown;
@@ -2028,7 +1796,9 @@ export declare const v4: Elysia<"/v4", {
2028
1796
  };
2029
1797
  };
2030
1798
  };
2031
- } & {
1799
+ };
1800
+ } & {
1801
+ campaigns: {
2032
1802
  "campaigns-to-process": {
2033
1803
  count: {
2034
1804
  get: {
@@ -2037,36 +1807,9 @@ export declare const v4: Elysia<"/v4", {
2037
1807
  query: {
2038
1808
  chainId: number;
2039
1809
  };
2040
- headers: unknown;
2041
- response: {
2042
- 200: number;
2043
- 422: {
2044
- type: "validation";
2045
- on: string;
2046
- summary?: string;
2047
- message?: string;
2048
- found?: unknown;
2049
- property?: string;
2050
- expected?: string;
2051
- };
2052
- };
2053
- };
2054
- };
2055
- };
2056
- } & {
2057
- "campaigns-to-process": {
2058
- next: {
2059
- get: {
2060
- body: unknown;
2061
- params: {};
2062
- query: {
2063
- chainId: number;
2064
- };
2065
- headers: unknown;
2066
- response: {
2067
- 200: {
2068
- campaignId: string;
2069
- };
1810
+ headers: unknown;
1811
+ response: {
1812
+ 200: number;
2070
1813
  422: {
2071
1814
  type: "validation";
2072
1815
  on: string;
@@ -2080,18 +1823,18 @@ export declare const v4: Elysia<"/v4", {
2080
1823
  };
2081
1824
  };
2082
1825
  };
2083
- } & {
1826
+ };
1827
+ } & {
1828
+ campaigns: {
2084
1829
  "campaigns-to-process": {
2085
- engine: {
2086
- post: {
1830
+ next: {
1831
+ get: {
2087
1832
  body: unknown;
2088
1833
  params: {};
2089
1834
  query: {
2090
1835
  chainId: number;
2091
1836
  };
2092
- headers: {
2093
- authorization: string;
2094
- };
1837
+ headers: unknown;
2095
1838
  response: {
2096
1839
  200: {
2097
1840
  campaignId: string;
@@ -2161,8 +1904,8 @@ export declare const v4: Elysia<"/v4", {
2161
1904
  parentCampaignId?: string | undefined;
2162
1905
  creatorId?: string | undefined;
2163
1906
  mainParameter?: string | undefined;
2164
- page?: number | undefined;
2165
1907
  test?: boolean | undefined;
1908
+ page?: number | undefined;
2166
1909
  creatorTag?: string | undefined;
2167
1910
  distributionChainIds?: number[] | undefined;
2168
1911
  types?: string[] | undefined;
@@ -2278,8 +2021,8 @@ export declare const v4: Elysia<"/v4", {
2278
2021
  parentCampaignId?: string | undefined;
2279
2022
  creatorId?: string | undefined;
2280
2023
  mainParameter?: string | undefined;
2281
- page?: number | undefined;
2282
2024
  test?: boolean | undefined;
2025
+ page?: number | undefined;
2283
2026
  creatorTag?: string | undefined;
2284
2027
  distributionChainIds?: number[] | undefined;
2285
2028
  types?: string[] | undefined;
@@ -2309,7 +2052,35 @@ export declare const v4: Elysia<"/v4", {
2309
2052
  get: {
2310
2053
  body: unknown;
2311
2054
  params: {};
2312
- query: unknown;
2055
+ query: {
2056
+ campaignId?: string | undefined;
2057
+ id?: string | undefined;
2058
+ tokenAddress?: string | undefined;
2059
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2060
+ chainId?: number | undefined;
2061
+ startTimestamp?: string | undefined;
2062
+ items?: number | undefined;
2063
+ point?: boolean | undefined;
2064
+ tokenSymbol?: string | undefined;
2065
+ type?: string | undefined;
2066
+ endTimestamp?: string | undefined;
2067
+ opportunityId?: string | undefined;
2068
+ creatorAddress?: string | undefined;
2069
+ mainProtocolId?: string | undefined;
2070
+ subType?: number | undefined;
2071
+ rootCampaignId?: string | undefined;
2072
+ parentCampaignId?: string | undefined;
2073
+ creatorId?: string | undefined;
2074
+ mainParameter?: string | undefined;
2075
+ test?: boolean | undefined;
2076
+ page?: number | undefined;
2077
+ creatorTag?: string | undefined;
2078
+ distributionChainIds?: number[] | undefined;
2079
+ types?: string[] | undefined;
2080
+ withOpportunity?: boolean | undefined;
2081
+ createdAfter?: Date | null | undefined;
2082
+ excludeSubCampaigns?: boolean | undefined;
2083
+ };
2313
2084
  headers: {
2314
2085
  authorization: string;
2315
2086
  };
@@ -2337,7 +2108,35 @@ export declare const v4: Elysia<"/v4", {
2337
2108
  get: {
2338
2109
  body: unknown;
2339
2110
  params: {};
2340
- query: unknown;
2111
+ query: {
2112
+ campaignId?: string | undefined;
2113
+ id?: string | undefined;
2114
+ tokenAddress?: string | undefined;
2115
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2116
+ chainId?: number | undefined;
2117
+ startTimestamp?: string | undefined;
2118
+ items?: number | undefined;
2119
+ point?: boolean | undefined;
2120
+ tokenSymbol?: string | undefined;
2121
+ type?: string | undefined;
2122
+ endTimestamp?: string | undefined;
2123
+ opportunityId?: string | undefined;
2124
+ creatorAddress?: string | undefined;
2125
+ mainProtocolId?: string | undefined;
2126
+ subType?: number | undefined;
2127
+ rootCampaignId?: string | undefined;
2128
+ parentCampaignId?: string | undefined;
2129
+ creatorId?: string | undefined;
2130
+ mainParameter?: string | undefined;
2131
+ test?: boolean | undefined;
2132
+ page?: number | undefined;
2133
+ creatorTag?: string | undefined;
2134
+ distributionChainIds?: number[] | undefined;
2135
+ types?: string[] | undefined;
2136
+ withOpportunity?: boolean | undefined;
2137
+ createdAfter?: Date | null | undefined;
2138
+ excludeSubCampaigns?: boolean | undefined;
2139
+ };
2341
2140
  headers: {
2342
2141
  authorization: string;
2343
2142
  };
@@ -2366,7 +2165,35 @@ export declare const v4: Elysia<"/v4", {
2366
2165
  get: {
2367
2166
  body: unknown;
2368
2167
  params: {};
2369
- query: unknown;
2168
+ query: {
2169
+ campaignId?: string | undefined;
2170
+ id?: string | undefined;
2171
+ tokenAddress?: string | undefined;
2172
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2173
+ chainId?: number | undefined;
2174
+ startTimestamp?: string | undefined;
2175
+ items?: number | undefined;
2176
+ point?: boolean | undefined;
2177
+ tokenSymbol?: string | undefined;
2178
+ type?: string | undefined;
2179
+ endTimestamp?: string | undefined;
2180
+ opportunityId?: string | undefined;
2181
+ creatorAddress?: string | undefined;
2182
+ mainProtocolId?: string | undefined;
2183
+ subType?: number | undefined;
2184
+ rootCampaignId?: string | undefined;
2185
+ parentCampaignId?: string | undefined;
2186
+ creatorId?: string | undefined;
2187
+ mainParameter?: string | undefined;
2188
+ test?: boolean | undefined;
2189
+ page?: number | undefined;
2190
+ creatorTag?: string | undefined;
2191
+ distributionChainIds?: number[] | undefined;
2192
+ types?: string[] | undefined;
2193
+ withOpportunity?: boolean | undefined;
2194
+ createdAfter?: Date | null | undefined;
2195
+ excludeSubCampaigns?: boolean | undefined;
2196
+ };
2370
2197
  headers: {
2371
2198
  authorization: string;
2372
2199
  };
@@ -2388,6 +2215,171 @@ export declare const v4: Elysia<"/v4", {
2388
2215
  };
2389
2216
  };
2390
2217
  };
2218
+ } & {
2219
+ campaigns: {
2220
+ opportunity: {
2221
+ patch: {
2222
+ body: {
2223
+ opportunityIdentifier?: string | undefined;
2224
+ campaignId: string;
2225
+ distributionChain: number;
2226
+ };
2227
+ params: {};
2228
+ query: unknown;
2229
+ headers: {
2230
+ authorization: string;
2231
+ };
2232
+ response: {
2233
+ 200: string;
2234
+ 422: {
2235
+ type: "validation";
2236
+ on: string;
2237
+ summary?: string;
2238
+ message?: string;
2239
+ found?: unknown;
2240
+ property?: string;
2241
+ expected?: string;
2242
+ };
2243
+ };
2244
+ };
2245
+ };
2246
+ };
2247
+ } & {
2248
+ campaigns: {
2249
+ creator: {
2250
+ patch: {
2251
+ body: {
2252
+ campaignId: string;
2253
+ creatorAddress: string;
2254
+ distributionChain: number;
2255
+ };
2256
+ params: {};
2257
+ query: unknown;
2258
+ headers: {
2259
+ authorization: string;
2260
+ };
2261
+ response: {
2262
+ 200: void;
2263
+ 422: {
2264
+ type: "validation";
2265
+ on: string;
2266
+ summary?: string;
2267
+ message?: string;
2268
+ found?: unknown;
2269
+ property?: string;
2270
+ expected?: string;
2271
+ };
2272
+ };
2273
+ };
2274
+ };
2275
+ };
2276
+ } & {
2277
+ campaigns: {
2278
+ "remove-override": {
2279
+ patch: {
2280
+ body: {
2281
+ campaignId: string;
2282
+ distributionChain: number;
2283
+ field: "opportunityId" | "creatorAddress";
2284
+ };
2285
+ params: {};
2286
+ query: unknown;
2287
+ headers: {
2288
+ authorization: string;
2289
+ };
2290
+ response: {
2291
+ 200: void;
2292
+ 422: {
2293
+ type: "validation";
2294
+ on: string;
2295
+ summary?: string;
2296
+ message?: string;
2297
+ found?: unknown;
2298
+ property?: string;
2299
+ expected?: string;
2300
+ };
2301
+ };
2302
+ };
2303
+ };
2304
+ };
2305
+ } & {
2306
+ campaigns: {
2307
+ metadata: {
2308
+ patch: {
2309
+ body: {
2310
+ campaignId: string;
2311
+ url: string;
2312
+ distributionChain: number;
2313
+ };
2314
+ params: {};
2315
+ query: unknown;
2316
+ headers: {
2317
+ authorization: string;
2318
+ };
2319
+ response: {
2320
+ 200: {
2321
+ campaignId: string;
2322
+ description: string | null;
2323
+ id: string;
2324
+ params: import("@prisma/client/runtime/library").JsonValue;
2325
+ amount: string;
2326
+ startTimestamp: bigint;
2327
+ type: string;
2328
+ computeChainId: number;
2329
+ distributionChainId: number;
2330
+ endTimestamp: bigint;
2331
+ opportunityId: string;
2332
+ creatorAddress: string;
2333
+ distributionType: import("@package/databases").DistributionType;
2334
+ subType: number | null;
2335
+ rewardTokenId: string;
2336
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
2337
+ createdAt: Date;
2338
+ rootCampaignId: string | null;
2339
+ parentCampaignId: string | null;
2340
+ };
2341
+ 422: {
2342
+ type: "validation";
2343
+ on: string;
2344
+ summary?: string;
2345
+ message?: string;
2346
+ found?: unknown;
2347
+ property?: string;
2348
+ expected?: string;
2349
+ };
2350
+ };
2351
+ };
2352
+ };
2353
+ };
2354
+ } & {
2355
+ campaigns: {
2356
+ tvls: {
2357
+ ":opportunityId": {
2358
+ put: {
2359
+ body: unknown;
2360
+ params: {
2361
+ opportunityId: string;
2362
+ };
2363
+ query: unknown;
2364
+ headers: {
2365
+ authorization: string;
2366
+ };
2367
+ response: {
2368
+ 200: unknown[];
2369
+ 422: {
2370
+ type: "validation";
2371
+ on: string;
2372
+ summary?: string;
2373
+ message?: string;
2374
+ found?: unknown;
2375
+ property?: string;
2376
+ expected?: string;
2377
+ };
2378
+ };
2379
+ };
2380
+ };
2381
+ };
2382
+ };
2391
2383
  };
2392
2384
  } & {
2393
2385
  v4: {
@@ -2943,8 +2935,8 @@ export declare const v4: Elysia<"/v4", {
2943
2935
  id?: string | undefined;
2944
2936
  items?: number | undefined;
2945
2937
  tags?: string[] | undefined;
2946
- page?: number | undefined;
2947
2938
  test?: boolean | undefined;
2939
+ page?: number | undefined;
2948
2940
  opportunityTag?: string | undefined;
2949
2941
  };
2950
2942
  headers: unknown;
@@ -2982,8 +2974,8 @@ export declare const v4: Elysia<"/v4", {
2982
2974
  id?: string | undefined;
2983
2975
  items?: number | undefined;
2984
2976
  tags?: string[] | undefined;
2985
- page?: number | undefined;
2986
2977
  test?: boolean | undefined;
2978
+ page?: number | undefined;
2987
2979
  opportunityTag?: string | undefined;
2988
2980
  };
2989
2981
  headers: unknown;
@@ -3458,10 +3450,10 @@ export declare const v4: Elysia<"/v4", {
3458
3450
  verified?: boolean | undefined;
3459
3451
  search?: string | undefined;
3460
3452
  displaySymbol?: string | undefined;
3461
- page?: number | undefined;
3462
3453
  test?: boolean | undefined;
3463
3454
  missingIcons?: boolean | undefined;
3464
3455
  missingPrice?: boolean | undefined;
3456
+ page?: number | undefined;
3465
3457
  };
3466
3458
  headers: unknown;
3467
3459
  response: {
@@ -3510,10 +3502,10 @@ export declare const v4: Elysia<"/v4", {
3510
3502
  verified?: boolean | undefined;
3511
3503
  search?: string | undefined;
3512
3504
  displaySymbol?: string | undefined;
3513
- page?: number | undefined;
3514
3505
  test?: boolean | undefined;
3515
3506
  missingIcons?: boolean | undefined;
3516
3507
  missingPrice?: boolean | undefined;
3508
+ page?: number | undefined;
3517
3509
  };
3518
3510
  headers: unknown;
3519
3511
  response: {
@@ -7147,6 +7139,8 @@ export declare const v4: Elysia<"/v4", {
7147
7139
  headers: unknown;
7148
7140
  response: {
7149
7141
  200: {
7142
+ apr: number | null;
7143
+ tvl: number | null;
7150
7144
  averageBoost: number | null;
7151
7145
  totalDistributedInUSD: number | null;
7152
7146
  forfeitingBoost: number | null;