@merkl/api 0.16.34 → 0.16.35

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 (75) hide show
  1. package/dist/src/backgroundJobs/index.js +0 -4
  2. package/dist/src/backgroundJobs/jobs/opportunityUpdater.js +3 -0
  3. package/dist/src/eden/index.d.ts +657 -444
  4. package/dist/src/entities/opportunity.d.ts +3 -1
  5. package/dist/src/index.d.ts +136 -117
  6. package/dist/src/jobs/etl/prices.js +9 -2
  7. package/dist/src/libs/deprecated-merklv3/index.js +1 -1
  8. package/dist/src/modules/v4/boost/boost.controller.js +1 -1
  9. package/dist/src/modules/v4/cache/cache.repository.d.ts +1 -0
  10. package/dist/src/modules/v4/cache/cache.repository.js +19 -0
  11. package/dist/src/modules/v4/campaign/campaign.service.d.ts +0 -5
  12. package/dist/src/modules/v4/campaign/campaign.service.js +0 -5
  13. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +120 -57
  14. package/dist/src/modules/v4/opportunity/opportunity.controller.js +1 -1
  15. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +9 -0
  16. package/dist/src/modules/v4/opportunity/opportunity.converter.js +153 -0
  17. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -1
  18. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -0
  19. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +18 -210
  20. package/dist/src/modules/v4/opportunity/opportunity.repository.js +76 -113
  21. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +219 -64
  22. package/dist/src/modules/v4/opportunity/opportunity.service.js +19 -21
  23. package/dist/src/modules/v4/reward/{subservices/converter.d.ts → reward.converter.d.ts} +3 -3
  24. package/dist/src/modules/v4/reward/{subservices/converter.js → reward.converter.js} +1 -1
  25. package/dist/src/modules/v4/router.d.ts +120 -57
  26. package/dist/src/routes/v3/app.js +1 -0
  27. package/dist/src/routes/v3/blacklist.js +1 -0
  28. package/dist/src/routes/v3/campaign/delay.js +1 -0
  29. package/dist/src/routes/v3/campaignClaims.d.ts +3 -1
  30. package/dist/src/routes/v3/campaignClaims.js +4 -13
  31. package/dist/src/routes/v3/campaignUnclaimed.js +1 -0
  32. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +9 -1
  33. package/dist/src/routes/v3/campaignsForMainParameter.js +17 -7
  34. package/dist/src/routes/v3/campaignsRewardsReport.js +1 -0
  35. package/dist/src/routes/v3/claims.d.ts +3 -1
  36. package/dist/src/routes/v3/claims.js +4 -33
  37. package/dist/src/routes/v3/opportunity.d.ts +7 -7
  38. package/dist/src/routes/v3/opportunity.js +12 -13
  39. package/dist/src/routes/v3/recipients.js +1 -0
  40. package/dist/src/routes/v3/rewards.js +2 -1
  41. package/dist/src/routes/v3/rewardsReport.js +1 -0
  42. package/dist/src/routes/v3/router.d.ts +16 -60
  43. package/dist/src/routes/v3/router.js +0 -6
  44. package/dist/src/routes/v3/userRewards.js +2 -1
  45. package/dist/src/types/returnTypes.d.ts +0 -8
  46. package/dist/src/utils/camelToKebabCase.d.ts +2 -0
  47. package/dist/src/utils/camelToKebabCase.js +9 -0
  48. package/dist/tsconfig.package.tsbuildinfo +1 -1
  49. package/package.json +1 -1
  50. package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +0 -37
  51. package/dist/src/backgroundJobs/jobs/priceUpdater.js +0 -21
  52. package/dist/src/backgroundJobs/jobs/sync.d.ts +0 -40
  53. package/dist/src/backgroundJobs/jobs/sync.js +0 -33
  54. package/dist/src/routes/v3/campaignReport.d.ts +0 -43
  55. package/dist/src/routes/v3/campaignReport.js +0 -22
  56. package/dist/src/routes/v3/campaignsInfo.d.ts +0 -41
  57. package/dist/src/routes/v3/campaignsInfo.js +0 -54
  58. package/dist/src/routes/v3/exports/campaigns.d.ts +0 -43
  59. package/dist/src/routes/v3/exports/campaigns.js +0 -28
  60. package/dist/src/routes/v3/tokenUnclaimed.d.ts +0 -44
  61. package/dist/src/routes/v3/tokenUnclaimed.js +0 -24
  62. package/dist/src/utils/queries/campaignsForMainParameter.d.ts +0 -2
  63. package/dist/src/utils/queries/campaignsForMainParameter.js +0 -23
  64. package/dist/src/utils/queries/claimsOverTime.d.ts +0 -8
  65. package/dist/src/utils/queries/claimsOverTime.js +0 -111
  66. package/dist/src/utils/queries/endingCampaigns.d.ts +0 -10
  67. package/dist/src/utils/queries/endingCampaigns.js +0 -21
  68. package/dist/src/utils/queries/futureCampaigns.d.ts +0 -3
  69. package/dist/src/utils/queries/futureCampaigns.js +0 -19
  70. package/dist/src/utils/queries/mainParameterCampaigns.d.ts +0 -5
  71. package/dist/src/utils/queries/mainParameterCampaigns.js +0 -11
  72. package/dist/src/utils/queries/rewardsAmount.d.ts +0 -10
  73. package/dist/src/utils/queries/rewardsAmount.js +0 -106
  74. package/dist/src/utils/queries/unclaimed.d.ts +0 -11
  75. package/dist/src/utils/queries/unclaimed.js +0 -81
@@ -460,11 +460,13 @@ declare const eden: {
460
460
  status?: string | undefined;
461
461
  items?: number | undefined;
462
462
  tags?: string | undefined;
463
+ identifier?: string | undefined;
463
464
  page?: number | undefined;
464
465
  chainId?: string | undefined;
465
466
  action?: string | undefined;
466
467
  creatorAddress?: string | undefined;
467
468
  mainProtocolId?: string | undefined;
469
+ campaigns?: boolean | undefined;
468
470
  order?: string | undefined;
469
471
  test?: boolean | undefined;
470
472
  minimumTvl?: number | undefined;
@@ -521,6 +523,57 @@ declare const eden: {
521
523
  amount: bigint;
522
524
  }[];
523
525
  };
526
+ campaigns: {
527
+ params: any;
528
+ chain: {
529
+ name: string;
530
+ id: number;
531
+ icon: string;
532
+ };
533
+ rewardToken: {
534
+ symbol: string;
535
+ name: string | null;
536
+ id: string;
537
+ icon: string;
538
+ chainId: number;
539
+ address: string;
540
+ decimals: number;
541
+ verified: boolean;
542
+ isTest: boolean;
543
+ } & {
544
+ price?: number | null | undefined;
545
+ };
546
+ distributionChain: {
547
+ name: string;
548
+ id: number;
549
+ icon: string;
550
+ } | undefined;
551
+ campaignStatus: {
552
+ error: string;
553
+ details: import("database/api/.generated/runtime/library").JsonValue;
554
+ status: import("../../database/api/.generated").$Enums.RunStatus;
555
+ campaignId: string;
556
+ computedUntil: bigint;
557
+ processingStarted: bigint;
558
+ };
559
+ creatorAddress: string;
560
+ Creator: {
561
+ tags: string[];
562
+ address: string;
563
+ creatorId: string | null;
564
+ };
565
+ type: string;
566
+ id: string;
567
+ subType: number | null;
568
+ startTimestamp: bigint;
569
+ endTimestamp: bigint;
570
+ computeChainId: number;
571
+ distributionChainId: number;
572
+ campaignId: string;
573
+ rewardTokenId: string;
574
+ amount: string;
575
+ opportunityId: string;
576
+ }[];
524
577
  id: string;
525
578
  depositUrl: string | undefined;
526
579
  tokens: ({
@@ -572,11 +625,13 @@ declare const eden: {
572
625
  status?: string | undefined;
573
626
  items?: number | undefined;
574
627
  tags?: string | undefined;
628
+ identifier?: string | undefined;
575
629
  page?: number | undefined;
576
630
  chainId?: string | undefined;
577
631
  action?: string | undefined;
578
632
  creatorAddress?: string | undefined;
579
633
  mainProtocolId?: string | undefined;
634
+ campaigns?: boolean | undefined;
580
635
  order?: string | undefined;
581
636
  test?: boolean | undefined;
582
637
  minimumTvl?: number | undefined;
@@ -609,45 +664,41 @@ declare const eden: {
609
664
  };
610
665
  fetch?: RequestInit | undefined;
611
666
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
612
- 200: ({
613
- protocol?: {
614
- name: string;
615
- url: string;
616
- description: string;
617
- id: string;
618
- tags: string[];
619
- icon: string;
620
- } | null | undefined;
621
- depositUrl?: string | undefined;
622
- aprRecord?: {
623
- timestamp: string | bigint;
667
+ 200: {
668
+ apr: number;
669
+ aprRecord: {
624
670
  cumulated: number;
671
+ timestamp: bigint;
625
672
  breakdowns: {
626
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
673
+ type: import("../../database/api/.generated").$Enums.AprType;
627
674
  id: number;
628
675
  identifier: string;
629
676
  value: number;
630
677
  aprRecordId: string;
631
678
  }[];
632
- } | undefined;
633
- tvlRecord?: {
679
+ };
680
+ tvlRecord: {
681
+ id: string;
634
682
  total: number;
635
- timestamp: string | bigint;
683
+ timestamp: bigint;
636
684
  breakdowns: {
637
- type: "TOKEN" | "PROTOCOL";
685
+ type: import("../../database/api/.generated").$Enums.TvlType;
638
686
  id: number;
639
687
  identifier: string;
640
688
  value: number;
641
689
  tvlRecordId: string;
642
690
  }[];
643
- } | undefined;
644
- rewardsRecord?: {
645
- total: number;
691
+ };
692
+ rewardsRecord: {
646
693
  id: string;
647
- timestamp: string | bigint;
694
+ total: number;
695
+ timestamp: bigint;
648
696
  breakdowns: {
697
+ id: number;
698
+ value: number;
699
+ campaignId: string;
700
+ dailyRewardsRecordId: string;
649
701
  token: {
650
- price?: number | null | undefined;
651
702
  symbol: string;
652
703
  name: string | null;
653
704
  id: string;
@@ -655,45 +706,14 @@ declare const eden: {
655
706
  chainId: number;
656
707
  address: string;
657
708
  decimals: number;
709
+ displaySymbol: string;
658
710
  verified: boolean;
659
711
  isTest: boolean;
712
+ price: number | null;
660
713
  };
661
- id: number;
662
- value: number;
663
- campaignId: string;
664
- amount: string | bigint;
665
- dailyRewardsRecordId: string;
714
+ amount: bigint;
666
715
  }[];
667
- } | undefined;
668
- name: string;
669
- type: string;
670
- tokens: {
671
- price?: number | null | undefined;
672
- symbol: string;
673
- name: string | null;
674
- id: string;
675
- icon: string;
676
- chainId: number;
677
- address: string;
678
- decimals: number;
679
- verified: boolean;
680
- isTest: boolean;
681
- }[];
682
- id: string;
683
- status: string;
684
- tags: string[];
685
- identifier: string;
686
- chain: {
687
- name: string;
688
- id: number;
689
- icon: string;
690
716
  };
691
- chainId: number;
692
- action: string;
693
- tvl: number;
694
- apr: number;
695
- dailyRewards: number;
696
- } & {
697
717
  campaigns: {
698
718
  params: any;
699
719
  chain: {
@@ -745,7 +765,44 @@ declare const eden: {
745
765
  amount: string;
746
766
  opportunityId: string;
747
767
  }[];
748
- })[];
768
+ id: string;
769
+ depositUrl: string | undefined;
770
+ tokens: ({
771
+ symbol: string;
772
+ name: string | null;
773
+ id: string;
774
+ icon: string;
775
+ chainId: number;
776
+ address: string;
777
+ decimals: number;
778
+ verified: boolean;
779
+ isTest: boolean;
780
+ } & {
781
+ price?: number | null | undefined;
782
+ })[];
783
+ chain: {
784
+ name: string;
785
+ id: number;
786
+ icon: string;
787
+ };
788
+ protocol: {
789
+ name: string;
790
+ url: string;
791
+ description: string;
792
+ id: string;
793
+ tags: string[];
794
+ icon: string;
795
+ } | undefined;
796
+ name: string;
797
+ type: string;
798
+ status: import("../../database/api/.generated").$Enums.Status;
799
+ tags: string[];
800
+ identifier: string;
801
+ chainId: number;
802
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
803
+ tvl: number;
804
+ dailyRewards: number;
805
+ }[];
749
806
  readonly 404: {
750
807
  message: string;
751
808
  name: string;
@@ -770,11 +827,13 @@ declare const eden: {
770
827
  status?: string | undefined;
771
828
  items?: number | undefined;
772
829
  tags?: string | undefined;
830
+ identifier?: string | undefined;
773
831
  page?: number | undefined;
774
832
  chainId?: string | undefined;
775
833
  action?: string | undefined;
776
834
  creatorAddress?: string | undefined;
777
835
  mainProtocolId?: string | undefined;
836
+ campaigns?: boolean | undefined;
778
837
  order?: string | undefined;
779
838
  test?: boolean | undefined;
780
839
  minimumTvl?: number | undefined;
@@ -799,11 +858,13 @@ declare const eden: {
799
858
  status?: string | undefined;
800
859
  items?: number | undefined;
801
860
  tags?: string | undefined;
861
+ identifier?: string | undefined;
802
862
  page?: number | undefined;
803
863
  chainId?: string | undefined;
804
864
  action?: string | undefined;
805
865
  creatorAddress?: string | undefined;
806
866
  mainProtocolId?: string | undefined;
867
+ campaigns?: boolean | undefined;
807
868
  order?: string | undefined;
808
869
  test?: boolean | undefined;
809
870
  minimumTvl?: number | undefined;
@@ -828,11 +889,13 @@ declare const eden: {
828
889
  status?: string | undefined;
829
890
  items?: number | undefined;
830
891
  tags?: string | undefined;
892
+ identifier?: string | undefined;
831
893
  page?: number | undefined;
832
894
  chainId?: string | undefined;
833
895
  action?: string | undefined;
834
896
  creatorAddress?: string | undefined;
835
897
  mainProtocolId?: string | undefined;
898
+ campaigns?: boolean | undefined;
836
899
  order?: string | undefined;
837
900
  test?: boolean | undefined;
838
901
  minimumTvl?: number | undefined;
@@ -3746,11 +3809,13 @@ declare const eden: {
3746
3809
  status?: string | undefined;
3747
3810
  items?: number | undefined;
3748
3811
  tags?: string | undefined;
3812
+ identifier?: string | undefined;
3749
3813
  page?: number | undefined;
3750
3814
  chainId?: string | undefined;
3751
3815
  action?: string | undefined;
3752
3816
  creatorAddress?: string | undefined;
3753
3817
  mainProtocolId?: string | undefined;
3818
+ campaigns?: boolean | undefined;
3754
3819
  order?: string | undefined;
3755
3820
  test?: boolean | undefined;
3756
3821
  minimumTvl?: number | undefined;
@@ -3807,6 +3872,57 @@ declare const eden: {
3807
3872
  amount: bigint;
3808
3873
  }[];
3809
3874
  };
3875
+ campaigns: {
3876
+ params: any;
3877
+ chain: {
3878
+ name: string;
3879
+ id: number;
3880
+ icon: string;
3881
+ };
3882
+ rewardToken: {
3883
+ symbol: string;
3884
+ name: string | null;
3885
+ id: string;
3886
+ icon: string;
3887
+ chainId: number;
3888
+ address: string;
3889
+ decimals: number;
3890
+ verified: boolean;
3891
+ isTest: boolean;
3892
+ } & {
3893
+ price?: number | null | undefined;
3894
+ };
3895
+ distributionChain: {
3896
+ name: string;
3897
+ id: number;
3898
+ icon: string;
3899
+ } | undefined;
3900
+ campaignStatus: {
3901
+ error: string;
3902
+ details: import("database/api/.generated/runtime/library").JsonValue;
3903
+ status: import("../../database/api/.generated").$Enums.RunStatus;
3904
+ campaignId: string;
3905
+ computedUntil: bigint;
3906
+ processingStarted: bigint;
3907
+ };
3908
+ creatorAddress: string;
3909
+ Creator: {
3910
+ tags: string[];
3911
+ address: string;
3912
+ creatorId: string | null;
3913
+ };
3914
+ type: string;
3915
+ id: string;
3916
+ subType: number | null;
3917
+ startTimestamp: bigint;
3918
+ endTimestamp: bigint;
3919
+ computeChainId: number;
3920
+ distributionChainId: number;
3921
+ campaignId: string;
3922
+ rewardTokenId: string;
3923
+ amount: string;
3924
+ opportunityId: string;
3925
+ }[];
3810
3926
  id: string;
3811
3927
  depositUrl: string | undefined;
3812
3928
  tokens: ({
@@ -3858,11 +3974,13 @@ declare const eden: {
3858
3974
  status?: string | undefined;
3859
3975
  items?: number | undefined;
3860
3976
  tags?: string | undefined;
3977
+ identifier?: string | undefined;
3861
3978
  page?: number | undefined;
3862
3979
  chainId?: string | undefined;
3863
3980
  action?: string | undefined;
3864
3981
  creatorAddress?: string | undefined;
3865
3982
  mainProtocolId?: string | undefined;
3983
+ campaigns?: boolean | undefined;
3866
3984
  order?: string | undefined;
3867
3985
  test?: boolean | undefined;
3868
3986
  minimumTvl?: number | undefined;
@@ -3895,45 +4013,41 @@ declare const eden: {
3895
4013
  };
3896
4014
  fetch?: RequestInit | undefined;
3897
4015
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3898
- 200: ({
3899
- protocol?: {
3900
- name: string;
3901
- url: string;
3902
- description: string;
3903
- id: string;
3904
- tags: string[];
3905
- icon: string;
3906
- } | null | undefined;
3907
- depositUrl?: string | undefined;
3908
- aprRecord?: {
3909
- timestamp: string | bigint;
4016
+ 200: {
4017
+ apr: number;
4018
+ aprRecord: {
3910
4019
  cumulated: number;
4020
+ timestamp: bigint;
3911
4021
  breakdowns: {
3912
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4022
+ type: import("../../database/api/.generated").$Enums.AprType;
3913
4023
  id: number;
3914
4024
  identifier: string;
3915
4025
  value: number;
3916
4026
  aprRecordId: string;
3917
4027
  }[];
3918
- } | undefined;
3919
- tvlRecord?: {
4028
+ };
4029
+ tvlRecord: {
4030
+ id: string;
3920
4031
  total: number;
3921
- timestamp: string | bigint;
4032
+ timestamp: bigint;
3922
4033
  breakdowns: {
3923
- type: "TOKEN" | "PROTOCOL";
4034
+ type: import("../../database/api/.generated").$Enums.TvlType;
3924
4035
  id: number;
3925
4036
  identifier: string;
3926
4037
  value: number;
3927
4038
  tvlRecordId: string;
3928
4039
  }[];
3929
- } | undefined;
3930
- rewardsRecord?: {
3931
- total: number;
4040
+ };
4041
+ rewardsRecord: {
3932
4042
  id: string;
3933
- timestamp: string | bigint;
4043
+ total: number;
4044
+ timestamp: bigint;
3934
4045
  breakdowns: {
4046
+ id: number;
4047
+ value: number;
4048
+ campaignId: string;
4049
+ dailyRewardsRecordId: string;
3935
4050
  token: {
3936
- price?: number | null | undefined;
3937
4051
  symbol: string;
3938
4052
  name: string | null;
3939
4053
  id: string;
@@ -3941,45 +4055,14 @@ declare const eden: {
3941
4055
  chainId: number;
3942
4056
  address: string;
3943
4057
  decimals: number;
4058
+ displaySymbol: string;
3944
4059
  verified: boolean;
3945
4060
  isTest: boolean;
4061
+ price: number | null;
3946
4062
  };
3947
- id: number;
3948
- value: number;
3949
- campaignId: string;
3950
- amount: string | bigint;
3951
- dailyRewardsRecordId: string;
4063
+ amount: bigint;
3952
4064
  }[];
3953
- } | undefined;
3954
- name: string;
3955
- type: string;
3956
- tokens: {
3957
- price?: number | null | undefined;
3958
- symbol: string;
3959
- name: string | null;
3960
- id: string;
3961
- icon: string;
3962
- chainId: number;
3963
- address: string;
3964
- decimals: number;
3965
- verified: boolean;
3966
- isTest: boolean;
3967
- }[];
3968
- id: string;
3969
- status: string;
3970
- tags: string[];
3971
- identifier: string;
3972
- chain: {
3973
- name: string;
3974
- id: number;
3975
- icon: string;
3976
4065
  };
3977
- chainId: number;
3978
- action: string;
3979
- tvl: number;
3980
- apr: number;
3981
- dailyRewards: number;
3982
- } & {
3983
4066
  campaigns: {
3984
4067
  params: any;
3985
4068
  chain: {
@@ -4031,7 +4114,44 @@ declare const eden: {
4031
4114
  amount: string;
4032
4115
  opportunityId: string;
4033
4116
  }[];
4034
- })[];
4117
+ id: string;
4118
+ depositUrl: string | undefined;
4119
+ tokens: ({
4120
+ symbol: string;
4121
+ name: string | null;
4122
+ id: string;
4123
+ icon: string;
4124
+ chainId: number;
4125
+ address: string;
4126
+ decimals: number;
4127
+ verified: boolean;
4128
+ isTest: boolean;
4129
+ } & {
4130
+ price?: number | null | undefined;
4131
+ })[];
4132
+ chain: {
4133
+ name: string;
4134
+ id: number;
4135
+ icon: string;
4136
+ };
4137
+ protocol: {
4138
+ name: string;
4139
+ url: string;
4140
+ description: string;
4141
+ id: string;
4142
+ tags: string[];
4143
+ icon: string;
4144
+ } | undefined;
4145
+ name: string;
4146
+ type: string;
4147
+ status: import("../../database/api/.generated").$Enums.Status;
4148
+ tags: string[];
4149
+ identifier: string;
4150
+ chainId: number;
4151
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
4152
+ tvl: number;
4153
+ dailyRewards: number;
4154
+ }[];
4035
4155
  readonly 404: {
4036
4156
  message: string;
4037
4157
  name: string;
@@ -4056,11 +4176,13 @@ declare const eden: {
4056
4176
  status?: string | undefined;
4057
4177
  items?: number | undefined;
4058
4178
  tags?: string | undefined;
4179
+ identifier?: string | undefined;
4059
4180
  page?: number | undefined;
4060
4181
  chainId?: string | undefined;
4061
4182
  action?: string | undefined;
4062
4183
  creatorAddress?: string | undefined;
4063
4184
  mainProtocolId?: string | undefined;
4185
+ campaigns?: boolean | undefined;
4064
4186
  order?: string | undefined;
4065
4187
  test?: boolean | undefined;
4066
4188
  minimumTvl?: number | undefined;
@@ -4085,11 +4207,13 @@ declare const eden: {
4085
4207
  status?: string | undefined;
4086
4208
  items?: number | undefined;
4087
4209
  tags?: string | undefined;
4210
+ identifier?: string | undefined;
4088
4211
  page?: number | undefined;
4089
4212
  chainId?: string | undefined;
4090
4213
  action?: string | undefined;
4091
4214
  creatorAddress?: string | undefined;
4092
4215
  mainProtocolId?: string | undefined;
4216
+ campaigns?: boolean | undefined;
4093
4217
  order?: string | undefined;
4094
4218
  test?: boolean | undefined;
4095
4219
  minimumTvl?: number | undefined;
@@ -4114,11 +4238,13 @@ declare const eden: {
4114
4238
  status?: string | undefined;
4115
4239
  items?: number | undefined;
4116
4240
  tags?: string | undefined;
4241
+ identifier?: string | undefined;
4117
4242
  page?: number | undefined;
4118
4243
  chainId?: string | undefined;
4119
4244
  action?: string | undefined;
4120
4245
  creatorAddress?: string | undefined;
4121
4246
  mainProtocolId?: string | undefined;
4247
+ campaigns?: boolean | undefined;
4122
4248
  order?: string | undefined;
4123
4249
  test?: boolean | undefined;
4124
4250
  minimumTvl?: number | undefined;
@@ -6700,19 +6826,9 @@ declare const eden: {
6700
6826
  };
6701
6827
  fetch?: RequestInit | undefined;
6702
6828
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6703
- 200: unknown;
6704
- }>>;
6705
- };
6706
- campaignReport: {
6707
- get: (options: {
6708
- headers?: Record<string, unknown> | undefined;
6709
- query: {
6710
- chainId: number;
6711
- campaignId: string;
6829
+ 200: {
6830
+ message: string;
6712
6831
  };
6713
- fetch?: RequestInit | undefined;
6714
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6715
- 200: import("../utils/queries/rewardsAmount").RewardsAmountQueryOutput;
6716
6832
  }>>;
6717
6833
  };
6718
6834
  campaigns: {
@@ -6740,22 +6856,15 @@ declare const eden: {
6740
6856
  };
6741
6857
  fetch?: RequestInit | undefined;
6742
6858
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6743
- 200: import("../types/returnTypes").CampaignsForMainParameterReturnType;
6744
- }>>;
6745
- };
6746
- campaignInfo: {
6747
- post: (body: {
6748
- [x: string]: string[];
6749
- }, options?: {
6750
- headers?: Record<string, unknown> | undefined;
6751
- query?: Record<string, unknown> | undefined;
6752
- fetch?: RequestInit | undefined;
6753
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6754
6859
  200: {
6755
- [x: string]: Record<string, any>;
6756
- } | {
6757
- error: string;
6758
- };
6860
+ campaignId: string;
6861
+ campaignType: number;
6862
+ rewardToken: string;
6863
+ rewardTokenSymbol: string;
6864
+ amountDecimal: number;
6865
+ startTimestamp: number;
6866
+ endTimestamp: number;
6867
+ }[];
6759
6868
  }>>;
6760
6869
  };
6761
6870
  campaignsRewardsReport: {
@@ -6796,7 +6905,9 @@ declare const eden: {
6796
6905
  };
6797
6906
  fetch?: RequestInit | undefined;
6798
6907
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6799
- 200: unknown;
6908
+ 200: {
6909
+ message: string;
6910
+ };
6800
6911
  }>>;
6801
6912
  };
6802
6913
  compoundV2: {
@@ -6954,9 +7065,9 @@ declare const eden: {
6954
7065
  get: (options: {
6955
7066
  headers?: Record<string, unknown> | undefined;
6956
7067
  query: {
6957
- type?: undefined;
7068
+ type?: number | undefined;
6958
7069
  tag?: string | undefined;
6959
- chainId?: undefined;
7070
+ chainId?: number | undefined;
6960
7071
  action?: undefined;
6961
7072
  campaigns?: boolean | undefined;
6962
7073
  mainParameter?: string | undefined;
@@ -7183,20 +7294,6 @@ declare const eden: {
7183
7294
  };
7184
7295
  }>>;
7185
7296
  };
7186
- tokenUnclaimed: {
7187
- get: (options: {
7188
- headers?: Record<string, unknown> | undefined;
7189
- query: {
7190
- token: string;
7191
- chainId: number;
7192
- };
7193
- fetch?: RequestInit | undefined;
7194
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7195
- 200: {
7196
- message: string;
7197
- };
7198
- }>>;
7199
- };
7200
7297
  updates: {
7201
7298
  get: (options: {
7202
7299
  headers?: Record<string, unknown> | undefined;
@@ -7528,11 +7625,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7528
7625
  status?: string | undefined;
7529
7626
  items?: number | undefined;
7530
7627
  tags?: string | undefined;
7628
+ identifier?: string | undefined;
7531
7629
  page?: number | undefined;
7532
7630
  chainId?: string | undefined;
7533
7631
  action?: string | undefined;
7534
7632
  creatorAddress?: string | undefined;
7535
7633
  mainProtocolId?: string | undefined;
7634
+ campaigns?: boolean | undefined;
7536
7635
  order?: string | undefined;
7537
7636
  test?: boolean | undefined;
7538
7637
  minimumTvl?: number | undefined;
@@ -7589,6 +7688,57 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7589
7688
  amount: bigint;
7590
7689
  }[];
7591
7690
  };
7691
+ campaigns: {
7692
+ params: any;
7693
+ chain: {
7694
+ name: string;
7695
+ id: number;
7696
+ icon: string;
7697
+ };
7698
+ rewardToken: {
7699
+ symbol: string;
7700
+ name: string | null;
7701
+ id: string;
7702
+ icon: string;
7703
+ chainId: number;
7704
+ address: string;
7705
+ decimals: number;
7706
+ verified: boolean;
7707
+ isTest: boolean;
7708
+ } & {
7709
+ price?: number | null | undefined;
7710
+ };
7711
+ distributionChain: {
7712
+ name: string;
7713
+ id: number;
7714
+ icon: string;
7715
+ } | undefined;
7716
+ campaignStatus: {
7717
+ error: string;
7718
+ details: import("database/api/.generated/runtime/library").JsonValue;
7719
+ status: import("../../database/api/.generated").$Enums.RunStatus;
7720
+ campaignId: string;
7721
+ computedUntil: bigint;
7722
+ processingStarted: bigint;
7723
+ };
7724
+ creatorAddress: string;
7725
+ Creator: {
7726
+ tags: string[];
7727
+ address: string;
7728
+ creatorId: string | null;
7729
+ };
7730
+ type: string;
7731
+ id: string;
7732
+ subType: number | null;
7733
+ startTimestamp: bigint;
7734
+ endTimestamp: bigint;
7735
+ computeChainId: number;
7736
+ distributionChainId: number;
7737
+ campaignId: string;
7738
+ rewardTokenId: string;
7739
+ amount: string;
7740
+ opportunityId: string;
7741
+ }[];
7592
7742
  id: string;
7593
7743
  depositUrl: string | undefined;
7594
7744
  tokens: ({
@@ -7645,11 +7795,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7645
7795
  status?: string | undefined;
7646
7796
  items?: number | undefined;
7647
7797
  tags?: string | undefined;
7798
+ identifier?: string | undefined;
7648
7799
  page?: number | undefined;
7649
7800
  chainId?: string | undefined;
7650
7801
  action?: string | undefined;
7651
7802
  creatorAddress?: string | undefined;
7652
7803
  mainProtocolId?: string | undefined;
7804
+ campaigns?: boolean | undefined;
7653
7805
  order?: string | undefined;
7654
7806
  test?: boolean | undefined;
7655
7807
  minimumTvl?: number | undefined;
@@ -7798,91 +7950,56 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7798
7950
  };
7799
7951
  headers: unknown;
7800
7952
  response: {
7801
- 200: ({
7802
- protocol?: {
7803
- name: string;
7804
- url: string;
7805
- description: string;
7806
- id: string;
7807
- tags: string[];
7808
- icon: string;
7809
- } | null | undefined;
7810
- depositUrl?: string | undefined;
7811
- aprRecord?: {
7812
- timestamp: string | bigint;
7953
+ 200: {
7954
+ apr: number;
7955
+ aprRecord: {
7813
7956
  cumulated: number;
7957
+ timestamp: bigint;
7814
7958
  breakdowns: {
7815
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
7959
+ type: import("../../database/api/.generated").$Enums.AprType;
7816
7960
  id: number;
7817
7961
  identifier: string;
7818
7962
  value: number;
7819
7963
  aprRecordId: string;
7820
7964
  }[];
7821
- } | undefined;
7822
- tvlRecord?: {
7965
+ };
7966
+ tvlRecord: {
7967
+ id: string;
7823
7968
  total: number;
7824
- timestamp: string | bigint;
7969
+ timestamp: bigint;
7825
7970
  breakdowns: {
7826
- type: "TOKEN" | "PROTOCOL";
7971
+ type: import("../../database/api/.generated").$Enums.TvlType;
7827
7972
  id: number;
7828
7973
  identifier: string;
7829
7974
  value: number;
7830
7975
  tvlRecordId: string;
7831
7976
  }[];
7832
- } | undefined;
7833
- rewardsRecord?: {
7834
- total: number;
7977
+ };
7978
+ rewardsRecord: {
7835
7979
  id: string;
7836
- timestamp: string | bigint;
7980
+ total: number;
7981
+ timestamp: bigint;
7837
7982
  breakdowns: {
7838
- token: {
7839
- price?: number | null | undefined;
7840
- symbol: string;
7841
- name: string | null;
7842
- id: string;
7843
- icon: string;
7844
- chainId: number;
7845
- address: string;
7846
- decimals: number;
7847
- verified: boolean;
7848
- isTest: boolean;
7849
- };
7850
7983
  id: number;
7851
7984
  value: number;
7852
7985
  campaignId: string;
7853
- amount: string | bigint;
7854
7986
  dailyRewardsRecordId: string;
7855
- }[];
7856
- } | undefined;
7857
- name: string;
7858
- type: string;
7859
- tokens: {
7860
- price?: number | null | undefined;
7861
- symbol: string;
7862
- name: string | null;
7863
- id: string;
7864
- icon: string;
7865
- chainId: number;
7866
- address: string;
7867
- decimals: number;
7868
- verified: boolean;
7869
- isTest: boolean;
7870
- }[];
7871
- id: string;
7872
- status: string;
7873
- tags: string[];
7874
- identifier: string;
7875
- chain: {
7876
- name: string;
7877
- id: number;
7878
- icon: string;
7987
+ token: {
7988
+ symbol: string;
7989
+ name: string | null;
7990
+ id: string;
7991
+ icon: string;
7992
+ chainId: number;
7993
+ address: string;
7994
+ decimals: number;
7995
+ displaySymbol: string;
7996
+ verified: boolean;
7997
+ isTest: boolean;
7998
+ price: number | null;
7999
+ };
8000
+ amount: bigint;
8001
+ }[];
7879
8002
  };
7880
- chainId: number;
7881
- action: string;
7882
- tvl: number;
7883
- apr: number;
7884
- dailyRewards: number;
7885
- } & {
7886
8003
  campaigns: {
7887
8004
  params: any;
7888
8005
  chain: {
@@ -7934,7 +8051,44 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7934
8051
  amount: string;
7935
8052
  opportunityId: string;
7936
8053
  }[];
7937
- })[];
8054
+ id: string;
8055
+ depositUrl: string | undefined;
8056
+ tokens: ({
8057
+ symbol: string;
8058
+ name: string | null;
8059
+ id: string;
8060
+ icon: string;
8061
+ chainId: number;
8062
+ address: string;
8063
+ decimals: number;
8064
+ verified: boolean;
8065
+ isTest: boolean;
8066
+ } & {
8067
+ price?: number | null | undefined;
8068
+ })[];
8069
+ chain: {
8070
+ name: string;
8071
+ id: number;
8072
+ icon: string;
8073
+ };
8074
+ protocol: {
8075
+ name: string;
8076
+ url: string;
8077
+ description: string;
8078
+ id: string;
8079
+ tags: string[];
8080
+ icon: string;
8081
+ } | undefined;
8082
+ name: string;
8083
+ type: string;
8084
+ status: import("../../database/api/.generated").$Enums.Status;
8085
+ tags: string[];
8086
+ identifier: string;
8087
+ chainId: number;
8088
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
8089
+ tvl: number;
8090
+ dailyRewards: number;
8091
+ }[];
7938
8092
  readonly 404: {
7939
8093
  message: string;
7940
8094
  name: string;
@@ -8123,11 +8277,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8123
8277
  status?: string | undefined;
8124
8278
  items?: number | undefined;
8125
8279
  tags?: string | undefined;
8280
+ identifier?: string | undefined;
8126
8281
  page?: number | undefined;
8127
8282
  chainId?: string | undefined;
8128
8283
  action?: string | undefined;
8129
8284
  creatorAddress?: string | undefined;
8130
8285
  mainProtocolId?: string | undefined;
8286
+ campaigns?: boolean | undefined;
8131
8287
  order?: string | undefined;
8132
8288
  test?: boolean | undefined;
8133
8289
  minimumTvl?: number | undefined;
@@ -8160,11 +8316,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8160
8316
  status?: string | undefined;
8161
8317
  items?: number | undefined;
8162
8318
  tags?: string | undefined;
8319
+ identifier?: string | undefined;
8163
8320
  page?: number | undefined;
8164
8321
  chainId?: string | undefined;
8165
8322
  action?: string | undefined;
8166
8323
  creatorAddress?: string | undefined;
8167
8324
  mainProtocolId?: string | undefined;
8325
+ campaigns?: boolean | undefined;
8168
8326
  order?: string | undefined;
8169
8327
  test?: boolean | undefined;
8170
8328
  minimumTvl?: number | undefined;
@@ -8198,11 +8356,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8198
8356
  status?: string | undefined;
8199
8357
  items?: number | undefined;
8200
8358
  tags?: string | undefined;
8359
+ identifier?: string | undefined;
8201
8360
  page?: number | undefined;
8202
8361
  chainId?: string | undefined;
8203
8362
  action?: string | undefined;
8204
8363
  creatorAddress?: string | undefined;
8205
8364
  mainProtocolId?: string | undefined;
8365
+ campaigns?: boolean | undefined;
8206
8366
  order?: string | undefined;
8207
8367
  test?: boolean | undefined;
8208
8368
  minimumTvl?: number | undefined;
@@ -11471,24 +11631,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11471
11631
  };
11472
11632
  headers: unknown;
11473
11633
  response: {
11474
- 200: unknown;
11475
- };
11476
- };
11477
- };
11478
- };
11479
- } & {
11480
- v3: {
11481
- campaignReport: {
11482
- get: {
11483
- body: unknown;
11484
- params: {};
11485
- query: {
11486
- chainId: number;
11487
- campaignId: string;
11488
- };
11489
- headers: unknown;
11490
- response: {
11491
- 200: import("../utils/queries/rewardsAmount").RewardsAmountQueryOutput;
11634
+ 200: {
11635
+ message: string;
11636
+ };
11492
11637
  };
11493
11638
  };
11494
11639
  };
@@ -11525,28 +11670,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11525
11670
  mainParameter: string;
11526
11671
  };
11527
11672
  headers: unknown;
11528
- response: {
11529
- 200: import("../types/returnTypes").CampaignsForMainParameterReturnType;
11530
- };
11531
- };
11532
- };
11533
- };
11534
- } & {
11535
- v3: {
11536
- campaignInfo: {
11537
- post: {
11538
- body: {
11539
- [x: string]: string[];
11540
- };
11541
- params: {};
11542
- query: unknown;
11543
- headers: unknown;
11544
11673
  response: {
11545
11674
  200: {
11546
- [x: string]: Record<string, any>;
11547
- } | {
11548
- error: string;
11549
- };
11675
+ campaignId: string;
11676
+ campaignType: number;
11677
+ rewardToken: string;
11678
+ rewardTokenSymbol: string;
11679
+ amountDecimal: number;
11680
+ startTimestamp: number;
11681
+ endTimestamp: number;
11682
+ }[];
11550
11683
  };
11551
11684
  };
11552
11685
  };
@@ -11602,7 +11735,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11602
11735
  };
11603
11736
  headers: unknown;
11604
11737
  response: {
11605
- 200: unknown;
11738
+ 200: {
11739
+ message: string;
11740
+ };
11606
11741
  };
11607
11742
  };
11608
11743
  };
@@ -11823,9 +11958,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11823
11958
  body: unknown;
11824
11959
  params: {};
11825
11960
  query: {
11826
- type?: undefined;
11961
+ type?: number | undefined;
11827
11962
  tag?: string | undefined;
11828
- chainId?: undefined;
11963
+ chainId?: number | undefined;
11829
11964
  action?: undefined;
11830
11965
  campaigns?: boolean | undefined;
11831
11966
  mainParameter?: string | undefined;
@@ -12109,25 +12244,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12109
12244
  };
12110
12245
  };
12111
12246
  };
12112
- } & {
12113
- v3: {
12114
- tokenUnclaimed: {
12115
- get: {
12116
- body: unknown;
12117
- params: {};
12118
- query: {
12119
- token: string;
12120
- chainId: number;
12121
- };
12122
- headers: unknown;
12123
- response: {
12124
- 200: {
12125
- message: string;
12126
- };
12127
- };
12128
- };
12129
- };
12130
- };
12131
12247
  } & {
12132
12248
  v3: {
12133
12249
  updates: {
@@ -12673,11 +12789,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12673
12789
  status?: string | undefined;
12674
12790
  items?: number | undefined;
12675
12791
  tags?: string | undefined;
12792
+ identifier?: string | undefined;
12676
12793
  page?: number | undefined;
12677
12794
  chainId?: string | undefined;
12678
12795
  action?: string | undefined;
12679
12796
  creatorAddress?: string | undefined;
12680
12797
  mainProtocolId?: string | undefined;
12798
+ campaigns?: boolean | undefined;
12681
12799
  order?: string | undefined;
12682
12800
  test?: boolean | undefined;
12683
12801
  minimumTvl?: number | undefined;
@@ -12734,6 +12852,57 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12734
12852
  amount: bigint;
12735
12853
  }[];
12736
12854
  };
12855
+ campaigns: {
12856
+ params: any;
12857
+ chain: {
12858
+ name: string;
12859
+ id: number;
12860
+ icon: string;
12861
+ };
12862
+ rewardToken: {
12863
+ symbol: string;
12864
+ name: string | null;
12865
+ id: string;
12866
+ icon: string;
12867
+ chainId: number;
12868
+ address: string;
12869
+ decimals: number;
12870
+ verified: boolean;
12871
+ isTest: boolean;
12872
+ } & {
12873
+ price?: number | null | undefined;
12874
+ };
12875
+ distributionChain: {
12876
+ name: string;
12877
+ id: number;
12878
+ icon: string;
12879
+ } | undefined;
12880
+ campaignStatus: {
12881
+ error: string;
12882
+ details: import("database/api/.generated/runtime/library").JsonValue;
12883
+ status: import("../../database/api/.generated").$Enums.RunStatus;
12884
+ campaignId: string;
12885
+ computedUntil: bigint;
12886
+ processingStarted: bigint;
12887
+ };
12888
+ creatorAddress: string;
12889
+ Creator: {
12890
+ tags: string[];
12891
+ address: string;
12892
+ creatorId: string | null;
12893
+ };
12894
+ type: string;
12895
+ id: string;
12896
+ subType: number | null;
12897
+ startTimestamp: bigint;
12898
+ endTimestamp: bigint;
12899
+ computeChainId: number;
12900
+ distributionChainId: number;
12901
+ campaignId: string;
12902
+ rewardTokenId: string;
12903
+ amount: string;
12904
+ opportunityId: string;
12905
+ }[];
12737
12906
  id: string;
12738
12907
  depositUrl: string | undefined;
12739
12908
  tokens: ({
@@ -12785,11 +12954,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12785
12954
  status?: string | undefined;
12786
12955
  items?: number | undefined;
12787
12956
  tags?: string | undefined;
12957
+ identifier?: string | undefined;
12788
12958
  page?: number | undefined;
12789
12959
  chainId?: string | undefined;
12790
12960
  action?: string | undefined;
12791
12961
  creatorAddress?: string | undefined;
12792
12962
  mainProtocolId?: string | undefined;
12963
+ campaigns?: boolean | undefined;
12793
12964
  order?: string | undefined;
12794
12965
  test?: boolean | undefined;
12795
12966
  minimumTvl?: number | undefined;
@@ -12822,45 +12993,41 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12822
12993
  };
12823
12994
  fetch?: RequestInit | undefined;
12824
12995
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12825
- 200: ({
12826
- protocol?: {
12827
- name: string;
12828
- url: string;
12829
- description: string;
12830
- id: string;
12831
- tags: string[];
12832
- icon: string;
12833
- } | null | undefined;
12834
- depositUrl?: string | undefined;
12835
- aprRecord?: {
12836
- timestamp: string | bigint;
12996
+ 200: {
12997
+ apr: number;
12998
+ aprRecord: {
12837
12999
  cumulated: number;
13000
+ timestamp: bigint;
12838
13001
  breakdowns: {
12839
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
13002
+ type: import("../../database/api/.generated").$Enums.AprType;
12840
13003
  id: number;
12841
13004
  identifier: string;
12842
13005
  value: number;
12843
13006
  aprRecordId: string;
12844
13007
  }[];
12845
- } | undefined;
12846
- tvlRecord?: {
13008
+ };
13009
+ tvlRecord: {
13010
+ id: string;
12847
13011
  total: number;
12848
- timestamp: string | bigint;
13012
+ timestamp: bigint;
12849
13013
  breakdowns: {
12850
- type: "TOKEN" | "PROTOCOL";
13014
+ type: import("../../database/api/.generated").$Enums.TvlType;
12851
13015
  id: number;
12852
13016
  identifier: string;
12853
13017
  value: number;
12854
13018
  tvlRecordId: string;
12855
13019
  }[];
12856
- } | undefined;
12857
- rewardsRecord?: {
12858
- total: number;
13020
+ };
13021
+ rewardsRecord: {
12859
13022
  id: string;
12860
- timestamp: string | bigint;
13023
+ total: number;
13024
+ timestamp: bigint;
12861
13025
  breakdowns: {
13026
+ id: number;
13027
+ value: number;
13028
+ campaignId: string;
13029
+ dailyRewardsRecordId: string;
12862
13030
  token: {
12863
- price?: number | null | undefined;
12864
13031
  symbol: string;
12865
13032
  name: string | null;
12866
13033
  id: string;
@@ -12868,45 +13035,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12868
13035
  chainId: number;
12869
13036
  address: string;
12870
13037
  decimals: number;
13038
+ displaySymbol: string;
12871
13039
  verified: boolean;
12872
13040
  isTest: boolean;
12873
- };
12874
- id: number;
12875
- value: number;
12876
- campaignId: string;
12877
- amount: string | bigint;
12878
- dailyRewardsRecordId: string;
12879
- }[];
12880
- } | undefined;
12881
- name: string;
12882
- type: string;
12883
- tokens: {
12884
- price?: number | null | undefined;
12885
- symbol: string;
12886
- name: string | null;
12887
- id: string;
12888
- icon: string;
12889
- chainId: number;
12890
- address: string;
12891
- decimals: number;
12892
- verified: boolean;
12893
- isTest: boolean;
12894
- }[];
12895
- id: string;
12896
- status: string;
12897
- tags: string[];
12898
- identifier: string;
12899
- chain: {
12900
- name: string;
12901
- id: number;
12902
- icon: string;
12903
- };
12904
- chainId: number;
12905
- action: string;
12906
- tvl: number;
12907
- apr: number;
12908
- dailyRewards: number;
12909
- } & {
13041
+ price: number | null;
13042
+ };
13043
+ amount: bigint;
13044
+ }[];
13045
+ };
12910
13046
  campaigns: {
12911
13047
  params: any;
12912
13048
  chain: {
@@ -12958,7 +13094,44 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12958
13094
  amount: string;
12959
13095
  opportunityId: string;
12960
13096
  }[];
12961
- })[];
13097
+ id: string;
13098
+ depositUrl: string | undefined;
13099
+ tokens: ({
13100
+ symbol: string;
13101
+ name: string | null;
13102
+ id: string;
13103
+ icon: string;
13104
+ chainId: number;
13105
+ address: string;
13106
+ decimals: number;
13107
+ verified: boolean;
13108
+ isTest: boolean;
13109
+ } & {
13110
+ price?: number | null | undefined;
13111
+ })[];
13112
+ chain: {
13113
+ name: string;
13114
+ id: number;
13115
+ icon: string;
13116
+ };
13117
+ protocol: {
13118
+ name: string;
13119
+ url: string;
13120
+ description: string;
13121
+ id: string;
13122
+ tags: string[];
13123
+ icon: string;
13124
+ } | undefined;
13125
+ name: string;
13126
+ type: string;
13127
+ status: import("../../database/api/.generated").$Enums.Status;
13128
+ tags: string[];
13129
+ identifier: string;
13130
+ chainId: number;
13131
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
13132
+ tvl: number;
13133
+ dailyRewards: number;
13134
+ }[];
12962
13135
  readonly 404: {
12963
13136
  message: string;
12964
13137
  name: string;
@@ -12983,11 +13156,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12983
13156
  status?: string | undefined;
12984
13157
  items?: number | undefined;
12985
13158
  tags?: string | undefined;
13159
+ identifier?: string | undefined;
12986
13160
  page?: number | undefined;
12987
13161
  chainId?: string | undefined;
12988
13162
  action?: string | undefined;
12989
13163
  creatorAddress?: string | undefined;
12990
13164
  mainProtocolId?: string | undefined;
13165
+ campaigns?: boolean | undefined;
12991
13166
  order?: string | undefined;
12992
13167
  test?: boolean | undefined;
12993
13168
  minimumTvl?: number | undefined;
@@ -13012,11 +13187,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13012
13187
  status?: string | undefined;
13013
13188
  items?: number | undefined;
13014
13189
  tags?: string | undefined;
13190
+ identifier?: string | undefined;
13015
13191
  page?: number | undefined;
13016
13192
  chainId?: string | undefined;
13017
13193
  action?: string | undefined;
13018
13194
  creatorAddress?: string | undefined;
13019
13195
  mainProtocolId?: string | undefined;
13196
+ campaigns?: boolean | undefined;
13020
13197
  order?: string | undefined;
13021
13198
  test?: boolean | undefined;
13022
13199
  minimumTvl?: number | undefined;
@@ -13041,11 +13218,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13041
13218
  status?: string | undefined;
13042
13219
  items?: number | undefined;
13043
13220
  tags?: string | undefined;
13221
+ identifier?: string | undefined;
13044
13222
  page?: number | undefined;
13045
13223
  chainId?: string | undefined;
13046
13224
  action?: string | undefined;
13047
13225
  creatorAddress?: string | undefined;
13048
13226
  mainProtocolId?: string | undefined;
13227
+ campaigns?: boolean | undefined;
13049
13228
  order?: string | undefined;
13050
13229
  test?: boolean | undefined;
13051
13230
  minimumTvl?: number | undefined;
@@ -15959,11 +16138,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15959
16138
  status?: string | undefined;
15960
16139
  items?: number | undefined;
15961
16140
  tags?: string | undefined;
16141
+ identifier?: string | undefined;
15962
16142
  page?: number | undefined;
15963
16143
  chainId?: string | undefined;
15964
16144
  action?: string | undefined;
15965
16145
  creatorAddress?: string | undefined;
15966
16146
  mainProtocolId?: string | undefined;
16147
+ campaigns?: boolean | undefined;
15967
16148
  order?: string | undefined;
15968
16149
  test?: boolean | undefined;
15969
16150
  minimumTvl?: number | undefined;
@@ -16020,6 +16201,57 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16020
16201
  amount: bigint;
16021
16202
  }[];
16022
16203
  };
16204
+ campaigns: {
16205
+ params: any;
16206
+ chain: {
16207
+ name: string;
16208
+ id: number;
16209
+ icon: string;
16210
+ };
16211
+ rewardToken: {
16212
+ symbol: string;
16213
+ name: string | null;
16214
+ id: string;
16215
+ icon: string;
16216
+ chainId: number;
16217
+ address: string;
16218
+ decimals: number;
16219
+ verified: boolean;
16220
+ isTest: boolean;
16221
+ } & {
16222
+ price?: number | null | undefined;
16223
+ };
16224
+ distributionChain: {
16225
+ name: string;
16226
+ id: number;
16227
+ icon: string;
16228
+ } | undefined;
16229
+ campaignStatus: {
16230
+ error: string;
16231
+ details: import("database/api/.generated/runtime/library").JsonValue;
16232
+ status: import("../../database/api/.generated").$Enums.RunStatus;
16233
+ campaignId: string;
16234
+ computedUntil: bigint;
16235
+ processingStarted: bigint;
16236
+ };
16237
+ creatorAddress: string;
16238
+ Creator: {
16239
+ tags: string[];
16240
+ address: string;
16241
+ creatorId: string | null;
16242
+ };
16243
+ type: string;
16244
+ id: string;
16245
+ subType: number | null;
16246
+ startTimestamp: bigint;
16247
+ endTimestamp: bigint;
16248
+ computeChainId: number;
16249
+ distributionChainId: number;
16250
+ campaignId: string;
16251
+ rewardTokenId: string;
16252
+ amount: string;
16253
+ opportunityId: string;
16254
+ }[];
16023
16255
  id: string;
16024
16256
  depositUrl: string | undefined;
16025
16257
  tokens: ({
@@ -16071,11 +16303,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16071
16303
  status?: string | undefined;
16072
16304
  items?: number | undefined;
16073
16305
  tags?: string | undefined;
16306
+ identifier?: string | undefined;
16074
16307
  page?: number | undefined;
16075
16308
  chainId?: string | undefined;
16076
16309
  action?: string | undefined;
16077
16310
  creatorAddress?: string | undefined;
16078
16311
  mainProtocolId?: string | undefined;
16312
+ campaigns?: boolean | undefined;
16079
16313
  order?: string | undefined;
16080
16314
  test?: boolean | undefined;
16081
16315
  minimumTvl?: number | undefined;
@@ -16108,45 +16342,41 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16108
16342
  };
16109
16343
  fetch?: RequestInit | undefined;
16110
16344
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16111
- 200: ({
16112
- protocol?: {
16113
- name: string;
16114
- url: string;
16115
- description: string;
16116
- id: string;
16117
- tags: string[];
16118
- icon: string;
16119
- } | null | undefined;
16120
- depositUrl?: string | undefined;
16121
- aprRecord?: {
16122
- timestamp: string | bigint;
16345
+ 200: {
16346
+ apr: number;
16347
+ aprRecord: {
16123
16348
  cumulated: number;
16349
+ timestamp: bigint;
16124
16350
  breakdowns: {
16125
- type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
16351
+ type: import("../../database/api/.generated").$Enums.AprType;
16126
16352
  id: number;
16127
16353
  identifier: string;
16128
16354
  value: number;
16129
16355
  aprRecordId: string;
16130
16356
  }[];
16131
- } | undefined;
16132
- tvlRecord?: {
16357
+ };
16358
+ tvlRecord: {
16359
+ id: string;
16133
16360
  total: number;
16134
- timestamp: string | bigint;
16361
+ timestamp: bigint;
16135
16362
  breakdowns: {
16136
- type: "TOKEN" | "PROTOCOL";
16363
+ type: import("../../database/api/.generated").$Enums.TvlType;
16137
16364
  id: number;
16138
16365
  identifier: string;
16139
16366
  value: number;
16140
16367
  tvlRecordId: string;
16141
16368
  }[];
16142
- } | undefined;
16143
- rewardsRecord?: {
16144
- total: number;
16369
+ };
16370
+ rewardsRecord: {
16145
16371
  id: string;
16146
- timestamp: string | bigint;
16372
+ total: number;
16373
+ timestamp: bigint;
16147
16374
  breakdowns: {
16375
+ id: number;
16376
+ value: number;
16377
+ campaignId: string;
16378
+ dailyRewardsRecordId: string;
16148
16379
  token: {
16149
- price?: number | null | undefined;
16150
16380
  symbol: string;
16151
16381
  name: string | null;
16152
16382
  id: string;
@@ -16154,45 +16384,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16154
16384
  chainId: number;
16155
16385
  address: string;
16156
16386
  decimals: number;
16387
+ displaySymbol: string;
16157
16388
  verified: boolean;
16158
16389
  isTest: boolean;
16390
+ price: number | null;
16159
16391
  };
16160
- id: number;
16161
- value: number;
16162
- campaignId: string;
16163
- amount: string | bigint;
16164
- dailyRewardsRecordId: string;
16392
+ amount: bigint;
16165
16393
  }[];
16166
- } | undefined;
16167
- name: string;
16168
- type: string;
16169
- tokens: {
16170
- price?: number | null | undefined;
16171
- symbol: string;
16172
- name: string | null;
16173
- id: string;
16174
- icon: string;
16175
- chainId: number;
16176
- address: string;
16177
- decimals: number;
16178
- verified: boolean;
16179
- isTest: boolean;
16180
- }[];
16181
- id: string;
16182
- status: string;
16183
- tags: string[];
16184
- identifier: string;
16185
- chain: {
16186
- name: string;
16187
- id: number;
16188
- icon: string;
16189
16394
  };
16190
- chainId: number;
16191
- action: string;
16192
- tvl: number;
16193
- apr: number;
16194
- dailyRewards: number;
16195
- } & {
16196
16395
  campaigns: {
16197
16396
  params: any;
16198
16397
  chain: {
@@ -16244,7 +16443,44 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16244
16443
  amount: string;
16245
16444
  opportunityId: string;
16246
16445
  }[];
16247
- })[];
16446
+ id: string;
16447
+ depositUrl: string | undefined;
16448
+ tokens: ({
16449
+ symbol: string;
16450
+ name: string | null;
16451
+ id: string;
16452
+ icon: string;
16453
+ chainId: number;
16454
+ address: string;
16455
+ decimals: number;
16456
+ verified: boolean;
16457
+ isTest: boolean;
16458
+ } & {
16459
+ price?: number | null | undefined;
16460
+ })[];
16461
+ chain: {
16462
+ name: string;
16463
+ id: number;
16464
+ icon: string;
16465
+ };
16466
+ protocol: {
16467
+ name: string;
16468
+ url: string;
16469
+ description: string;
16470
+ id: string;
16471
+ tags: string[];
16472
+ icon: string;
16473
+ } | undefined;
16474
+ name: string;
16475
+ type: string;
16476
+ status: import("../../database/api/.generated").$Enums.Status;
16477
+ tags: string[];
16478
+ identifier: string;
16479
+ chainId: number;
16480
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
16481
+ tvl: number;
16482
+ dailyRewards: number;
16483
+ }[];
16248
16484
  readonly 404: {
16249
16485
  message: string;
16250
16486
  name: string;
@@ -16269,11 +16505,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16269
16505
  status?: string | undefined;
16270
16506
  items?: number | undefined;
16271
16507
  tags?: string | undefined;
16508
+ identifier?: string | undefined;
16272
16509
  page?: number | undefined;
16273
16510
  chainId?: string | undefined;
16274
16511
  action?: string | undefined;
16275
16512
  creatorAddress?: string | undefined;
16276
16513
  mainProtocolId?: string | undefined;
16514
+ campaigns?: boolean | undefined;
16277
16515
  order?: string | undefined;
16278
16516
  test?: boolean | undefined;
16279
16517
  minimumTvl?: number | undefined;
@@ -16298,11 +16536,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16298
16536
  status?: string | undefined;
16299
16537
  items?: number | undefined;
16300
16538
  tags?: string | undefined;
16539
+ identifier?: string | undefined;
16301
16540
  page?: number | undefined;
16302
16541
  chainId?: string | undefined;
16303
16542
  action?: string | undefined;
16304
16543
  creatorAddress?: string | undefined;
16305
16544
  mainProtocolId?: string | undefined;
16545
+ campaigns?: boolean | undefined;
16306
16546
  order?: string | undefined;
16307
16547
  test?: boolean | undefined;
16308
16548
  minimumTvl?: number | undefined;
@@ -16327,11 +16567,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16327
16567
  status?: string | undefined;
16328
16568
  items?: number | undefined;
16329
16569
  tags?: string | undefined;
16570
+ identifier?: string | undefined;
16330
16571
  page?: number | undefined;
16331
16572
  chainId?: string | undefined;
16332
16573
  action?: string | undefined;
16333
16574
  creatorAddress?: string | undefined;
16334
16575
  mainProtocolId?: string | undefined;
16576
+ campaigns?: boolean | undefined;
16335
16577
  order?: string | undefined;
16336
16578
  test?: boolean | undefined;
16337
16579
  minimumTvl?: number | undefined;
@@ -18913,19 +19155,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18913
19155
  };
18914
19156
  fetch?: RequestInit | undefined;
18915
19157
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18916
- 200: unknown;
18917
- }>>;
18918
- };
18919
- campaignReport: {
18920
- get: (options: {
18921
- headers?: Record<string, unknown> | undefined;
18922
- query: {
18923
- chainId: number;
18924
- campaignId: string;
19158
+ 200: {
19159
+ message: string;
18925
19160
  };
18926
- fetch?: RequestInit | undefined;
18927
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18928
- 200: import("../utils/queries/rewardsAmount").RewardsAmountQueryOutput;
18929
19161
  }>>;
18930
19162
  };
18931
19163
  campaigns: {
@@ -18953,22 +19185,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18953
19185
  };
18954
19186
  fetch?: RequestInit | undefined;
18955
19187
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18956
- 200: import("../types/returnTypes").CampaignsForMainParameterReturnType;
18957
- }>>;
18958
- };
18959
- campaignInfo: {
18960
- post: (body: {
18961
- [x: string]: string[];
18962
- }, options?: {
18963
- headers?: Record<string, unknown> | undefined;
18964
- query?: Record<string, unknown> | undefined;
18965
- fetch?: RequestInit | undefined;
18966
- } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18967
19188
  200: {
18968
- [x: string]: Record<string, any>;
18969
- } | {
18970
- error: string;
18971
- };
19189
+ campaignId: string;
19190
+ campaignType: number;
19191
+ rewardToken: string;
19192
+ rewardTokenSymbol: string;
19193
+ amountDecimal: number;
19194
+ startTimestamp: number;
19195
+ endTimestamp: number;
19196
+ }[];
18972
19197
  }>>;
18973
19198
  };
18974
19199
  campaignsRewardsReport: {
@@ -19009,7 +19234,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19009
19234
  };
19010
19235
  fetch?: RequestInit | undefined;
19011
19236
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19012
- 200: unknown;
19237
+ 200: {
19238
+ message: string;
19239
+ };
19013
19240
  }>>;
19014
19241
  };
19015
19242
  compoundV2: {
@@ -19167,9 +19394,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19167
19394
  get: (options: {
19168
19395
  headers?: Record<string, unknown> | undefined;
19169
19396
  query: {
19170
- type?: undefined;
19397
+ type?: number | undefined;
19171
19398
  tag?: string | undefined;
19172
- chainId?: undefined;
19399
+ chainId?: number | undefined;
19173
19400
  action?: undefined;
19174
19401
  campaigns?: boolean | undefined;
19175
19402
  mainParameter?: string | undefined;
@@ -19396,20 +19623,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19396
19623
  };
19397
19624
  }>>;
19398
19625
  };
19399
- tokenUnclaimed: {
19400
- get: (options: {
19401
- headers?: Record<string, unknown> | undefined;
19402
- query: {
19403
- token: string;
19404
- chainId: number;
19405
- };
19406
- fetch?: RequestInit | undefined;
19407
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19408
- 200: {
19409
- message: string;
19410
- };
19411
- }>>;
19412
- };
19413
19626
  updates: {
19414
19627
  get: (options: {
19415
19628
  headers?: Record<string, unknown> | undefined;