@merkl/api 0.10.362 → 0.10.378

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 (84) hide show
  1. package/README.md +78 -14
  2. package/dist/database/api/.generated/edge.js +21 -6
  3. package/dist/database/api/.generated/index-browser.js +18 -3
  4. package/dist/database/api/.generated/index.d.ts +1746 -256
  5. package/dist/database/api/.generated/index.js +21 -6
  6. package/dist/database/api/.generated/package.json +1 -1
  7. package/dist/database/api/.generated/schema.prisma +12 -2
  8. package/dist/database/api/.generated/wasm.js +18 -3
  9. package/dist/src/eden/index.d.ts +1041 -140
  10. package/dist/src/entities/campaign.js +2 -1
  11. package/dist/src/entities/opportunity.js +169 -3
  12. package/dist/src/index.d.ts +340 -9
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +45 -54
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ERC4626Processor.d.ts +34 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/ERC4626Processor.js +36 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +3 -0
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +4 -1
  20. package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.d.ts +5 -0
  21. package/dist/src/libs/campaigns/campaignTypes/HyperdriveDynamicData.js +76 -0
  22. package/dist/src/libs/campaigns/campaignsDynamicData.js +8 -0
  23. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -0
  24. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  25. package/dist/src/modules/v4/campaign/campaign.model.js +1 -0
  26. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +63 -1
  27. package/dist/src/modules/v4/campaign/campaign.repository.js +15 -10
  28. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +7 -4
  29. package/dist/src/modules/v4/computedValue/computedValue.controller.js +7 -5
  30. package/dist/src/modules/v4/computedValue/computedValue.model.js +12 -4
  31. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +8 -5
  32. package/dist/src/modules/v4/computedValue/computedValue.repository.js +7 -3
  33. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +7 -4
  34. package/dist/src/modules/v4/computedValue/computedValue.service.js +10 -0
  35. package/dist/src/modules/v4/creator/creator.controller.d.ts +118 -0
  36. package/dist/src/modules/v4/creator/creator.controller.js +30 -0
  37. package/dist/src/modules/v4/creator/creator.model.d.ts +29 -0
  38. package/dist/src/modules/v4/creator/creator.model.js +18 -0
  39. package/dist/src/modules/v4/creator/creator.repository.d.ts +40 -0
  40. package/dist/src/modules/v4/creator/creator.repository.js +63 -0
  41. package/dist/src/modules/v4/creator/creator.service.d.ts +61 -0
  42. package/dist/src/modules/v4/creator/creator.service.js +44 -0
  43. package/dist/src/modules/v4/creator/index.d.ts +3 -0
  44. package/dist/src/modules/v4/creator/index.js +3 -0
  45. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +3 -4
  46. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +1 -1
  47. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +1 -0
  48. package/dist/src/modules/v4/dynamicData/dynamicData.model.js +1 -0
  49. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -3
  50. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +50 -9
  51. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +171 -1
  52. package/dist/src/modules/v4/opportunity/opportunity.controller.js +14 -0
  53. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -1
  54. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +185 -0
  55. package/dist/src/modules/v4/opportunity/opportunity.repository.js +41 -0
  56. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +151 -1
  57. package/dist/src/modules/v4/opportunity/opportunity.service.js +45 -2
  58. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.d.ts +1 -1
  59. package/dist/src/modules/v4/opportunity/subservices/getHyperdriveMetadata.service.js +2 -2
  60. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +30 -0
  61. package/dist/src/modules/v4/programPayload/programPayload.controller.js +12 -1
  62. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +21 -1
  63. package/dist/src/modules/v4/programPayload/programPayload.model.js +12 -0
  64. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +13 -2
  65. package/dist/src/modules/v4/programPayload/programPayload.repository.js +230 -83
  66. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -1
  67. package/dist/src/modules/v4/programPayload/programPayload.service.js +42 -2
  68. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +1 -0
  69. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -0
  70. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  71. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -1
  72. package/dist/src/modules/v4/reward/reward.repository.js +12 -1
  73. package/dist/src/modules/v4/reward/reward.service.js +5 -2
  74. package/dist/src/modules/v4/router.d.ts +340 -9
  75. package/dist/src/modules/v4/router.js +3 -1
  76. package/dist/src/modules/v4/user/user.controller.d.ts +28 -0
  77. package/dist/src/modules/v4/user/user.controller.js +5 -0
  78. package/dist/src/modules/v4/user/user.repository.d.ts +5 -0
  79. package/dist/src/modules/v4/user/user.service.d.ts +5 -0
  80. package/dist/src/utils/decodeCalls.js +7 -1
  81. package/dist/src/utils/encodeCalls.js +19 -1
  82. package/dist/src/utils/generateCardName.js +3 -0
  83. package/dist/tsconfig.package.tsbuildinfo +1 -1
  84. package/package.json +6 -2
@@ -423,7 +423,7 @@ declare const eden: {
423
423
  status: "NONE" | "PAST" | "LIVE" | "SOON";
424
424
  identifier: string;
425
425
  chainId: number;
426
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LP" | "LONG" | "SHORT";
426
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT";
427
427
  }, options: {
428
428
  headers: {
429
429
  authorization: string;
@@ -581,6 +581,171 @@ declare const eden: {
581
581
  200: number;
582
582
  }>>;
583
583
  };
584
+ campaigns: {
585
+ get: (options: {
586
+ headers?: Record<string, unknown> | undefined;
587
+ query: {
588
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | undefined;
589
+ items?: number | undefined;
590
+ subType?: number | undefined;
591
+ page?: number | undefined;
592
+ chainId?: number | undefined;
593
+ startTimestamp?: string | undefined;
594
+ endTimestamp?: string | undefined;
595
+ tokenAddress?: string | undefined;
596
+ mainParameter?: string | undefined;
597
+ campaignId?: string | undefined;
598
+ opportunityId?: string | undefined;
599
+ creatorId?: string | undefined;
600
+ test?: boolean | undefined;
601
+ creatorTag?: string | undefined;
602
+ tokenSymbol?: string | undefined;
603
+ };
604
+ fetch?: RequestInit | undefined;
605
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
606
+ 200: ({
607
+ protocol?: {
608
+ name: string;
609
+ url: string;
610
+ description: string;
611
+ id: string;
612
+ tags: string[];
613
+ icon: string;
614
+ } | null | undefined;
615
+ depositUrl?: string | undefined;
616
+ aprRecord?: {
617
+ timestamp: string | bigint;
618
+ cumulated: number;
619
+ breakdowns: {
620
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
621
+ id: number;
622
+ identifier: string;
623
+ value: number;
624
+ aprRecordId: string;
625
+ }[];
626
+ } | undefined;
627
+ tvlRecord?: {
628
+ total: number;
629
+ timestamp: string | bigint;
630
+ breakdowns: {
631
+ type: "TOKEN" | "PROTOCOL";
632
+ id: number;
633
+ identifier: string;
634
+ value: number;
635
+ tvlRecordId: string;
636
+ }[];
637
+ } | undefined;
638
+ rewardsRecord?: {
639
+ total: number;
640
+ id: string;
641
+ timestamp: string | bigint;
642
+ breakdowns: {
643
+ token: {
644
+ price?: number | null | undefined;
645
+ symbol: string;
646
+ name: string | null;
647
+ id: string;
648
+ icon: string;
649
+ chainId: number;
650
+ address: string;
651
+ decimals: number;
652
+ verified: boolean;
653
+ isTest: boolean;
654
+ };
655
+ id: number;
656
+ value: number;
657
+ campaignId: string;
658
+ amount: string | bigint;
659
+ dailyRewardsRecordId: string;
660
+ }[];
661
+ } | undefined;
662
+ name: string;
663
+ type: string;
664
+ tokens: {
665
+ price?: number | null | undefined;
666
+ symbol: string;
667
+ name: string | null;
668
+ id: string;
669
+ icon: string;
670
+ chainId: number;
671
+ address: string;
672
+ decimals: number;
673
+ verified: boolean;
674
+ isTest: boolean;
675
+ }[];
676
+ id: string;
677
+ status: string;
678
+ tags: string[];
679
+ identifier: string;
680
+ chain: {
681
+ name: string;
682
+ id: number;
683
+ icon: string;
684
+ };
685
+ chainId: number;
686
+ action: string;
687
+ tvl: number;
688
+ apr: number;
689
+ dailyRewards: number;
690
+ } & {
691
+ campaigns: {
692
+ params: any;
693
+ chain: {
694
+ name: string;
695
+ id: number;
696
+ icon: string;
697
+ };
698
+ rewardToken: {
699
+ symbol: string;
700
+ name: string | null;
701
+ id: string;
702
+ icon: string;
703
+ chainId: number;
704
+ address: string;
705
+ decimals: number;
706
+ verified: boolean;
707
+ isTest: boolean;
708
+ } & {
709
+ price?: number | null | undefined;
710
+ };
711
+ distributionChain: {
712
+ name: string;
713
+ id: number;
714
+ icon: string;
715
+ } | undefined;
716
+ campaignStatus: {
717
+ error: string;
718
+ details: import("database/api/.generated/runtime/library").JsonValue;
719
+ status: import("../../database/api/.generated").$Enums.RunStatus;
720
+ campaignId: string;
721
+ computedUntil: bigint;
722
+ processingStarted: bigint;
723
+ };
724
+ type: import("../../database/api/.generated").$Enums.CampaignType;
725
+ id: string;
726
+ subType: number | null;
727
+ startTimestamp: bigint;
728
+ endTimestamp: bigint;
729
+ computeChainId: number;
730
+ distributionChainId: number;
731
+ campaignId: string;
732
+ rewardTokenId: string;
733
+ amount: string;
734
+ opportunityId: string;
735
+ creatorAddress: string;
736
+ }[];
737
+ })[];
738
+ readonly 404: {
739
+ message: string;
740
+ name: string;
741
+ };
742
+ readonly 500: {
743
+ code: string;
744
+ info: string;
745
+ httpCode: number;
746
+ };
747
+ }>>;
748
+ };
584
749
  aggregate: ((params: {
585
750
  field: string | number;
586
751
  }) => {
@@ -768,6 +933,7 @@ declare const eden: {
768
933
  mainParameter?: string | undefined;
769
934
  campaignId?: string | undefined;
770
935
  opportunityId?: string | undefined;
936
+ creatorId?: string | undefined;
771
937
  test?: boolean | undefined;
772
938
  creatorTag?: string | undefined;
773
939
  tokenSymbol?: string | undefined;
@@ -837,6 +1003,7 @@ declare const eden: {
837
1003
  mainParameter?: string | undefined;
838
1004
  campaignId?: string | undefined;
839
1005
  opportunityId?: string | undefined;
1006
+ creatorId?: string | undefined;
840
1007
  test?: boolean | undefined;
841
1008
  creatorTag?: string | undefined;
842
1009
  tokenSymbol?: string | undefined;
@@ -908,6 +1075,7 @@ declare const eden: {
908
1075
  } | null;
909
1076
  }>>;
910
1077
  patch: (body: {
1078
+ name?: string | undefined;
911
1079
  url?: string | undefined;
912
1080
  description?: string | undefined;
913
1081
  icon?: string | undefined;
@@ -1692,8 +1860,23 @@ declare const eden: {
1692
1860
  200: {
1693
1861
  tags: string[];
1694
1862
  address: string;
1863
+ creatorId: string | null;
1695
1864
  } | null;
1696
1865
  }>>;
1866
+ creator: {
1867
+ get: (options?: {
1868
+ headers?: Record<string, unknown> | undefined;
1869
+ query?: Record<string, unknown> | undefined;
1870
+ fetch?: RequestInit | undefined;
1871
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1872
+ 200: {
1873
+ name: string;
1874
+ id: string;
1875
+ addresses: string[];
1876
+ icon?: string | undefined;
1877
+ } | null;
1878
+ }>>;
1879
+ };
1697
1880
  rewards: {
1698
1881
  breakdowns: {
1699
1882
  get: (options: {
@@ -1921,6 +2104,7 @@ declare const eden: {
1921
2104
  200: {
1922
2105
  tags: string[];
1923
2106
  address: string;
2107
+ creatorId: string | null;
1924
2108
  };
1925
2109
  }>>;
1926
2110
  };
@@ -1939,6 +2123,7 @@ declare const eden: {
1939
2123
  200: {
1940
2124
  tags: string[];
1941
2125
  address: string;
2126
+ creatorId: string | null;
1942
2127
  }[];
1943
2128
  }>>;
1944
2129
  post: (body: {
@@ -1954,6 +2139,7 @@ declare const eden: {
1954
2139
  200: {
1955
2140
  tags: string[];
1956
2141
  address: string;
2142
+ creatorId: string | null;
1957
2143
  };
1958
2144
  }>>;
1959
2145
  };
@@ -1968,6 +2154,7 @@ declare const eden: {
1968
2154
  200: {
1969
2155
  tags: string[];
1970
2156
  address: string;
2157
+ creatorId: string | null;
1971
2158
  }[];
1972
2159
  }>>;
1973
2160
  };
@@ -2280,8 +2467,7 @@ declare const eden: {
2280
2467
  query?: Record<string, unknown> | undefined;
2281
2468
  fetch?: RequestInit | undefined;
2282
2469
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2283
- [x: string]: any;
2284
- 200: any;
2470
+ 200: any[];
2285
2471
  }>>;
2286
2472
  };
2287
2473
  "from-existing": {
@@ -2301,14 +2487,14 @@ declare const eden: {
2301
2487
  mainParameter?: string | undefined;
2302
2488
  campaignId?: string | undefined;
2303
2489
  opportunityId?: string | undefined;
2490
+ creatorId?: string | undefined;
2304
2491
  test?: boolean | undefined;
2305
2492
  creatorTag?: string | undefined;
2306
2493
  tokenSymbol?: string | undefined;
2307
2494
  };
2308
2495
  fetch?: RequestInit | undefined;
2309
2496
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2310
- [x: string]: any;
2311
- 200: any;
2497
+ 200: any[];
2312
2498
  }>>;
2313
2499
  };
2314
2500
  };
@@ -2654,6 +2840,31 @@ declare const eden: {
2654
2840
  }>>;
2655
2841
  };
2656
2842
  };
2843
+ parse: {
2844
+ "from-campaign-data": {
2845
+ post: (body: {
2846
+ chainId: number;
2847
+ startTimestamp: number;
2848
+ endTimestamp: number;
2849
+ computeChainId: number;
2850
+ amount: string;
2851
+ rewardToken: string;
2852
+ campaignType: number;
2853
+ campaignData: string;
2854
+ symbolRewardToken: string;
2855
+ decimalsRewardToken: number;
2856
+ }, options: {
2857
+ headers: {
2858
+ authorization: string;
2859
+ };
2860
+ query?: Record<string, unknown> | undefined;
2861
+ fetch?: RequestInit | undefined;
2862
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2863
+ [x: string]: any;
2864
+ 200: any;
2865
+ }>>;
2866
+ };
2867
+ };
2657
2868
  };
2658
2869
  boosts: {
2659
2870
  euler: {
@@ -2696,8 +2907,9 @@ declare const eden: {
2696
2907
  fetch?: RequestInit | undefined;
2697
2908
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2698
2909
  200: {
2699
- [x: string]: File;
2700
- [x: number]: File;
2910
+ averageBoost: number | null;
2911
+ totalDistributedInUSD: number | null;
2912
+ forfeitingBoost: number | null;
2701
2913
  } | null;
2702
2914
  }>>;
2703
2915
  })) & {};
@@ -2712,8 +2924,10 @@ declare const eden: {
2712
2924
  fetch?: RequestInit | undefined;
2713
2925
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2714
2926
  200: {
2715
- [x: string]: never;
2716
- [x: number]: never;
2927
+ reason: string;
2928
+ id: number;
2929
+ campaignId: string;
2930
+ boost: number | null;
2717
2931
  }[];
2718
2932
  }>>;
2719
2933
  })) & {};
@@ -2752,46 +2966,117 @@ declare const eden: {
2752
2966
  };
2753
2967
  };
2754
2968
  };
2755
- };
2756
- v3: {
2757
- app: {
2758
- get: (options: {
2759
- headers?: Record<string, unknown> | undefined;
2760
- query: {};
2761
- fetch?: RequestInit | undefined;
2762
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2763
- [x: string]: any;
2764
- 200: any;
2765
- }>>;
2766
- };
2767
- blacklist: {
2768
- get: (options: {
2969
+ creators: ((params: {
2970
+ id: string | number;
2971
+ }) => {
2972
+ get: (options?: {
2769
2973
  headers?: Record<string, unknown> | undefined;
2770
- query: {
2771
- user: string;
2772
- };
2974
+ query?: Record<string, unknown> | undefined;
2773
2975
  fetch?: RequestInit | undefined;
2774
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2976
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2775
2977
  200: {
2776
- isBlacklisted: boolean;
2978
+ name: string;
2979
+ id: string;
2980
+ addresses: string[];
2981
+ icon?: string | undefined;
2777
2982
  };
2778
2983
  }>>;
2779
- };
2780
- campaignClaims: {
2781
- get: (options: {
2782
- headers?: Record<string, unknown> | undefined;
2783
- query: {
2784
- byReason?: boolean | undefined;
2785
- chainId: number;
2786
- campaignId: string;
2984
+ patch: (body: {
2985
+ icon?: string | undefined;
2986
+ name: string;
2987
+ addresses: string[];
2988
+ }, options: {
2989
+ headers: {
2990
+ authorization: string;
2787
2991
  };
2992
+ query?: Record<string, unknown> | undefined;
2788
2993
  fetch?: RequestInit | undefined;
2789
2994
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2790
- 200: unknown;
2995
+ 200: {
2996
+ name: string;
2997
+ id: string;
2998
+ icon: string | null;
2999
+ };
2791
3000
  }>>;
2792
- };
2793
- campaignReport: {
2794
- get: (options: {
3001
+ }) & {
3002
+ index: {
3003
+ get: (options: {
3004
+ headers?: Record<string, unknown> | undefined;
3005
+ query: {
3006
+ items?: number | undefined;
3007
+ page?: number | undefined;
3008
+ address?: string | undefined;
3009
+ };
3010
+ fetch?: RequestInit | undefined;
3011
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3012
+ 200: ({
3013
+ name: string;
3014
+ id: string;
3015
+ addresses: string[];
3016
+ } & {
3017
+ icon?: string | undefined;
3018
+ })[];
3019
+ }>>;
3020
+ post: (body: {
3021
+ icon?: string | undefined;
3022
+ name: string;
3023
+ id: string;
3024
+ addresses: string[];
3025
+ }, options: {
3026
+ headers: {
3027
+ authorization: string;
3028
+ };
3029
+ query?: Record<string, unknown> | undefined;
3030
+ fetch?: RequestInit | undefined;
3031
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3032
+ 200: {
3033
+ name: string;
3034
+ id: string;
3035
+ icon: string | null;
3036
+ };
3037
+ }>>;
3038
+ };
3039
+ };
3040
+ };
3041
+ v3: {
3042
+ app: {
3043
+ get: (options: {
3044
+ headers?: Record<string, unknown> | undefined;
3045
+ query: {};
3046
+ fetch?: RequestInit | undefined;
3047
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3048
+ [x: string]: any;
3049
+ 200: any;
3050
+ }>>;
3051
+ };
3052
+ blacklist: {
3053
+ get: (options: {
3054
+ headers?: Record<string, unknown> | undefined;
3055
+ query: {
3056
+ user: string;
3057
+ };
3058
+ fetch?: RequestInit | undefined;
3059
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3060
+ 200: {
3061
+ isBlacklisted: boolean;
3062
+ };
3063
+ }>>;
3064
+ };
3065
+ campaignClaims: {
3066
+ get: (options: {
3067
+ headers?: Record<string, unknown> | undefined;
3068
+ query: {
3069
+ byReason?: boolean | undefined;
3070
+ chainId: number;
3071
+ campaignId: string;
3072
+ };
3073
+ fetch?: RequestInit | undefined;
3074
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3075
+ 200: unknown;
3076
+ }>>;
3077
+ };
3078
+ campaignReport: {
3079
+ get: (options: {
2795
3080
  headers?: Record<string, unknown> | undefined;
2796
3081
  query: {
2797
3082
  chainId: number;
@@ -3510,7 +3795,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3510
3795
  status: "NONE" | "PAST" | "LIVE" | "SOON";
3511
3796
  identifier: string;
3512
3797
  chainId: number;
3513
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LP" | "LONG" | "SHORT";
3798
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT";
3514
3799
  };
3515
3800
  params: {};
3516
3801
  query: unknown;
@@ -3835,6 +4120,176 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3835
4120
  };
3836
4121
  };
3837
4122
  };
4123
+ } & {
4124
+ opportunities: {
4125
+ campaigns: {
4126
+ get: {
4127
+ body: unknown;
4128
+ params: {};
4129
+ query: {
4130
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | undefined;
4131
+ items?: number | undefined;
4132
+ subType?: number | undefined;
4133
+ page?: number | undefined;
4134
+ chainId?: number | undefined;
4135
+ startTimestamp?: string | undefined;
4136
+ endTimestamp?: string | undefined;
4137
+ tokenAddress?: string | undefined;
4138
+ mainParameter?: string | undefined;
4139
+ campaignId?: string | undefined;
4140
+ opportunityId?: string | undefined;
4141
+ creatorId?: string | undefined;
4142
+ test?: boolean | undefined;
4143
+ creatorTag?: string | undefined;
4144
+ tokenSymbol?: string | undefined;
4145
+ };
4146
+ headers: unknown;
4147
+ response: {
4148
+ 200: ({
4149
+ protocol?: {
4150
+ name: string;
4151
+ url: string;
4152
+ description: string;
4153
+ id: string;
4154
+ tags: string[];
4155
+ icon: string;
4156
+ } | null | undefined;
4157
+ depositUrl?: string | undefined;
4158
+ aprRecord?: {
4159
+ timestamp: string | bigint;
4160
+ cumulated: number;
4161
+ breakdowns: {
4162
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
4163
+ id: number;
4164
+ identifier: string;
4165
+ value: number;
4166
+ aprRecordId: string;
4167
+ }[];
4168
+ } | undefined;
4169
+ tvlRecord?: {
4170
+ total: number;
4171
+ timestamp: string | bigint;
4172
+ breakdowns: {
4173
+ type: "TOKEN" | "PROTOCOL";
4174
+ id: number;
4175
+ identifier: string;
4176
+ value: number;
4177
+ tvlRecordId: string;
4178
+ }[];
4179
+ } | undefined;
4180
+ rewardsRecord?: {
4181
+ total: number;
4182
+ id: string;
4183
+ timestamp: string | bigint;
4184
+ breakdowns: {
4185
+ token: {
4186
+ price?: number | null | undefined;
4187
+ symbol: string;
4188
+ name: string | null;
4189
+ id: string;
4190
+ icon: string;
4191
+ chainId: number;
4192
+ address: string;
4193
+ decimals: number;
4194
+ verified: boolean;
4195
+ isTest: boolean;
4196
+ };
4197
+ id: number;
4198
+ value: number;
4199
+ campaignId: string;
4200
+ amount: string | bigint;
4201
+ dailyRewardsRecordId: string;
4202
+ }[];
4203
+ } | undefined;
4204
+ name: string;
4205
+ type: string;
4206
+ tokens: {
4207
+ price?: number | null | undefined;
4208
+ symbol: string;
4209
+ name: string | null;
4210
+ id: string;
4211
+ icon: string;
4212
+ chainId: number;
4213
+ address: string;
4214
+ decimals: number;
4215
+ verified: boolean;
4216
+ isTest: boolean;
4217
+ }[];
4218
+ id: string;
4219
+ status: string;
4220
+ tags: string[];
4221
+ identifier: string;
4222
+ chain: {
4223
+ name: string;
4224
+ id: number;
4225
+ icon: string;
4226
+ };
4227
+ chainId: number;
4228
+ action: string;
4229
+ tvl: number;
4230
+ apr: number;
4231
+ dailyRewards: number;
4232
+ } & {
4233
+ campaigns: {
4234
+ params: any;
4235
+ chain: {
4236
+ name: string;
4237
+ id: number;
4238
+ icon: string;
4239
+ };
4240
+ rewardToken: {
4241
+ symbol: string;
4242
+ name: string | null;
4243
+ id: string;
4244
+ icon: string;
4245
+ chainId: number;
4246
+ address: string;
4247
+ decimals: number;
4248
+ verified: boolean;
4249
+ isTest: boolean;
4250
+ } & {
4251
+ price?: number | null | undefined;
4252
+ };
4253
+ distributionChain: {
4254
+ name: string;
4255
+ id: number;
4256
+ icon: string;
4257
+ } | undefined;
4258
+ campaignStatus: {
4259
+ error: string;
4260
+ details: import("database/api/.generated/runtime/library").JsonValue;
4261
+ status: import("../../database/api/.generated").$Enums.RunStatus;
4262
+ campaignId: string;
4263
+ computedUntil: bigint;
4264
+ processingStarted: bigint;
4265
+ };
4266
+ type: import("../../database/api/.generated").$Enums.CampaignType;
4267
+ id: string;
4268
+ subType: number | null;
4269
+ startTimestamp: bigint;
4270
+ endTimestamp: bigint;
4271
+ computeChainId: number;
4272
+ distributionChainId: number;
4273
+ campaignId: string;
4274
+ rewardTokenId: string;
4275
+ amount: string;
4276
+ opportunityId: string;
4277
+ creatorAddress: string;
4278
+ }[];
4279
+ })[];
4280
+ readonly 404: {
4281
+ message: string;
4282
+ name: string;
4283
+ };
4284
+ readonly 500: {
4285
+ code: string;
4286
+ info: string;
4287
+ httpCode: number;
4288
+ };
4289
+ };
4290
+ };
4291
+ };
4292
+ };
3838
4293
  } & {
3839
4294
  opportunities: {
3840
4295
  ":id": {
@@ -4251,6 +4706,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4251
4706
  mainParameter?: string | undefined;
4252
4707
  campaignId?: string | undefined;
4253
4708
  opportunityId?: string | undefined;
4709
+ creatorId?: string | undefined;
4254
4710
  test?: boolean | undefined;
4255
4711
  creatorTag?: string | undefined;
4256
4712
  tokenSymbol?: string | undefined;
@@ -4323,6 +4779,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4323
4779
  mainParameter?: string | undefined;
4324
4780
  campaignId?: string | undefined;
4325
4781
  opportunityId?: string | undefined;
4782
+ creatorId?: string | undefined;
4326
4783
  test?: boolean | undefined;
4327
4784
  creatorTag?: string | undefined;
4328
4785
  tokenSymbol?: string | undefined;
@@ -4462,6 +4919,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4462
4919
  ":id": {
4463
4920
  patch: {
4464
4921
  body: {
4922
+ name?: string | undefined;
4465
4923
  url?: string | undefined;
4466
4924
  description?: string | undefined;
4467
4925
  icon?: string | undefined;
@@ -5450,6 +5908,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5450
5908
  200: {
5451
5909
  tags: string[];
5452
5910
  address: string;
5911
+ creatorId: string | null;
5453
5912
  }[];
5454
5913
  };
5455
5914
  };
@@ -5469,6 +5928,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5469
5928
  200: {
5470
5929
  tags: string[];
5471
5930
  address: string;
5931
+ creatorId: string | null;
5472
5932
  }[];
5473
5933
  };
5474
5934
  };
@@ -5488,6 +5948,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5488
5948
  200: {
5489
5949
  tags: string[];
5490
5950
  address: string;
5951
+ creatorId: string | null;
5491
5952
  } | null;
5492
5953
  };
5493
5954
  };
@@ -5496,25 +5957,48 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5496
5957
  } & {
5497
5958
  users: {
5498
5959
  ":address": {
5499
- rewards: {
5500
- breakdowns: {
5501
- get: {
5502
- body: unknown;
5503
- params: {
5504
- address: string;
5505
- };
5506
- query: {
5507
- test?: boolean | undefined;
5508
- chainIds?: number[] | undefined;
5509
- reloadChainId?: number | undefined;
5510
- };
5511
- headers: unknown;
5512
- response: {
5513
- 200: (Omit<{
5514
- chain: import("../../database/api/.generated").Chain;
5515
- rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
5516
- }, "rewards"> & {
5517
- rewards: (Omit<{
5960
+ creator: {
5961
+ get: {
5962
+ body: unknown;
5963
+ params: {
5964
+ address: string;
5965
+ };
5966
+ query: unknown;
5967
+ headers: unknown;
5968
+ response: {
5969
+ 200: {
5970
+ name: string;
5971
+ id: string;
5972
+ addresses: string[];
5973
+ icon?: string | undefined;
5974
+ } | null;
5975
+ };
5976
+ };
5977
+ };
5978
+ };
5979
+ };
5980
+ } & {
5981
+ users: {
5982
+ ":address": {
5983
+ rewards: {
5984
+ breakdowns: {
5985
+ get: {
5986
+ body: unknown;
5987
+ params: {
5988
+ address: string;
5989
+ };
5990
+ query: {
5991
+ test?: boolean | undefined;
5992
+ chainIds?: number[] | undefined;
5993
+ reloadChainId?: number | undefined;
5994
+ };
5995
+ headers: unknown;
5996
+ response: {
5997
+ 200: (Omit<{
5998
+ chain: import("../../database/api/.generated").Chain;
5999
+ rewards: Awaited<ReturnType<typeof import("../modules/v4/reward").RewardService["format"]>>;
6000
+ }, "rewards"> & {
6001
+ rewards: (Omit<{
5518
6002
  token: {
5519
6003
  symbol: string;
5520
6004
  name: string | null;
@@ -5744,6 +6228,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5744
6228
  200: {
5745
6229
  tags: string[];
5746
6230
  address: string;
6231
+ creatorId: string | null;
5747
6232
  };
5748
6233
  };
5749
6234
  };
@@ -5784,6 +6269,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5784
6269
  200: {
5785
6270
  tags: string[];
5786
6271
  address: string;
6272
+ creatorId: string | null;
5787
6273
  };
5788
6274
  };
5789
6275
  };
@@ -6182,8 +6668,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6182
6668
  authorization: string;
6183
6669
  };
6184
6670
  response: {
6185
- [x: string]: any;
6186
- 200: any;
6671
+ 200: any[];
6187
6672
  };
6188
6673
  };
6189
6674
  };
@@ -6206,6 +6691,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6206
6691
  mainParameter?: string | undefined;
6207
6692
  campaignId?: string | undefined;
6208
6693
  opportunityId?: string | undefined;
6694
+ creatorId?: string | undefined;
6209
6695
  test?: boolean | undefined;
6210
6696
  creatorTag?: string | undefined;
6211
6697
  tokenSymbol?: string | undefined;
@@ -6214,8 +6700,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6214
6700
  authorization: string;
6215
6701
  };
6216
6702
  response: {
6217
- [x: string]: any;
6218
- 200: any;
6703
+ 200: any[];
6219
6704
  };
6220
6705
  };
6221
6706
  };
@@ -6635,6 +7120,36 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6635
7120
  };
6636
7121
  };
6637
7122
  };
7123
+ } & {
7124
+ "program-payload": {
7125
+ parse: {
7126
+ "from-campaign-data": {
7127
+ post: {
7128
+ body: {
7129
+ chainId: number;
7130
+ startTimestamp: number;
7131
+ endTimestamp: number;
7132
+ computeChainId: number;
7133
+ amount: string;
7134
+ rewardToken: string;
7135
+ campaignType: number;
7136
+ campaignData: string;
7137
+ symbolRewardToken: string;
7138
+ decimalsRewardToken: number;
7139
+ };
7140
+ params: {};
7141
+ query: unknown;
7142
+ headers: {
7143
+ authorization: string;
7144
+ };
7145
+ response: {
7146
+ [x: string]: any;
7147
+ 200: any;
7148
+ };
7149
+ };
7150
+ };
7151
+ };
7152
+ };
6638
7153
  };
6639
7154
  } & {
6640
7155
  v4: {
@@ -6693,8 +7208,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6693
7208
  headers: unknown;
6694
7209
  response: {
6695
7210
  200: {
6696
- [x: string]: File;
6697
- [x: number]: File;
7211
+ averageBoost: number | null;
7212
+ totalDistributedInUSD: number | null;
7213
+ forfeitingBoost: number | null;
6698
7214
  } | null;
6699
7215
  };
6700
7216
  };
@@ -6717,8 +7233,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6717
7233
  headers: unknown;
6718
7234
  response: {
6719
7235
  200: {
6720
- [x: string]: never;
6721
- [x: number]: never;
7236
+ reason: string;
7237
+ id: number;
7238
+ campaignId: string;
7239
+ boost: number | null;
6722
7240
  }[];
6723
7241
  };
6724
7242
  };
@@ -6773,6 +7291,104 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6773
7291
  };
6774
7292
  };
6775
7293
  };
7294
+ } & {
7295
+ v4: {
7296
+ creators: {
7297
+ index: {
7298
+ get: {
7299
+ body: unknown;
7300
+ params: {};
7301
+ query: {
7302
+ items?: number | undefined;
7303
+ page?: number | undefined;
7304
+ address?: string | undefined;
7305
+ };
7306
+ headers: unknown;
7307
+ response: {
7308
+ 200: ({
7309
+ name: string;
7310
+ id: string;
7311
+ addresses: string[];
7312
+ } & {
7313
+ icon?: string | undefined;
7314
+ })[];
7315
+ };
7316
+ };
7317
+ };
7318
+ };
7319
+ } & {
7320
+ creators: {
7321
+ ":id": {
7322
+ get: {
7323
+ body: unknown;
7324
+ params: {
7325
+ id: string;
7326
+ };
7327
+ query: unknown;
7328
+ headers: unknown;
7329
+ response: {
7330
+ 200: {
7331
+ name: string;
7332
+ id: string;
7333
+ addresses: string[];
7334
+ icon?: string | undefined;
7335
+ };
7336
+ };
7337
+ };
7338
+ };
7339
+ };
7340
+ } & {
7341
+ creators: {
7342
+ index: {
7343
+ post: {
7344
+ body: {
7345
+ icon?: string | undefined;
7346
+ name: string;
7347
+ id: string;
7348
+ addresses: string[];
7349
+ };
7350
+ params: {};
7351
+ query: unknown;
7352
+ headers: {
7353
+ authorization: string;
7354
+ };
7355
+ response: {
7356
+ 200: {
7357
+ name: string;
7358
+ id: string;
7359
+ icon: string | null;
7360
+ };
7361
+ };
7362
+ };
7363
+ };
7364
+ };
7365
+ } & {
7366
+ creators: {
7367
+ ":id": {
7368
+ patch: {
7369
+ body: {
7370
+ icon?: string | undefined;
7371
+ name: string;
7372
+ addresses: string[];
7373
+ };
7374
+ params: {
7375
+ id: string;
7376
+ };
7377
+ query: unknown;
7378
+ headers: {
7379
+ authorization: string;
7380
+ };
7381
+ response: {
7382
+ 200: {
7383
+ name: string;
7384
+ id: string;
7385
+ icon: string | null;
7386
+ };
7387
+ };
7388
+ };
7389
+ };
7390
+ };
7391
+ };
6776
7392
  } & {
6777
7393
  v3: {
6778
7394
  app: {
@@ -7974,7 +8590,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7974
8590
  status: "NONE" | "PAST" | "LIVE" | "SOON";
7975
8591
  identifier: string;
7976
8592
  chainId: number;
7977
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LP" | "LONG" | "SHORT";
8593
+ action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT";
7978
8594
  }, options: {
7979
8595
  headers: {
7980
8596
  authorization: string;
@@ -8022,37 +8638,177 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8022
8638
  apr: number;
8023
8639
  aprRecord: {
8024
8640
  cumulated: number;
8025
- timestamp: bigint;
8641
+ timestamp: bigint;
8642
+ breakdowns: {
8643
+ type: import("../../database/api/.generated").$Enums.AprType;
8644
+ id: number;
8645
+ identifier: string;
8646
+ value: number;
8647
+ aprRecordId: string;
8648
+ }[];
8649
+ };
8650
+ tvlRecord: {
8651
+ id: string;
8652
+ total: number;
8653
+ timestamp: bigint;
8654
+ breakdowns: {
8655
+ type: import("../../database/api/.generated").$Enums.TvlType;
8656
+ id: number;
8657
+ identifier: string;
8658
+ value: number;
8659
+ tvlRecordId: string;
8660
+ }[];
8661
+ };
8662
+ rewardsRecord: {
8663
+ id: string;
8664
+ total: number;
8665
+ timestamp: bigint;
8666
+ breakdowns: {
8667
+ id: number;
8668
+ value: number;
8669
+ campaignId: string;
8670
+ dailyRewardsRecordId: string;
8671
+ token: {
8672
+ symbol: string;
8673
+ name: string | null;
8674
+ id: string;
8675
+ icon: string;
8676
+ chainId: number;
8677
+ address: string;
8678
+ decimals: number;
8679
+ displaySymbol: string;
8680
+ verified: boolean;
8681
+ isTest: boolean;
8682
+ price: number | null;
8683
+ };
8684
+ amount: bigint;
8685
+ }[];
8686
+ };
8687
+ id: string;
8688
+ depositUrl: string | undefined;
8689
+ tokens: ({
8690
+ symbol: string;
8691
+ name: string | null;
8692
+ id: string;
8693
+ icon: string;
8694
+ chainId: number;
8695
+ address: string;
8696
+ decimals: number;
8697
+ verified: boolean;
8698
+ isTest: boolean;
8699
+ } & {
8700
+ price?: number | null | undefined;
8701
+ })[];
8702
+ chain: {
8703
+ name: string;
8704
+ id: number;
8705
+ icon: string;
8706
+ };
8707
+ protocol: {
8708
+ name: string;
8709
+ url: string;
8710
+ description: string;
8711
+ id: string;
8712
+ tags: string[];
8713
+ icon: string;
8714
+ } | undefined;
8715
+ name: string;
8716
+ type: import("../../database/api/.generated").$Enums.CampaignType;
8717
+ status: import("../../database/api/.generated").$Enums.Status;
8718
+ tags: string[];
8719
+ identifier: string;
8720
+ chainId: number;
8721
+ action: import("../../database/api/.generated").$Enums.OpportunityAction;
8722
+ tvl: number;
8723
+ dailyRewards: number;
8724
+ }[];
8725
+ }>>;
8726
+ };
8727
+ count: {
8728
+ get: (options: {
8729
+ headers?: Record<string, unknown> | undefined;
8730
+ query: {
8731
+ sort?: string | undefined;
8732
+ name?: string | undefined;
8733
+ tokens?: string | undefined;
8734
+ status?: string | undefined;
8735
+ items?: number | undefined;
8736
+ tags?: string | undefined;
8737
+ page?: number | undefined;
8738
+ chainId?: string | undefined;
8739
+ action?: string | undefined;
8740
+ creatorAddress?: string | undefined;
8741
+ mainProtocolId?: string | undefined;
8742
+ order?: string | undefined;
8743
+ test?: boolean | undefined;
8744
+ minimumTvl?: number | undefined;
8745
+ };
8746
+ fetch?: RequestInit | undefined;
8747
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8748
+ 200: number;
8749
+ }>>;
8750
+ };
8751
+ campaigns: {
8752
+ get: (options: {
8753
+ headers?: Record<string, unknown> | undefined;
8754
+ query: {
8755
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | undefined;
8756
+ items?: number | undefined;
8757
+ subType?: number | undefined;
8758
+ page?: number | undefined;
8759
+ chainId?: number | undefined;
8760
+ startTimestamp?: string | undefined;
8761
+ endTimestamp?: string | undefined;
8762
+ tokenAddress?: string | undefined;
8763
+ mainParameter?: string | undefined;
8764
+ campaignId?: string | undefined;
8765
+ opportunityId?: string | undefined;
8766
+ creatorId?: string | undefined;
8767
+ test?: boolean | undefined;
8768
+ creatorTag?: string | undefined;
8769
+ tokenSymbol?: string | undefined;
8770
+ };
8771
+ fetch?: RequestInit | undefined;
8772
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8773
+ 200: ({
8774
+ protocol?: {
8775
+ name: string;
8776
+ url: string;
8777
+ description: string;
8778
+ id: string;
8779
+ tags: string[];
8780
+ icon: string;
8781
+ } | null | undefined;
8782
+ depositUrl?: string | undefined;
8783
+ aprRecord?: {
8784
+ timestamp: string | bigint;
8785
+ cumulated: number;
8026
8786
  breakdowns: {
8027
- type: import("../../database/api/.generated").$Enums.AprType;
8787
+ type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
8028
8788
  id: number;
8029
8789
  identifier: string;
8030
8790
  value: number;
8031
8791
  aprRecordId: string;
8032
8792
  }[];
8033
- };
8034
- tvlRecord: {
8035
- id: string;
8793
+ } | undefined;
8794
+ tvlRecord?: {
8036
8795
  total: number;
8037
- timestamp: bigint;
8796
+ timestamp: string | bigint;
8038
8797
  breakdowns: {
8039
- type: import("../../database/api/.generated").$Enums.TvlType;
8798
+ type: "TOKEN" | "PROTOCOL";
8040
8799
  id: number;
8041
8800
  identifier: string;
8042
8801
  value: number;
8043
8802
  tvlRecordId: string;
8044
8803
  }[];
8045
- };
8046
- rewardsRecord: {
8047
- id: string;
8804
+ } | undefined;
8805
+ rewardsRecord?: {
8048
8806
  total: number;
8049
- timestamp: bigint;
8807
+ id: string;
8808
+ timestamp: string | bigint;
8050
8809
  breakdowns: {
8051
- id: number;
8052
- value: number;
8053
- campaignId: string;
8054
- dailyRewardsRecordId: string;
8055
8810
  token: {
8811
+ price?: number | null | undefined;
8056
8812
  symbol: string;
8057
8813
  name: string | null;
8058
8814
  id: string;
@@ -8060,17 +8816,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8060
8816
  chainId: number;
8061
8817
  address: string;
8062
8818
  decimals: number;
8063
- displaySymbol: string;
8064
8819
  verified: boolean;
8065
8820
  isTest: boolean;
8066
- price: number | null;
8067
8821
  };
8068
- amount: bigint;
8822
+ id: number;
8823
+ value: number;
8824
+ campaignId: string;
8825
+ amount: string | bigint;
8826
+ dailyRewardsRecordId: string;
8069
8827
  }[];
8070
- };
8071
- id: string;
8072
- depositUrl: string | undefined;
8073
- tokens: ({
8828
+ } | undefined;
8829
+ name: string;
8830
+ type: string;
8831
+ tokens: {
8832
+ price?: number | null | undefined;
8074
8833
  symbol: string;
8075
8834
  name: string | null;
8076
8835
  id: string;
@@ -8080,56 +8839,78 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8080
8839
  decimals: number;
8081
8840
  verified: boolean;
8082
8841
  isTest: boolean;
8083
- } & {
8084
- price?: number | null | undefined;
8085
- })[];
8842
+ }[];
8843
+ id: string;
8844
+ status: string;
8845
+ tags: string[];
8846
+ identifier: string;
8086
8847
  chain: {
8087
8848
  name: string;
8088
8849
  id: number;
8089
8850
  icon: string;
8090
8851
  };
8091
- protocol: {
8092
- name: string;
8093
- url: string;
8094
- description: string;
8095
- id: string;
8096
- tags: string[];
8097
- icon: string;
8098
- } | undefined;
8099
- name: string;
8100
- type: import("../../database/api/.generated").$Enums.CampaignType;
8101
- status: import("../../database/api/.generated").$Enums.Status;
8102
- tags: string[];
8103
- identifier: string;
8104
8852
  chainId: number;
8105
- action: import("../../database/api/.generated").$Enums.OpportunityAction;
8853
+ action: string;
8106
8854
  tvl: number;
8855
+ apr: number;
8107
8856
  dailyRewards: number;
8108
- }[];
8109
- }>>;
8110
- };
8111
- count: {
8112
- get: (options: {
8113
- headers?: Record<string, unknown> | undefined;
8114
- query: {
8115
- sort?: string | undefined;
8116
- name?: string | undefined;
8117
- tokens?: string | undefined;
8118
- status?: string | undefined;
8119
- items?: number | undefined;
8120
- tags?: string | undefined;
8121
- page?: number | undefined;
8122
- chainId?: string | undefined;
8123
- action?: string | undefined;
8124
- creatorAddress?: string | undefined;
8125
- mainProtocolId?: string | undefined;
8126
- order?: string | undefined;
8127
- test?: boolean | undefined;
8128
- minimumTvl?: number | undefined;
8857
+ } & {
8858
+ campaigns: {
8859
+ params: any;
8860
+ chain: {
8861
+ name: string;
8862
+ id: number;
8863
+ icon: string;
8864
+ };
8865
+ rewardToken: {
8866
+ symbol: string;
8867
+ name: string | null;
8868
+ id: string;
8869
+ icon: string;
8870
+ chainId: number;
8871
+ address: string;
8872
+ decimals: number;
8873
+ verified: boolean;
8874
+ isTest: boolean;
8875
+ } & {
8876
+ price?: number | null | undefined;
8877
+ };
8878
+ distributionChain: {
8879
+ name: string;
8880
+ id: number;
8881
+ icon: string;
8882
+ } | undefined;
8883
+ campaignStatus: {
8884
+ error: string;
8885
+ details: import("database/api/.generated/runtime/library").JsonValue;
8886
+ status: import("../../database/api/.generated").$Enums.RunStatus;
8887
+ campaignId: string;
8888
+ computedUntil: bigint;
8889
+ processingStarted: bigint;
8890
+ };
8891
+ type: import("../../database/api/.generated").$Enums.CampaignType;
8892
+ id: string;
8893
+ subType: number | null;
8894
+ startTimestamp: bigint;
8895
+ endTimestamp: bigint;
8896
+ computeChainId: number;
8897
+ distributionChainId: number;
8898
+ campaignId: string;
8899
+ rewardTokenId: string;
8900
+ amount: string;
8901
+ opportunityId: string;
8902
+ creatorAddress: string;
8903
+ }[];
8904
+ })[];
8905
+ readonly 404: {
8906
+ message: string;
8907
+ name: string;
8908
+ };
8909
+ readonly 500: {
8910
+ code: string;
8911
+ info: string;
8912
+ httpCode: number;
8129
8913
  };
8130
- fetch?: RequestInit | undefined;
8131
- }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8132
- 200: number;
8133
8914
  }>>;
8134
8915
  };
8135
8916
  aggregate: ((params: {
@@ -8319,6 +9100,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8319
9100
  mainParameter?: string | undefined;
8320
9101
  campaignId?: string | undefined;
8321
9102
  opportunityId?: string | undefined;
9103
+ creatorId?: string | undefined;
8322
9104
  test?: boolean | undefined;
8323
9105
  creatorTag?: string | undefined;
8324
9106
  tokenSymbol?: string | undefined;
@@ -8388,6 +9170,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8388
9170
  mainParameter?: string | undefined;
8389
9171
  campaignId?: string | undefined;
8390
9172
  opportunityId?: string | undefined;
9173
+ creatorId?: string | undefined;
8391
9174
  test?: boolean | undefined;
8392
9175
  creatorTag?: string | undefined;
8393
9176
  tokenSymbol?: string | undefined;
@@ -8459,6 +9242,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8459
9242
  } | null;
8460
9243
  }>>;
8461
9244
  patch: (body: {
9245
+ name?: string | undefined;
8462
9246
  url?: string | undefined;
8463
9247
  description?: string | undefined;
8464
9248
  icon?: string | undefined;
@@ -9243,8 +10027,23 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9243
10027
  200: {
9244
10028
  tags: string[];
9245
10029
  address: string;
10030
+ creatorId: string | null;
9246
10031
  } | null;
9247
10032
  }>>;
10033
+ creator: {
10034
+ get: (options?: {
10035
+ headers?: Record<string, unknown> | undefined;
10036
+ query?: Record<string, unknown> | undefined;
10037
+ fetch?: RequestInit | undefined;
10038
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10039
+ 200: {
10040
+ name: string;
10041
+ id: string;
10042
+ addresses: string[];
10043
+ icon?: string | undefined;
10044
+ } | null;
10045
+ }>>;
10046
+ };
9248
10047
  rewards: {
9249
10048
  breakdowns: {
9250
10049
  get: (options: {
@@ -9472,6 +10271,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9472
10271
  200: {
9473
10272
  tags: string[];
9474
10273
  address: string;
10274
+ creatorId: string | null;
9475
10275
  };
9476
10276
  }>>;
9477
10277
  };
@@ -9490,6 +10290,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9490
10290
  200: {
9491
10291
  tags: string[];
9492
10292
  address: string;
10293
+ creatorId: string | null;
9493
10294
  }[];
9494
10295
  }>>;
9495
10296
  post: (body: {
@@ -9505,6 +10306,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9505
10306
  200: {
9506
10307
  tags: string[];
9507
10308
  address: string;
10309
+ creatorId: string | null;
9508
10310
  };
9509
10311
  }>>;
9510
10312
  };
@@ -9519,6 +10321,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9519
10321
  200: {
9520
10322
  tags: string[];
9521
10323
  address: string;
10324
+ creatorId: string | null;
9522
10325
  }[];
9523
10326
  }>>;
9524
10327
  };
@@ -9831,8 +10634,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9831
10634
  query?: Record<string, unknown> | undefined;
9832
10635
  fetch?: RequestInit | undefined;
9833
10636
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9834
- [x: string]: any;
9835
- 200: any;
10637
+ 200: any[];
9836
10638
  }>>;
9837
10639
  };
9838
10640
  "from-existing": {
@@ -9852,14 +10654,14 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9852
10654
  mainParameter?: string | undefined;
9853
10655
  campaignId?: string | undefined;
9854
10656
  opportunityId?: string | undefined;
10657
+ creatorId?: string | undefined;
9855
10658
  test?: boolean | undefined;
9856
10659
  creatorTag?: string | undefined;
9857
10660
  tokenSymbol?: string | undefined;
9858
10661
  };
9859
10662
  fetch?: RequestInit | undefined;
9860
10663
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9861
- [x: string]: any;
9862
- 200: any;
10664
+ 200: any[];
9863
10665
  }>>;
9864
10666
  };
9865
10667
  };
@@ -10205,6 +11007,31 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10205
11007
  }>>;
10206
11008
  };
10207
11009
  };
11010
+ parse: {
11011
+ "from-campaign-data": {
11012
+ post: (body: {
11013
+ chainId: number;
11014
+ startTimestamp: number;
11015
+ endTimestamp: number;
11016
+ computeChainId: number;
11017
+ amount: string;
11018
+ rewardToken: string;
11019
+ campaignType: number;
11020
+ campaignData: string;
11021
+ symbolRewardToken: string;
11022
+ decimalsRewardToken: number;
11023
+ }, options: {
11024
+ headers: {
11025
+ authorization: string;
11026
+ };
11027
+ query?: Record<string, unknown> | undefined;
11028
+ fetch?: RequestInit | undefined;
11029
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11030
+ [x: string]: any;
11031
+ 200: any;
11032
+ }>>;
11033
+ };
11034
+ };
10208
11035
  };
10209
11036
  boosts: {
10210
11037
  euler: {
@@ -10247,8 +11074,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10247
11074
  fetch?: RequestInit | undefined;
10248
11075
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10249
11076
  200: {
10250
- [x: string]: File;
10251
- [x: number]: File;
11077
+ averageBoost: number | null;
11078
+ totalDistributedInUSD: number | null;
11079
+ forfeitingBoost: number | null;
10252
11080
  } | null;
10253
11081
  }>>;
10254
11082
  })) & {};
@@ -10263,8 +11091,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10263
11091
  fetch?: RequestInit | undefined;
10264
11092
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10265
11093
  200: {
10266
- [x: string]: never;
10267
- [x: number]: never;
11094
+ reason: string;
11095
+ id: number;
11096
+ campaignId: string;
11097
+ boost: number | null;
10268
11098
  }[];
10269
11099
  }>>;
10270
11100
  })) & {};
@@ -10303,6 +11133,77 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10303
11133
  };
10304
11134
  };
10305
11135
  };
11136
+ creators: ((params: {
11137
+ id: string | number;
11138
+ }) => {
11139
+ get: (options?: {
11140
+ headers?: Record<string, unknown> | undefined;
11141
+ query?: Record<string, unknown> | undefined;
11142
+ fetch?: RequestInit | undefined;
11143
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11144
+ 200: {
11145
+ name: string;
11146
+ id: string;
11147
+ addresses: string[];
11148
+ icon?: string | undefined;
11149
+ };
11150
+ }>>;
11151
+ patch: (body: {
11152
+ icon?: string | undefined;
11153
+ name: string;
11154
+ addresses: string[];
11155
+ }, options: {
11156
+ headers: {
11157
+ authorization: string;
11158
+ };
11159
+ query?: Record<string, unknown> | undefined;
11160
+ fetch?: RequestInit | undefined;
11161
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11162
+ 200: {
11163
+ name: string;
11164
+ id: string;
11165
+ icon: string | null;
11166
+ };
11167
+ }>>;
11168
+ }) & {
11169
+ index: {
11170
+ get: (options: {
11171
+ headers?: Record<string, unknown> | undefined;
11172
+ query: {
11173
+ items?: number | undefined;
11174
+ page?: number | undefined;
11175
+ address?: string | undefined;
11176
+ };
11177
+ fetch?: RequestInit | undefined;
11178
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11179
+ 200: ({
11180
+ name: string;
11181
+ id: string;
11182
+ addresses: string[];
11183
+ } & {
11184
+ icon?: string | undefined;
11185
+ })[];
11186
+ }>>;
11187
+ post: (body: {
11188
+ icon?: string | undefined;
11189
+ name: string;
11190
+ id: string;
11191
+ addresses: string[];
11192
+ }, options: {
11193
+ headers: {
11194
+ authorization: string;
11195
+ };
11196
+ query?: Record<string, unknown> | undefined;
11197
+ fetch?: RequestInit | undefined;
11198
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11199
+ 200: {
11200
+ name: string;
11201
+ id: string;
11202
+ icon: string | null;
11203
+ };
11204
+ }>>;
11205
+ };
11206
+ };
10306
11207
  };
10307
11208
  v3: {
10308
11209
  app: {