@merkl/api 0.10.80 → 0.10.82

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 (67) hide show
  1. package/dist/database/api/.generated/index.d.ts +8 -53
  2. package/dist/database/api/.generated/package.json +1 -1
  3. package/dist/database/api/.generated/schema.prisma +1 -2
  4. package/dist/src/cache/declaration.d.ts +5 -0
  5. package/dist/src/eden/index.d.ts +66 -316
  6. package/dist/src/index.d.ts +24 -120
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +3 -0
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +16 -1
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +30 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AssetProcessor.d.ts +35 -0
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +61 -0
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts +49 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts +53 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BeefyProcessor.d.ts +48 -0
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts +44 -0
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EnzymeProcessor.d.ts +40 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts +37 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts +37 -0
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FluidProcessor.d.ts +39 -0
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FraxProcessor.d.ts +33 -0
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GearboxProcessor.d.ts +40 -0
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +31 -0
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +27 -0
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RadiantProcessor.d.ts +32 -0
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +16 -0
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts +39 -0
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TorosProcessor.d.ts +29 -0
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/curveProcessor.d.ts +47 -0
  29. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/genericProcessor.d.ts +61 -0
  30. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.d.ts +6 -0
  31. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/templateProcessor.d.ts +32 -0
  32. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/uniswapProcessor.d.ts +42 -0
  33. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +4 -0
  34. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +3 -0
  35. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +3 -0
  36. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +3 -0
  37. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +4 -0
  38. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +3 -0
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -3
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -16
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -4
  42. package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -0
  43. package/dist/src/modules/v4/reward/reward.service.d.ts +126 -109
  44. package/dist/src/modules/v4/router.d.ts +24 -120
  45. package/dist/src/modules/v4/testdynamicData/dynamicData.controller.d.ts +50 -0
  46. package/dist/src/modules/v4/testdynamicData/dynamicData.model.d.ts +5 -0
  47. package/dist/src/modules/v4/testdynamicData/dynamicData.repository.d.ts +0 -0
  48. package/dist/src/modules/v4/testdynamicData/dynamicData.service.d.ts +12 -0
  49. package/dist/src/modules/v4/testdynamicData/index.d.ts +3 -0
  50. package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
  51. package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
  52. package/dist/src/routes/v3/ERC20Campaigns.d.ts +24 -120
  53. package/dist/src/routes/v3/blacklist.d.ts +24 -120
  54. package/dist/src/routes/v3/campaigns.d.ts +24 -120
  55. package/dist/src/routes/v3/campaignsInfo.d.ts +24 -120
  56. package/dist/src/routes/v3/multiChainPositions.d.ts +24 -120
  57. package/dist/src/routes/v3/opportunity.d.ts +24 -120
  58. package/dist/src/routes/v3/positions.d.ts +24 -120
  59. package/dist/src/routes/v3/rewards.d.ts +24 -120
  60. package/dist/src/routes/v3/updates.d.ts +24 -120
  61. package/dist/src/routes/v3/userRewards.d.ts +24 -120
  62. package/dist/src/utils/decodeCalls.d.ts +2 -0
  63. package/dist/src/utils/encodeCalls.d.ts +3 -0
  64. package/dist/src/utils/generateCardName.d.ts +3 -0
  65. package/dist/src/utils/interfaces.d.ts +39 -0
  66. package/dist/tsconfig.package.tsbuildinfo +1 -1
  67. package/package.json +1 -1
@@ -89,7 +89,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
89
89
  200: {
90
90
  aprRecord: {
91
91
  cumulated: number;
92
- cummulated: number;
93
92
  timestamp: bigint;
94
93
  breakdowns: {
95
94
  id: number;
@@ -177,7 +176,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
177
176
  200: {
178
177
  aprRecord: {
179
178
  cumulated: number;
180
- cummulated: number;
181
179
  timestamp: bigint;
182
180
  breakdowns: {
183
181
  id: number;
@@ -275,7 +273,6 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
275
273
  200: ({
276
274
  aprRecord: {
277
275
  cumulated: number;
278
- cummulated: number;
279
276
  timestamp: bigint;
280
277
  breakdowns: {
281
278
  id: number;
@@ -1193,7 +1190,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1193
1190
  response: {
1194
1191
  200: (Omit<{
1195
1192
  chain: import("../../../database/api/.generated").Chain;
1196
- rewards: Awaited<ReturnType<(typeof RewardService)["getByRecipient"]>>;
1193
+ rewards: Awaited<ReturnType<(typeof RewardService)["format"]>>;
1197
1194
  }, "rewards"> & {
1198
1195
  rewards: (Omit<{
1199
1196
  token: {
@@ -1303,7 +1300,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1303
1300
  response: {
1304
1301
  200: (Omit<{
1305
1302
  chain: import("../../../database/api/.generated").Chain;
1306
- rewards: Awaited<ReturnType<(typeof RewardService)["getByRecipient"]>>;
1303
+ rewards: Awaited<ReturnType<(typeof RewardService)["format"]>>;
1307
1304
  }, "rewards"> & {
1308
1305
  rewards: (Omit<{
1309
1306
  token: {
@@ -1759,127 +1756,34 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1759
1756
  };
1760
1757
  } & {
1761
1758
  v4: {
1762
- campaignStatus: {
1763
- engine: {
1764
- post: {
1765
- body: {
1766
- status: {
1767
- value: "SUCCESS";
1768
- computedUntil: number;
1769
- } | {
1770
- value: "PROCESSING";
1771
- } | {
1772
- error: string;
1773
- details: string;
1774
- value: "SKIPPED";
1775
- } | {
1776
- error: string;
1777
- details: string;
1778
- value: "FAILED";
1779
- };
1780
- campaignId: string;
1781
- distributionChain: number;
1782
- };
1783
- params: Record<never, string>;
1784
- query: unknown;
1785
- headers: {
1786
- authorization: string;
1787
- };
1788
- response: {
1789
- 200: void;
1790
- };
1791
- };
1792
- };
1793
- };
1794
- } & {
1795
- campaignStatus: {
1796
- index: {
1797
- get: {
1798
- body: unknown;
1799
- params: Record<never, string>;
1800
- query: unknown;
1801
- headers: unknown;
1802
- response: {
1803
- 200: {
1804
- campaignId: string;
1805
- computedUntil: bigint;
1806
- processingStarted: bigint;
1807
- status: import("../../../database/api/.generated").$Enums.RunStatus;
1808
- error: string;
1809
- details: import("../../../database/api/.generated").Prisma.JsonValue;
1810
- }[];
1811
- };
1812
- };
1813
- };
1814
- };
1815
- } & {
1816
- campaignStatus: {
1817
- unique: {
1818
- get: {
1819
- body: unknown;
1820
- params: Record<never, string>;
1821
- query: {
1822
- identifier: string;
1823
- distributionChain: number;
1824
- };
1825
- headers: unknown;
1826
- response: {
1827
- 200: {
1828
- campaignId: string;
1829
- computedUntil: bigint;
1830
- processingStarted: bigint;
1831
- status: import("../../../database/api/.generated").$Enums.RunStatus;
1832
- error: string;
1833
- details: import("../../../database/api/.generated").Prisma.JsonValue;
1834
- };
1835
- };
1836
- };
1837
- };
1838
- };
1839
- } & {
1840
- campaignStatus: {
1841
- computeChain: {
1759
+ dynamicData: {
1760
+ chainId: {
1842
1761
  ":chainId": {
1843
- get: {
1844
- body: unknown;
1845
- params: {
1846
- chainId: number;
1847
- };
1848
- query: unknown;
1849
- headers: unknown;
1850
- response: {
1851
- 200: {
1852
- campaignId: string;
1853
- computedUntil: bigint;
1854
- processingStarted: bigint;
1855
- status: import("../../../database/api/.generated").$Enums.RunStatus;
1856
- error: string;
1857
- details: import("../../../database/api/.generated").Prisma.JsonValue;
1858
- }[];
1762
+ token: {
1763
+ ":tokenAddress": {
1764
+ get: {
1765
+ body: unknown;
1766
+ params: {
1767
+ chainId: string;
1768
+ tokenAddress: string;
1769
+ };
1770
+ query: unknown;
1771
+ headers: unknown;
1772
+ response: {
1773
+ 200: {
1774
+ tvl: number;
1775
+ totalSupply: number;
1776
+ cardName: string;
1777
+ blacklistedSupply: number;
1778
+ priceTargetToken: number;
1779
+ };
1780
+ };
1781
+ };
1859
1782
  };
1860
1783
  };
1861
1784
  };
1862
1785
  };
1863
1786
  };
1864
- } & {
1865
- campaignStatus: {
1866
- overlaps: {
1867
- get: {
1868
- body: unknown;
1869
- params: Record<never, string>;
1870
- query: {
1871
- identifier: string;
1872
- distributionChain: number;
1873
- };
1874
- headers: {
1875
- authorization: string;
1876
- };
1877
- response: {
1878
- 200: boolean;
1879
- };
1880
- };
1881
- };
1882
- };
1883
1787
  };
1884
1788
  } & {
1885
1789
  index: {
@@ -0,0 +1,2 @@
1
+ import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
2
+ export declare function decodeCall(calls: string[], index: number, key: string, type?: tokenType): any;
@@ -0,0 +1,3 @@
1
+ import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
2
+ import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
3
+ export declare function createCall(target: string, key: string, type?: tokenType, metaData?: any): Multicall3.Call3Struct;
@@ -0,0 +1,3 @@
1
+ import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
2
+ import type { Campaign, CampaignParameters } from "@sdk";
3
+ export declare function generateCardName(type: tokenType, typeInfo: any, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, symbols?: string[]): string;
@@ -0,0 +1,39 @@
1
+ export declare const balancerPoolInterface: any;
2
+ export declare const gearboxVaultInterface: any;
3
+ export declare const auraOperatorInterface: any;
4
+ export declare const factoryInterface: any;
5
+ export declare const balancerGaugeInterface: any;
6
+ export declare const OneInchStakingInterface: any;
7
+ export declare const compoundInterface: any;
8
+ export declare const radiantInterface: any;
9
+ export declare const ionicInterface: any;
10
+ export declare const layerBankInterface: any;
11
+ export declare const metamorphoInterface: any;
12
+ export declare const moonwellInterface: any;
13
+ export declare const aaveInterface: any;
14
+ export declare const fraxlendInterface: any;
15
+ export declare const curveInterface: any;
16
+ export declare const sturdyInterface: any;
17
+ export declare const torosInterface: any;
18
+ export declare const auraInterface: any;
19
+ export declare const fluidInterface: any;
20
+ export declare const enzymeInterface: any;
21
+ export declare const eulerInterface: any;
22
+ export declare const beefyInterface: any;
23
+ export declare const DistributorInterface: any;
24
+ export declare const DistributionCreatorInterface: any;
25
+ export declare const spNFTInterface: any;
26
+ export declare const NitroInterface: any;
27
+ export declare const ERC20Interface: any;
28
+ export declare const UniswapV3PoolInterface: any;
29
+ export declare const UniswapV2PoolInterface: any;
30
+ export declare const MorphoInterface: any;
31
+ export declare const CdpManagerInterface: any;
32
+ export declare const SortedCdpsInterface: any;
33
+ export declare const ERC20PoolInterface: any;
34
+ export declare const PoolInfoUtilsInterface: any;
35
+ export declare const EVKInterface: any;
36
+ export declare const EulerVaultLensInterface: any;
37
+ export declare const CTokenInterface: any;
38
+ export declare const balancerVaultInterface: any;
39
+ export declare const pendleInterface: any;