@merkl/api 0.10.346 → 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.
@@ -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: {
@@ -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
+ });