@merkl/api 0.10.345 → 0.10.347

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 (26) hide show
  1. package/dist/src/cache/declaration.d.ts +5 -0
  2. package/dist/src/cache/declaration.js +5 -0
  3. package/dist/src/eden/index.d.ts +139 -4
  4. package/dist/src/index.d.ts +51 -1
  5. package/dist/src/libs/campaigns/utils/getUniswapV4Pools.d.ts +7 -0
  6. package/dist/src/libs/campaigns/utils/getUniswapV4Pools.js +109 -0
  7. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +32 -0
  8. package/dist/src/modules/v4/campaign/campaign.controller.js +7 -1
  9. package/dist/src/modules/v4/campaign/campaign.model.d.ts +10 -2
  10. package/dist/src/modules/v4/campaign/campaign.model.js +7 -2
  11. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +16 -1
  12. package/dist/src/modules/v4/campaign/campaign.repository.js +7 -1
  13. package/dist/src/modules/v4/campaign/campaign.service.d.ts +16 -1
  14. package/dist/src/modules/v4/campaign/campaign.service.js +14 -1
  15. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -2
  16. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -2
  17. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +2 -1
  18. package/dist/src/modules/v4/programPayload/programPayload.repository.js +15 -4
  19. package/dist/src/modules/v4/router.d.ts +32 -0
  20. package/dist/src/routes/v3/campaigns.d.ts +1 -1
  21. package/dist/src/routes/v3/router.d.ts +19 -1
  22. package/dist/src/routes/v3/router.js +3 -1
  23. package/dist/src/routes/v3/uniswapv4.d.ts +45 -0
  24. package/dist/src/routes/v3/uniswapv4.js +9 -0
  25. package/dist/tsconfig.package.tsbuildinfo +1 -1
  26. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { AprRecordResourceDto } from "../apr/apr.model";
2
+ import { CampaignResourceDto } from "../campaign/campaign.model";
2
3
  import { ProtocolResourceDto } from "../protocol/protocol.model";
3
- import { DailyRewardsRecordResourceDto } from "../reward";
4
+ import { DailyRewardsRecordResourceDto } from "../reward/reward.model";
4
5
  import { TokenDto, TokenResourceDto } from "../token/token.model";
5
6
  import { TvlRecordResourceDto } from "../tvl/tvl.model";
6
7
  import { CampaignType, OpportunityAction, Status } from "../../../../database/api/.generated";
7
8
  import { t } from "elysia";
8
- import { CampaignResourceDto } from "../campaign";
9
9
  import { ChainResourceDto } from "../chain/chain.model";
10
10
  // ─── DTOs ────────────────────────────────────────────────────────────────────
11
11
  export const OpportunityResourceDto = t.Object({
@@ -34,7 +34,8 @@ export declare enum pufferCampaigns {
34
34
  uniswapv3_vt_weth = "0xa56600e670724b42F38d3A6e4B25e8D786B4F5f9",
35
35
  venus_pufeth = "0xE0ee5dDeBFe0abe0a4Af50299D68b74Cec31668e",
36
36
  unifiBTC = "0x170D847A8320F3B6A77eE15B0CAE430e3eC933a0",
37
- unifiUSD = "0x82c40e07277eBb92935f79cE92268F80dDc7caB4"
37
+ unifiUSD = "0x82c40e07277eBb92935f79cE92268F80dDc7caB4",
38
+ CARROT_USDC = "0xf00032d0f95e8f43e750c51d0188dca33cc5a8ea"
38
39
  }
39
40
  export declare enum zkSyncCampaigns {
40
41
  Izumi_Finance_Zk_Weth = "Izumi Finance ZK/WETH 0xd62bc9f19bd94fde9c41df4b6eb6419ea6b8e25c",
@@ -37,6 +37,7 @@ export var pufferCampaigns;
37
37
  pufferCampaigns["venus_pufeth"] = "0xE0ee5dDeBFe0abe0a4Af50299D68b74Cec31668e";
38
38
  pufferCampaigns["unifiBTC"] = "0x170D847A8320F3B6A77eE15B0CAE430e3eC933a0";
39
39
  pufferCampaigns["unifiUSD"] = "0x82c40e07277eBb92935f79cE92268F80dDc7caB4";
40
+ pufferCampaigns["CARROT_USDC"] = "0xf00032d0f95e8f43e750c51d0188dca33cc5a8ea";
40
41
  })(pufferCampaigns || (pufferCampaigns = {}));
41
42
  export var zkSyncCampaigns;
42
43
  (function (zkSyncCampaigns) {
@@ -1730,6 +1731,16 @@ const ZkSyncInterfaceCampaigns = {
1730
1731
  },
1731
1732
  };
1732
1733
  const PufferInterfaceCampaigns = {
1734
+ [pufferCampaigns.CARROT_USDC]: {
1735
+ campaignType: Campaign.ERC20,
1736
+ computeChainId: ChainId.MAINNET,
1737
+ hooks: [],
1738
+ targetToken: "0xf00032d0f95e8f43e750c51d0188dca33cc5a8ea",
1739
+ whitelist: [],
1740
+ blacklist: [],
1741
+ url: "https://app.uniswap.org/explore/pools/ethereum/0xf00032d0F95e8f43E750C51d0188DCa33cC5a8eA",
1742
+ forwarders: [],
1743
+ },
1733
1744
  [pufferCampaigns.unifiBTC]: {
1734
1745
  campaignType: Campaign.ERC20,
1735
1746
  computeChainId: ChainId.MAINNET,
@@ -1737,7 +1748,7 @@ const PufferInterfaceCampaigns = {
1737
1748
  targetToken: "0x170D847A8320F3B6A77eE15B0CAE430e3eC933a0",
1738
1749
  whitelist: [],
1739
1750
  blacklist: [],
1740
- url: "https://quest.puffer.fi/unifi",
1751
+ url: "https://app.puffer.fi/vaults/unifiBTC",
1741
1752
  forwarders: [],
1742
1753
  },
1743
1754
  [pufferCampaigns.unifiUSD]: {
@@ -1747,7 +1758,7 @@ const PufferInterfaceCampaigns = {
1747
1758
  targetToken: "0x82c40e07277eBb92935f79cE92268F80dDc7caB4",
1748
1759
  whitelist: [],
1749
1760
  blacklist: [],
1750
- url: "https://quest.puffer.fi/unifi",
1761
+ url: "https://app.puffer.fi/vaults/unifiUSD",
1751
1762
  forwarders: [],
1752
1763
  },
1753
1764
  [pufferCampaigns.venus_pufeth]: {
@@ -1900,7 +1911,7 @@ const PufferInterfaceCampaigns = {
1900
1911
  targetToken: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
1901
1912
  whitelist: ["0x18eeD20f71BEf84B605253C89A7576E3634134C0"],
1902
1913
  blacklist: [],
1903
- url: "https://lend.curve.fi/#/ethereum/markets/one-way-market-10/create",
1914
+ url: "https://cyber.co/restaking",
1904
1915
  forwarders: [
1905
1916
  {
1906
1917
  forwarderType: Forwarder.INCOMING_TRANSFERS,
@@ -1995,7 +2006,7 @@ const PufferInterfaceCampaigns = {
1995
2006
  targetToken: "0x196ead472583Bc1e9aF7A05F860D9857e1Bd3dCc",
1996
2007
  whitelist: [],
1997
2008
  blacklist: [],
1998
- url: "https://quest.puffer.fi/unifi",
2009
+ url: "https://app.puffer.fi/vaults/unifiETH",
1999
2010
  forwarders: [],
2000
2011
  },
2001
2012
  [pufferCampaigns.vePuffer]: {
@@ -730,6 +730,38 @@ export declare const v4: Elysia<"/v4", false, {
730
730
  };
731
731
  };
732
732
  };
733
+ } & {
734
+ metadata: {
735
+ patch: {
736
+ body: {
737
+ url: string;
738
+ campaignId: string;
739
+ distributionChain: number;
740
+ };
741
+ params: {};
742
+ query: unknown;
743
+ headers: {
744
+ authorization: string;
745
+ };
746
+ response: {
747
+ 200: {
748
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
749
+ id: string;
750
+ params: import("database/api/.generated/runtime/library").JsonValue;
751
+ subType: number | null;
752
+ startTimestamp: bigint;
753
+ endTimestamp: bigint;
754
+ computeChainId: number;
755
+ distributionChainId: number;
756
+ campaignId: string;
757
+ rewardTokenId: string;
758
+ amount: string;
759
+ opportunityId: string;
760
+ creatorAddress: string;
761
+ };
762
+ };
763
+ };
764
+ };
733
765
  } & {
734
766
  index: {
735
767
  get: {
@@ -27,8 +27,8 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
27
27
  query: {
28
28
  types?: string | number | string[] | number[] | undefined;
29
29
  chainIds?: string | string[] | undefined;
30
- live?: boolean | undefined;
31
30
  creatorTag?: string | undefined;
31
+ live?: boolean | undefined;
32
32
  hideTestTokens?: string | undefined;
33
33
  };
34
34
  headers: unknown;
@@ -88,8 +88,8 @@ export declare const v3: Elysia<"/v3", false, {
88
88
  query: {
89
89
  types?: string | number | string[] | number[] | undefined;
90
90
  chainIds?: string | string[] | undefined;
91
- live?: boolean | undefined;
92
91
  creatorTag?: string | undefined;
92
+ live?: boolean | undefined;
93
93
  hideTestTokens?: string | undefined;
94
94
  };
95
95
  headers: unknown;
@@ -763,6 +763,24 @@ export declare const v3: Elysia<"/v3", false, {
763
763
  };
764
764
  };
765
765
  };
766
+ } & {
767
+ v3: {
768
+ uniswapv4: {
769
+ get: {
770
+ body: unknown;
771
+ params: {};
772
+ query: {};
773
+ headers: unknown;
774
+ response: {
775
+ 200: {
776
+ [x: string]: {
777
+ [poolId: string]: UniswapV4PoolType;
778
+ } | undefined;
779
+ };
780
+ };
781
+ };
782
+ };
783
+ };
766
784
  }, {
767
785
  derive: {};
768
786
  resolve: {};
@@ -33,6 +33,7 @@ import rewardsReport from "./rewardsReport";
33
33
  import silo from "./silo";
34
34
  import token from "./token";
35
35
  import tokenUnclaimed from "./tokenUnclaimed";
36
+ import uniswapv4 from "./uniswapv4";
36
37
  import updates from "./updates";
37
38
  import userRewards from "./userRewards";
38
39
  export const v3 = new Elysia({ tags: ["v3"], prefix: "/v3" })
@@ -71,4 +72,5 @@ export const v3 = new Elysia({ tags: ["v3"], prefix: "/v3" })
71
72
  .use(token)
72
73
  .use(tokenUnclaimed)
73
74
  .use(updates)
74
- .use(userRewards);
75
+ .use(userRewards)
76
+ .use(uniswapv4);
@@ -0,0 +1,45 @@
1
+ import { type Elysia } from "elysia";
2
+ export declare const response: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
3
+ address: import("@sinclair/typebox").TString;
4
+ asset: import("@sinclair/typebox").TString;
5
+ chaind: import("@sinclair/typebox").TNumber;
6
+ debtTokenAddress: import("@sinclair/typebox").TString;
7
+ }>>;
8
+ declare const _default: (app: Elysia) => Elysia<"", false, {
9
+ decorator: {};
10
+ store: {};
11
+ derive: {};
12
+ resolve: {};
13
+ }, {
14
+ type: {};
15
+ error: {};
16
+ }, {
17
+ schema: {};
18
+ macro: {};
19
+ macroFn: {};
20
+ }, {
21
+ uniswapv4: {
22
+ get: {
23
+ body: unknown;
24
+ params: {};
25
+ query: {};
26
+ headers: unknown;
27
+ response: {
28
+ 200: {
29
+ [x: string]: {
30
+ [poolId: string]: UniswapV4PoolType;
31
+ } | undefined;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ }, {
37
+ derive: {};
38
+ resolve: {};
39
+ schema: {};
40
+ }, {
41
+ derive: {};
42
+ resolve: {};
43
+ schema: {};
44
+ }>;
45
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { getUniswapV4PoolsWithCache } from "../../libs/campaigns/utils/getUniswapV4Pools";
2
+ import { t } from "elysia";
3
+ export const response = t.Array(t.Object({ address: t.String(), asset: t.String(), chaind: t.Number(), debtTokenAddress: t.String() }));
4
+ export default (app) => app.get("/uniswapv4", async () => {
5
+ return await getUniswapV4PoolsWithCache();
6
+ }, {
7
+ query: t.Object({}),
8
+ tags: ["Protocols"],
9
+ });