@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
@@ -215,323 +215,37 @@ declare const app: Elysia<"", {
215
215
  } & {
216
216
  v4: {
217
217
  opportunities: {
218
- get: {
219
- body: unknown;
220
- params: {};
221
- query: {
222
- sort?: string | undefined;
223
- name?: string | undefined;
224
- tokens?: string | undefined;
225
- campaignId?: string | undefined;
226
- status?: string | undefined;
227
- chainId?: string | undefined;
228
- campaigns?: boolean | undefined;
229
- items?: number | undefined;
230
- point?: boolean | undefined;
231
- order?: string | undefined;
232
- action?: string | undefined;
233
- type?: string | undefined;
234
- search?: string | undefined;
235
- creatorAddress?: string | undefined;
236
- mainProtocolId?: string | undefined;
237
- identifier?: string | undefined;
238
- tags?: string | undefined;
239
- page?: number | undefined;
240
- test?: boolean | undefined;
241
- excludeSubCampaigns?: boolean | undefined;
242
- minimumTvl?: number | undefined;
243
- maximumTvl?: number | undefined;
244
- minimumApr?: number | undefined;
245
- maximumApr?: number | undefined;
246
- rewardTokenSymbol?: string | undefined;
247
- };
248
- headers: unknown;
249
- response: {
250
- 200: ({
251
- protocol?: {
252
- dailyRewards?: number | undefined;
253
- numberOfLiveCampaigns?: number | undefined;
254
- opportunityLiveTags?: string[] | undefined;
255
- name: string;
256
- description: string;
257
- id: string;
258
- url: string;
259
- icon: string;
260
- tags: string[];
261
- } | null | undefined;
262
- depositUrl?: string | undefined;
263
- explorerAddress?: string | undefined;
264
- 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;
265
- aprRecord?: {
266
- timestamp: string | bigint;
267
- cumulated: number;
268
- breakdowns: {
269
- 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;
270
- value: number;
271
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
272
- identifier: string;
273
- }[];
274
- } | undefined;
275
- tvlRecord?: {
276
- timestamp: string | bigint;
277
- total: number;
278
- breakdowns: {
279
- value: number;
280
- type: "TOKEN" | "PROTOCOL";
281
- identifier: string;
282
- }[];
283
- } | undefined;
284
- rewardsRecord?: {
285
- timestamp: string | bigint;
286
- total: number;
287
- breakdowns: {
288
- 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;
289
- token: {
290
- price?: number | null | undefined;
291
- symbol: string;
292
- name: string | null;
293
- decimals: number;
294
- address: string;
295
- id: string;
296
- chainId: number;
297
- icon: string;
298
- isNative: boolean;
299
- isPoint: boolean;
300
- isPreTGE: boolean;
301
- isTest: boolean;
302
- verified: boolean;
303
- };
304
- campaignId: string;
305
- value: number;
306
- amount: string | bigint;
307
- }[];
308
- } | undefined;
309
- name: string;
310
- apr: number;
311
- tokens: {
312
- price?: number | null | undefined;
313
- symbol: string;
314
- name: string | null;
315
- decimals: number;
316
- address: string;
317
- id: string;
318
- chainId: number;
319
- icon: string;
320
- isNative: boolean;
321
- isPoint: boolean;
322
- isPreTGE: boolean;
323
- isTest: boolean;
324
- verified: boolean;
325
- }[];
326
- tvl: number;
327
- description: string;
328
- id: string;
329
- status: string;
330
- chainId: number;
331
- action: string;
332
- type: string;
333
- howToSteps: string[];
334
- identifier: string;
335
- dailyRewards: number;
336
- tags: string[];
337
- lastCampaignCreatedAt: string;
338
- chain: {
339
- explorers?: {
340
- chainId: number;
341
- type: "ETHERSCAN" | "BLOCKSCOUT";
342
- url: string;
343
- }[] | undefined;
344
- name: string;
345
- id: number;
346
- icon: string;
347
- };
348
- } | null)[];
349
- 422: {
350
- type: "validation";
351
- on: string;
352
- summary?: string;
353
- message?: string;
354
- found?: unknown;
355
- property?: string;
356
- expected?: string;
357
- };
358
- };
359
- };
360
- };
361
- } & {
362
- opportunities: {
363
- count: {
364
- get: {
365
- body: unknown;
366
- params: {};
367
- query: {
368
- sort?: string | undefined;
369
- name?: string | undefined;
370
- tokens?: string | undefined;
371
- campaignId?: string | undefined;
372
- status?: string | undefined;
373
- chainId?: string | undefined;
374
- campaigns?: boolean | undefined;
375
- items?: number | undefined;
376
- point?: boolean | undefined;
377
- order?: string | undefined;
378
- action?: string | undefined;
379
- type?: string | undefined;
380
- search?: string | undefined;
381
- creatorAddress?: string | undefined;
382
- mainProtocolId?: string | undefined;
383
- identifier?: string | undefined;
384
- tags?: string | undefined;
385
- page?: number | undefined;
386
- test?: boolean | undefined;
387
- excludeSubCampaigns?: boolean | undefined;
388
- minimumTvl?: number | undefined;
389
- maximumTvl?: number | undefined;
390
- minimumApr?: number | undefined;
391
- maximumApr?: number | undefined;
392
- rewardTokenSymbol?: string | undefined;
393
- };
394
- headers: unknown;
395
- response: {
396
- 200: number;
397
- 422: {
398
- type: "validation";
399
- on: string;
400
- summary?: string;
401
- message?: string;
402
- found?: unknown;
403
- property?: string;
404
- expected?: string;
405
- };
406
- };
407
- };
408
- };
409
- };
410
- } & {
411
- opportunities: {
412
- bins: {
413
- apr: {
414
- get: {
415
- body: unknown;
416
- params: {};
417
- query: {
418
- sort?: string | undefined;
419
- name?: string | undefined;
420
- tokens?: string | undefined;
421
- campaignId?: string | undefined;
422
- status?: string | undefined;
423
- chainId?: string | undefined;
424
- campaigns?: boolean | undefined;
425
- items?: number | undefined;
426
- point?: boolean | undefined;
427
- order?: string | undefined;
428
- action?: string | undefined;
429
- type?: string | undefined;
430
- search?: string | undefined;
431
- creatorAddress?: string | undefined;
432
- mainProtocolId?: string | undefined;
433
- identifier?: string | undefined;
434
- tags?: string | undefined;
435
- page?: number | undefined;
436
- test?: boolean | undefined;
437
- excludeSubCampaigns?: boolean | undefined;
438
- minimumTvl?: number | undefined;
439
- maximumTvl?: number | undefined;
440
- minimumApr?: number | undefined;
441
- maximumApr?: number | undefined;
442
- rewardTokenSymbol?: string | undefined;
443
- };
444
- headers: unknown;
445
- response: {
446
- 200: {
447
- min: number;
448
- max: number;
449
- overThreshold: number;
450
- binWidth: number;
451
- bins: any[];
452
- };
453
- 422: {
454
- type: "validation";
455
- on: string;
456
- summary?: string;
457
- message?: string;
458
- found?: unknown;
459
- property?: string;
460
- expected?: string;
461
- };
462
- };
463
- };
464
- };
465
- };
466
- };
467
- } & {
468
- opportunities: {
469
- bins: {
470
- tvl: {
471
- get: {
472
- body: unknown;
473
- params: {};
474
- query: {
475
- sort?: string | undefined;
476
- name?: string | undefined;
477
- tokens?: string | undefined;
478
- campaignId?: string | undefined;
479
- status?: string | undefined;
480
- chainId?: string | undefined;
481
- campaigns?: boolean | undefined;
482
- items?: number | undefined;
483
- point?: boolean | undefined;
484
- order?: string | undefined;
485
- action?: string | undefined;
486
- type?: string | undefined;
487
- search?: string | undefined;
488
- creatorAddress?: string | undefined;
489
- mainProtocolId?: string | undefined;
490
- identifier?: string | undefined;
491
- tags?: string | undefined;
492
- page?: number | undefined;
493
- test?: boolean | undefined;
494
- excludeSubCampaigns?: boolean | undefined;
495
- minimumTvl?: number | undefined;
496
- maximumTvl?: number | undefined;
497
- minimumApr?: number | undefined;
498
- maximumApr?: number | undefined;
499
- rewardTokenSymbol?: string | undefined;
500
- };
501
- headers: unknown;
502
- response: {
503
- 200: {
504
- min: number;
505
- max: number;
506
- binWidth: number;
507
- bins: any[];
508
- };
509
- 422: {
510
- type: "validation";
511
- on: string;
512
- summary?: string;
513
- message?: string;
514
- found?: unknown;
515
- property?: string;
516
- expected?: string;
517
- };
518
- };
519
- };
520
- };
521
- };
522
- };
523
- } & {
524
- opportunities: {
525
- ":id": {
218
+ campaigns: {
526
219
  get: {
527
220
  body: unknown;
528
- params: {
529
- id: string;
530
- };
221
+ params: {};
531
222
  query: {
532
- campaigns?: boolean | undefined;
223
+ campaignId?: string | undefined;
224
+ id?: string | undefined;
225
+ tokenAddress?: string | undefined;
226
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
227
+ chainId?: number | undefined;
228
+ startTimestamp?: string | undefined;
229
+ items?: number | undefined;
533
230
  point?: boolean | undefined;
231
+ tokenSymbol?: string | undefined;
232
+ type?: string | undefined;
233
+ endTimestamp?: string | undefined;
234
+ opportunityId?: string | undefined;
235
+ creatorAddress?: string | undefined;
236
+ mainProtocolId?: string | undefined;
237
+ subType?: number | undefined;
238
+ rootCampaignId?: string | undefined;
239
+ parentCampaignId?: string | undefined;
240
+ creatorId?: string | undefined;
241
+ mainParameter?: string | undefined;
534
242
  test?: boolean | undefined;
243
+ page?: number | undefined;
244
+ creatorTag?: string | undefined;
245
+ distributionChainIds?: number[] | undefined;
246
+ types?: string[] | undefined;
247
+ withOpportunity?: boolean | undefined;
248
+ createdAfter?: Date | null | undefined;
535
249
  excludeSubCampaigns?: boolean | undefined;
536
250
  };
537
251
  headers: unknown;
@@ -617,6 +331,74 @@ declare const app: Elysia<"", {
617
331
  id: string;
618
332
  status: string;
619
333
  chainId: number;
334
+ campaigns: {
335
+ description?: string | undefined;
336
+ creator?: {
337
+ tags?: string[] | undefined;
338
+ creatorId?: string | null | undefined;
339
+ address: string;
340
+ } | undefined;
341
+ 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;
342
+ rootCampaignId?: string | undefined;
343
+ parentCampaignId?: string | undefined;
344
+ campaignStatus?: {
345
+ error?: string | undefined;
346
+ details?: any;
347
+ campaignId: string;
348
+ status: string;
349
+ computedUntil: string | number;
350
+ processingStarted: string | number;
351
+ } | undefined;
352
+ distributionChain?: {
353
+ explorers?: {
354
+ chainId: number;
355
+ type: "ETHERSCAN" | "BLOCKSCOUT";
356
+ url: string;
357
+ }[] | undefined;
358
+ name: string;
359
+ id: number;
360
+ icon: string;
361
+ } | undefined;
362
+ rewardToken: {
363
+ price?: number | null | undefined;
364
+ symbol: string;
365
+ name: string | null;
366
+ decimals: number;
367
+ address: string;
368
+ id: string;
369
+ chainId: number;
370
+ icon: string;
371
+ isNative: boolean;
372
+ isPoint: boolean;
373
+ isPreTGE: boolean;
374
+ isTest: boolean;
375
+ verified: boolean;
376
+ };
377
+ campaignId: string;
378
+ id: string;
379
+ params: any;
380
+ amount: string;
381
+ startTimestamp: string | number;
382
+ type: string;
383
+ computeChainId: number;
384
+ distributionChainId: number;
385
+ endTimestamp: string | number;
386
+ opportunityId: string;
387
+ creatorAddress: string;
388
+ subType: number | null;
389
+ rewardTokenId: string;
390
+ createdAt: string;
391
+ chain: {
392
+ explorers?: {
393
+ chainId: number;
394
+ type: "ETHERSCAN" | "BLOCKSCOUT";
395
+ url: string;
396
+ }[] | undefined;
397
+ name: string;
398
+ id: number;
399
+ icon: string;
400
+ };
401
+ }[];
620
402
  action: string;
621
403
  type: string;
622
404
  howToSteps: string[];
@@ -634,7 +416,7 @@ declare const app: Elysia<"", {
634
416
  id: number;
635
417
  icon: string;
636
418
  };
637
- };
419
+ }[];
638
420
  readonly 500: {
639
421
  info: string;
640
422
  code: string;
@@ -659,37 +441,16 @@ declare const app: Elysia<"", {
659
441
  };
660
442
  } & {
661
443
  opportunities: {
662
- campaigns: {
444
+ ":id": {
663
445
  get: {
664
446
  body: unknown;
665
- params: {};
447
+ params: {
448
+ id: string;
449
+ };
666
450
  query: {
667
- campaignId?: string | undefined;
668
- id?: string | undefined;
669
- tokenAddress?: string | undefined;
670
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
671
- chainId?: number | undefined;
672
- startTimestamp?: string | undefined;
673
- items?: number | undefined;
451
+ campaigns?: boolean | undefined;
674
452
  point?: boolean | undefined;
675
- tokenSymbol?: string | undefined;
676
- type?: string | undefined;
677
- endTimestamp?: string | undefined;
678
- opportunityId?: string | undefined;
679
- creatorAddress?: string | undefined;
680
- mainProtocolId?: string | undefined;
681
- subType?: number | undefined;
682
- rootCampaignId?: string | undefined;
683
- parentCampaignId?: string | undefined;
684
- creatorId?: string | undefined;
685
- mainParameter?: string | undefined;
686
- page?: number | undefined;
687
453
  test?: boolean | undefined;
688
- creatorTag?: string | undefined;
689
- distributionChainIds?: number[] | undefined;
690
- types?: string[] | undefined;
691
- withOpportunity?: boolean | undefined;
692
- createdAfter?: Date | null | undefined;
693
454
  excludeSubCampaigns?: boolean | undefined;
694
455
  };
695
456
  headers: unknown;
@@ -731,118 +492,50 @@ declare const app: Elysia<"", {
731
492
  rewardsRecord?: {
732
493
  timestamp: string | bigint;
733
494
  total: number;
734
- breakdowns: {
735
- 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;
736
- token: {
737
- price?: number | null | undefined;
738
- symbol: string;
739
- name: string | null;
740
- decimals: number;
741
- address: string;
742
- id: string;
743
- chainId: number;
744
- icon: string;
745
- isNative: boolean;
746
- isPoint: boolean;
747
- isPreTGE: boolean;
748
- isTest: boolean;
749
- verified: boolean;
750
- };
751
- campaignId: string;
752
- value: number;
753
- amount: string | bigint;
754
- }[];
755
- } | undefined;
756
- name: string;
757
- apr: number;
758
- tokens: {
759
- price?: number | null | undefined;
760
- symbol: string;
761
- name: string | null;
762
- decimals: number;
763
- address: string;
764
- id: string;
765
- chainId: number;
766
- icon: string;
767
- isNative: boolean;
768
- isPoint: boolean;
769
- isPreTGE: boolean;
770
- isTest: boolean;
771
- verified: boolean;
772
- }[];
773
- tvl: number;
774
- description: string;
775
- id: string;
776
- status: string;
777
- chainId: number;
778
- campaigns: {
779
- description?: string | undefined;
780
- creator?: {
781
- tags?: string[] | undefined;
782
- creatorId?: string | null | undefined;
783
- address: string;
784
- } | undefined;
785
- 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;
786
- rootCampaignId?: string | undefined;
787
- parentCampaignId?: string | undefined;
788
- campaignStatus?: {
789
- error?: string | undefined;
790
- details?: any;
791
- campaignId: string;
792
- status: string;
793
- computedUntil: string | number;
794
- processingStarted: string | number;
795
- } | undefined;
796
- distributionChain?: {
797
- explorers?: {
798
- chainId: number;
799
- type: "ETHERSCAN" | "BLOCKSCOUT";
800
- url: string;
801
- }[] | undefined;
802
- name: string;
803
- id: number;
804
- icon: string;
805
- } | undefined;
806
- rewardToken: {
807
- price?: number | null | undefined;
808
- symbol: string;
809
- name: string | null;
810
- decimals: number;
811
- address: string;
812
- id: string;
813
- chainId: number;
814
- icon: string;
815
- isNative: boolean;
816
- isPoint: boolean;
817
- isPreTGE: boolean;
818
- isTest: boolean;
819
- verified: boolean;
820
- };
821
- campaignId: string;
822
- id: string;
823
- params: any;
824
- amount: string;
825
- startTimestamp: string | number;
826
- type: string;
827
- computeChainId: number;
828
- distributionChainId: number;
829
- endTimestamp: string | number;
830
- opportunityId: string;
831
- creatorAddress: string;
832
- subType: number | null;
833
- rewardTokenId: string;
834
- createdAt: string;
835
- chain: {
836
- explorers?: {
495
+ breakdowns: {
496
+ 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;
497
+ token: {
498
+ price?: number | null | undefined;
499
+ symbol: string;
500
+ name: string | null;
501
+ decimals: number;
502
+ address: string;
503
+ id: string;
837
504
  chainId: number;
838
- type: "ETHERSCAN" | "BLOCKSCOUT";
839
- url: string;
840
- }[] | undefined;
841
- name: string;
842
- id: number;
843
- icon: string;
844
- };
505
+ icon: string;
506
+ isNative: boolean;
507
+ isPoint: boolean;
508
+ isPreTGE: boolean;
509
+ isTest: boolean;
510
+ verified: boolean;
511
+ };
512
+ campaignId: string;
513
+ value: number;
514
+ amount: string | bigint;
515
+ }[];
516
+ } | undefined;
517
+ name: string;
518
+ apr: number;
519
+ tokens: {
520
+ price?: number | null | undefined;
521
+ symbol: string;
522
+ name: string | null;
523
+ decimals: number;
524
+ address: string;
525
+ id: string;
526
+ chainId: number;
527
+ icon: string;
528
+ isNative: boolean;
529
+ isPoint: boolean;
530
+ isPreTGE: boolean;
531
+ isTest: boolean;
532
+ verified: boolean;
845
533
  }[];
534
+ tvl: number;
535
+ description: string;
536
+ id: string;
537
+ status: string;
538
+ chainId: number;
846
539
  action: string;
847
540
  type: string;
848
541
  howToSteps: string[];
@@ -860,7 +553,7 @@ declare const app: Elysia<"", {
860
553
  id: number;
861
554
  icon: string;
862
555
  };
863
- }[];
556
+ };
864
557
  readonly 500: {
865
558
  info: string;
866
559
  code: string;
@@ -1067,14 +760,321 @@ declare const app: Elysia<"", {
1067
760
  icon: string;
1068
761
  };
1069
762
  };
1070
- readonly 500: {
1071
- info: string;
1072
- code: string;
1073
- httpCode: number;
763
+ readonly 500: {
764
+ info: string;
765
+ code: string;
766
+ httpCode: number;
767
+ };
768
+ readonly 404: {
769
+ name: string;
770
+ message: string;
771
+ };
772
+ 422: {
773
+ type: "validation";
774
+ on: string;
775
+ summary?: string;
776
+ message?: string;
777
+ found?: unknown;
778
+ property?: string;
779
+ expected?: string;
780
+ };
781
+ };
782
+ };
783
+ };
784
+ };
785
+ };
786
+ } & {
787
+ opportunities: {
788
+ get: {
789
+ body: unknown;
790
+ params: {};
791
+ query: {
792
+ sort?: string | undefined;
793
+ name?: string | undefined;
794
+ tokens?: string | undefined;
795
+ campaignId?: string | undefined;
796
+ status?: string | undefined;
797
+ chainId?: string | undefined;
798
+ campaigns?: boolean | undefined;
799
+ items?: number | undefined;
800
+ point?: boolean | undefined;
801
+ order?: string | undefined;
802
+ action?: string | undefined;
803
+ type?: string | undefined;
804
+ search?: string | undefined;
805
+ creatorAddress?: string | undefined;
806
+ mainProtocolId?: string | undefined;
807
+ identifier?: string | undefined;
808
+ tags?: string | undefined;
809
+ test?: boolean | undefined;
810
+ page?: number | undefined;
811
+ excludeSubCampaigns?: boolean | undefined;
812
+ minimumTvl?: number | undefined;
813
+ maximumTvl?: number | undefined;
814
+ minimumApr?: number | undefined;
815
+ maximumApr?: number | undefined;
816
+ rewardTokenSymbol?: string | undefined;
817
+ };
818
+ headers: unknown;
819
+ response: {
820
+ 200: ({
821
+ protocol?: {
822
+ dailyRewards?: number | undefined;
823
+ numberOfLiveCampaigns?: number | undefined;
824
+ opportunityLiveTags?: string[] | undefined;
825
+ name: string;
826
+ description: string;
827
+ id: string;
828
+ url: string;
829
+ icon: string;
830
+ tags: string[];
831
+ } | null | undefined;
832
+ depositUrl?: string | undefined;
833
+ explorerAddress?: string | undefined;
834
+ 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;
835
+ aprRecord?: {
836
+ timestamp: string | bigint;
837
+ cumulated: number;
838
+ breakdowns: {
839
+ 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;
840
+ value: number;
841
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
842
+ identifier: string;
843
+ }[];
844
+ } | undefined;
845
+ tvlRecord?: {
846
+ timestamp: string | bigint;
847
+ total: number;
848
+ breakdowns: {
849
+ value: number;
850
+ type: "TOKEN" | "PROTOCOL";
851
+ identifier: string;
852
+ }[];
853
+ } | undefined;
854
+ rewardsRecord?: {
855
+ timestamp: string | bigint;
856
+ total: number;
857
+ breakdowns: {
858
+ 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;
859
+ token: {
860
+ price?: number | null | undefined;
861
+ symbol: string;
862
+ name: string | null;
863
+ decimals: number;
864
+ address: string;
865
+ id: string;
866
+ chainId: number;
867
+ icon: string;
868
+ isNative: boolean;
869
+ isPoint: boolean;
870
+ isPreTGE: boolean;
871
+ isTest: boolean;
872
+ verified: boolean;
873
+ };
874
+ campaignId: string;
875
+ value: number;
876
+ amount: string | bigint;
877
+ }[];
878
+ } | undefined;
879
+ name: string;
880
+ apr: number;
881
+ tokens: {
882
+ price?: number | null | undefined;
883
+ symbol: string;
884
+ name: string | null;
885
+ decimals: number;
886
+ address: string;
887
+ id: string;
888
+ chainId: number;
889
+ icon: string;
890
+ isNative: boolean;
891
+ isPoint: boolean;
892
+ isPreTGE: boolean;
893
+ isTest: boolean;
894
+ verified: boolean;
895
+ }[];
896
+ tvl: number;
897
+ description: string;
898
+ id: string;
899
+ status: string;
900
+ chainId: number;
901
+ action: string;
902
+ type: string;
903
+ howToSteps: string[];
904
+ identifier: string;
905
+ dailyRewards: number;
906
+ tags: string[];
907
+ lastCampaignCreatedAt: string;
908
+ chain: {
909
+ explorers?: {
910
+ chainId: number;
911
+ type: "ETHERSCAN" | "BLOCKSCOUT";
912
+ url: string;
913
+ }[] | undefined;
914
+ name: string;
915
+ id: number;
916
+ icon: string;
917
+ };
918
+ } | null)[];
919
+ 422: {
920
+ type: "validation";
921
+ on: string;
922
+ summary?: string;
923
+ message?: string;
924
+ found?: unknown;
925
+ property?: string;
926
+ expected?: string;
927
+ };
928
+ };
929
+ };
930
+ };
931
+ } & {
932
+ opportunities: {
933
+ count: {
934
+ get: {
935
+ body: unknown;
936
+ params: {};
937
+ query: {
938
+ sort?: string | undefined;
939
+ name?: string | undefined;
940
+ tokens?: string | undefined;
941
+ campaignId?: string | undefined;
942
+ status?: string | undefined;
943
+ chainId?: string | undefined;
944
+ campaigns?: boolean | undefined;
945
+ items?: number | undefined;
946
+ point?: boolean | undefined;
947
+ order?: string | undefined;
948
+ action?: string | undefined;
949
+ type?: string | undefined;
950
+ search?: string | undefined;
951
+ creatorAddress?: string | undefined;
952
+ mainProtocolId?: string | undefined;
953
+ identifier?: string | undefined;
954
+ tags?: string | undefined;
955
+ test?: boolean | undefined;
956
+ page?: number | undefined;
957
+ excludeSubCampaigns?: boolean | undefined;
958
+ minimumTvl?: number | undefined;
959
+ maximumTvl?: number | undefined;
960
+ minimumApr?: number | undefined;
961
+ maximumApr?: number | undefined;
962
+ rewardTokenSymbol?: string | undefined;
963
+ };
964
+ headers: unknown;
965
+ response: {
966
+ 200: number;
967
+ 422: {
968
+ type: "validation";
969
+ on: string;
970
+ summary?: string;
971
+ message?: string;
972
+ found?: unknown;
973
+ property?: string;
974
+ expected?: string;
975
+ };
976
+ };
977
+ };
978
+ };
979
+ };
980
+ } & {
981
+ opportunities: {
982
+ bins: {
983
+ apr: {
984
+ get: {
985
+ body: unknown;
986
+ params: {};
987
+ query: {
988
+ sort?: string | undefined;
989
+ name?: string | undefined;
990
+ tokens?: string | undefined;
991
+ campaignId?: string | undefined;
992
+ status?: string | undefined;
993
+ chainId?: string | undefined;
994
+ campaigns?: boolean | undefined;
995
+ items?: number | undefined;
996
+ point?: boolean | undefined;
997
+ order?: string | undefined;
998
+ action?: string | undefined;
999
+ type?: string | undefined;
1000
+ search?: string | undefined;
1001
+ creatorAddress?: string | undefined;
1002
+ mainProtocolId?: string | undefined;
1003
+ identifier?: string | undefined;
1004
+ tags?: string | undefined;
1005
+ test?: boolean | undefined;
1006
+ page?: number | undefined;
1007
+ excludeSubCampaigns?: boolean | undefined;
1008
+ minimumTvl?: number | undefined;
1009
+ maximumTvl?: number | undefined;
1010
+ minimumApr?: number | undefined;
1011
+ maximumApr?: number | undefined;
1012
+ rewardTokenSymbol?: string | undefined;
1013
+ };
1014
+ headers: unknown;
1015
+ response: {
1016
+ 200: {
1017
+ min: number;
1018
+ max: number;
1019
+ overThreshold: number;
1020
+ binWidth: number;
1021
+ bins: any[];
1022
+ };
1023
+ 422: {
1024
+ type: "validation";
1025
+ on: string;
1026
+ summary?: string;
1027
+ message?: string;
1028
+ found?: unknown;
1029
+ property?: string;
1030
+ expected?: string;
1074
1031
  };
1075
- readonly 404: {
1076
- name: string;
1077
- message: string;
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ };
1037
+ } & {
1038
+ opportunities: {
1039
+ bins: {
1040
+ tvl: {
1041
+ get: {
1042
+ body: unknown;
1043
+ params: {};
1044
+ query: {
1045
+ sort?: string | undefined;
1046
+ name?: string | undefined;
1047
+ tokens?: string | undefined;
1048
+ campaignId?: string | undefined;
1049
+ status?: string | undefined;
1050
+ chainId?: string | undefined;
1051
+ campaigns?: boolean | undefined;
1052
+ items?: number | undefined;
1053
+ point?: boolean | undefined;
1054
+ order?: string | undefined;
1055
+ action?: string | undefined;
1056
+ type?: string | undefined;
1057
+ search?: string | undefined;
1058
+ creatorAddress?: string | undefined;
1059
+ mainProtocolId?: string | undefined;
1060
+ identifier?: string | undefined;
1061
+ tags?: string | undefined;
1062
+ test?: boolean | undefined;
1063
+ page?: number | undefined;
1064
+ excludeSubCampaigns?: boolean | undefined;
1065
+ minimumTvl?: number | undefined;
1066
+ maximumTvl?: number | undefined;
1067
+ minimumApr?: number | undefined;
1068
+ maximumApr?: number | undefined;
1069
+ rewardTokenSymbol?: string | undefined;
1070
+ };
1071
+ headers: unknown;
1072
+ response: {
1073
+ 200: {
1074
+ min: number;
1075
+ max: number;
1076
+ binWidth: number;
1077
+ bins: any[];
1078
1078
  };
1079
1079
  422: {
1080
1080
  type: "validation";
@@ -1117,8 +1117,8 @@ declare const app: Elysia<"", {
1117
1117
  mainProtocolId?: string | undefined;
1118
1118
  identifier?: string | undefined;
1119
1119
  tags?: string | undefined;
1120
- page?: number | undefined;
1121
1120
  test?: boolean | undefined;
1121
+ page?: number | undefined;
1122
1122
  excludeSubCampaigns?: boolean | undefined;
1123
1123
  minimumTvl?: number | undefined;
1124
1124
  maximumTvl?: number | undefined;
@@ -1173,8 +1173,8 @@ declare const app: Elysia<"", {
1173
1173
  mainProtocolId?: string | undefined;
1174
1174
  identifier?: string | undefined;
1175
1175
  tags?: string | undefined;
1176
- page?: number | undefined;
1177
1176
  test?: boolean | undefined;
1177
+ page?: number | undefined;
1178
1178
  excludeSubCampaigns?: boolean | undefined;
1179
1179
  minimumTvl?: number | undefined;
1180
1180
  maximumTvl?: number | undefined;
@@ -1230,8 +1230,8 @@ declare const app: Elysia<"", {
1230
1230
  mainProtocolId?: string | undefined;
1231
1231
  identifier?: string | undefined;
1232
1232
  tags?: string | undefined;
1233
- page?: number | undefined;
1234
1233
  test?: boolean | undefined;
1234
+ page?: number | undefined;
1235
1235
  excludeSubCampaigns?: boolean | undefined;
1236
1236
  minimumTvl?: number | undefined;
1237
1237
  maximumTvl?: number | undefined;
@@ -1750,158 +1750,30 @@ declare const app: Elysia<"", {
1750
1750
  Protocols: {
1751
1751
  name: string;
1752
1752
  description: string;
1753
- id: string;
1754
- url: string;
1755
- icon: string;
1756
- tags: string[];
1757
- }[];
1758
- name: string;
1759
- apr: number;
1760
- tvl: number;
1761
- description: string;
1762
- id: string;
1763
- status: import("@package/databases").Status;
1764
- chainId: number;
1765
- action: import("@package/databases").OpportunityAction;
1766
- type: string;
1767
- depositUrl: string | null;
1768
- explorerAddress: string | null;
1769
- howToSteps: string[];
1770
- mainProtocolId: string | null;
1771
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
1772
- identifier: string;
1773
- dailyRewards: number;
1774
- tags: string[];
1775
- lastCampaignCreatedAt: Date;
1776
- } | undefined;
1777
- 422: {
1778
- type: "validation";
1779
- on: string;
1780
- summary?: string;
1781
- message?: string;
1782
- found?: unknown;
1783
- property?: string;
1784
- expected?: string;
1785
- };
1786
- };
1787
- };
1788
- };
1789
- } & {
1790
- opportunity: {
1791
- patch: {
1792
- body: {
1793
- opportunityIdentifier?: string | undefined;
1794
- campaignId: string;
1795
- distributionChain: number;
1796
- };
1797
- params: {};
1798
- query: unknown;
1799
- headers: {
1800
- authorization: string;
1801
- };
1802
- response: {
1803
- 200: string;
1804
- 422: {
1805
- type: "validation";
1806
- on: string;
1807
- summary?: string;
1808
- message?: string;
1809
- found?: unknown;
1810
- property?: string;
1811
- expected?: string;
1812
- };
1813
- };
1814
- };
1815
- };
1816
- } & {
1817
- creator: {
1818
- patch: {
1819
- body: {
1820
- campaignId: string;
1821
- creatorAddress: string;
1822
- distributionChain: number;
1823
- };
1824
- params: {};
1825
- query: unknown;
1826
- headers: {
1827
- authorization: string;
1828
- };
1829
- response: {
1830
- 200: void;
1831
- 422: {
1832
- type: "validation";
1833
- on: string;
1834
- summary?: string;
1835
- message?: string;
1836
- found?: unknown;
1837
- property?: string;
1838
- expected?: string;
1839
- };
1840
- };
1841
- };
1842
- };
1843
- } & {
1844
- "remove-override": {
1845
- patch: {
1846
- body: {
1847
- campaignId: string;
1848
- distributionChain: number;
1849
- field: "opportunityId" | "creatorAddress";
1850
- };
1851
- params: {};
1852
- query: unknown;
1853
- headers: {
1854
- authorization: string;
1855
- };
1856
- response: {
1857
- 200: void;
1858
- 422: {
1859
- type: "validation";
1860
- on: string;
1861
- summary?: string;
1862
- message?: string;
1863
- found?: unknown;
1864
- property?: string;
1865
- expected?: string;
1866
- };
1867
- };
1868
- };
1869
- };
1870
- } & {
1871
- metadata: {
1872
- patch: {
1873
- body: {
1874
- campaignId: string;
1875
- url: string;
1876
- distributionChain: number;
1877
- };
1878
- params: {};
1879
- query: unknown;
1880
- headers: {
1881
- authorization: string;
1882
- };
1883
- response: {
1884
- 200: {
1885
- campaignId: string;
1886
- description: string | null;
1753
+ id: string;
1754
+ url: string;
1755
+ icon: string;
1756
+ tags: string[];
1757
+ }[];
1758
+ name: string;
1759
+ apr: number;
1760
+ tvl: number;
1761
+ description: string;
1887
1762
  id: string;
1888
- params: import("@prisma/client/runtime/library").JsonValue;
1889
- amount: string;
1890
- startTimestamp: bigint;
1763
+ status: import("@package/databases").Status;
1764
+ chainId: number;
1765
+ action: import("@package/databases").OpportunityAction;
1891
1766
  type: string;
1892
- computeChainId: number;
1893
- distributionChainId: number;
1894
- endTimestamp: bigint;
1895
- opportunityId: string;
1896
- creatorAddress: string;
1897
- distributionType: import("@package/databases").DistributionType;
1898
- subType: number | null;
1899
- rewardTokenId: string;
1900
- manualOverrides: import("@package/databases").CampaignManualOverride[];
1901
- createdAt: Date;
1902
- rootCampaignId: string | null;
1903
- parentCampaignId: string | null;
1904
- };
1767
+ depositUrl: string | null;
1768
+ explorerAddress: string | null;
1769
+ howToSteps: string[];
1770
+ mainProtocolId: string | null;
1771
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
1772
+ identifier: string;
1773
+ dailyRewards: number;
1774
+ tags: string[];
1775
+ lastCampaignCreatedAt: Date;
1776
+ } | undefined;
1905
1777
  422: {
1906
1778
  type: "validation";
1907
1779
  on: string;
@@ -1914,148 +1786,9 @@ declare const app: Elysia<"", {
1914
1786
  };
1915
1787
  };
1916
1788
  };
1917
- } & {
1918
- tvls: {
1919
- ":opportunityId": {
1920
- put: {
1921
- body: unknown;
1922
- params: {
1923
- opportunityId: string;
1924
- };
1925
- query: unknown;
1926
- headers: {
1927
- authorization: string;
1928
- };
1929
- response: {
1930
- 200: unknown[];
1931
- 422: {
1932
- type: "validation";
1933
- on: string;
1934
- summary?: string;
1935
- message?: string;
1936
- found?: unknown;
1937
- property?: string;
1938
- expected?: string;
1939
- };
1940
- };
1941
- };
1942
- };
1943
- };
1944
- } & {
1945
- get: {
1946
- body: unknown;
1947
- params: {};
1948
- query: {
1949
- campaignId?: string | undefined;
1950
- id?: string | undefined;
1951
- tokenAddress?: string | undefined;
1952
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
1953
- chainId?: number | undefined;
1954
- startTimestamp?: string | undefined;
1955
- items?: number | undefined;
1956
- point?: boolean | undefined;
1957
- tokenSymbol?: string | undefined;
1958
- type?: string | undefined;
1959
- endTimestamp?: string | undefined;
1960
- opportunityId?: string | undefined;
1961
- creatorAddress?: string | undefined;
1962
- mainProtocolId?: string | undefined;
1963
- subType?: number | undefined;
1964
- rootCampaignId?: string | undefined;
1965
- parentCampaignId?: string | undefined;
1966
- creatorId?: string | undefined;
1967
- mainParameter?: string | undefined;
1968
- page?: number | undefined;
1969
- test?: boolean | undefined;
1970
- creatorTag?: string | undefined;
1971
- distributionChainIds?: number[] | undefined;
1972
- types?: string[] | undefined;
1973
- withOpportunity?: boolean | undefined;
1974
- createdAfter?: Date | null | undefined;
1975
- excludeSubCampaigns?: boolean | undefined;
1976
- };
1977
- headers: unknown;
1978
- response: {
1979
- 200: {
1980
- description?: string | undefined;
1981
- creator?: {
1982
- tags?: string[] | undefined;
1983
- creatorId?: string | null | undefined;
1984
- address: string;
1985
- } | undefined;
1986
- 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;
1987
- rootCampaignId?: string | undefined;
1988
- parentCampaignId?: string | undefined;
1989
- campaignStatus?: {
1990
- error?: string | undefined;
1991
- details?: any;
1992
- campaignId: string;
1993
- status: string;
1994
- computedUntil: string | number;
1995
- processingStarted: string | number;
1996
- } | undefined;
1997
- distributionChain?: {
1998
- explorers?: {
1999
- chainId: number;
2000
- type: "ETHERSCAN" | "BLOCKSCOUT";
2001
- url: string;
2002
- }[] | undefined;
2003
- name: string;
2004
- id: number;
2005
- icon: string;
2006
- } | undefined;
2007
- rewardToken: {
2008
- price?: number | null | undefined;
2009
- symbol: string;
2010
- name: string | null;
2011
- decimals: number;
2012
- address: string;
2013
- id: string;
2014
- chainId: number;
2015
- icon: string;
2016
- isNative: boolean;
2017
- isPoint: boolean;
2018
- isPreTGE: boolean;
2019
- isTest: boolean;
2020
- verified: boolean;
2021
- };
2022
- campaignId: string;
2023
- id: string;
2024
- params: any;
2025
- amount: string;
2026
- startTimestamp: string | number;
2027
- type: string;
2028
- computeChainId: number;
2029
- distributionChainId: number;
2030
- endTimestamp: string | number;
2031
- opportunityId: string;
2032
- creatorAddress: string;
2033
- subType: number | null;
2034
- rewardTokenId: string;
2035
- createdAt: string;
2036
- chain: {
2037
- explorers?: {
2038
- chainId: number;
2039
- type: "ETHERSCAN" | "BLOCKSCOUT";
2040
- url: string;
2041
- }[] | undefined;
2042
- name: string;
2043
- id: number;
2044
- icon: string;
2045
- };
2046
- }[];
2047
- 422: {
2048
- type: "validation";
2049
- on: string;
2050
- summary?: string;
2051
- message?: string;
2052
- found?: unknown;
2053
- property?: string;
2054
- expected?: string;
2055
- };
2056
- };
2057
- };
2058
- } & {
1789
+ };
1790
+ } & {
1791
+ campaigns: {
2059
1792
  ":id": {
2060
1793
  get: {
2061
1794
  body: unknown;
@@ -2145,7 +1878,9 @@ declare const app: Elysia<"", {
2145
1878
  };
2146
1879
  };
2147
1880
  };
2148
- } & {
1881
+ };
1882
+ } & {
1883
+ campaigns: {
2149
1884
  ":id": {
2150
1885
  metrics: {
2151
1886
  get: {
@@ -2188,7 +1923,40 @@ declare const app: Elysia<"", {
2188
1923
  };
2189
1924
  };
2190
1925
  };
2191
- } & {
1926
+ };
1927
+ } & {
1928
+ campaigns: {
1929
+ "campaigns-to-process": {
1930
+ engine: {
1931
+ post: {
1932
+ body: unknown;
1933
+ params: {};
1934
+ query: {
1935
+ chainId: number;
1936
+ };
1937
+ headers: {
1938
+ authorization: string;
1939
+ };
1940
+ response: {
1941
+ 200: {
1942
+ campaignId: string;
1943
+ };
1944
+ 422: {
1945
+ type: "validation";
1946
+ on: string;
1947
+ summary?: string;
1948
+ message?: string;
1949
+ found?: unknown;
1950
+ property?: string;
1951
+ expected?: string;
1952
+ };
1953
+ };
1954
+ };
1955
+ };
1956
+ };
1957
+ };
1958
+ } & {
1959
+ campaigns: {
2192
1960
  "campaigns-to-process": {
2193
1961
  get: {
2194
1962
  body: unknown;
@@ -2219,7 +1987,9 @@ declare const app: Elysia<"", {
2219
1987
  };
2220
1988
  };
2221
1989
  };
2222
- } & {
1990
+ };
1991
+ } & {
1992
+ campaigns: {
2223
1993
  "campaigns-to-process": {
2224
1994
  count: {
2225
1995
  get: {
@@ -2228,36 +1998,9 @@ declare const app: Elysia<"", {
2228
1998
  query: {
2229
1999
  chainId: number;
2230
2000
  };
2231
- headers: unknown;
2232
- response: {
2233
- 200: number;
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-to-process": {
2249
- next: {
2250
- get: {
2251
- body: unknown;
2252
- params: {};
2253
- query: {
2254
- chainId: number;
2255
- };
2256
- headers: unknown;
2257
- response: {
2258
- 200: {
2259
- campaignId: string;
2260
- };
2001
+ headers: unknown;
2002
+ response: {
2003
+ 200: number;
2261
2004
  422: {
2262
2005
  type: "validation";
2263
2006
  on: string;
@@ -2271,18 +2014,18 @@ declare const app: Elysia<"", {
2271
2014
  };
2272
2015
  };
2273
2016
  };
2274
- } & {
2017
+ };
2018
+ } & {
2019
+ campaigns: {
2275
2020
  "campaigns-to-process": {
2276
- engine: {
2277
- post: {
2021
+ next: {
2022
+ get: {
2278
2023
  body: unknown;
2279
2024
  params: {};
2280
2025
  query: {
2281
2026
  chainId: number;
2282
2027
  };
2283
- headers: {
2284
- authorization: string;
2285
- };
2028
+ headers: unknown;
2286
2029
  response: {
2287
2030
  200: {
2288
2031
  campaignId: string;
@@ -2352,8 +2095,8 @@ declare const app: Elysia<"", {
2352
2095
  parentCampaignId?: string | undefined;
2353
2096
  creatorId?: string | undefined;
2354
2097
  mainParameter?: string | undefined;
2355
- page?: number | undefined;
2356
2098
  test?: boolean | undefined;
2099
+ page?: number | undefined;
2357
2100
  creatorTag?: string | undefined;
2358
2101
  distributionChainIds?: number[] | undefined;
2359
2102
  types?: string[] | undefined;
@@ -2469,8 +2212,8 @@ declare const app: Elysia<"", {
2469
2212
  parentCampaignId?: string | undefined;
2470
2213
  creatorId?: string | undefined;
2471
2214
  mainParameter?: string | undefined;
2472
- page?: number | undefined;
2473
2215
  test?: boolean | undefined;
2216
+ page?: number | undefined;
2474
2217
  creatorTag?: string | undefined;
2475
2218
  distributionChainIds?: number[] | undefined;
2476
2219
  types?: string[] | undefined;
@@ -2500,7 +2243,35 @@ declare const app: Elysia<"", {
2500
2243
  get: {
2501
2244
  body: unknown;
2502
2245
  params: {};
2503
- query: unknown;
2246
+ query: {
2247
+ campaignId?: string | undefined;
2248
+ id?: string | undefined;
2249
+ tokenAddress?: string | undefined;
2250
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2251
+ chainId?: number | undefined;
2252
+ startTimestamp?: string | undefined;
2253
+ items?: number | undefined;
2254
+ point?: boolean | undefined;
2255
+ tokenSymbol?: string | undefined;
2256
+ type?: string | undefined;
2257
+ endTimestamp?: string | undefined;
2258
+ opportunityId?: string | undefined;
2259
+ creatorAddress?: string | undefined;
2260
+ mainProtocolId?: string | undefined;
2261
+ subType?: number | undefined;
2262
+ rootCampaignId?: string | undefined;
2263
+ parentCampaignId?: string | undefined;
2264
+ creatorId?: string | undefined;
2265
+ mainParameter?: string | undefined;
2266
+ test?: boolean | undefined;
2267
+ page?: number | undefined;
2268
+ creatorTag?: string | undefined;
2269
+ distributionChainIds?: number[] | undefined;
2270
+ types?: string[] | undefined;
2271
+ withOpportunity?: boolean | undefined;
2272
+ createdAfter?: Date | null | undefined;
2273
+ excludeSubCampaigns?: boolean | undefined;
2274
+ };
2504
2275
  headers: {
2505
2276
  authorization: string;
2506
2277
  };
@@ -2528,7 +2299,35 @@ declare const app: Elysia<"", {
2528
2299
  get: {
2529
2300
  body: unknown;
2530
2301
  params: {};
2531
- query: unknown;
2302
+ query: {
2303
+ campaignId?: string | undefined;
2304
+ id?: string | undefined;
2305
+ tokenAddress?: string | undefined;
2306
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2307
+ chainId?: number | undefined;
2308
+ startTimestamp?: string | undefined;
2309
+ items?: number | undefined;
2310
+ point?: boolean | undefined;
2311
+ tokenSymbol?: string | undefined;
2312
+ type?: string | undefined;
2313
+ endTimestamp?: string | undefined;
2314
+ opportunityId?: string | undefined;
2315
+ creatorAddress?: string | undefined;
2316
+ mainProtocolId?: string | undefined;
2317
+ subType?: number | undefined;
2318
+ rootCampaignId?: string | undefined;
2319
+ parentCampaignId?: string | undefined;
2320
+ creatorId?: string | undefined;
2321
+ mainParameter?: string | undefined;
2322
+ test?: boolean | undefined;
2323
+ page?: number | undefined;
2324
+ creatorTag?: string | undefined;
2325
+ distributionChainIds?: number[] | undefined;
2326
+ types?: string[] | undefined;
2327
+ withOpportunity?: boolean | undefined;
2328
+ createdAfter?: Date | null | undefined;
2329
+ excludeSubCampaigns?: boolean | undefined;
2330
+ };
2532
2331
  headers: {
2533
2332
  authorization: string;
2534
2333
  };
@@ -2557,7 +2356,35 @@ declare const app: Elysia<"", {
2557
2356
  get: {
2558
2357
  body: unknown;
2559
2358
  params: {};
2560
- query: unknown;
2359
+ query: {
2360
+ campaignId?: string | undefined;
2361
+ id?: string | undefined;
2362
+ tokenAddress?: string | undefined;
2363
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2364
+ chainId?: number | undefined;
2365
+ startTimestamp?: string | undefined;
2366
+ items?: number | undefined;
2367
+ point?: boolean | undefined;
2368
+ tokenSymbol?: string | undefined;
2369
+ type?: string | undefined;
2370
+ endTimestamp?: string | undefined;
2371
+ opportunityId?: string | undefined;
2372
+ creatorAddress?: string | undefined;
2373
+ mainProtocolId?: string | undefined;
2374
+ subType?: number | undefined;
2375
+ rootCampaignId?: string | undefined;
2376
+ parentCampaignId?: string | undefined;
2377
+ creatorId?: string | undefined;
2378
+ mainParameter?: string | undefined;
2379
+ test?: boolean | undefined;
2380
+ page?: number | undefined;
2381
+ creatorTag?: string | undefined;
2382
+ distributionChainIds?: number[] | undefined;
2383
+ types?: string[] | undefined;
2384
+ withOpportunity?: boolean | undefined;
2385
+ createdAfter?: Date | null | undefined;
2386
+ excludeSubCampaigns?: boolean | undefined;
2387
+ };
2561
2388
  headers: {
2562
2389
  authorization: string;
2563
2390
  };
@@ -2579,6 +2406,171 @@ declare const app: Elysia<"", {
2579
2406
  };
2580
2407
  };
2581
2408
  };
2409
+ } & {
2410
+ campaigns: {
2411
+ opportunity: {
2412
+ patch: {
2413
+ body: {
2414
+ opportunityIdentifier?: string | undefined;
2415
+ campaignId: string;
2416
+ distributionChain: number;
2417
+ };
2418
+ params: {};
2419
+ query: unknown;
2420
+ headers: {
2421
+ authorization: string;
2422
+ };
2423
+ response: {
2424
+ 200: string;
2425
+ 422: {
2426
+ type: "validation";
2427
+ on: string;
2428
+ summary?: string;
2429
+ message?: string;
2430
+ found?: unknown;
2431
+ property?: string;
2432
+ expected?: string;
2433
+ };
2434
+ };
2435
+ };
2436
+ };
2437
+ };
2438
+ } & {
2439
+ campaigns: {
2440
+ creator: {
2441
+ patch: {
2442
+ body: {
2443
+ campaignId: string;
2444
+ creatorAddress: string;
2445
+ distributionChain: number;
2446
+ };
2447
+ params: {};
2448
+ query: unknown;
2449
+ headers: {
2450
+ authorization: string;
2451
+ };
2452
+ response: {
2453
+ 200: void;
2454
+ 422: {
2455
+ type: "validation";
2456
+ on: string;
2457
+ summary?: string;
2458
+ message?: string;
2459
+ found?: unknown;
2460
+ property?: string;
2461
+ expected?: string;
2462
+ };
2463
+ };
2464
+ };
2465
+ };
2466
+ };
2467
+ } & {
2468
+ campaigns: {
2469
+ "remove-override": {
2470
+ patch: {
2471
+ body: {
2472
+ campaignId: string;
2473
+ distributionChain: number;
2474
+ field: "opportunityId" | "creatorAddress";
2475
+ };
2476
+ params: {};
2477
+ query: unknown;
2478
+ headers: {
2479
+ authorization: string;
2480
+ };
2481
+ response: {
2482
+ 200: void;
2483
+ 422: {
2484
+ type: "validation";
2485
+ on: string;
2486
+ summary?: string;
2487
+ message?: string;
2488
+ found?: unknown;
2489
+ property?: string;
2490
+ expected?: string;
2491
+ };
2492
+ };
2493
+ };
2494
+ };
2495
+ };
2496
+ } & {
2497
+ campaigns: {
2498
+ metadata: {
2499
+ patch: {
2500
+ body: {
2501
+ campaignId: string;
2502
+ url: string;
2503
+ distributionChain: number;
2504
+ };
2505
+ params: {};
2506
+ query: unknown;
2507
+ headers: {
2508
+ authorization: string;
2509
+ };
2510
+ response: {
2511
+ 200: {
2512
+ campaignId: string;
2513
+ description: string | null;
2514
+ id: string;
2515
+ params: import("@prisma/client/runtime/library").JsonValue;
2516
+ amount: string;
2517
+ startTimestamp: bigint;
2518
+ type: string;
2519
+ computeChainId: number;
2520
+ distributionChainId: number;
2521
+ endTimestamp: bigint;
2522
+ opportunityId: string;
2523
+ creatorAddress: string;
2524
+ distributionType: import("@package/databases").DistributionType;
2525
+ subType: number | null;
2526
+ rewardTokenId: string;
2527
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
2528
+ createdAt: Date;
2529
+ rootCampaignId: string | null;
2530
+ parentCampaignId: string | null;
2531
+ };
2532
+ 422: {
2533
+ type: "validation";
2534
+ on: string;
2535
+ summary?: string;
2536
+ message?: string;
2537
+ found?: unknown;
2538
+ property?: string;
2539
+ expected?: string;
2540
+ };
2541
+ };
2542
+ };
2543
+ };
2544
+ };
2545
+ } & {
2546
+ campaigns: {
2547
+ tvls: {
2548
+ ":opportunityId": {
2549
+ put: {
2550
+ body: unknown;
2551
+ params: {
2552
+ opportunityId: string;
2553
+ };
2554
+ query: unknown;
2555
+ headers: {
2556
+ authorization: string;
2557
+ };
2558
+ response: {
2559
+ 200: unknown[];
2560
+ 422: {
2561
+ type: "validation";
2562
+ on: string;
2563
+ summary?: string;
2564
+ message?: string;
2565
+ found?: unknown;
2566
+ property?: string;
2567
+ expected?: string;
2568
+ };
2569
+ };
2570
+ };
2571
+ };
2572
+ };
2573
+ };
2582
2574
  };
2583
2575
  } & {
2584
2576
  v4: {
@@ -3134,8 +3126,8 @@ declare const app: Elysia<"", {
3134
3126
  id?: string | undefined;
3135
3127
  items?: number | undefined;
3136
3128
  tags?: string[] | undefined;
3137
- page?: number | undefined;
3138
3129
  test?: boolean | undefined;
3130
+ page?: number | undefined;
3139
3131
  opportunityTag?: string | undefined;
3140
3132
  };
3141
3133
  headers: unknown;
@@ -3173,8 +3165,8 @@ declare const app: Elysia<"", {
3173
3165
  id?: string | undefined;
3174
3166
  items?: number | undefined;
3175
3167
  tags?: string[] | undefined;
3176
- page?: number | undefined;
3177
3168
  test?: boolean | undefined;
3169
+ page?: number | undefined;
3178
3170
  opportunityTag?: string | undefined;
3179
3171
  };
3180
3172
  headers: unknown;
@@ -3649,10 +3641,10 @@ declare const app: Elysia<"", {
3649
3641
  verified?: boolean | undefined;
3650
3642
  search?: string | undefined;
3651
3643
  displaySymbol?: string | undefined;
3652
- page?: number | undefined;
3653
3644
  test?: boolean | undefined;
3654
3645
  missingIcons?: boolean | undefined;
3655
3646
  missingPrice?: boolean | undefined;
3647
+ page?: number | undefined;
3656
3648
  };
3657
3649
  headers: unknown;
3658
3650
  response: {
@@ -3701,10 +3693,10 @@ declare const app: Elysia<"", {
3701
3693
  verified?: boolean | undefined;
3702
3694
  search?: string | undefined;
3703
3695
  displaySymbol?: string | undefined;
3704
- page?: number | undefined;
3705
3696
  test?: boolean | undefined;
3706
3697
  missingIcons?: boolean | undefined;
3707
3698
  missingPrice?: boolean | undefined;
3699
+ page?: number | undefined;
3708
3700
  };
3709
3701
  headers: unknown;
3710
3702
  response: {
@@ -7338,6 +7330,8 @@ declare const app: Elysia<"", {
7338
7330
  headers: unknown;
7339
7331
  response: {
7340
7332
  200: {
7333
+ apr: number | null;
7334
+ tvl: number | null;
7341
7335
  averageBoost: number | null;
7342
7336
  totalDistributedInUSD: number | null;
7343
7337
  forfeitingBoost: number | null;