@merkl/api 0.10.156 → 0.10.158

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,31 @@
1
1
  export declare const slugToProtocolId: {
2
2
  readonly "uniswap-v2": "uniswap-v2";
3
3
  readonly "aave-v2": "aave";
4
+ readonly "aave-v3": "aave";
5
+ readonly "aave-static-atokens": "aave";
4
6
  readonly "camelot-v2": "camelot";
7
+ readonly "meta-morpho": "morpho";
8
+ readonly "morpho-blue-vaults": "morpho";
9
+ readonly "balancer-v2": "balancer";
10
+ readonly "balancer-gauge": "balancer";
11
+ readonly "aura-lp": "aura";
12
+ readonly aura: "aura";
13
+ readonly beefy: "beefy";
14
+ readonly "compound-v3": "compound";
15
+ readonly "curve-gauge": "curve";
16
+ readonly "euler-v2": "euler";
17
+ readonly fluid: "fluid";
18
+ readonly fraxlend: "frax";
19
+ readonly "frax-ether": "frax";
20
+ readonly "gearbox-v3": "gearbox";
21
+ readonly gearbox: "gearbox";
22
+ readonly moonwell: "moonwell";
23
+ readonly "pancakeswap-amm-v3": "pancakeswap-v3";
24
+ readonly "quickswap-dex": "quickswap-uni";
25
+ readonly "silo-protected": "silo";
26
+ readonly silo: "silo";
27
+ readonly "velodrome-v2-staking": "velodrome";
28
+ readonly zerolend: "zero";
5
29
  };
6
30
  export type EnsoSlug = keyof typeof slugToProtocolId;
7
31
  export declare const apiTypes: {
@@ -2,7 +2,31 @@ import { t } from "elysia";
2
2
  export const slugToProtocolId = {
3
3
  "uniswap-v2": "uniswap-v2",
4
4
  "aave-v2": "aave",
5
+ "aave-v3": "aave",
6
+ "aave-static-atokens": "aave",
5
7
  "camelot-v2": "camelot",
8
+ "meta-morpho": "morpho",
9
+ "morpho-blue-vaults": "morpho",
10
+ "balancer-v2": "balancer",
11
+ "balancer-gauge": "balancer",
12
+ "aura-lp": "aura",
13
+ aura: "aura",
14
+ beefy: "beefy",
15
+ "compound-v3": "compound",
16
+ "curve-gauge": "curve",
17
+ "euler-v2": "euler",
18
+ fluid: "fluid",
19
+ fraxlend: "frax",
20
+ "frax-ether": "frax",
21
+ "gearbox-v3": "gearbox",
22
+ gearbox: "gearbox",
23
+ moonwell: "moonwell",
24
+ "pancakeswap-amm-v3": "pancakeswap-v3",
25
+ "quickswap-dex": "quickswap-uni",
26
+ "silo-protected": "silo",
27
+ silo: "silo",
28
+ "velodrome-v2-staking": "velodrome",
29
+ zerolend: "zero",
6
30
  };
7
31
  export const apiTypes = {
8
32
  "/v1/protocols": {
@@ -63,7 +63,7 @@ export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObje
63
63
  }>, import("@sinclair/typebox").TRegExp]>>;
64
64
  sort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"tvl" | "apr" | "rewards">[]>>;
65
65
  order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"asc" | "desc">[]>>;
66
- mainProtocolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
66
+ mainProtocolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
67
67
  page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
68
68
  items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
69
69
  }>;
@@ -20,7 +20,7 @@ export const GetOpportunitiesQueryDto = t.Object({
20
20
  status: t.Optional(t.Union([t.Enum(Status), t.RegExp(/^(LIVE|PAST|SOON)+(,(LIVE|PAST|SOON)+)*$/)])),
21
21
  sort: t.Optional(t.Union(["apr", "tvl", "rewards"].map(v => t.Literal(v)))),
22
22
  order: t.Optional(t.Union(["desc", "asc"].map(v => t.Literal(v)))),
23
- mainProtocolId: t.Optional(t.RegExp(/^\d+(,\d+)*$/)),
23
+ mainProtocolId: t.Optional(t.String()),
24
24
  page: t.Optional(t.Numeric()), // 0-indexed
25
25
  items: t.Optional(t.Numeric()), // items per page
26
26
  });