@merkl/api 1.0.42 → 1.0.44

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 (33) hide show
  1. package/dist/src/eden/index.d.ts +1590 -1518
  2. package/dist/src/index.d.ts +842 -848
  3. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -2
  4. package/dist/src/modules/v4/accounting/accounting.model.d.ts +4 -4
  5. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
  6. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  7. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +303 -315
  8. package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -2
  9. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
  10. package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
  11. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
  12. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
  13. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
  14. package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -2
  15. package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
  16. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
  17. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +627 -627
  18. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -2
  19. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +36 -4
  20. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +4 -4
  21. package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
  22. package/dist/src/modules/v4/reward/reward.controller.d.ts +18 -18
  23. package/dist/src/modules/v4/reward/reward.model.d.ts +6 -6
  24. package/dist/src/modules/v4/router.d.ts +842 -848
  25. package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
  26. package/dist/src/modules/v4/token/token.model.d.ts +2 -2
  27. package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
  28. package/dist/src/modules/v4/token/token.service.d.ts +1 -1
  29. package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
  30. package/dist/src/modules/v4/user/user.model.d.ts +2 -2
  31. package/dist/src/utils/pagination.d.ts +11 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +1 -1
@@ -214,324 +214,38 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
214
214
  } & {
215
215
  v4: {
216
216
  opportunities: {
217
- get: {
218
- body: unknown;
219
- params: {};
220
- query: {
221
- sort?: string | undefined;
222
- name?: string | undefined;
223
- tokens?: string | undefined;
224
- campaignId?: string | undefined;
225
- status?: string | undefined;
226
- chainId?: string | undefined;
227
- campaigns?: boolean | undefined;
228
- items?: number | undefined;
229
- point?: boolean | undefined;
230
- order?: string | undefined;
231
- action?: string | undefined;
232
- type?: string | undefined;
233
- search?: string | undefined;
234
- creatorAddress?: string | undefined;
235
- mainProtocolId?: string | undefined;
236
- identifier?: string | undefined;
237
- tags?: string | undefined;
238
- page?: number | undefined;
239
- test?: boolean | undefined;
240
- excludeSubCampaigns?: boolean | undefined;
241
- minimumTvl?: number | undefined;
242
- maximumTvl?: number | undefined;
243
- minimumApr?: number | undefined;
244
- maximumApr?: number | undefined;
245
- rewardTokenSymbol?: string | undefined;
246
- };
247
- headers: unknown;
248
- response: {
249
- 200: ({
250
- protocol?: {
251
- dailyRewards?: number | undefined;
252
- numberOfLiveCampaigns?: number | undefined;
253
- opportunityLiveTags?: string[] | undefined;
254
- name: string;
255
- description: string;
256
- id: string;
257
- url: string;
258
- icon: string;
259
- tags: string[];
260
- } | null | undefined;
261
- depositUrl?: string | undefined;
262
- explorerAddress?: string | undefined;
263
- 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;
264
- aprRecord?: {
265
- timestamp: string | bigint;
266
- cumulated: number;
267
- breakdowns: {
268
- 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;
269
- value: number;
270
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
271
- identifier: string;
272
- }[];
273
- } | undefined;
274
- tvlRecord?: {
275
- timestamp: string | bigint;
276
- total: number;
277
- breakdowns: {
278
- value: number;
279
- type: "TOKEN" | "PROTOCOL";
280
- identifier: string;
281
- }[];
282
- } | undefined;
283
- rewardsRecord?: {
284
- timestamp: string | bigint;
285
- total: number;
286
- breakdowns: {
287
- 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;
288
- token: {
289
- price?: number | null | undefined;
290
- symbol: string;
291
- name: string | null;
292
- decimals: number;
293
- address: string;
294
- id: string;
295
- chainId: number;
296
- icon: string;
297
- isNative: boolean;
298
- isPoint: boolean;
299
- isPreTGE: boolean;
300
- isTest: boolean;
301
- verified: boolean;
302
- };
303
- campaignId: string;
304
- value: number;
305
- amount: string | bigint;
306
- }[];
307
- } | undefined;
308
- name: string;
309
- apr: number;
310
- tokens: {
311
- price?: number | null | undefined;
312
- symbol: string;
313
- name: string | null;
314
- decimals: number;
315
- address: string;
316
- id: string;
317
- chainId: number;
318
- icon: string;
319
- isNative: boolean;
320
- isPoint: boolean;
321
- isPreTGE: boolean;
322
- isTest: boolean;
323
- verified: boolean;
324
- }[];
325
- tvl: number;
326
- description: string;
327
- id: string;
328
- status: string;
329
- chainId: number;
330
- action: string;
331
- type: string;
332
- howToSteps: string[];
333
- identifier: string;
334
- dailyRewards: number;
335
- tags: string[];
336
- lastCampaignCreatedAt: string;
337
- chain: {
338
- explorers?: {
339
- chainId: number;
340
- type: "ETHERSCAN" | "BLOCKSCOUT";
341
- url: string;
342
- }[] | undefined;
343
- name: string;
344
- id: number;
345
- icon: string;
346
- };
347
- } | null)[];
348
- 422: {
349
- type: "validation";
350
- on: string;
351
- summary?: string;
352
- message?: string;
353
- found?: unknown;
354
- property?: string;
355
- expected?: string;
356
- };
357
- };
358
- };
359
- };
360
- } & {
361
- opportunities: {
362
- count: {
363
- get: {
364
- body: unknown;
365
- params: {};
366
- query: {
367
- sort?: string | undefined;
368
- name?: string | undefined;
369
- tokens?: string | undefined;
370
- campaignId?: string | undefined;
371
- status?: string | undefined;
372
- chainId?: string | undefined;
373
- campaigns?: boolean | undefined;
374
- items?: number | undefined;
375
- point?: boolean | undefined;
376
- order?: string | undefined;
377
- action?: string | undefined;
378
- type?: string | undefined;
379
- search?: string | undefined;
380
- creatorAddress?: string | undefined;
381
- mainProtocolId?: string | undefined;
382
- identifier?: string | undefined;
383
- tags?: string | undefined;
384
- page?: number | undefined;
385
- test?: boolean | undefined;
386
- excludeSubCampaigns?: boolean | undefined;
387
- minimumTvl?: number | undefined;
388
- maximumTvl?: number | undefined;
389
- minimumApr?: number | undefined;
390
- maximumApr?: number | undefined;
391
- rewardTokenSymbol?: string | undefined;
392
- };
393
- headers: unknown;
394
- response: {
395
- 200: number;
396
- 422: {
397
- type: "validation";
398
- on: string;
399
- summary?: string;
400
- message?: string;
401
- found?: unknown;
402
- property?: string;
403
- expected?: string;
404
- };
405
- };
406
- };
407
- };
408
- };
409
- } & {
410
- opportunities: {
411
- bins: {
412
- apr: {
413
- get: {
414
- body: unknown;
415
- params: {};
416
- query: {
417
- sort?: string | undefined;
418
- name?: string | undefined;
419
- tokens?: string | undefined;
420
- campaignId?: string | undefined;
421
- status?: string | undefined;
422
- chainId?: string | undefined;
423
- campaigns?: boolean | undefined;
424
- items?: number | undefined;
425
- point?: boolean | undefined;
426
- order?: string | undefined;
427
- action?: string | undefined;
428
- type?: string | undefined;
429
- search?: string | undefined;
430
- creatorAddress?: string | undefined;
431
- mainProtocolId?: string | undefined;
432
- identifier?: string | undefined;
433
- tags?: string | undefined;
434
- page?: number | undefined;
435
- test?: boolean | undefined;
436
- excludeSubCampaigns?: boolean | undefined;
437
- minimumTvl?: number | undefined;
438
- maximumTvl?: number | undefined;
439
- minimumApr?: number | undefined;
440
- maximumApr?: number | undefined;
441
- rewardTokenSymbol?: string | undefined;
442
- };
443
- headers: unknown;
444
- response: {
445
- 200: {
446
- min: number;
447
- max: number;
448
- overThreshold: number;
449
- binWidth: number;
450
- bins: any[];
451
- };
452
- 422: {
453
- type: "validation";
454
- on: string;
455
- summary?: string;
456
- message?: string;
457
- found?: unknown;
458
- property?: string;
459
- expected?: string;
460
- };
461
- };
462
- };
463
- };
464
- };
465
- };
466
- } & {
467
- opportunities: {
468
- bins: {
469
- tvl: {
470
- get: {
471
- body: unknown;
472
- params: {};
473
- query: {
474
- sort?: string | undefined;
475
- name?: string | undefined;
476
- tokens?: string | undefined;
477
- campaignId?: string | undefined;
478
- status?: string | undefined;
479
- chainId?: string | undefined;
480
- campaigns?: boolean | undefined;
481
- items?: number | undefined;
482
- point?: boolean | undefined;
483
- order?: string | undefined;
484
- action?: string | undefined;
485
- type?: string | undefined;
486
- search?: string | undefined;
487
- creatorAddress?: string | undefined;
488
- mainProtocolId?: string | undefined;
489
- identifier?: string | undefined;
490
- tags?: string | undefined;
491
- page?: number | undefined;
492
- test?: boolean | undefined;
493
- excludeSubCampaigns?: boolean | undefined;
494
- minimumTvl?: number | undefined;
495
- maximumTvl?: number | undefined;
496
- minimumApr?: number | undefined;
497
- maximumApr?: number | undefined;
498
- rewardTokenSymbol?: string | undefined;
499
- };
500
- headers: unknown;
501
- response: {
502
- 200: {
503
- min: number;
504
- max: number;
505
- binWidth: number;
506
- bins: any[];
507
- };
508
- 422: {
509
- type: "validation";
510
- on: string;
511
- summary?: string;
512
- message?: string;
513
- found?: unknown;
514
- property?: string;
515
- expected?: string;
516
- };
517
- };
518
- };
519
- };
520
- };
521
- };
522
- } & {
523
- opportunities: {
524
- ":id": {
217
+ campaigns: {
525
218
  get: {
526
219
  body: unknown;
527
- params: {
528
- id: string;
529
- };
220
+ params: {};
530
221
  query: {
531
- campaigns?: boolean | undefined;
222
+ campaignId?: string | undefined;
223
+ id?: string | undefined;
224
+ tokenAddress?: string | undefined;
225
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
226
+ chainId?: number | undefined;
227
+ startTimestamp?: string | undefined;
532
228
  point?: boolean | undefined;
229
+ tokenSymbol?: string | undefined;
230
+ type?: string | undefined;
231
+ endTimestamp?: string | undefined;
232
+ opportunityId?: string | undefined;
233
+ creatorAddress?: string | undefined;
234
+ mainProtocolId?: string | undefined;
235
+ subType?: number | undefined;
236
+ rootCampaignId?: string | undefined;
237
+ parentCampaignId?: string | undefined;
238
+ creatorId?: string | undefined;
239
+ mainParameter?: string | undefined;
533
240
  test?: boolean | undefined;
241
+ creatorTag?: string | undefined;
242
+ distributionChainIds?: number[] | undefined;
243
+ types?: string[] | undefined;
244
+ withOpportunity?: boolean | undefined;
245
+ createdAfter?: Date | null | undefined;
534
246
  excludeSubCampaigns?: boolean | undefined;
247
+ items: number;
248
+ page: number;
535
249
  };
536
250
  headers: unknown;
537
251
  response: {
@@ -616,6 +330,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
616
330
  id: string;
617
331
  status: string;
618
332
  chainId: number;
333
+ campaigns: {
334
+ description?: string | undefined;
335
+ creator?: {
336
+ tags?: string[] | undefined;
337
+ creatorId?: string | null | undefined;
338
+ address: string;
339
+ } | undefined;
340
+ 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;
341
+ rootCampaignId?: string | undefined;
342
+ parentCampaignId?: string | undefined;
343
+ campaignStatus?: {
344
+ error?: string | undefined;
345
+ details?: any;
346
+ campaignId: string;
347
+ status: string;
348
+ computedUntil: string | number;
349
+ processingStarted: string | number;
350
+ } | undefined;
351
+ distributionChain?: {
352
+ explorers?: {
353
+ chainId: number;
354
+ type: "ETHERSCAN" | "BLOCKSCOUT";
355
+ url: string;
356
+ }[] | undefined;
357
+ name: string;
358
+ id: number;
359
+ icon: string;
360
+ } | undefined;
361
+ rewardToken: {
362
+ price?: number | null | undefined;
363
+ symbol: string;
364
+ name: string | null;
365
+ decimals: number;
366
+ address: string;
367
+ id: string;
368
+ chainId: number;
369
+ icon: string;
370
+ isNative: boolean;
371
+ isPoint: boolean;
372
+ isPreTGE: boolean;
373
+ isTest: boolean;
374
+ verified: boolean;
375
+ };
376
+ campaignId: string;
377
+ id: string;
378
+ params: any;
379
+ amount: string;
380
+ startTimestamp: string | number;
381
+ type: string;
382
+ computeChainId: number;
383
+ distributionChainId: number;
384
+ endTimestamp: string | number;
385
+ opportunityId: string;
386
+ creatorAddress: string;
387
+ subType: number | null;
388
+ rewardTokenId: string;
389
+ createdAt: string;
390
+ chain: {
391
+ explorers?: {
392
+ chainId: number;
393
+ type: "ETHERSCAN" | "BLOCKSCOUT";
394
+ url: string;
395
+ }[] | undefined;
396
+ name: string;
397
+ id: number;
398
+ icon: string;
399
+ };
400
+ }[];
619
401
  action: string;
620
402
  type: string;
621
403
  howToSteps: string[];
@@ -633,7 +415,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
633
415
  id: number;
634
416
  icon: string;
635
417
  };
636
- };
418
+ }[];
637
419
  readonly 500: {
638
420
  info: string;
639
421
  code: string;
@@ -658,37 +440,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
658
440
  };
659
441
  } & {
660
442
  opportunities: {
661
- campaigns: {
443
+ ":id": {
662
444
  get: {
663
445
  body: unknown;
664
- params: {};
446
+ params: {
447
+ id: string;
448
+ };
665
449
  query: {
666
- campaignId?: string | undefined;
667
- id?: string | undefined;
668
- tokenAddress?: string | undefined;
669
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
670
- chainId?: number | undefined;
671
- startTimestamp?: string | undefined;
672
- items?: number | undefined;
450
+ campaigns?: boolean | undefined;
673
451
  point?: boolean | undefined;
674
- tokenSymbol?: string | undefined;
675
- type?: string | undefined;
676
- endTimestamp?: string | undefined;
677
- opportunityId?: string | undefined;
678
- creatorAddress?: string | undefined;
679
- mainProtocolId?: string | undefined;
680
- subType?: number | undefined;
681
- rootCampaignId?: string | undefined;
682
- parentCampaignId?: string | undefined;
683
- creatorId?: string | undefined;
684
- mainParameter?: string | undefined;
685
- page?: number | undefined;
686
452
  test?: boolean | undefined;
687
- creatorTag?: string | undefined;
688
- distributionChainIds?: number[] | undefined;
689
- types?: string[] | undefined;
690
- withOpportunity?: boolean | undefined;
691
- createdAfter?: Date | null | undefined;
692
453
  excludeSubCampaigns?: boolean | undefined;
693
454
  };
694
455
  headers: unknown;
@@ -742,106 +503,38 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
742
503
  chainId: number;
743
504
  icon: string;
744
505
  isNative: boolean;
745
- isPoint: boolean;
746
- isPreTGE: boolean;
747
- isTest: boolean;
748
- verified: boolean;
749
- };
750
- campaignId: string;
751
- value: number;
752
- amount: string | bigint;
753
- }[];
754
- } | undefined;
755
- name: string;
756
- apr: number;
757
- tokens: {
758
- price?: number | null | undefined;
759
- symbol: string;
760
- name: string | null;
761
- decimals: number;
762
- address: string;
763
- id: string;
764
- chainId: number;
765
- icon: string;
766
- isNative: boolean;
767
- isPoint: boolean;
768
- isPreTGE: boolean;
769
- isTest: boolean;
770
- verified: boolean;
771
- }[];
772
- tvl: number;
773
- description: string;
774
- id: string;
775
- status: string;
776
- chainId: number;
777
- campaigns: {
778
- description?: string | undefined;
779
- creator?: {
780
- tags?: string[] | undefined;
781
- creatorId?: string | null | undefined;
782
- address: string;
783
- } | undefined;
784
- 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;
785
- rootCampaignId?: string | undefined;
786
- parentCampaignId?: string | undefined;
787
- campaignStatus?: {
788
- error?: string | undefined;
789
- details?: any;
790
- campaignId: string;
791
- status: string;
792
- computedUntil: string | number;
793
- processingStarted: string | number;
794
- } | undefined;
795
- distributionChain?: {
796
- explorers?: {
797
- chainId: number;
798
- type: "ETHERSCAN" | "BLOCKSCOUT";
799
- url: string;
800
- }[] | undefined;
801
- name: string;
802
- id: number;
803
- icon: string;
804
- } | undefined;
805
- rewardToken: {
806
- price?: number | null | undefined;
807
- symbol: string;
808
- name: string | null;
809
- decimals: number;
810
- address: string;
811
- id: string;
812
- chainId: number;
813
- icon: string;
814
- isNative: boolean;
815
- isPoint: boolean;
816
- isPreTGE: boolean;
817
- isTest: boolean;
818
- verified: boolean;
819
- };
820
- campaignId: string;
821
- id: string;
822
- params: any;
823
- amount: string;
824
- startTimestamp: string | number;
825
- type: string;
826
- computeChainId: number;
827
- distributionChainId: number;
828
- endTimestamp: string | number;
829
- opportunityId: string;
830
- creatorAddress: string;
831
- subType: number | null;
832
- rewardTokenId: string;
833
- createdAt: string;
834
- chain: {
835
- explorers?: {
836
- chainId: number;
837
- type: "ETHERSCAN" | "BLOCKSCOUT";
838
- url: string;
839
- }[] | undefined;
840
- name: string;
841
- id: number;
842
- icon: string;
843
- };
506
+ isPoint: boolean;
507
+ isPreTGE: boolean;
508
+ isTest: boolean;
509
+ verified: boolean;
510
+ };
511
+ campaignId: string;
512
+ value: number;
513
+ amount: string | bigint;
514
+ }[];
515
+ } | undefined;
516
+ name: string;
517
+ apr: number;
518
+ tokens: {
519
+ price?: number | null | undefined;
520
+ symbol: string;
521
+ name: string | null;
522
+ decimals: number;
523
+ address: string;
524
+ id: string;
525
+ chainId: number;
526
+ icon: string;
527
+ isNative: boolean;
528
+ isPoint: boolean;
529
+ isPreTGE: boolean;
530
+ isTest: boolean;
531
+ verified: boolean;
844
532
  }[];
533
+ tvl: number;
534
+ description: string;
535
+ id: string;
536
+ status: string;
537
+ chainId: number;
845
538
  action: string;
846
539
  type: string;
847
540
  howToSteps: string[];
@@ -859,7 +552,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
859
552
  id: number;
860
553
  icon: string;
861
554
  };
862
- }[];
555
+ };
863
556
  readonly 500: {
864
557
  info: string;
865
558
  code: string;
@@ -1066,14 +759,321 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1066
759
  icon: string;
1067
760
  };
1068
761
  };
1069
- readonly 500: {
1070
- info: string;
1071
- code: string;
1072
- httpCode: number;
762
+ readonly 500: {
763
+ info: string;
764
+ code: string;
765
+ httpCode: number;
766
+ };
767
+ readonly 404: {
768
+ name: string;
769
+ message: string;
770
+ };
771
+ 422: {
772
+ type: "validation";
773
+ on: string;
774
+ summary?: string;
775
+ message?: string;
776
+ found?: unknown;
777
+ property?: string;
778
+ expected?: string;
779
+ };
780
+ };
781
+ };
782
+ };
783
+ };
784
+ };
785
+ } & {
786
+ opportunities: {
787
+ get: {
788
+ body: unknown;
789
+ params: {};
790
+ query: {
791
+ sort?: string | undefined;
792
+ name?: string | undefined;
793
+ tokens?: string | undefined;
794
+ campaignId?: string | undefined;
795
+ status?: string | undefined;
796
+ chainId?: string | undefined;
797
+ campaigns?: boolean | undefined;
798
+ point?: boolean | undefined;
799
+ order?: string | undefined;
800
+ action?: string | undefined;
801
+ type?: string | undefined;
802
+ search?: string | undefined;
803
+ creatorAddress?: string | undefined;
804
+ mainProtocolId?: string | undefined;
805
+ identifier?: string | undefined;
806
+ tags?: string | undefined;
807
+ test?: boolean | undefined;
808
+ excludeSubCampaigns?: boolean | undefined;
809
+ minimumTvl?: number | undefined;
810
+ maximumTvl?: number | undefined;
811
+ minimumApr?: number | undefined;
812
+ maximumApr?: number | undefined;
813
+ rewardTokenSymbol?: string | undefined;
814
+ items: number;
815
+ page: number;
816
+ };
817
+ headers: unknown;
818
+ response: {
819
+ 200: ({
820
+ protocol?: {
821
+ dailyRewards?: number | undefined;
822
+ numberOfLiveCampaigns?: number | undefined;
823
+ opportunityLiveTags?: string[] | undefined;
824
+ name: string;
825
+ description: string;
826
+ id: string;
827
+ url: string;
828
+ icon: string;
829
+ tags: string[];
830
+ } | null | undefined;
831
+ depositUrl?: string | undefined;
832
+ explorerAddress?: string | undefined;
833
+ 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;
834
+ aprRecord?: {
835
+ timestamp: string | bigint;
836
+ cumulated: number;
837
+ breakdowns: {
838
+ 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;
839
+ value: number;
840
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
841
+ identifier: string;
842
+ }[];
843
+ } | undefined;
844
+ tvlRecord?: {
845
+ timestamp: string | bigint;
846
+ total: number;
847
+ breakdowns: {
848
+ value: number;
849
+ type: "TOKEN" | "PROTOCOL";
850
+ identifier: string;
851
+ }[];
852
+ } | undefined;
853
+ rewardsRecord?: {
854
+ timestamp: string | bigint;
855
+ total: number;
856
+ breakdowns: {
857
+ 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;
858
+ token: {
859
+ price?: number | null | undefined;
860
+ symbol: string;
861
+ name: string | null;
862
+ decimals: number;
863
+ address: string;
864
+ id: string;
865
+ chainId: number;
866
+ icon: string;
867
+ isNative: boolean;
868
+ isPoint: boolean;
869
+ isPreTGE: boolean;
870
+ isTest: boolean;
871
+ verified: boolean;
872
+ };
873
+ campaignId: string;
874
+ value: number;
875
+ amount: string | bigint;
876
+ }[];
877
+ } | undefined;
878
+ name: string;
879
+ apr: number;
880
+ tokens: {
881
+ price?: number | null | undefined;
882
+ symbol: string;
883
+ name: string | null;
884
+ decimals: number;
885
+ address: string;
886
+ id: string;
887
+ chainId: number;
888
+ icon: string;
889
+ isNative: boolean;
890
+ isPoint: boolean;
891
+ isPreTGE: boolean;
892
+ isTest: boolean;
893
+ verified: boolean;
894
+ }[];
895
+ tvl: number;
896
+ description: string;
897
+ id: string;
898
+ status: string;
899
+ chainId: number;
900
+ action: string;
901
+ type: string;
902
+ howToSteps: string[];
903
+ identifier: string;
904
+ dailyRewards: number;
905
+ tags: string[];
906
+ lastCampaignCreatedAt: string;
907
+ chain: {
908
+ explorers?: {
909
+ chainId: number;
910
+ type: "ETHERSCAN" | "BLOCKSCOUT";
911
+ url: string;
912
+ }[] | undefined;
913
+ name: string;
914
+ id: number;
915
+ icon: string;
916
+ };
917
+ } | null)[];
918
+ 422: {
919
+ type: "validation";
920
+ on: string;
921
+ summary?: string;
922
+ message?: string;
923
+ found?: unknown;
924
+ property?: string;
925
+ expected?: string;
926
+ };
927
+ };
928
+ };
929
+ };
930
+ } & {
931
+ opportunities: {
932
+ count: {
933
+ get: {
934
+ body: unknown;
935
+ params: {};
936
+ query: {
937
+ sort?: string | undefined;
938
+ name?: string | undefined;
939
+ tokens?: string | undefined;
940
+ campaignId?: string | undefined;
941
+ status?: string | undefined;
942
+ chainId?: string | undefined;
943
+ campaigns?: boolean | undefined;
944
+ point?: boolean | undefined;
945
+ order?: string | undefined;
946
+ action?: string | undefined;
947
+ type?: string | undefined;
948
+ search?: string | undefined;
949
+ creatorAddress?: string | undefined;
950
+ mainProtocolId?: string | undefined;
951
+ identifier?: string | undefined;
952
+ tags?: string | undefined;
953
+ test?: boolean | undefined;
954
+ excludeSubCampaigns?: boolean | undefined;
955
+ minimumTvl?: number | undefined;
956
+ maximumTvl?: number | undefined;
957
+ minimumApr?: number | undefined;
958
+ maximumApr?: number | undefined;
959
+ rewardTokenSymbol?: string | undefined;
960
+ items: number;
961
+ page: number;
962
+ };
963
+ headers: unknown;
964
+ response: {
965
+ 200: number;
966
+ 422: {
967
+ type: "validation";
968
+ on: string;
969
+ summary?: string;
970
+ message?: string;
971
+ found?: unknown;
972
+ property?: string;
973
+ expected?: string;
974
+ };
975
+ };
976
+ };
977
+ };
978
+ };
979
+ } & {
980
+ opportunities: {
981
+ bins: {
982
+ apr: {
983
+ get: {
984
+ body: unknown;
985
+ params: {};
986
+ query: {
987
+ sort?: string | undefined;
988
+ name?: string | undefined;
989
+ tokens?: string | undefined;
990
+ campaignId?: string | undefined;
991
+ status?: string | undefined;
992
+ chainId?: string | undefined;
993
+ campaigns?: boolean | undefined;
994
+ point?: boolean | undefined;
995
+ order?: string | undefined;
996
+ action?: string | undefined;
997
+ type?: string | undefined;
998
+ search?: string | undefined;
999
+ creatorAddress?: string | undefined;
1000
+ mainProtocolId?: string | undefined;
1001
+ identifier?: string | undefined;
1002
+ tags?: string | undefined;
1003
+ test?: boolean | undefined;
1004
+ excludeSubCampaigns?: boolean | undefined;
1005
+ minimumTvl?: number | undefined;
1006
+ maximumTvl?: number | undefined;
1007
+ minimumApr?: number | undefined;
1008
+ maximumApr?: number | undefined;
1009
+ rewardTokenSymbol?: string | undefined;
1010
+ items: number;
1011
+ page: number;
1012
+ };
1013
+ headers: unknown;
1014
+ response: {
1015
+ 200: {
1016
+ min: number;
1017
+ max: number;
1018
+ overThreshold: number;
1019
+ binWidth: number;
1020
+ bins: any[];
1021
+ };
1022
+ 422: {
1023
+ type: "validation";
1024
+ on: string;
1025
+ summary?: string;
1026
+ message?: string;
1027
+ found?: unknown;
1028
+ property?: string;
1029
+ expected?: string;
1073
1030
  };
1074
- readonly 404: {
1075
- name: string;
1076
- message: string;
1031
+ };
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ } & {
1037
+ opportunities: {
1038
+ bins: {
1039
+ tvl: {
1040
+ get: {
1041
+ body: unknown;
1042
+ params: {};
1043
+ query: {
1044
+ sort?: string | undefined;
1045
+ name?: string | undefined;
1046
+ tokens?: string | undefined;
1047
+ campaignId?: string | undefined;
1048
+ status?: string | undefined;
1049
+ chainId?: string | undefined;
1050
+ campaigns?: boolean | undefined;
1051
+ point?: boolean | undefined;
1052
+ order?: string | undefined;
1053
+ action?: string | undefined;
1054
+ type?: string | undefined;
1055
+ search?: string | undefined;
1056
+ creatorAddress?: string | undefined;
1057
+ mainProtocolId?: string | undefined;
1058
+ identifier?: string | undefined;
1059
+ tags?: string | undefined;
1060
+ test?: boolean | undefined;
1061
+ excludeSubCampaigns?: boolean | undefined;
1062
+ minimumTvl?: number | undefined;
1063
+ maximumTvl?: number | undefined;
1064
+ minimumApr?: number | undefined;
1065
+ maximumApr?: number | undefined;
1066
+ rewardTokenSymbol?: string | undefined;
1067
+ items: number;
1068
+ page: number;
1069
+ };
1070
+ headers: unknown;
1071
+ response: {
1072
+ 200: {
1073
+ min: number;
1074
+ max: number;
1075
+ binWidth: number;
1076
+ bins: any[];
1077
1077
  };
1078
1078
  422: {
1079
1079
  type: "validation";
@@ -1106,7 +1106,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1106
1106
  status?: string | undefined;
1107
1107
  chainId?: string | undefined;
1108
1108
  campaigns?: boolean | undefined;
1109
- items?: number | undefined;
1110
1109
  point?: boolean | undefined;
1111
1110
  order?: string | undefined;
1112
1111
  action?: string | undefined;
@@ -1116,7 +1115,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1116
1115
  mainProtocolId?: string | undefined;
1117
1116
  identifier?: string | undefined;
1118
1117
  tags?: string | undefined;
1119
- page?: number | undefined;
1120
1118
  test?: boolean | undefined;
1121
1119
  excludeSubCampaigns?: boolean | undefined;
1122
1120
  minimumTvl?: number | undefined;
@@ -1124,6 +1122,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1124
1122
  minimumApr?: number | undefined;
1125
1123
  maximumApr?: number | undefined;
1126
1124
  rewardTokenSymbol?: string | undefined;
1125
+ items: number;
1126
+ page: number;
1127
1127
  };
1128
1128
  headers: unknown;
1129
1129
  response: {
@@ -1162,7 +1162,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1162
1162
  status?: string | undefined;
1163
1163
  chainId?: string | undefined;
1164
1164
  campaigns?: boolean | undefined;
1165
- items?: number | undefined;
1166
1165
  point?: boolean | undefined;
1167
1166
  order?: string | undefined;
1168
1167
  action?: string | undefined;
@@ -1172,7 +1171,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1172
1171
  mainProtocolId?: string | undefined;
1173
1172
  identifier?: string | undefined;
1174
1173
  tags?: string | undefined;
1175
- page?: number | undefined;
1176
1174
  test?: boolean | undefined;
1177
1175
  excludeSubCampaigns?: boolean | undefined;
1178
1176
  minimumTvl?: number | undefined;
@@ -1180,6 +1178,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1180
1178
  minimumApr?: number | undefined;
1181
1179
  maximumApr?: number | undefined;
1182
1180
  rewardTokenSymbol?: string | undefined;
1181
+ items: number;
1182
+ page: number;
1183
1183
  };
1184
1184
  headers: unknown;
1185
1185
  response: {
@@ -1219,7 +1219,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1219
1219
  status?: string | undefined;
1220
1220
  chainId?: string | undefined;
1221
1221
  campaigns?: boolean | undefined;
1222
- items?: number | undefined;
1223
1222
  point?: boolean | undefined;
1224
1223
  order?: string | undefined;
1225
1224
  action?: string | undefined;
@@ -1229,7 +1228,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1229
1228
  mainProtocolId?: string | undefined;
1230
1229
  identifier?: string | undefined;
1231
1230
  tags?: string | undefined;
1232
- page?: number | undefined;
1233
1231
  test?: boolean | undefined;
1234
1232
  excludeSubCampaigns?: boolean | undefined;
1235
1233
  minimumTvl?: number | undefined;
@@ -1237,6 +1235,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1237
1235
  minimumApr?: number | undefined;
1238
1236
  maximumApr?: number | undefined;
1239
1237
  rewardTokenSymbol?: string | undefined;
1238
+ items: number;
1239
+ page: number;
1240
1240
  };
1241
1241
  headers: unknown;
1242
1242
  response: {
@@ -1717,190 +1717,62 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1717
1717
  isPoint: boolean;
1718
1718
  isPreTGE: boolean;
1719
1719
  isTest: boolean;
1720
- verified: boolean;
1721
- } & {
1722
- price?: number | null | undefined;
1723
- isTokenWrapper?: boolean | undefined;
1724
- tokenWrapperAddress?: string | undefined;
1725
- })[];
1726
- mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
1727
- description: string;
1728
- howToSteps: string[];
1729
- depositUrl: string | undefined;
1730
- explorerAddress: string | undefined;
1731
- tags: string[];
1732
- } | {
1733
- Tokens: {
1734
- symbol: string;
1735
- name: string | null;
1736
- decimals: number;
1737
- price: number | null;
1738
- address: string;
1739
- id: string;
1740
- chainId: number;
1741
- icon: string;
1742
- isNative: boolean;
1743
- isPoint: boolean;
1744
- isPreTGE: boolean;
1745
- isTest: boolean;
1746
- verified: boolean;
1747
- displaySymbol: string;
1748
- }[];
1749
- Protocols: {
1750
- name: string;
1751
- description: string;
1752
- id: string;
1753
- url: string;
1754
- icon: string;
1755
- tags: string[];
1756
- }[];
1757
- name: string;
1758
- apr: number;
1759
- tvl: number;
1760
- description: string;
1761
- id: string;
1762
- status: import("@package/databases").Status;
1763
- chainId: number;
1764
- action: import("@package/databases").OpportunityAction;
1765
- type: string;
1766
- depositUrl: string | null;
1767
- explorerAddress: string | null;
1768
- howToSteps: string[];
1769
- mainProtocolId: string | null;
1770
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
1771
- identifier: string;
1772
- dailyRewards: number;
1773
- tags: string[];
1774
- lastCampaignCreatedAt: Date;
1775
- } | undefined;
1776
- 422: {
1777
- type: "validation";
1778
- on: string;
1779
- summary?: string;
1780
- message?: string;
1781
- found?: unknown;
1782
- property?: string;
1783
- expected?: string;
1784
- };
1785
- };
1786
- };
1787
- };
1788
- } & {
1789
- opportunity: {
1790
- patch: {
1791
- body: {
1792
- opportunityIdentifier?: string | undefined;
1793
- campaignId: string;
1794
- distributionChain: number;
1795
- };
1796
- params: {};
1797
- query: unknown;
1798
- headers: {
1799
- authorization: string;
1800
- };
1801
- response: {
1802
- 200: string;
1803
- 422: {
1804
- type: "validation";
1805
- on: string;
1806
- summary?: string;
1807
- message?: string;
1808
- found?: unknown;
1809
- property?: string;
1810
- expected?: string;
1811
- };
1812
- };
1813
- };
1814
- };
1815
- } & {
1816
- creator: {
1817
- patch: {
1818
- body: {
1819
- campaignId: string;
1820
- creatorAddress: string;
1821
- distributionChain: number;
1822
- };
1823
- params: {};
1824
- query: unknown;
1825
- headers: {
1826
- authorization: string;
1827
- };
1828
- response: {
1829
- 200: void;
1830
- 422: {
1831
- type: "validation";
1832
- on: string;
1833
- summary?: string;
1834
- message?: string;
1835
- found?: unknown;
1836
- property?: string;
1837
- expected?: string;
1838
- };
1839
- };
1840
- };
1841
- };
1842
- } & {
1843
- "remove-override": {
1844
- patch: {
1845
- body: {
1846
- campaignId: string;
1847
- distributionChain: number;
1848
- field: "opportunityId" | "creatorAddress";
1849
- };
1850
- params: {};
1851
- query: unknown;
1852
- headers: {
1853
- authorization: string;
1854
- };
1855
- response: {
1856
- 200: void;
1857
- 422: {
1858
- type: "validation";
1859
- on: string;
1860
- summary?: string;
1861
- message?: string;
1862
- found?: unknown;
1863
- property?: string;
1864
- expected?: string;
1865
- };
1866
- };
1867
- };
1868
- };
1869
- } & {
1870
- metadata: {
1871
- patch: {
1872
- body: {
1873
- campaignId: string;
1874
- url: string;
1875
- distributionChain: number;
1876
- };
1877
- params: {};
1878
- query: unknown;
1879
- headers: {
1880
- authorization: string;
1881
- };
1882
- response: {
1883
- 200: {
1884
- campaignId: string;
1885
- description: string | null;
1720
+ verified: boolean;
1721
+ } & {
1722
+ price?: number | null | undefined;
1723
+ isTokenWrapper?: boolean | undefined;
1724
+ tokenWrapperAddress?: string | undefined;
1725
+ })[];
1726
+ mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
1727
+ description: string;
1728
+ howToSteps: string[];
1729
+ depositUrl: string | undefined;
1730
+ explorerAddress: string | undefined;
1731
+ tags: string[];
1732
+ } | {
1733
+ Tokens: {
1734
+ symbol: string;
1735
+ name: string | null;
1736
+ decimals: number;
1737
+ price: number | null;
1738
+ address: string;
1739
+ id: string;
1740
+ chainId: number;
1741
+ icon: string;
1742
+ isNative: boolean;
1743
+ isPoint: boolean;
1744
+ isPreTGE: boolean;
1745
+ isTest: boolean;
1746
+ verified: boolean;
1747
+ displaySymbol: string;
1748
+ }[];
1749
+ Protocols: {
1750
+ name: string;
1751
+ description: string;
1752
+ id: string;
1753
+ url: string;
1754
+ icon: string;
1755
+ tags: string[];
1756
+ }[];
1757
+ name: string;
1758
+ apr: number;
1759
+ tvl: number;
1760
+ description: string;
1886
1761
  id: string;
1887
- params: import("@prisma/client/runtime/library").JsonValue;
1888
- amount: string;
1889
- startTimestamp: bigint;
1762
+ status: import("@package/databases").Status;
1763
+ chainId: number;
1764
+ action: import("@package/databases").OpportunityAction;
1890
1765
  type: string;
1891
- computeChainId: number;
1892
- distributionChainId: number;
1893
- endTimestamp: bigint;
1894
- opportunityId: string;
1895
- creatorAddress: string;
1896
- distributionType: import("@package/databases").DistributionType;
1897
- subType: number | null;
1898
- rewardTokenId: string;
1899
- manualOverrides: import("@package/databases").CampaignManualOverride[];
1900
- createdAt: Date;
1901
- rootCampaignId: string | null;
1902
- parentCampaignId: string | null;
1903
- };
1766
+ depositUrl: string | null;
1767
+ explorerAddress: string | null;
1768
+ howToSteps: string[];
1769
+ mainProtocolId: string | null;
1770
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
1771
+ identifier: string;
1772
+ dailyRewards: number;
1773
+ tags: string[];
1774
+ lastCampaignCreatedAt: Date;
1775
+ } | undefined;
1904
1776
  422: {
1905
1777
  type: "validation";
1906
1778
  on: string;
@@ -1913,148 +1785,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
1913
1785
  };
1914
1786
  };
1915
1787
  };
1916
- } & {
1917
- tvls: {
1918
- ":opportunityId": {
1919
- put: {
1920
- body: unknown;
1921
- params: {
1922
- opportunityId: string;
1923
- };
1924
- query: unknown;
1925
- headers: {
1926
- authorization: string;
1927
- };
1928
- response: {
1929
- 200: unknown[];
1930
- 422: {
1931
- type: "validation";
1932
- on: string;
1933
- summary?: string;
1934
- message?: string;
1935
- found?: unknown;
1936
- property?: string;
1937
- expected?: string;
1938
- };
1939
- };
1940
- };
1941
- };
1942
- };
1943
- } & {
1944
- get: {
1945
- body: unknown;
1946
- params: {};
1947
- query: {
1948
- campaignId?: string | undefined;
1949
- id?: string | undefined;
1950
- tokenAddress?: string | undefined;
1951
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
1952
- chainId?: number | undefined;
1953
- startTimestamp?: string | undefined;
1954
- items?: number | undefined;
1955
- point?: boolean | undefined;
1956
- tokenSymbol?: string | undefined;
1957
- type?: string | undefined;
1958
- endTimestamp?: string | undefined;
1959
- opportunityId?: string | undefined;
1960
- creatorAddress?: string | undefined;
1961
- mainProtocolId?: string | undefined;
1962
- subType?: number | undefined;
1963
- rootCampaignId?: string | undefined;
1964
- parentCampaignId?: string | undefined;
1965
- creatorId?: string | undefined;
1966
- mainParameter?: string | undefined;
1967
- page?: number | undefined;
1968
- test?: boolean | undefined;
1969
- creatorTag?: string | undefined;
1970
- distributionChainIds?: number[] | undefined;
1971
- types?: string[] | undefined;
1972
- withOpportunity?: boolean | undefined;
1973
- createdAfter?: Date | null | undefined;
1974
- excludeSubCampaigns?: boolean | undefined;
1975
- };
1976
- headers: unknown;
1977
- response: {
1978
- 200: {
1979
- description?: string | undefined;
1980
- creator?: {
1981
- tags?: string[] | undefined;
1982
- creatorId?: string | null | undefined;
1983
- address: string;
1984
- } | undefined;
1985
- 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;
1986
- rootCampaignId?: string | undefined;
1987
- parentCampaignId?: string | undefined;
1988
- campaignStatus?: {
1989
- error?: string | undefined;
1990
- details?: any;
1991
- campaignId: string;
1992
- status: string;
1993
- computedUntil: string | number;
1994
- processingStarted: string | number;
1995
- } | undefined;
1996
- distributionChain?: {
1997
- explorers?: {
1998
- chainId: number;
1999
- type: "ETHERSCAN" | "BLOCKSCOUT";
2000
- url: string;
2001
- }[] | undefined;
2002
- name: string;
2003
- id: number;
2004
- icon: string;
2005
- } | undefined;
2006
- rewardToken: {
2007
- price?: number | null | undefined;
2008
- symbol: string;
2009
- name: string | null;
2010
- decimals: number;
2011
- address: string;
2012
- id: string;
2013
- chainId: number;
2014
- icon: string;
2015
- isNative: boolean;
2016
- isPoint: boolean;
2017
- isPreTGE: boolean;
2018
- isTest: boolean;
2019
- verified: boolean;
2020
- };
2021
- campaignId: string;
2022
- id: string;
2023
- params: any;
2024
- amount: string;
2025
- startTimestamp: string | number;
2026
- type: string;
2027
- computeChainId: number;
2028
- distributionChainId: number;
2029
- endTimestamp: string | number;
2030
- opportunityId: string;
2031
- creatorAddress: string;
2032
- subType: number | null;
2033
- rewardTokenId: string;
2034
- createdAt: string;
2035
- chain: {
2036
- explorers?: {
2037
- chainId: number;
2038
- type: "ETHERSCAN" | "BLOCKSCOUT";
2039
- url: string;
2040
- }[] | undefined;
2041
- name: string;
2042
- id: number;
2043
- icon: string;
2044
- };
2045
- }[];
2046
- 422: {
2047
- type: "validation";
2048
- on: string;
2049
- summary?: string;
2050
- message?: string;
2051
- found?: unknown;
2052
- property?: string;
2053
- expected?: string;
2054
- };
2055
- };
2056
- };
2057
- } & {
1788
+ };
1789
+ } & {
1790
+ campaigns: {
2058
1791
  ":id": {
2059
1792
  get: {
2060
1793
  body: unknown;
@@ -2144,7 +1877,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2144
1877
  };
2145
1878
  };
2146
1879
  };
2147
- } & {
1880
+ };
1881
+ } & {
1882
+ campaigns: {
2148
1883
  ":id": {
2149
1884
  metrics: {
2150
1885
  get: {
@@ -2187,7 +1922,40 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2187
1922
  };
2188
1923
  };
2189
1924
  };
2190
- } & {
1925
+ };
1926
+ } & {
1927
+ campaigns: {
1928
+ "campaigns-to-process": {
1929
+ engine: {
1930
+ post: {
1931
+ body: unknown;
1932
+ params: {};
1933
+ query: {
1934
+ chainId: number;
1935
+ };
1936
+ headers: {
1937
+ authorization: string;
1938
+ };
1939
+ response: {
1940
+ 200: {
1941
+ campaignId: string;
1942
+ };
1943
+ 422: {
1944
+ type: "validation";
1945
+ on: string;
1946
+ summary?: string;
1947
+ message?: string;
1948
+ found?: unknown;
1949
+ property?: string;
1950
+ expected?: string;
1951
+ };
1952
+ };
1953
+ };
1954
+ };
1955
+ };
1956
+ };
1957
+ } & {
1958
+ campaigns: {
2191
1959
  "campaigns-to-process": {
2192
1960
  get: {
2193
1961
  body: unknown;
@@ -2218,7 +1986,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2218
1986
  };
2219
1987
  };
2220
1988
  };
2221
- } & {
1989
+ };
1990
+ } & {
1991
+ campaigns: {
2222
1992
  "campaigns-to-process": {
2223
1993
  count: {
2224
1994
  get: {
@@ -2243,7 +2013,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2243
2013
  };
2244
2014
  };
2245
2015
  };
2246
- } & {
2016
+ };
2017
+ } & {
2018
+ campaigns: {
2247
2019
  "campaigns-to-process": {
2248
2020
  next: {
2249
2021
  get: {
@@ -2270,35 +2042,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2270
2042
  };
2271
2043
  };
2272
2044
  };
2273
- } & {
2274
- "campaigns-to-process": {
2275
- engine: {
2276
- post: {
2277
- body: unknown;
2278
- params: {};
2279
- query: {
2280
- chainId: number;
2281
- };
2282
- headers: {
2283
- authorization: string;
2284
- };
2285
- response: {
2286
- 200: {
2287
- campaignId: string;
2288
- };
2289
- 422: {
2290
- type: "validation";
2291
- on: string;
2292
- summary?: string;
2293
- message?: string;
2294
- found?: unknown;
2295
- property?: string;
2296
- expected?: string;
2297
- };
2298
- };
2299
- };
2300
- };
2301
- };
2302
2045
  };
2303
2046
  } & {
2304
2047
  campaigns: {
@@ -2338,7 +2081,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2338
2081
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2339
2082
  chainId?: number | undefined;
2340
2083
  startTimestamp?: string | undefined;
2341
- items?: number | undefined;
2342
2084
  point?: boolean | undefined;
2343
2085
  tokenSymbol?: string | undefined;
2344
2086
  type?: string | undefined;
@@ -2351,7 +2093,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2351
2093
  parentCampaignId?: string | undefined;
2352
2094
  creatorId?: string | undefined;
2353
2095
  mainParameter?: string | undefined;
2354
- page?: number | undefined;
2355
2096
  test?: boolean | undefined;
2356
2097
  creatorTag?: string | undefined;
2357
2098
  distributionChainIds?: number[] | undefined;
@@ -2359,6 +2100,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2359
2100
  withOpportunity?: boolean | undefined;
2360
2101
  createdAfter?: Date | null | undefined;
2361
2102
  excludeSubCampaigns?: boolean | undefined;
2103
+ items: number;
2104
+ page: number;
2362
2105
  };
2363
2106
  headers: unknown;
2364
2107
  response: {
@@ -2455,7 +2198,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2455
2198
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2456
2199
  chainId?: number | undefined;
2457
2200
  startTimestamp?: string | undefined;
2458
- items?: number | undefined;
2459
2201
  point?: boolean | undefined;
2460
2202
  tokenSymbol?: string | undefined;
2461
2203
  type?: string | undefined;
@@ -2468,7 +2210,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2468
2210
  parentCampaignId?: string | undefined;
2469
2211
  creatorId?: string | undefined;
2470
2212
  mainParameter?: string | undefined;
2471
- page?: number | undefined;
2472
2213
  test?: boolean | undefined;
2473
2214
  creatorTag?: string | undefined;
2474
2215
  distributionChainIds?: number[] | undefined;
@@ -2476,6 +2217,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2476
2217
  withOpportunity?: boolean | undefined;
2477
2218
  createdAfter?: Date | null | undefined;
2478
2219
  excludeSubCampaigns?: boolean | undefined;
2220
+ items: number;
2221
+ page: number;
2479
2222
  };
2480
2223
  headers: unknown;
2481
2224
  response: {
@@ -2499,7 +2242,35 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2499
2242
  get: {
2500
2243
  body: unknown;
2501
2244
  params: {};
2502
- query: unknown;
2245
+ query: {
2246
+ campaignId?: string | undefined;
2247
+ id?: string | undefined;
2248
+ tokenAddress?: string | undefined;
2249
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2250
+ chainId?: number | undefined;
2251
+ startTimestamp?: string | undefined;
2252
+ point?: boolean | undefined;
2253
+ tokenSymbol?: string | undefined;
2254
+ type?: string | undefined;
2255
+ endTimestamp?: string | undefined;
2256
+ opportunityId?: string | undefined;
2257
+ creatorAddress?: string | undefined;
2258
+ mainProtocolId?: string | undefined;
2259
+ subType?: number | undefined;
2260
+ rootCampaignId?: string | undefined;
2261
+ parentCampaignId?: string | undefined;
2262
+ creatorId?: string | undefined;
2263
+ mainParameter?: string | undefined;
2264
+ test?: boolean | undefined;
2265
+ creatorTag?: string | undefined;
2266
+ distributionChainIds?: number[] | undefined;
2267
+ types?: string[] | undefined;
2268
+ withOpportunity?: boolean | undefined;
2269
+ createdAfter?: Date | null | undefined;
2270
+ excludeSubCampaigns?: boolean | undefined;
2271
+ items: number;
2272
+ page: number;
2273
+ };
2503
2274
  headers: {
2504
2275
  authorization: string;
2505
2276
  };
@@ -2527,23 +2298,244 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2527
2298
  get: {
2528
2299
  body: unknown;
2529
2300
  params: {};
2530
- query: unknown;
2301
+ query: {
2302
+ campaignId?: string | undefined;
2303
+ id?: string | undefined;
2304
+ tokenAddress?: string | undefined;
2305
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2306
+ chainId?: number | undefined;
2307
+ startTimestamp?: string | undefined;
2308
+ point?: boolean | undefined;
2309
+ tokenSymbol?: string | undefined;
2310
+ type?: string | undefined;
2311
+ endTimestamp?: string | undefined;
2312
+ opportunityId?: string | undefined;
2313
+ creatorAddress?: string | undefined;
2314
+ mainProtocolId?: string | undefined;
2315
+ subType?: number | undefined;
2316
+ rootCampaignId?: string | undefined;
2317
+ parentCampaignId?: string | undefined;
2318
+ creatorId?: string | undefined;
2319
+ mainParameter?: string | undefined;
2320
+ test?: boolean | undefined;
2321
+ creatorTag?: string | undefined;
2322
+ distributionChainIds?: number[] | undefined;
2323
+ types?: string[] | undefined;
2324
+ withOpportunity?: boolean | undefined;
2325
+ createdAfter?: Date | null | undefined;
2326
+ excludeSubCampaigns?: boolean | undefined;
2327
+ items: number;
2328
+ page: number;
2329
+ };
2330
+ headers: {
2331
+ authorization: string;
2332
+ };
2333
+ response: {
2334
+ 200: {
2335
+ [x: string]: number;
2336
+ };
2337
+ 422: {
2338
+ type: "validation";
2339
+ on: string;
2340
+ summary?: string;
2341
+ message?: string;
2342
+ found?: unknown;
2343
+ property?: string;
2344
+ expected?: string;
2345
+ };
2346
+ };
2347
+ };
2348
+ };
2349
+ };
2350
+ };
2351
+ } & {
2352
+ campaigns: {
2353
+ count: {
2354
+ "by-protocols": {
2355
+ get: {
2356
+ body: unknown;
2357
+ params: {};
2358
+ query: {
2359
+ campaignId?: string | undefined;
2360
+ id?: string | undefined;
2361
+ tokenAddress?: string | undefined;
2362
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
2363
+ chainId?: number | undefined;
2364
+ startTimestamp?: string | undefined;
2365
+ point?: boolean | undefined;
2366
+ tokenSymbol?: string | undefined;
2367
+ type?: string | undefined;
2368
+ endTimestamp?: string | undefined;
2369
+ opportunityId?: string | undefined;
2370
+ creatorAddress?: string | undefined;
2371
+ mainProtocolId?: string | undefined;
2372
+ subType?: number | undefined;
2373
+ rootCampaignId?: string | undefined;
2374
+ parentCampaignId?: string | undefined;
2375
+ creatorId?: string | undefined;
2376
+ mainParameter?: string | undefined;
2377
+ test?: boolean | undefined;
2378
+ creatorTag?: string | undefined;
2379
+ distributionChainIds?: number[] | undefined;
2380
+ types?: string[] | undefined;
2381
+ withOpportunity?: boolean | undefined;
2382
+ createdAfter?: Date | null | undefined;
2383
+ excludeSubCampaigns?: boolean | undefined;
2384
+ items: number;
2385
+ page: number;
2386
+ };
2531
2387
  headers: {
2532
2388
  authorization: string;
2533
2389
  };
2534
- response: {
2535
- 200: {
2536
- [x: string]: number;
2537
- };
2538
- 422: {
2539
- type: "validation";
2540
- on: string;
2541
- summary?: string;
2542
- message?: string;
2543
- found?: unknown;
2544
- property?: string;
2545
- expected?: string;
2546
- };
2390
+ response: {
2391
+ 200: {
2392
+ [x: string]: number;
2393
+ };
2394
+ 422: {
2395
+ type: "validation";
2396
+ on: string;
2397
+ summary?: string;
2398
+ message?: string;
2399
+ found?: unknown;
2400
+ property?: string;
2401
+ expected?: string;
2402
+ };
2403
+ };
2404
+ };
2405
+ };
2406
+ };
2407
+ };
2408
+ } & {
2409
+ campaigns: {
2410
+ opportunity: {
2411
+ patch: {
2412
+ body: {
2413
+ opportunityIdentifier?: string | undefined;
2414
+ campaignId: string;
2415
+ distributionChain: number;
2416
+ };
2417
+ params: {};
2418
+ query: unknown;
2419
+ headers: {
2420
+ authorization: string;
2421
+ };
2422
+ response: {
2423
+ 200: string;
2424
+ 422: {
2425
+ type: "validation";
2426
+ on: string;
2427
+ summary?: string;
2428
+ message?: string;
2429
+ found?: unknown;
2430
+ property?: string;
2431
+ expected?: string;
2432
+ };
2433
+ };
2434
+ };
2435
+ };
2436
+ };
2437
+ } & {
2438
+ campaigns: {
2439
+ creator: {
2440
+ patch: {
2441
+ body: {
2442
+ campaignId: string;
2443
+ creatorAddress: string;
2444
+ distributionChain: number;
2445
+ };
2446
+ params: {};
2447
+ query: unknown;
2448
+ headers: {
2449
+ authorization: string;
2450
+ };
2451
+ response: {
2452
+ 200: void;
2453
+ 422: {
2454
+ type: "validation";
2455
+ on: string;
2456
+ summary?: string;
2457
+ message?: string;
2458
+ found?: unknown;
2459
+ property?: string;
2460
+ expected?: string;
2461
+ };
2462
+ };
2463
+ };
2464
+ };
2465
+ };
2466
+ } & {
2467
+ campaigns: {
2468
+ "remove-override": {
2469
+ patch: {
2470
+ body: {
2471
+ campaignId: string;
2472
+ distributionChain: number;
2473
+ field: "opportunityId" | "creatorAddress";
2474
+ };
2475
+ params: {};
2476
+ query: unknown;
2477
+ headers: {
2478
+ authorization: string;
2479
+ };
2480
+ response: {
2481
+ 200: void;
2482
+ 422: {
2483
+ type: "validation";
2484
+ on: string;
2485
+ summary?: string;
2486
+ message?: string;
2487
+ found?: unknown;
2488
+ property?: string;
2489
+ expected?: string;
2490
+ };
2491
+ };
2492
+ };
2493
+ };
2494
+ };
2495
+ } & {
2496
+ campaigns: {
2497
+ metadata: {
2498
+ patch: {
2499
+ body: {
2500
+ campaignId: string;
2501
+ url: string;
2502
+ distributionChain: number;
2503
+ };
2504
+ params: {};
2505
+ query: unknown;
2506
+ headers: {
2507
+ authorization: string;
2508
+ };
2509
+ response: {
2510
+ 200: {
2511
+ campaignId: string;
2512
+ description: string | null;
2513
+ id: string;
2514
+ params: import("@prisma/client/runtime/library").JsonValue;
2515
+ amount: string;
2516
+ startTimestamp: bigint;
2517
+ type: string;
2518
+ computeChainId: number;
2519
+ distributionChainId: number;
2520
+ endTimestamp: bigint;
2521
+ opportunityId: string;
2522
+ creatorAddress: string;
2523
+ distributionType: import("@package/databases").DistributionType;
2524
+ subType: number | null;
2525
+ rewardTokenId: string;
2526
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
2527
+ createdAt: Date;
2528
+ rootCampaignId: string | null;
2529
+ parentCampaignId: string | null;
2530
+ };
2531
+ 422: {
2532
+ type: "validation";
2533
+ on: string;
2534
+ summary?: string;
2535
+ message?: string;
2536
+ found?: unknown;
2537
+ property?: string;
2538
+ expected?: string;
2547
2539
  };
2548
2540
  };
2549
2541
  };
@@ -2551,19 +2543,19 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2551
2543
  };
2552
2544
  } & {
2553
2545
  campaigns: {
2554
- count: {
2555
- "by-protocols": {
2556
- get: {
2546
+ tvls: {
2547
+ ":opportunityId": {
2548
+ put: {
2557
2549
  body: unknown;
2558
- params: {};
2550
+ params: {
2551
+ opportunityId: string;
2552
+ };
2559
2553
  query: unknown;
2560
2554
  headers: {
2561
2555
  authorization: string;
2562
2556
  };
2563
2557
  response: {
2564
- 200: {
2565
- [x: string]: number;
2566
- };
2558
+ 200: unknown[];
2567
2559
  422: {
2568
2560
  type: "validation";
2569
2561
  on: string;
@@ -3131,11 +3123,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3131
3123
  name?: string | undefined;
3132
3124
  ids?: string[] | undefined;
3133
3125
  id?: string | undefined;
3134
- items?: number | undefined;
3135
3126
  tags?: string[] | undefined;
3136
- page?: number | undefined;
3137
3127
  test?: boolean | undefined;
3138
3128
  opportunityTag?: string | undefined;
3129
+ items: number;
3130
+ page: number;
3139
3131
  };
3140
3132
  headers: unknown;
3141
3133
  response: {
@@ -3170,11 +3162,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3170
3162
  name?: string | undefined;
3171
3163
  ids?: string[] | undefined;
3172
3164
  id?: string | undefined;
3173
- items?: number | undefined;
3174
3165
  tags?: string[] | undefined;
3175
- page?: number | undefined;
3176
3166
  test?: boolean | undefined;
3177
3167
  opportunityTag?: string | undefined;
3168
+ items: number;
3169
+ page: number;
3178
3170
  };
3179
3171
  headers: unknown;
3180
3172
  response: {
@@ -3643,15 +3635,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3643
3635
  address?: string | undefined;
3644
3636
  id?: string[] | undefined;
3645
3637
  chainId?: number | undefined;
3646
- items?: number | undefined;
3647
3638
  isNative?: boolean | undefined;
3648
3639
  verified?: boolean | undefined;
3649
3640
  search?: string | undefined;
3650
3641
  displaySymbol?: string | undefined;
3651
- page?: number | undefined;
3652
3642
  test?: boolean | undefined;
3653
3643
  missingIcons?: boolean | undefined;
3654
3644
  missingPrice?: boolean | undefined;
3645
+ items: number;
3646
+ page: number;
3655
3647
  };
3656
3648
  headers: unknown;
3657
3649
  response: {
@@ -3695,15 +3687,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3695
3687
  address?: string | undefined;
3696
3688
  id?: string[] | undefined;
3697
3689
  chainId?: number | undefined;
3698
- items?: number | undefined;
3699
3690
  isNative?: boolean | undefined;
3700
3691
  verified?: boolean | undefined;
3701
3692
  search?: string | undefined;
3702
3693
  displaySymbol?: string | undefined;
3703
- page?: number | undefined;
3704
3694
  test?: boolean | undefined;
3705
3695
  missingIcons?: boolean | undefined;
3706
3696
  missingPrice?: boolean | undefined;
3697
+ items: number;
3698
+ page: number;
3707
3699
  };
3708
3700
  headers: unknown;
3709
3701
  response: {
@@ -3894,10 +3886,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3894
3886
  body: unknown;
3895
3887
  params: {};
3896
3888
  query: {
3897
- items?: number | undefined;
3898
- page?: number | undefined;
3899
3889
  campaignId: string;
3900
3890
  chainId: number;
3891
+ items: number;
3892
+ page: number;
3901
3893
  };
3902
3894
  headers: unknown;
3903
3895
  response: {
@@ -3919,10 +3911,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3919
3911
  body: unknown;
3920
3912
  params: {};
3921
3913
  query: {
3922
- items?: number | undefined;
3923
- page?: number | undefined;
3924
3914
  campaignId: string;
3925
3915
  chainId: number;
3916
+ items: number;
3917
+ page: number;
3926
3918
  };
3927
3919
  headers: unknown;
3928
3920
  response: {
@@ -3948,10 +3940,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3948
3940
  body: unknown;
3949
3941
  params: {};
3950
3942
  query: {
3951
- items?: number | undefined;
3952
- page?: number | undefined;
3953
3943
  campaignId: string;
3954
3944
  chainId: number;
3945
+ items: number;
3946
+ page: number;
3955
3947
  };
3956
3948
  headers: unknown;
3957
3949
  response: {
@@ -3981,8 +3973,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
3981
3973
  campaignId: string;
3982
3974
  };
3983
3975
  query: {
3984
- items?: number | undefined;
3985
- page?: number | undefined;
3976
+ items: number;
3977
+ page: number;
3986
3978
  };
3987
3979
  headers: unknown;
3988
3980
  response: {
@@ -4017,8 +4009,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
4017
4009
  campaignId: string;
4018
4010
  };
4019
4011
  query: {
4020
- items?: number | undefined;
4021
- page?: number | undefined;
4012
+ items: number;
4013
+ page: number;
4022
4014
  };
4023
4015
  headers: unknown;
4024
4016
  response: {
@@ -4052,8 +4044,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
4052
4044
  campaignId: string;
4053
4045
  };
4054
4046
  query: {
4055
- items?: number | undefined;
4056
- page?: number | undefined;
4047
+ items: number;
4048
+ page: number;
4057
4049
  };
4058
4050
  headers: unknown;
4059
4051
  response: {
@@ -4081,11 +4073,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
4081
4073
  params: {};
4082
4074
  query: {
4083
4075
  recipient?: string | undefined;
4084
- items?: number | undefined;
4085
- page?: number | undefined;
4086
4076
  campaignIds?: string[] | undefined;
4087
4077
  address: string;
4088
4078
  chainId: number;
4079
+ items: number;
4080
+ page: number;
4089
4081
  };
4090
4082
  headers: unknown;
4091
4083
  response: {
@@ -4115,11 +4107,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
4115
4107
  params: {};
4116
4108
  query: {
4117
4109
  recipient?: string | undefined;
4118
- items?: number | undefined;
4119
- page?: number | undefined;
4120
4110
  campaignIds?: string[] | undefined;
4121
4111
  address: string;
4122
4112
  chainId: number;
4113
+ items: number;
4114
+ page: number;
4123
4115
  };
4124
4116
  headers: unknown;
4125
4117
  response: {
@@ -4148,11 +4140,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
4148
4140
  params: {};
4149
4141
  query: {
4150
4142
  recipient?: string | undefined;
4151
- items?: number | undefined;
4152
- page?: number | undefined;
4153
4143
  campaignIds?: string[] | undefined;
4154
4144
  address: string;
4155
4145
  chainId: number;
4146
+ items: number;
4147
+ page: number;
4156
4148
  };
4157
4149
  headers: unknown;
4158
4150
  response: {
@@ -5052,9 +5044,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
5052
5044
  params: {};
5053
5045
  query: {
5054
5046
  address?: string | undefined;
5055
- items?: number | undefined;
5056
5047
  tags?: string[] | undefined;
5057
- page?: number | undefined;
5048
+ items: number;
5049
+ page: number;
5058
5050
  };
5059
5051
  headers: unknown;
5060
5052
  response: {
@@ -5561,8 +5553,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
5561
5553
  body: unknown;
5562
5554
  params: {};
5563
5555
  query: {
5564
- items?: number | undefined;
5565
- page?: number | undefined;
5556
+ items: number;
5557
+ page: number;
5566
5558
  };
5567
5559
  headers: {
5568
5560
  authorization: string;
@@ -7337,6 +7329,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
7337
7329
  headers: unknown;
7338
7330
  response: {
7339
7331
  200: {
7332
+ apr: number | null;
7333
+ tvl: number | null;
7340
7334
  averageBoost: number | null;
7341
7335
  totalDistributedInUSD: number | null;
7342
7336
  forfeitingBoost: number | null;
@@ -7501,8 +7495,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
7501
7495
  query: {
7502
7496
  address?: string | undefined;
7503
7497
  id?: string | undefined;
7504
- items?: number | undefined;
7505
- page?: number | undefined;
7498
+ items: number;
7499
+ page: number;
7506
7500
  };
7507
7501
  headers: unknown;
7508
7502
  response: {
@@ -10926,232 +10920,47 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
10926
10920
  } | {
10927
10921
  Tokens: {
10928
10922
  symbol: string;
10929
- name: string | null;
10930
- decimals: number;
10931
- price: number | null;
10932
- address: string;
10933
- id: string;
10934
- chainId: number;
10935
- icon: string;
10936
- isNative: boolean;
10937
- isPoint: boolean;
10938
- isPreTGE: boolean;
10939
- isTest: boolean;
10940
- verified: boolean;
10941
- displaySymbol: string;
10942
- }[];
10943
- Protocols: {
10944
- name: string;
10945
- description: string;
10946
- id: string;
10947
- url: string;
10948
- icon: string;
10949
- tags: string[];
10950
- }[];
10951
- name: string;
10952
- apr: number;
10953
- tvl: number;
10954
- description: string;
10955
- id: string;
10956
- status: import("@package/databases").Status;
10957
- chainId: number;
10958
- action: import("@package/databases").OpportunityAction;
10959
- type: string;
10960
- depositUrl: string | null;
10961
- explorerAddress: string | null;
10962
- howToSteps: string[];
10963
- mainProtocolId: string | null;
10964
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
10965
- identifier: string;
10966
- dailyRewards: number;
10967
- tags: string[];
10968
- lastCampaignCreatedAt: Date;
10969
- };
10970
- 422: {
10971
- type: "validation";
10972
- on: string;
10973
- summary?: string;
10974
- message?: string;
10975
- found?: unknown;
10976
- property?: string;
10977
- expected?: string;
10978
- };
10979
- }>>;
10980
- };
10981
- }) & {
10982
- get: (options: {
10983
- headers?: Record<string, unknown> | undefined;
10984
- query: {
10985
- sort?: string | undefined;
10986
- name?: string | undefined;
10987
- tokens?: string | undefined;
10988
- campaignId?: string | undefined;
10989
- status?: string | undefined;
10990
- chainId?: string | undefined;
10991
- campaigns?: boolean | undefined;
10992
- items?: number | undefined;
10993
- point?: boolean | undefined;
10994
- order?: string | undefined;
10995
- action?: string | undefined;
10996
- type?: string | undefined;
10997
- search?: string | undefined;
10998
- creatorAddress?: string | undefined;
10999
- mainProtocolId?: string | undefined;
11000
- identifier?: string | undefined;
11001
- tags?: string | undefined;
11002
- page?: number | undefined;
11003
- test?: boolean | undefined;
11004
- excludeSubCampaigns?: boolean | undefined;
11005
- minimumTvl?: number | undefined;
11006
- maximumTvl?: number | undefined;
11007
- minimumApr?: number | undefined;
11008
- maximumApr?: number | undefined;
11009
- rewardTokenSymbol?: string | undefined;
11010
- };
11011
- fetch?: RequestInit | undefined;
11012
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11013
- 200: ({
11014
- protocol?: {
11015
- dailyRewards?: number | undefined;
11016
- numberOfLiveCampaigns?: number | undefined;
11017
- opportunityLiveTags?: string[] | undefined;
11018
- name: string;
11019
- description: string;
11020
- id: string;
11021
- url: string;
11022
- icon: string;
11023
- tags: string[];
11024
- } | null | undefined;
11025
- depositUrl?: string | undefined;
11026
- explorerAddress?: string | undefined;
11027
- 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;
11028
- aprRecord?: {
11029
- timestamp: string | bigint;
11030
- cumulated: number;
11031
- breakdowns: {
11032
- 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;
11033
- value: number;
11034
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
11035
- identifier: string;
11036
- }[];
11037
- } | undefined;
11038
- tvlRecord?: {
11039
- timestamp: string | bigint;
11040
- total: number;
11041
- breakdowns: {
11042
- value: number;
11043
- type: "TOKEN" | "PROTOCOL";
11044
- identifier: string;
11045
- }[];
11046
- } | undefined;
11047
- rewardsRecord?: {
11048
- timestamp: string | bigint;
11049
- total: number;
11050
- breakdowns: {
11051
- 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;
11052
- token: {
11053
- price?: number | null | undefined;
11054
- symbol: string;
11055
- name: string | null;
11056
- decimals: number;
11057
- address: string;
11058
- id: string;
11059
- chainId: number;
11060
- icon: string;
11061
- isNative: boolean;
11062
- isPoint: boolean;
11063
- isPreTGE: boolean;
11064
- isTest: boolean;
11065
- verified: boolean;
11066
- };
11067
- campaignId: string;
11068
- value: number;
11069
- amount: string | bigint;
11070
- }[];
11071
- } | undefined;
11072
- name: string;
11073
- apr: number;
11074
- tokens: {
11075
- price?: number | null | undefined;
11076
- symbol: string;
11077
- name: string | null;
11078
- decimals: number;
11079
- address: string;
11080
- id: string;
11081
- chainId: number;
11082
- icon: string;
11083
- isNative: boolean;
11084
- isPoint: boolean;
11085
- isPreTGE: boolean;
11086
- isTest: boolean;
11087
- verified: boolean;
11088
- }[];
11089
- tvl: number;
11090
- description: string;
11091
- id: string;
11092
- status: string;
11093
- chainId: number;
11094
- action: string;
11095
- type: string;
11096
- howToSteps: string[];
11097
- identifier: string;
11098
- dailyRewards: number;
11099
- tags: string[];
11100
- lastCampaignCreatedAt: string;
11101
- chain: {
11102
- explorers?: {
11103
- chainId: number;
11104
- type: "ETHERSCAN" | "BLOCKSCOUT";
11105
- url: string;
11106
- }[] | undefined;
11107
- name: string;
11108
- id: number;
11109
- icon: string;
11110
- };
11111
- } | null)[];
11112
- 422: {
11113
- type: "validation";
11114
- on: string;
11115
- summary?: string;
11116
- message?: string;
11117
- found?: unknown;
11118
- property?: string;
11119
- expected?: string;
11120
- };
11121
- }>>;
11122
- count: {
11123
- get: (options: {
11124
- headers?: Record<string, unknown> | undefined;
11125
- query: {
11126
- sort?: string | undefined;
11127
- name?: string | undefined;
11128
- tokens?: string | undefined;
11129
- campaignId?: string | undefined;
11130
- status?: string | undefined;
11131
- chainId?: string | undefined;
11132
- campaigns?: boolean | undefined;
11133
- items?: number | undefined;
11134
- point?: boolean | undefined;
11135
- order?: string | undefined;
11136
- action?: string | undefined;
11137
- type?: string | undefined;
11138
- search?: string | undefined;
11139
- creatorAddress?: string | undefined;
11140
- mainProtocolId?: string | undefined;
11141
- identifier?: string | undefined;
11142
- tags?: string | undefined;
11143
- page?: number | undefined;
11144
- test?: boolean | undefined;
11145
- excludeSubCampaigns?: boolean | undefined;
11146
- minimumTvl?: number | undefined;
11147
- maximumTvl?: number | undefined;
11148
- minimumApr?: number | undefined;
11149
- maximumApr?: number | undefined;
11150
- rewardTokenSymbol?: string | undefined;
10923
+ name: string | null;
10924
+ decimals: number;
10925
+ price: number | null;
10926
+ address: string;
10927
+ id: string;
10928
+ chainId: number;
10929
+ icon: string;
10930
+ isNative: boolean;
10931
+ isPoint: boolean;
10932
+ isPreTGE: boolean;
10933
+ isTest: boolean;
10934
+ verified: boolean;
10935
+ displaySymbol: string;
10936
+ }[];
10937
+ Protocols: {
10938
+ name: string;
10939
+ description: string;
10940
+ id: string;
10941
+ url: string;
10942
+ icon: string;
10943
+ tags: string[];
10944
+ }[];
10945
+ name: string;
10946
+ apr: number;
10947
+ tvl: number;
10948
+ description: string;
10949
+ id: string;
10950
+ status: import("@package/databases").Status;
10951
+ chainId: number;
10952
+ action: import("@package/databases").OpportunityAction;
10953
+ type: string;
10954
+ depositUrl: string | null;
10955
+ explorerAddress: string | null;
10956
+ howToSteps: string[];
10957
+ mainProtocolId: string | null;
10958
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
10959
+ identifier: string;
10960
+ dailyRewards: number;
10961
+ tags: string[];
10962
+ lastCampaignCreatedAt: Date;
11151
10963
  };
11152
- fetch?: RequestInit | undefined;
11153
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11154
- 200: number;
11155
10964
  422: {
11156
10965
  type: "validation";
11157
10966
  on: string;
@@ -11163,107 +10972,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11163
10972
  };
11164
10973
  }>>;
11165
10974
  };
11166
- bins: {
11167
- apr: {
11168
- get: (options: {
11169
- headers?: Record<string, unknown> | undefined;
11170
- query: {
11171
- sort?: string | undefined;
11172
- name?: string | undefined;
11173
- tokens?: string | undefined;
11174
- campaignId?: string | undefined;
11175
- status?: string | undefined;
11176
- chainId?: string | undefined;
11177
- campaigns?: boolean | undefined;
11178
- items?: number | undefined;
11179
- point?: boolean | undefined;
11180
- order?: string | undefined;
11181
- action?: string | undefined;
11182
- type?: string | undefined;
11183
- search?: string | undefined;
11184
- creatorAddress?: string | undefined;
11185
- mainProtocolId?: string | undefined;
11186
- identifier?: string | undefined;
11187
- tags?: string | undefined;
11188
- page?: number | undefined;
11189
- test?: boolean | undefined;
11190
- excludeSubCampaigns?: boolean | undefined;
11191
- minimumTvl?: number | undefined;
11192
- maximumTvl?: number | undefined;
11193
- minimumApr?: number | undefined;
11194
- maximumApr?: number | undefined;
11195
- rewardTokenSymbol?: string | undefined;
11196
- };
11197
- fetch?: RequestInit | undefined;
11198
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11199
- 200: {
11200
- min: number;
11201
- max: number;
11202
- overThreshold: number;
11203
- binWidth: number;
11204
- bins: any[];
11205
- };
11206
- 422: {
11207
- type: "validation";
11208
- on: string;
11209
- summary?: string;
11210
- message?: string;
11211
- found?: unknown;
11212
- property?: string;
11213
- expected?: string;
11214
- };
11215
- }>>;
11216
- };
11217
- tvl: {
11218
- get: (options: {
11219
- headers?: Record<string, unknown> | undefined;
11220
- query: {
11221
- sort?: string | undefined;
11222
- name?: string | undefined;
11223
- tokens?: string | undefined;
11224
- campaignId?: string | undefined;
11225
- status?: string | undefined;
11226
- chainId?: string | undefined;
11227
- campaigns?: boolean | undefined;
11228
- items?: number | undefined;
11229
- point?: boolean | undefined;
11230
- order?: string | undefined;
11231
- action?: string | undefined;
11232
- type?: string | undefined;
11233
- search?: string | undefined;
11234
- creatorAddress?: string | undefined;
11235
- mainProtocolId?: string | undefined;
11236
- identifier?: string | undefined;
11237
- tags?: string | undefined;
11238
- page?: number | undefined;
11239
- test?: boolean | undefined;
11240
- excludeSubCampaigns?: boolean | undefined;
11241
- minimumTvl?: number | undefined;
11242
- maximumTvl?: number | undefined;
11243
- minimumApr?: number | undefined;
11244
- maximumApr?: number | undefined;
11245
- rewardTokenSymbol?: string | undefined;
11246
- };
11247
- fetch?: RequestInit | undefined;
11248
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11249
- 200: {
11250
- min: number;
11251
- max: number;
11252
- binWidth: number;
11253
- bins: any[];
11254
- };
11255
- 422: {
11256
- type: "validation";
11257
- on: string;
11258
- summary?: string;
11259
- message?: string;
11260
- found?: unknown;
11261
- property?: string;
11262
- expected?: string;
11263
- };
11264
- }>>;
11265
- };
11266
- };
10975
+ }) & {
11267
10976
  campaigns: {
11268
10977
  get: (options: {
11269
10978
  headers?: Record<string, unknown> | undefined;
@@ -11274,7 +10983,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11274
10983
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
11275
10984
  chainId?: number | undefined;
11276
10985
  startTimestamp?: string | undefined;
11277
- items?: number | undefined;
11278
10986
  point?: boolean | undefined;
11279
10987
  tokenSymbol?: string | undefined;
11280
10988
  type?: string | undefined;
@@ -11287,7 +10995,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11287
10995
  parentCampaignId?: string | undefined;
11288
10996
  creatorId?: string | undefined;
11289
10997
  mainParameter?: string | undefined;
11290
- page?: number | undefined;
11291
10998
  test?: boolean | undefined;
11292
10999
  creatorTag?: string | undefined;
11293
11000
  distributionChainIds?: number[] | undefined;
@@ -11295,6 +11002,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11295
11002
  withOpportunity?: boolean | undefined;
11296
11003
  createdAfter?: Date | null | undefined;
11297
11004
  excludeSubCampaigns?: boolean | undefined;
11005
+ items: number;
11006
+ page: number;
11298
11007
  };
11299
11008
  fetch?: RequestInit | undefined;
11300
11009
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -11472,8 +11181,192 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11472
11181
  };
11473
11182
  readonly 404: {
11474
11183
  name: string;
11475
- message: string;
11184
+ message: string;
11185
+ };
11186
+ 422: {
11187
+ type: "validation";
11188
+ on: string;
11189
+ summary?: string;
11190
+ message?: string;
11191
+ found?: unknown;
11192
+ property?: string;
11193
+ expected?: string;
11194
+ };
11195
+ }>>;
11196
+ };
11197
+ get: (options: {
11198
+ headers?: Record<string, unknown> | undefined;
11199
+ query: {
11200
+ sort?: string | undefined;
11201
+ name?: string | undefined;
11202
+ tokens?: string | undefined;
11203
+ campaignId?: string | undefined;
11204
+ status?: string | undefined;
11205
+ chainId?: string | undefined;
11206
+ campaigns?: boolean | undefined;
11207
+ point?: boolean | undefined;
11208
+ order?: string | undefined;
11209
+ action?: string | undefined;
11210
+ type?: string | undefined;
11211
+ search?: string | undefined;
11212
+ creatorAddress?: string | undefined;
11213
+ mainProtocolId?: string | undefined;
11214
+ identifier?: string | undefined;
11215
+ tags?: string | undefined;
11216
+ test?: boolean | undefined;
11217
+ excludeSubCampaigns?: boolean | undefined;
11218
+ minimumTvl?: number | undefined;
11219
+ maximumTvl?: number | undefined;
11220
+ minimumApr?: number | undefined;
11221
+ maximumApr?: number | undefined;
11222
+ rewardTokenSymbol?: string | undefined;
11223
+ items: number;
11224
+ page: number;
11225
+ };
11226
+ fetch?: RequestInit | undefined;
11227
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11228
+ 200: ({
11229
+ protocol?: {
11230
+ dailyRewards?: number | undefined;
11231
+ numberOfLiveCampaigns?: number | undefined;
11232
+ opportunityLiveTags?: string[] | undefined;
11233
+ name: string;
11234
+ description: string;
11235
+ id: string;
11236
+ url: string;
11237
+ icon: string;
11238
+ tags: string[];
11239
+ } | null | undefined;
11240
+ depositUrl?: string | undefined;
11241
+ explorerAddress?: string | undefined;
11242
+ 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;
11243
+ aprRecord?: {
11244
+ timestamp: string | bigint;
11245
+ cumulated: number;
11246
+ breakdowns: {
11247
+ 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;
11248
+ value: number;
11249
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
11250
+ identifier: string;
11251
+ }[];
11252
+ } | undefined;
11253
+ tvlRecord?: {
11254
+ timestamp: string | bigint;
11255
+ total: number;
11256
+ breakdowns: {
11257
+ value: number;
11258
+ type: "TOKEN" | "PROTOCOL";
11259
+ identifier: string;
11260
+ }[];
11261
+ } | undefined;
11262
+ rewardsRecord?: {
11263
+ timestamp: string | bigint;
11264
+ total: number;
11265
+ breakdowns: {
11266
+ 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;
11267
+ token: {
11268
+ price?: number | null | undefined;
11269
+ symbol: string;
11270
+ name: string | null;
11271
+ decimals: number;
11272
+ address: string;
11273
+ id: string;
11274
+ chainId: number;
11275
+ icon: string;
11276
+ isNative: boolean;
11277
+ isPoint: boolean;
11278
+ isPreTGE: boolean;
11279
+ isTest: boolean;
11280
+ verified: boolean;
11281
+ };
11282
+ campaignId: string;
11283
+ value: number;
11284
+ amount: string | bigint;
11285
+ }[];
11286
+ } | undefined;
11287
+ name: string;
11288
+ apr: number;
11289
+ tokens: {
11290
+ price?: number | null | undefined;
11291
+ symbol: string;
11292
+ name: string | null;
11293
+ decimals: number;
11294
+ address: string;
11295
+ id: string;
11296
+ chainId: number;
11297
+ icon: string;
11298
+ isNative: boolean;
11299
+ isPoint: boolean;
11300
+ isPreTGE: boolean;
11301
+ isTest: boolean;
11302
+ verified: boolean;
11303
+ }[];
11304
+ tvl: number;
11305
+ description: string;
11306
+ id: string;
11307
+ status: string;
11308
+ chainId: number;
11309
+ action: string;
11310
+ type: string;
11311
+ howToSteps: string[];
11312
+ identifier: string;
11313
+ dailyRewards: number;
11314
+ tags: string[];
11315
+ lastCampaignCreatedAt: string;
11316
+ chain: {
11317
+ explorers?: {
11318
+ chainId: number;
11319
+ type: "ETHERSCAN" | "BLOCKSCOUT";
11320
+ url: string;
11321
+ }[] | undefined;
11322
+ name: string;
11323
+ id: number;
11324
+ icon: string;
11325
+ };
11326
+ } | null)[];
11327
+ 422: {
11328
+ type: "validation";
11329
+ on: string;
11330
+ summary?: string;
11331
+ message?: string;
11332
+ found?: unknown;
11333
+ property?: string;
11334
+ expected?: string;
11335
+ };
11336
+ }>>;
11337
+ count: {
11338
+ get: (options: {
11339
+ headers?: Record<string, unknown> | undefined;
11340
+ query: {
11341
+ sort?: string | undefined;
11342
+ name?: string | undefined;
11343
+ tokens?: string | undefined;
11344
+ campaignId?: string | undefined;
11345
+ status?: string | undefined;
11346
+ chainId?: string | undefined;
11347
+ campaigns?: boolean | undefined;
11348
+ point?: boolean | undefined;
11349
+ order?: string | undefined;
11350
+ action?: string | undefined;
11351
+ type?: string | undefined;
11352
+ search?: string | undefined;
11353
+ creatorAddress?: string | undefined;
11354
+ mainProtocolId?: string | undefined;
11355
+ identifier?: string | undefined;
11356
+ tags?: string | undefined;
11357
+ test?: boolean | undefined;
11358
+ excludeSubCampaigns?: boolean | undefined;
11359
+ minimumTvl?: number | undefined;
11360
+ maximumTvl?: number | undefined;
11361
+ minimumApr?: number | undefined;
11362
+ maximumApr?: number | undefined;
11363
+ rewardTokenSymbol?: string | undefined;
11364
+ items: number;
11365
+ page: number;
11476
11366
  };
11367
+ fetch?: RequestInit | undefined;
11368
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11369
+ 200: number;
11477
11370
  422: {
11478
11371
  type: "validation";
11479
11372
  on: string;
@@ -11485,6 +11378,107 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11485
11378
  };
11486
11379
  }>>;
11487
11380
  };
11381
+ bins: {
11382
+ apr: {
11383
+ get: (options: {
11384
+ headers?: Record<string, unknown> | undefined;
11385
+ query: {
11386
+ sort?: string | undefined;
11387
+ name?: string | undefined;
11388
+ tokens?: string | undefined;
11389
+ campaignId?: string | undefined;
11390
+ status?: string | undefined;
11391
+ chainId?: string | undefined;
11392
+ campaigns?: boolean | undefined;
11393
+ point?: boolean | undefined;
11394
+ order?: string | undefined;
11395
+ action?: string | undefined;
11396
+ type?: string | undefined;
11397
+ search?: string | undefined;
11398
+ creatorAddress?: string | undefined;
11399
+ mainProtocolId?: string | undefined;
11400
+ identifier?: string | undefined;
11401
+ tags?: string | undefined;
11402
+ test?: boolean | undefined;
11403
+ excludeSubCampaigns?: boolean | undefined;
11404
+ minimumTvl?: number | undefined;
11405
+ maximumTvl?: number | undefined;
11406
+ minimumApr?: number | undefined;
11407
+ maximumApr?: number | undefined;
11408
+ rewardTokenSymbol?: string | undefined;
11409
+ items: number;
11410
+ page: number;
11411
+ };
11412
+ fetch?: RequestInit | undefined;
11413
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11414
+ 200: {
11415
+ min: number;
11416
+ max: number;
11417
+ overThreshold: number;
11418
+ binWidth: number;
11419
+ bins: any[];
11420
+ };
11421
+ 422: {
11422
+ type: "validation";
11423
+ on: string;
11424
+ summary?: string;
11425
+ message?: string;
11426
+ found?: unknown;
11427
+ property?: string;
11428
+ expected?: string;
11429
+ };
11430
+ }>>;
11431
+ };
11432
+ tvl: {
11433
+ get: (options: {
11434
+ headers?: Record<string, unknown> | undefined;
11435
+ query: {
11436
+ sort?: string | undefined;
11437
+ name?: string | undefined;
11438
+ tokens?: string | undefined;
11439
+ campaignId?: string | undefined;
11440
+ status?: string | undefined;
11441
+ chainId?: string | undefined;
11442
+ campaigns?: boolean | undefined;
11443
+ point?: boolean | undefined;
11444
+ order?: string | undefined;
11445
+ action?: string | undefined;
11446
+ type?: string | undefined;
11447
+ search?: string | undefined;
11448
+ creatorAddress?: string | undefined;
11449
+ mainProtocolId?: string | undefined;
11450
+ identifier?: string | undefined;
11451
+ tags?: string | undefined;
11452
+ test?: boolean | undefined;
11453
+ excludeSubCampaigns?: boolean | undefined;
11454
+ minimumTvl?: number | undefined;
11455
+ maximumTvl?: number | undefined;
11456
+ minimumApr?: number | undefined;
11457
+ maximumApr?: number | undefined;
11458
+ rewardTokenSymbol?: string | undefined;
11459
+ items: number;
11460
+ page: number;
11461
+ };
11462
+ fetch?: RequestInit | undefined;
11463
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11464
+ 200: {
11465
+ min: number;
11466
+ max: number;
11467
+ binWidth: number;
11468
+ bins: any[];
11469
+ };
11470
+ 422: {
11471
+ type: "validation";
11472
+ on: string;
11473
+ summary?: string;
11474
+ message?: string;
11475
+ found?: unknown;
11476
+ property?: string;
11477
+ expected?: string;
11478
+ };
11479
+ }>>;
11480
+ };
11481
+ };
11488
11482
  aggregate: ((params: {
11489
11483
  field: string | number;
11490
11484
  }) => {
@@ -11498,7 +11492,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11498
11492
  status?: string | undefined;
11499
11493
  chainId?: string | undefined;
11500
11494
  campaigns?: boolean | undefined;
11501
- items?: number | undefined;
11502
11495
  point?: boolean | undefined;
11503
11496
  order?: string | undefined;
11504
11497
  action?: string | undefined;
@@ -11508,7 +11501,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11508
11501
  mainProtocolId?: string | undefined;
11509
11502
  identifier?: string | undefined;
11510
11503
  tags?: string | undefined;
11511
- page?: number | undefined;
11512
11504
  test?: boolean | undefined;
11513
11505
  excludeSubCampaigns?: boolean | undefined;
11514
11506
  minimumTvl?: number | undefined;
@@ -11516,6 +11508,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11516
11508
  minimumApr?: number | undefined;
11517
11509
  maximumApr?: number | undefined;
11518
11510
  rewardTokenSymbol?: string | undefined;
11511
+ items: number;
11512
+ page: number;
11519
11513
  };
11520
11514
  fetch?: RequestInit | undefined;
11521
11515
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -11546,7 +11540,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11546
11540
  status?: string | undefined;
11547
11541
  chainId?: string | undefined;
11548
11542
  campaigns?: boolean | undefined;
11549
- items?: number | undefined;
11550
11543
  point?: boolean | undefined;
11551
11544
  order?: string | undefined;
11552
11545
  action?: string | undefined;
@@ -11556,7 +11549,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11556
11549
  mainProtocolId?: string | undefined;
11557
11550
  identifier?: string | undefined;
11558
11551
  tags?: string | undefined;
11559
- page?: number | undefined;
11560
11552
  test?: boolean | undefined;
11561
11553
  excludeSubCampaigns?: boolean | undefined;
11562
11554
  minimumTvl?: number | undefined;
@@ -11564,6 +11556,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11564
11556
  minimumApr?: number | undefined;
11565
11557
  maximumApr?: number | undefined;
11566
11558
  rewardTokenSymbol?: string | undefined;
11559
+ items: number;
11560
+ page: number;
11567
11561
  };
11568
11562
  fetch?: RequestInit | undefined;
11569
11563
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -11594,7 +11588,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11594
11588
  status?: string | undefined;
11595
11589
  chainId?: string | undefined;
11596
11590
  campaigns?: boolean | undefined;
11597
- items?: number | undefined;
11598
11591
  point?: boolean | undefined;
11599
11592
  order?: string | undefined;
11600
11593
  action?: string | undefined;
@@ -11604,7 +11597,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11604
11597
  mainProtocolId?: string | undefined;
11605
11598
  identifier?: string | undefined;
11606
11599
  tags?: string | undefined;
11607
- page?: number | undefined;
11608
11600
  test?: boolean | undefined;
11609
11601
  excludeSubCampaigns?: boolean | undefined;
11610
11602
  minimumTvl?: number | undefined;
@@ -11612,6 +11604,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11612
11604
  minimumApr?: number | undefined;
11613
11605
  maximumApr?: number | undefined;
11614
11606
  rewardTokenSymbol?: string | undefined;
11607
+ items: number;
11608
+ page: number;
11615
11609
  };
11616
11610
  fetch?: RequestInit | undefined;
11617
11611
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -11965,111 +11959,47 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
11965
11959
  };
11966
11960
  }>>;
11967
11961
  };
11968
- opportunity: {
11969
- patch: (body: {
11970
- opportunityIdentifier?: string | undefined;
11971
- campaignId: string;
11972
- distributionChain: number;
11973
- }, options: {
11974
- headers: {
11975
- authorization: string;
11976
- };
11977
- query?: Record<string, unknown> | undefined;
11978
- fetch?: RequestInit | undefined;
11979
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11980
- 200: string;
11981
- 422: {
11982
- type: "validation";
11983
- on: string;
11984
- summary?: string;
11985
- message?: string;
11986
- found?: unknown;
11987
- property?: string;
11988
- expected?: string;
11989
- };
11990
- }>>;
11991
- };
11992
- creator: {
11993
- patch: (body: {
11994
- campaignId: string;
11995
- creatorAddress: string;
11996
- distributionChain: number;
11997
- }, options: {
11998
- headers: {
11999
- authorization: string;
12000
- };
12001
- query?: Record<string, unknown> | undefined;
12002
- fetch?: RequestInit | undefined;
12003
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12004
- 200: void;
12005
- 422: {
12006
- type: "validation";
12007
- on: string;
12008
- summary?: string;
12009
- message?: string;
12010
- found?: unknown;
12011
- property?: string;
12012
- expected?: string;
12013
- };
12014
- }>>;
12015
- };
12016
- "remove-override": {
12017
- patch: (body: {
12018
- campaignId: string;
12019
- distributionChain: number;
12020
- field: "opportunityId" | "creatorAddress";
12021
- }, options: {
12022
- headers: {
12023
- authorization: string;
12024
- };
12025
- query?: Record<string, unknown> | undefined;
12026
- fetch?: RequestInit | undefined;
12027
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12028
- 200: void;
12029
- 422: {
12030
- type: "validation";
12031
- on: string;
12032
- summary?: string;
12033
- message?: string;
12034
- found?: unknown;
12035
- property?: string;
12036
- expected?: string;
12037
- };
12038
- }>>;
12039
- };
12040
- metadata: {
12041
- patch: (body: {
12042
- campaignId: string;
12043
- url: string;
12044
- distributionChain: number;
12045
- }, options: {
12046
- headers: {
12047
- authorization: string;
11962
+ "campaigns-to-process": {
11963
+ engine: {
11964
+ post: (body: unknown, options: {
11965
+ headers: {
11966
+ authorization: string;
11967
+ };
11968
+ query: {
11969
+ chainId: number;
11970
+ };
11971
+ fetch?: RequestInit | undefined;
11972
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11973
+ 200: {
11974
+ campaignId: string;
11975
+ };
11976
+ 422: {
11977
+ type: "validation";
11978
+ on: string;
11979
+ summary?: string;
11980
+ message?: string;
11981
+ found?: unknown;
11982
+ property?: string;
11983
+ expected?: string;
11984
+ };
11985
+ }>>;
11986
+ };
11987
+ get: (options: {
11988
+ headers?: Record<string, unknown> | undefined;
11989
+ query: {
11990
+ chainId: number;
12048
11991
  };
12049
- query?: Record<string, unknown> | undefined;
12050
11992
  fetch?: RequestInit | undefined;
12051
11993
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12052
11994
  200: {
12053
11995
  campaignId: string;
12054
- description: string | null;
12055
- id: string;
12056
- params: import("@prisma/client/runtime/library").JsonValue;
12057
- amount: string;
12058
- startTimestamp: bigint;
12059
- type: string;
12060
- computeChainId: number;
12061
- distributionChainId: number;
12062
11996
  endTimestamp: bigint;
12063
- opportunityId: string;
12064
- creatorAddress: string;
12065
- distributionType: import("@package/databases").DistributionType;
12066
- subType: number | null;
12067
- rewardTokenId: string;
12068
- manualOverrides: import("@package/databases").CampaignManualOverride[];
12069
- createdAt: Date;
12070
- rootCampaignId: string | null;
12071
- parentCampaignId: string | null;
12072
- };
11997
+ CampaignStatus: {
11998
+ status: import("@package/databases").RunStatus;
11999
+ computedUntil: bigint;
12000
+ processingStarted: bigint;
12001
+ }[];
12002
+ }[];
12073
12003
  422: {
12074
12004
  type: "validation";
12075
12005
  on: string;
@@ -12080,18 +12010,59 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12080
12010
  expected?: string;
12081
12011
  };
12082
12012
  }>>;
12013
+ count: {
12014
+ get: (options: {
12015
+ headers?: Record<string, unknown> | undefined;
12016
+ query: {
12017
+ chainId: number;
12018
+ };
12019
+ fetch?: RequestInit | undefined;
12020
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12021
+ 200: number;
12022
+ 422: {
12023
+ type: "validation";
12024
+ on: string;
12025
+ summary?: string;
12026
+ message?: string;
12027
+ found?: unknown;
12028
+ property?: string;
12029
+ expected?: string;
12030
+ };
12031
+ }>>;
12032
+ };
12033
+ next: {
12034
+ get: (options: {
12035
+ headers?: Record<string, unknown> | undefined;
12036
+ query: {
12037
+ chainId: number;
12038
+ };
12039
+ fetch?: RequestInit | undefined;
12040
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12041
+ 200: {
12042
+ campaignId: string;
12043
+ };
12044
+ 422: {
12045
+ type: "validation";
12046
+ on: string;
12047
+ summary?: string;
12048
+ message?: string;
12049
+ found?: unknown;
12050
+ property?: string;
12051
+ expected?: string;
12052
+ };
12053
+ }>>;
12054
+ };
12083
12055
  };
12084
- tvls: ((params: {
12085
- opportunityId: string | number;
12086
- }) => {
12087
- put: (body: unknown, options: {
12088
- headers: {
12089
- authorization: string;
12056
+ tx: {
12057
+ get: (options: {
12058
+ headers?: Record<string, unknown> | undefined;
12059
+ query: {
12060
+ chainId: number;
12061
+ hash: string;
12090
12062
  };
12091
- query?: Record<string, unknown> | undefined;
12092
12063
  fetch?: RequestInit | undefined;
12093
12064
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12094
- 200: unknown[];
12065
+ 200: string[];
12095
12066
  422: {
12096
12067
  type: "validation";
12097
12068
  on: string;
@@ -12102,7 +12073,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12102
12073
  expected?: string;
12103
12074
  };
12104
12075
  }>>;
12105
- }) & {};
12076
+ };
12106
12077
  get: (options: {
12107
12078
  headers?: Record<string, unknown> | undefined;
12108
12079
  query: {
@@ -12112,7 +12083,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12112
12083
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
12113
12084
  chainId?: number | undefined;
12114
12085
  startTimestamp?: string | undefined;
12115
- items?: number | undefined;
12116
12086
  point?: boolean | undefined;
12117
12087
  tokenSymbol?: string | undefined;
12118
12088
  type?: string | undefined;
@@ -12125,7 +12095,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12125
12095
  parentCampaignId?: string | undefined;
12126
12096
  creatorId?: string | undefined;
12127
12097
  mainParameter?: string | undefined;
12128
- page?: number | undefined;
12129
12098
  test?: boolean | undefined;
12130
12099
  creatorTag?: string | undefined;
12131
12100
  distributionChainIds?: number[] | undefined;
@@ -12133,6 +12102,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12133
12102
  withOpportunity?: boolean | undefined;
12134
12103
  createdAfter?: Date | null | undefined;
12135
12104
  excludeSubCampaigns?: boolean | undefined;
12105
+ items: number;
12106
+ page: number;
12136
12107
  };
12137
12108
  fetch?: RequestInit | undefined;
12138
12109
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -12165,178 +12136,55 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12165
12136
  icon: string;
12166
12137
  } | undefined;
12167
12138
  rewardToken: {
12168
- price?: number | null | undefined;
12169
- symbol: string;
12170
- name: string | null;
12171
- decimals: number;
12172
- address: string;
12173
- id: string;
12174
- chainId: number;
12175
- icon: string;
12176
- isNative: boolean;
12177
- isPoint: boolean;
12178
- isPreTGE: boolean;
12179
- isTest: boolean;
12180
- verified: boolean;
12181
- };
12182
- campaignId: string;
12183
- id: string;
12184
- params: any;
12185
- amount: string;
12186
- startTimestamp: string | number;
12187
- type: string;
12188
- computeChainId: number;
12189
- distributionChainId: number;
12190
- endTimestamp: string | number;
12191
- opportunityId: string;
12192
- creatorAddress: string;
12193
- subType: number | null;
12194
- rewardTokenId: string;
12195
- createdAt: string;
12196
- chain: {
12197
- explorers?: {
12198
- chainId: number;
12199
- type: "ETHERSCAN" | "BLOCKSCOUT";
12200
- url: string;
12201
- }[] | undefined;
12202
- name: string;
12203
- id: number;
12204
- icon: string;
12205
- };
12206
- }[];
12207
- 422: {
12208
- type: "validation";
12209
- on: string;
12210
- summary?: string;
12211
- message?: string;
12212
- found?: unknown;
12213
- property?: string;
12214
- expected?: string;
12215
- } & {
12216
- type: "validation";
12217
- on: string;
12218
- summary?: string;
12219
- message?: string;
12220
- found?: unknown;
12221
- property?: string;
12222
- expected?: string;
12223
- };
12224
- }>>;
12225
- "campaigns-to-process": {
12226
- get: (options: {
12227
- headers?: Record<string, unknown> | undefined;
12228
- query: {
12229
- chainId: number;
12230
- };
12231
- fetch?: RequestInit | undefined;
12232
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12233
- 200: {
12234
- campaignId: string;
12235
- endTimestamp: bigint;
12236
- CampaignStatus: {
12237
- status: import("@package/databases").RunStatus;
12238
- computedUntil: bigint;
12239
- processingStarted: bigint;
12240
- }[];
12241
- }[];
12242
- 422: {
12243
- type: "validation";
12244
- on: string;
12245
- summary?: string;
12246
- message?: string;
12247
- found?: unknown;
12248
- property?: string;
12249
- expected?: string;
12250
- };
12251
- }>>;
12252
- count: {
12253
- get: (options: {
12254
- headers?: Record<string, unknown> | undefined;
12255
- query: {
12256
- chainId: number;
12257
- };
12258
- fetch?: RequestInit | undefined;
12259
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12260
- 200: number;
12261
- 422: {
12262
- type: "validation";
12263
- on: string;
12264
- summary?: string;
12265
- message?: string;
12266
- found?: unknown;
12267
- property?: string;
12268
- expected?: string;
12269
- };
12270
- }>>;
12271
- };
12272
- next: {
12273
- get: (options: {
12274
- headers?: Record<string, unknown> | undefined;
12275
- query: {
12276
- chainId: number;
12277
- };
12278
- fetch?: RequestInit | undefined;
12279
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12280
- 200: {
12281
- campaignId: string;
12282
- };
12283
- 422: {
12284
- type: "validation";
12285
- on: string;
12286
- summary?: string;
12287
- message?: string;
12288
- found?: unknown;
12289
- property?: string;
12290
- expected?: string;
12291
- };
12292
- }>>;
12293
- };
12294
- engine: {
12295
- post: (body: unknown, options: {
12296
- headers: {
12297
- authorization: string;
12298
- };
12299
- query: {
12300
- chainId: number;
12301
- };
12302
- fetch?: RequestInit | undefined;
12303
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12304
- 200: {
12305
- campaignId: string;
12306
- };
12307
- 422: {
12308
- type: "validation";
12309
- on: string;
12310
- summary?: string;
12311
- message?: string;
12312
- found?: unknown;
12313
- property?: string;
12314
- expected?: string;
12315
- };
12316
- }>>;
12317
- };
12318
- };
12319
- tx: {
12320
- get: (options: {
12321
- headers?: Record<string, unknown> | undefined;
12322
- query: {
12139
+ price?: number | null | undefined;
12140
+ symbol: string;
12141
+ name: string | null;
12142
+ decimals: number;
12143
+ address: string;
12144
+ id: string;
12323
12145
  chainId: number;
12324
- hash: string;
12146
+ icon: string;
12147
+ isNative: boolean;
12148
+ isPoint: boolean;
12149
+ isPreTGE: boolean;
12150
+ isTest: boolean;
12151
+ verified: boolean;
12325
12152
  };
12326
- fetch?: RequestInit | undefined;
12327
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12328
- 200: string[];
12329
- 422: {
12330
- type: "validation";
12331
- on: string;
12332
- summary?: string;
12333
- message?: string;
12334
- found?: unknown;
12335
- property?: string;
12336
- expected?: string;
12153
+ campaignId: string;
12154
+ id: string;
12155
+ params: any;
12156
+ amount: string;
12157
+ startTimestamp: string | number;
12158
+ type: string;
12159
+ computeChainId: number;
12160
+ distributionChainId: number;
12161
+ endTimestamp: string | number;
12162
+ opportunityId: string;
12163
+ creatorAddress: string;
12164
+ subType: number | null;
12165
+ rewardTokenId: string;
12166
+ createdAt: string;
12167
+ chain: {
12168
+ explorers?: {
12169
+ chainId: number;
12170
+ type: "ETHERSCAN" | "BLOCKSCOUT";
12171
+ url: string;
12172
+ }[] | undefined;
12173
+ name: string;
12174
+ id: number;
12175
+ icon: string;
12337
12176
  };
12338
- }>>;
12339
- };
12177
+ }[];
12178
+ 422: {
12179
+ type: "validation";
12180
+ on: string;
12181
+ summary?: string;
12182
+ message?: string;
12183
+ found?: unknown;
12184
+ property?: string;
12185
+ expected?: string;
12186
+ };
12187
+ }>>;
12340
12188
  count: {
12341
12189
  get: (options: {
12342
12190
  headers?: Record<string, unknown> | undefined;
@@ -12347,7 +12195,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12347
12195
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
12348
12196
  chainId?: number | undefined;
12349
12197
  startTimestamp?: string | undefined;
12350
- items?: number | undefined;
12351
12198
  point?: boolean | undefined;
12352
12199
  tokenSymbol?: string | undefined;
12353
12200
  type?: string | undefined;
@@ -12360,7 +12207,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12360
12207
  parentCampaignId?: string | undefined;
12361
12208
  creatorId?: string | undefined;
12362
12209
  mainParameter?: string | undefined;
12363
- page?: number | undefined;
12364
12210
  test?: boolean | undefined;
12365
12211
  creatorTag?: string | undefined;
12366
12212
  distributionChainIds?: number[] | undefined;
@@ -12368,6 +12214,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12368
12214
  withOpportunity?: boolean | undefined;
12369
12215
  createdAfter?: Date | null | undefined;
12370
12216
  excludeSubCampaigns?: boolean | undefined;
12217
+ items: number;
12218
+ page: number;
12371
12219
  };
12372
12220
  fetch?: RequestInit | undefined;
12373
12221
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -12387,7 +12235,35 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12387
12235
  headers: {
12388
12236
  authorization: string;
12389
12237
  };
12390
- query?: Record<string, unknown> | undefined;
12238
+ query: {
12239
+ campaignId?: string | undefined;
12240
+ id?: string | undefined;
12241
+ tokenAddress?: string | undefined;
12242
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
12243
+ chainId?: number | undefined;
12244
+ startTimestamp?: string | undefined;
12245
+ point?: boolean | undefined;
12246
+ tokenSymbol?: string | undefined;
12247
+ type?: string | undefined;
12248
+ endTimestamp?: string | undefined;
12249
+ opportunityId?: string | undefined;
12250
+ creatorAddress?: string | undefined;
12251
+ mainProtocolId?: string | undefined;
12252
+ subType?: number | undefined;
12253
+ rootCampaignId?: string | undefined;
12254
+ parentCampaignId?: string | undefined;
12255
+ creatorId?: string | undefined;
12256
+ mainParameter?: string | undefined;
12257
+ test?: boolean | undefined;
12258
+ creatorTag?: string | undefined;
12259
+ distributionChainIds?: number[] | undefined;
12260
+ types?: string[] | undefined;
12261
+ withOpportunity?: boolean | undefined;
12262
+ createdAfter?: Date | null | undefined;
12263
+ excludeSubCampaigns?: boolean | undefined;
12264
+ items: number;
12265
+ page: number;
12266
+ };
12391
12267
  fetch?: RequestInit | undefined;
12392
12268
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12393
12269
  200: {
@@ -12409,7 +12285,35 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12409
12285
  headers: {
12410
12286
  authorization: string;
12411
12287
  };
12412
- query?: Record<string, unknown> | undefined;
12288
+ query: {
12289
+ campaignId?: string | undefined;
12290
+ id?: string | undefined;
12291
+ tokenAddress?: string | undefined;
12292
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
12293
+ chainId?: number | undefined;
12294
+ startTimestamp?: string | undefined;
12295
+ point?: boolean | undefined;
12296
+ tokenSymbol?: string | undefined;
12297
+ type?: string | undefined;
12298
+ endTimestamp?: string | undefined;
12299
+ opportunityId?: string | undefined;
12300
+ creatorAddress?: string | undefined;
12301
+ mainProtocolId?: string | undefined;
12302
+ subType?: number | undefined;
12303
+ rootCampaignId?: string | undefined;
12304
+ parentCampaignId?: string | undefined;
12305
+ creatorId?: string | undefined;
12306
+ mainParameter?: string | undefined;
12307
+ test?: boolean | undefined;
12308
+ creatorTag?: string | undefined;
12309
+ distributionChainIds?: number[] | undefined;
12310
+ types?: string[] | undefined;
12311
+ withOpportunity?: boolean | undefined;
12312
+ createdAfter?: Date | null | undefined;
12313
+ excludeSubCampaigns?: boolean | undefined;
12314
+ items: number;
12315
+ page: number;
12316
+ };
12413
12317
  fetch?: RequestInit | undefined;
12414
12318
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12415
12319
  200: {
@@ -12427,6 +12331,144 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12427
12331
  }>>;
12428
12332
  };
12429
12333
  };
12334
+ opportunity: {
12335
+ patch: (body: {
12336
+ opportunityIdentifier?: string | undefined;
12337
+ campaignId: string;
12338
+ distributionChain: number;
12339
+ }, options: {
12340
+ headers: {
12341
+ authorization: string;
12342
+ };
12343
+ query?: Record<string, unknown> | undefined;
12344
+ fetch?: RequestInit | undefined;
12345
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12346
+ 200: string;
12347
+ 422: {
12348
+ type: "validation";
12349
+ on: string;
12350
+ summary?: string;
12351
+ message?: string;
12352
+ found?: unknown;
12353
+ property?: string;
12354
+ expected?: string;
12355
+ };
12356
+ }>>;
12357
+ };
12358
+ creator: {
12359
+ patch: (body: {
12360
+ campaignId: string;
12361
+ creatorAddress: string;
12362
+ distributionChain: number;
12363
+ }, options: {
12364
+ headers: {
12365
+ authorization: string;
12366
+ };
12367
+ query?: Record<string, unknown> | undefined;
12368
+ fetch?: RequestInit | undefined;
12369
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12370
+ 200: void;
12371
+ 422: {
12372
+ type: "validation";
12373
+ on: string;
12374
+ summary?: string;
12375
+ message?: string;
12376
+ found?: unknown;
12377
+ property?: string;
12378
+ expected?: string;
12379
+ };
12380
+ }>>;
12381
+ };
12382
+ "remove-override": {
12383
+ patch: (body: {
12384
+ campaignId: string;
12385
+ distributionChain: number;
12386
+ field: "opportunityId" | "creatorAddress";
12387
+ }, options: {
12388
+ headers: {
12389
+ authorization: string;
12390
+ };
12391
+ query?: Record<string, unknown> | undefined;
12392
+ fetch?: RequestInit | undefined;
12393
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12394
+ 200: void;
12395
+ 422: {
12396
+ type: "validation";
12397
+ on: string;
12398
+ summary?: string;
12399
+ message?: string;
12400
+ found?: unknown;
12401
+ property?: string;
12402
+ expected?: string;
12403
+ };
12404
+ }>>;
12405
+ };
12406
+ metadata: {
12407
+ patch: (body: {
12408
+ campaignId: string;
12409
+ url: string;
12410
+ distributionChain: number;
12411
+ }, options: {
12412
+ headers: {
12413
+ authorization: string;
12414
+ };
12415
+ query?: Record<string, unknown> | undefined;
12416
+ fetch?: RequestInit | undefined;
12417
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12418
+ 200: {
12419
+ campaignId: string;
12420
+ description: string | null;
12421
+ id: string;
12422
+ params: import("@prisma/client/runtime/library").JsonValue;
12423
+ amount: string;
12424
+ startTimestamp: bigint;
12425
+ type: string;
12426
+ computeChainId: number;
12427
+ distributionChainId: number;
12428
+ endTimestamp: bigint;
12429
+ opportunityId: string;
12430
+ creatorAddress: string;
12431
+ distributionType: import("@package/databases").DistributionType;
12432
+ subType: number | null;
12433
+ rewardTokenId: string;
12434
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
12435
+ createdAt: Date;
12436
+ rootCampaignId: string | null;
12437
+ parentCampaignId: string | null;
12438
+ };
12439
+ 422: {
12440
+ type: "validation";
12441
+ on: string;
12442
+ summary?: string;
12443
+ message?: string;
12444
+ found?: unknown;
12445
+ property?: string;
12446
+ expected?: string;
12447
+ };
12448
+ }>>;
12449
+ };
12450
+ tvls: ((params: {
12451
+ opportunityId: string | number;
12452
+ }) => {
12453
+ put: (body: unknown, options: {
12454
+ headers: {
12455
+ authorization: string;
12456
+ };
12457
+ query?: Record<string, unknown> | undefined;
12458
+ fetch?: RequestInit | undefined;
12459
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12460
+ 200: unknown[];
12461
+ 422: {
12462
+ type: "validation";
12463
+ on: string;
12464
+ summary?: string;
12465
+ message?: string;
12466
+ found?: unknown;
12467
+ property?: string;
12468
+ expected?: string;
12469
+ };
12470
+ }>>;
12471
+ }) & {};
12430
12472
  "dry-run": {
12431
12473
  tvl: {
12432
12474
  campaign: ((params: {
@@ -12918,7 +12960,35 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
12918
12960
  headers: {
12919
12961
  authorization: string;
12920
12962
  };
12921
- query?: Record<string, unknown> | undefined;
12963
+ query: {
12964
+ campaignId?: string | undefined;
12965
+ id?: string | undefined;
12966
+ tokenAddress?: string | undefined;
12967
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
12968
+ chainId?: number | undefined;
12969
+ startTimestamp?: string | undefined;
12970
+ point?: boolean | undefined;
12971
+ tokenSymbol?: string | undefined;
12972
+ type?: string | undefined;
12973
+ endTimestamp?: string | undefined;
12974
+ opportunityId?: string | undefined;
12975
+ creatorAddress?: string | undefined;
12976
+ mainProtocolId?: string | undefined;
12977
+ subType?: number | undefined;
12978
+ rootCampaignId?: string | undefined;
12979
+ parentCampaignId?: string | undefined;
12980
+ creatorId?: string | undefined;
12981
+ mainParameter?: string | undefined;
12982
+ test?: boolean | undefined;
12983
+ creatorTag?: string | undefined;
12984
+ distributionChainIds?: number[] | undefined;
12985
+ types?: string[] | undefined;
12986
+ withOpportunity?: boolean | undefined;
12987
+ createdAfter?: Date | null | undefined;
12988
+ excludeSubCampaigns?: boolean | undefined;
12989
+ items: number;
12990
+ page: number;
12991
+ };
12922
12992
  fetch?: RequestInit | undefined;
12923
12993
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12924
12994
  200: {
@@ -13002,11 +13072,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13002
13072
  name?: string | undefined;
13003
13073
  ids?: string[] | undefined;
13004
13074
  id?: string | undefined;
13005
- items?: number | undefined;
13006
13075
  tags?: string[] | undefined;
13007
- page?: number | undefined;
13008
13076
  test?: boolean | undefined;
13009
13077
  opportunityTag?: string | undefined;
13078
+ items: number;
13079
+ page: number;
13010
13080
  };
13011
13081
  fetch?: RequestInit | undefined;
13012
13082
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13038,11 +13108,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13038
13108
  name?: string | undefined;
13039
13109
  ids?: string[] | undefined;
13040
13110
  id?: string | undefined;
13041
- items?: number | undefined;
13042
13111
  tags?: string[] | undefined;
13043
- page?: number | undefined;
13044
13112
  test?: boolean | undefined;
13045
13113
  opportunityTag?: string | undefined;
13114
+ items: number;
13115
+ page: number;
13046
13116
  };
13047
13117
  fetch?: RequestInit | undefined;
13048
13118
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13441,15 +13511,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13441
13511
  address?: string | undefined;
13442
13512
  id?: string[] | undefined;
13443
13513
  chainId?: number | undefined;
13444
- items?: number | undefined;
13445
13514
  isNative?: boolean | undefined;
13446
13515
  verified?: boolean | undefined;
13447
13516
  search?: string | undefined;
13448
13517
  displaySymbol?: string | undefined;
13449
- page?: number | undefined;
13450
13518
  test?: boolean | undefined;
13451
13519
  missingIcons?: boolean | undefined;
13452
13520
  missingPrice?: boolean | undefined;
13521
+ items: number;
13522
+ page: number;
13453
13523
  };
13454
13524
  fetch?: RequestInit | undefined;
13455
13525
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13490,15 +13560,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13490
13560
  address?: string | undefined;
13491
13561
  id?: string[] | undefined;
13492
13562
  chainId?: number | undefined;
13493
- items?: number | undefined;
13494
13563
  isNative?: boolean | undefined;
13495
13564
  verified?: boolean | undefined;
13496
13565
  search?: string | undefined;
13497
13566
  displaySymbol?: string | undefined;
13498
- page?: number | undefined;
13499
13567
  test?: boolean | undefined;
13500
13568
  missingIcons?: boolean | undefined;
13501
13569
  missingPrice?: boolean | undefined;
13570
+ items: number;
13571
+ page: number;
13502
13572
  };
13503
13573
  fetch?: RequestInit | undefined;
13504
13574
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13630,10 +13700,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13630
13700
  get: (options: {
13631
13701
  headers?: Record<string, unknown> | undefined;
13632
13702
  query: {
13633
- items?: number | undefined;
13634
- page?: number | undefined;
13635
13703
  campaignId: string;
13636
13704
  chainId: number;
13705
+ items: number;
13706
+ page: number;
13637
13707
  };
13638
13708
  fetch?: RequestInit | undefined;
13639
13709
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13652,10 +13722,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13652
13722
  get: (options: {
13653
13723
  headers?: Record<string, unknown> | undefined;
13654
13724
  query: {
13655
- items?: number | undefined;
13656
- page?: number | undefined;
13657
13725
  campaignId: string;
13658
13726
  chainId: number;
13727
+ items: number;
13728
+ page: number;
13659
13729
  };
13660
13730
  fetch?: RequestInit | undefined;
13661
13731
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13758,10 +13828,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13758
13828
  get: (options: {
13759
13829
  headers?: Record<string, unknown> | undefined;
13760
13830
  query: {
13761
- items?: number | undefined;
13762
- page?: number | undefined;
13763
13831
  campaignId: string;
13764
13832
  chainId: number;
13833
+ items: number;
13834
+ page: number;
13765
13835
  };
13766
13836
  fetch?: RequestInit | undefined;
13767
13837
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13812,8 +13882,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13812
13882
  get: (options: {
13813
13883
  headers?: Record<string, unknown> | undefined;
13814
13884
  query: {
13815
- items?: number | undefined;
13816
- page?: number | undefined;
13885
+ items: number;
13886
+ page: number;
13817
13887
  };
13818
13888
  fetch?: RequestInit | undefined;
13819
13889
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13837,8 +13907,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13837
13907
  get: (options: {
13838
13908
  headers?: Record<string, unknown> | undefined;
13839
13909
  query: {
13840
- items?: number | undefined;
13841
- page?: number | undefined;
13910
+ items: number;
13911
+ page: number;
13842
13912
  };
13843
13913
  fetch?: RequestInit | undefined;
13844
13914
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13861,8 +13931,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13861
13931
  get: (options: {
13862
13932
  headers?: Record<string, unknown> | undefined;
13863
13933
  query: {
13864
- items?: number | undefined;
13865
- page?: number | undefined;
13934
+ items: number;
13935
+ page: number;
13866
13936
  };
13867
13937
  fetch?: RequestInit | undefined;
13868
13938
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13886,11 +13956,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13886
13956
  headers?: Record<string, unknown> | undefined;
13887
13957
  query: {
13888
13958
  recipient?: string | undefined;
13889
- items?: number | undefined;
13890
- page?: number | undefined;
13891
13959
  campaignIds?: string[] | undefined;
13892
13960
  address: string;
13893
13961
  chainId: number;
13962
+ items: number;
13963
+ page: number;
13894
13964
  };
13895
13965
  fetch?: RequestInit | undefined;
13896
13966
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13915,11 +13985,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13915
13985
  headers?: Record<string, unknown> | undefined;
13916
13986
  query: {
13917
13987
  recipient?: string | undefined;
13918
- items?: number | undefined;
13919
- page?: number | undefined;
13920
13988
  campaignIds?: string[] | undefined;
13921
13989
  address: string;
13922
13990
  chainId: number;
13991
+ items: number;
13992
+ page: number;
13923
13993
  };
13924
13994
  fetch?: RequestInit | undefined;
13925
13995
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -13943,11 +14013,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
13943
14013
  headers?: Record<string, unknown> | undefined;
13944
14014
  query: {
13945
14015
  recipient?: string | undefined;
13946
- items?: number | undefined;
13947
- page?: number | undefined;
13948
14016
  campaignIds?: string[] | undefined;
13949
14017
  address: string;
13950
14018
  chainId: number;
14019
+ items: number;
14020
+ page: number;
13951
14021
  };
13952
14022
  fetch?: RequestInit | undefined;
13953
14023
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -14728,9 +14798,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
14728
14798
  headers?: Record<string, unknown> | undefined;
14729
14799
  query: {
14730
14800
  address?: string | undefined;
14731
- items?: number | undefined;
14732
14801
  tags?: string[] | undefined;
14733
- page?: number | undefined;
14802
+ items: number;
14803
+ page: number;
14734
14804
  };
14735
14805
  fetch?: RequestInit | undefined;
14736
14806
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -14988,8 +15058,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
14988
15058
  authorization: string;
14989
15059
  };
14990
15060
  query: {
14991
- items?: number | undefined;
14992
- page?: number | undefined;
15061
+ items: number;
15062
+ page: number;
14993
15063
  };
14994
15064
  fetch?: RequestInit | undefined;
14995
15065
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
@@ -16606,6 +16676,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
16606
16676
  fetch?: RequestInit | undefined;
16607
16677
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16608
16678
  200: {
16679
+ apr: number | null;
16680
+ tvl: number | null;
16609
16681
  averageBoost: number | null;
16610
16682
  totalDistributedInUSD: number | null;
16611
16683
  forfeitingBoost: number | null;
@@ -16984,8 +17056,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
16984
17056
  query: {
16985
17057
  address?: string | undefined;
16986
17058
  id?: string | undefined;
16987
- items?: number | undefined;
16988
- page?: number | undefined;
17059
+ items: number;
17060
+ page: number;
16989
17061
  };
16990
17062
  fetch?: RequestInit | undefined;
16991
17063
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{