@merkl/api 0.10.208 → 0.10.209

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,15 @@
1
1
  import type { Campaign as CampaignResource } from "../modules/v4";
2
2
  import type { CampaignType } from "../../database/api/.generated";
3
3
  declare const eden: {
4
+ index: {
5
+ get: (options?: {
6
+ headers?: Record<string, unknown> | undefined;
7
+ query?: Record<string, unknown> | undefined;
8
+ fetch?: RequestInit | undefined;
9
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10
+ 200: string;
11
+ }>>;
12
+ };
4
13
  v1: {
5
14
  allowances: {
6
15
  get: (options: {
@@ -2691,6 +2700,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2691
2700
  macro: {};
2692
2701
  macroFn: {};
2693
2702
  }, {
2703
+ index: {
2704
+ get: {
2705
+ body: unknown;
2706
+ params: {};
2707
+ query: unknown;
2708
+ headers: unknown;
2709
+ response: {
2710
+ 200: string;
2711
+ };
2712
+ };
2713
+ };
2714
+ } & {
2694
2715
  v1: {
2695
2716
  allowances: {
2696
2717
  get: {
@@ -6023,6 +6044,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6023
6044
  resolve: {};
6024
6045
  schema: {};
6025
6046
  }>, config?: import("@elysiajs/eden").Treaty.Config) => {
6047
+ index: {
6048
+ get: (options?: {
6049
+ headers?: Record<string, unknown> | undefined;
6050
+ query?: Record<string, unknown> | undefined;
6051
+ fetch?: RequestInit | undefined;
6052
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6053
+ 200: string;
6054
+ }>>;
6055
+ };
6026
6056
  v1: {
6027
6057
  allowances: {
6028
6058
  get: (options: {
@@ -210,6 +210,7 @@ export const extractOpportunities = {
210
210
  "poolside",
211
211
  "koi",
212
212
  "pancakeswap",
213
+ "tempest",
213
214
  ],
214
215
  borrow: ["radiant_borrow", "aave_borrowing", "euler_borrow"],
215
216
  lend: [
@@ -24,6 +24,18 @@ declare const app: Elysia<"", false, {
24
24
  macro: {};
25
25
  macroFn: {};
26
26
  }, {
27
+ index: {
28
+ get: {
29
+ body: unknown;
30
+ params: {};
31
+ query: unknown;
32
+ headers: unknown;
33
+ response: {
34
+ 200: string;
35
+ };
36
+ };
37
+ };
38
+ } & {
27
39
  v1: {
28
40
  allowances: {
29
41
  get: {
package/dist/src/index.js CHANGED
@@ -85,7 +85,7 @@ const app = new Elysia({
85
85
  exclude: [/engine\/*/, /v1\/.*/, /v2\/.*/, /v3\/.*/, /swagger\/*/],
86
86
  }))
87
87
  .use(cors())
88
- // .get("/", () => "Merkl API")
88
+ .get("/", () => "Merkl API: docs available at /docs")
89
89
  .use(v1)
90
90
  .use(v2)
91
91
  .use(v4)
@@ -94,6 +94,7 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
94
94
  return `Stake ${typeInfo.symbolToken0}/${typeInfo.symbolToken1} LP on ${typeInfo.protocol}`;
95
95
  case tokenType.tempest:
96
96
  case tokenType.tempestStaking:
97
+ return `Deposit into ${typeInfo.symbolToken0}/${typeInfo.symbolToken1} vault on ${typeInfo.protocol}`;
97
98
  case tokenType.holdstation:
98
99
  return `Hold vault token ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
99
100
  case tokenType.staking: