@merkl/api 0.10.206 → 0.10.208

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/database/api/.generated/edge.js +5 -4
  2. package/dist/database/api/.generated/index-browser.js +2 -1
  3. package/dist/database/api/.generated/index.d.ts +2 -1
  4. package/dist/database/api/.generated/index.js +5 -4
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +1 -0
  7. package/dist/database/api/.generated/wasm.js +2 -1
  8. package/dist/src/eden/index.d.ts +8672 -2
  9. package/dist/src/index.d.ts +3358 -1
  10. package/dist/src/index.js +4 -4
  11. package/dist/src/modules/v4/campaign/campaign.model.js +2 -2
  12. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -2
  13. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  14. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +31 -1
  15. package/dist/src/modules/v4/protocol/protocol.controller.js +8 -1
  16. package/dist/src/modules/v4/protocol/protocol.model.d.ts +11 -0
  17. package/dist/src/modules/v4/protocol/protocol.model.js +8 -0
  18. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
  19. package/dist/src/modules/v4/protocol/protocol.repository.js +12 -3
  20. package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
  21. package/dist/src/modules/v4/protocol/protocol.service.js +3 -0
  22. package/dist/src/modules/v4/router.d.ts +33 -3
  23. package/dist/src/routes/v2/merkl.d.ts +4 -4
  24. package/dist/src/routes/v2/router.d.ts +4 -4
  25. package/dist/src/routes/v3/blacklist.d.ts +38 -2
  26. package/dist/src/routes/v3/campaigns.d.ts +41 -2
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +40 -2
  28. package/dist/src/routes/v3/claims.d.ts +1 -1
  29. package/dist/src/routes/v3/multiChainPositions.d.ts +39 -2
  30. package/dist/src/routes/v3/opportunity.d.ts +42 -2
  31. package/dist/src/routes/v3/positions.d.ts +38 -2
  32. package/dist/src/routes/v3/rewards.d.ts +66 -2
  33. package/dist/src/routes/v3/router.d.ts +773 -1
  34. package/dist/src/routes/v3/updates.d.ts +42 -2
  35. package/dist/src/routes/v3/userRewards.d.ts +56 -2
  36. package/dist/tsconfig.package.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/dist/src/utils/rateLimit.d.ts +0 -63
  39. package/dist/src/utils/rateLimit.js +0 -13
package/dist/src/index.js CHANGED
@@ -41,7 +41,7 @@ const app = new Elysia({
41
41
  exclude: [/v4\/.*/, "/"],
42
42
  }))
43
43
  .use(swagger({
44
- path: "/",
44
+ path: "/docs",
45
45
  scalarConfig: {
46
46
  theme: "kepler",
47
47
  darkMode: true,
@@ -82,14 +82,14 @@ const app = new Elysia({
82
82
  version: "1.0.1",
83
83
  },
84
84
  },
85
- exclude: [/engine\/*/, /v1\/.*/, /v2\/.*/, /v3\/.*/, "/", /swagger\/*/],
85
+ exclude: [/engine\/*/, /v1\/.*/, /v2\/.*/, /v3\/.*/, /swagger\/*/],
86
86
  }))
87
87
  .use(cors())
88
- .get("/", () => "Merkl API")
88
+ // .get("/", () => "Merkl API")
89
89
  .use(v1)
90
90
  .use(v2)
91
- .use(v3)
92
91
  .use(v4)
92
+ .use(v3)
93
93
  .use(errorHandler())
94
94
  .listen(PORT, ({ hostname, port }) => {
95
95
  log.info(`🌐 Api started (${hostname}:${port})`);
@@ -83,8 +83,8 @@ export const GetCampaignQueryDto = t.Object({
83
83
  opportunityId: t.Optional(t.String({
84
84
  description: "Filter by opportunity. You can find opportunity ids by calling [GET /v4/opportunities](#tag/opportunities/GET/v4/opportunities)",
85
85
  })),
86
- startTimestamp: t.Optional(t.String({ pattern: "[0-9].*", description: "Returns campaigns starting *after* the given unix timestamp" })),
87
- endTimestamp: t.Optional(t.String({ pattern: "[0-9].*", description: "Returns campaigns ending *after* the given unix timestamp" })),
86
+ startTimestamp: t.Optional(t.String({ pattern: "[0-9]*", description: "Returns campaigns starting *after* the given unix timestamp" })),
87
+ endTimestamp: t.Optional(t.String({ pattern: "[0-9]*", description: "Returns campaigns ending *after* the given unix timestamp" })),
88
88
  page: t.Optional(t.Numeric({ description: "0-indexed page number", default: 0 })),
89
89
  items: t.Optional(t.Numeric({ description: "Number of items returned by page", default: 20 })), // items per page
90
90
  });
@@ -199,7 +199,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
199
199
  url: string;
200
200
  description: string;
201
201
  id: string;
202
- tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
202
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
203
203
  icon: string;
204
204
  } | null | undefined;
205
205
  aprRecord?: {
@@ -308,7 +308,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
308
308
  url: string;
309
309
  description: string;
310
310
  id: string;
311
- tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
311
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
312
312
  icon: string;
313
313
  } | null | undefined;
314
314
  aprRecord?: {
@@ -129,6 +129,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
129
129
  ALM: "ALM";
130
130
  DEX: "DEX";
131
131
  LENDING: "LENDING";
132
+ PERPETUAL: "PERPETUAL";
132
133
  }>>;
133
134
  description: import("@sinclair/typebox").TString;
134
135
  url: import("@sinclair/typebox").TString;
@@ -144,6 +145,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
144
145
  ALM: "ALM";
145
146
  DEX: "DEX";
146
147
  LENDING: "LENDING";
148
+ PERPETUAL: "PERPETUAL";
147
149
  }>>;
148
150
  description: import("@sinclair/typebox").TString;
149
151
  url: import("@sinclair/typebox").TString;
@@ -20,7 +20,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
20
20
  query: {
21
21
  name?: string | undefined;
22
22
  items?: number | undefined;
23
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
23
+ tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
24
24
  page?: number | undefined;
25
25
  };
26
26
  headers: unknown;
@@ -103,6 +103,36 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
103
103
  };
104
104
  };
105
105
  };
106
+ } & {
107
+ protocols: {
108
+ index: {
109
+ post: {
110
+ body: {
111
+ name: string;
112
+ url: string;
113
+ description: string;
114
+ id: string;
115
+ tags: never[];
116
+ icon: string;
117
+ };
118
+ params: {};
119
+ query: unknown;
120
+ headers: {
121
+ authorization: string;
122
+ };
123
+ response: {
124
+ 200: {
125
+ name: string;
126
+ url: string;
127
+ description: string;
128
+ id: string;
129
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
130
+ icon: string;
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
106
136
  }, {
107
137
  derive: {};
108
138
  resolve: {};
@@ -1,6 +1,6 @@
1
1
  import { AuthorizationHeadersDto, BackOfficeGuard } from "../../../guards/BackOffice.guard";
2
2
  import Elysia, { t } from "elysia";
3
- import { GetProtocolsQueryDto, ProtocolIdDto, ProtocolResourceDto, UpdateProtocolDto } from "./protocol.model";
3
+ import { CreateProtocolDto, GetProtocolsQueryDto, ProtocolIdDto, ProtocolResourceDto, UpdateProtocolDto, } from "./protocol.model";
4
4
  import { ProtocolService } from "./protocol.service";
5
5
  // ─── Protocols Controller ────────────────────────────────────────────────────
6
6
  export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { tags: ["Protocols"] } })
@@ -28,4 +28,11 @@ export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { t
28
28
  headers: AuthorizationHeadersDto,
29
29
  beforeHandle: BackOfficeGuard,
30
30
  detail: { hide: true },
31
+ })
32
+ // ─── Create A Protocol ───────────────────────────────────────────────
33
+ .post("/", async ({ body }) => await ProtocolService.create(body), {
34
+ body: CreateProtocolDto,
35
+ headers: AuthorizationHeadersDto,
36
+ beforeHandle: BackOfficeGuard,
37
+ detail: { hide: true },
31
38
  });
@@ -16,6 +16,7 @@ export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
16
16
  ALM: "ALM";
17
17
  DEX: "DEX";
18
18
  LENDING: "LENDING";
19
+ PERPETUAL: "PERPETUAL";
19
20
  }>>;
20
21
  description: import("@sinclair/typebox").TString;
21
22
  url: import("@sinclair/typebox").TString;
@@ -27,6 +28,7 @@ export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
27
28
  ALM: "ALM";
28
29
  DEX: "DEX";
29
30
  LENDING: "LENDING";
31
+ PERPETUAL: "PERPETUAL";
30
32
  }>>>;
31
33
  page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
32
34
  items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -39,10 +41,19 @@ export declare const UpdateProtocolDto: import("@sinclair/typebox").TObject<{
39
41
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
40
42
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
41
43
  }>;
44
+ export declare const CreateProtocolDto: import("@sinclair/typebox").TObject<{
45
+ icon: import("@sinclair/typebox").TString;
46
+ url: import("@sinclair/typebox").TString;
47
+ description: import("@sinclair/typebox").TString;
48
+ id: import("@sinclair/typebox").TString;
49
+ name: import("@sinclair/typebox").TString;
50
+ tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL">[]>>;
51
+ }>;
42
52
  export declare const ProtocolIdDto: import("@sinclair/typebox").TObject<{
43
53
  id: import("@sinclair/typebox").TString;
44
54
  }>;
45
55
  export type GetProtocolsQueryModel = typeof GetProtocolsQueryDto.static;
46
56
  export type GetProtocolModel = typeof GetProtocolParamsDto.static;
47
57
  export type UpdateProtocolModel = typeof UpdateProtocolDto.static;
58
+ export type CreateProtocolModel = typeof CreateProtocolDto.static;
48
59
  export {};
@@ -81,4 +81,12 @@ export const UpdateProtocolDto = t.Object({
81
81
  description: t.Optional(t.String()),
82
82
  // iconFile: t.Optional(t.File()),
83
83
  });
84
+ export const CreateProtocolDto = t.Object({
85
+ icon: t.String({ format: "uri" }),
86
+ url: t.String({ format: "uri" }),
87
+ description: t.String(),
88
+ id: t.String(),
89
+ name: t.String(),
90
+ tags: t.Array(t.Union(Object.values(ProtocolTag).map(type => t.Literal(type)))),
91
+ });
84
92
  export const ProtocolIdDto = t.Object({ id: t.String() });
@@ -1,7 +1,7 @@
1
- import type { GetProtocolsQueryModel, Protocol, UpdateProtocolModel } from "./protocol.model";
1
+ import type { CreateProtocolModel, GetProtocolsQueryModel, UpdateProtocolModel } from "./protocol.model";
2
2
  export declare abstract class ProtocolRepository {
3
3
  #private;
4
- static create(template: Protocol["action"]["create"]["args"]): Promise<{
4
+ static create(data: CreateProtocolModel): Promise<{
5
5
  name: string;
6
6
  url: string;
7
7
  description: string;
@@ -1,8 +1,17 @@
1
1
  import { apiDbClient } from "../../../utils/prisma";
2
2
  // ─── Protocols Repository ────────────────────────────────────────────────────
3
3
  export class ProtocolRepository {
4
- static async create(template) {
5
- return await apiDbClient.protocol.create(template);
4
+ static async create(data) {
5
+ return await apiDbClient.protocol.create({
6
+ data: {
7
+ id: data.id,
8
+ name: data.name,
9
+ icon: data.icon,
10
+ url: data.url,
11
+ description: data.description,
12
+ tags: data.tags,
13
+ },
14
+ });
6
15
  }
7
16
  static async read(type) {
8
17
  return await apiDbClient.protocol.findUnique({ where: { id: type } });
@@ -15,7 +24,7 @@ export class ProtocolRepository {
15
24
  where: {
16
25
  name: query.name ? { contains: query.name, mode: "insensitive" } : undefined,
17
26
  tags: query.tags ? { hasEvery: query.tags } : undefined,
18
- id: typeof query.id === "string" ? query.id : !!query.id ? { in: query.id } : undefined,
27
+ // id: typeof query.id === "string" ? query.id : !!query.id ? { in: query.id } : undefined,
19
28
  },
20
29
  };
21
30
  }
@@ -1,11 +1,19 @@
1
1
  import { AMM as AMMV3 } from "@sdk";
2
- import type { GetProtocolsQueryModel, Protocol, ProtocolId, UpdateProtocolModel } from "./protocol.model";
2
+ import type { CreateProtocolModel, GetProtocolsQueryModel, Protocol, ProtocolId, UpdateProtocolModel } from "./protocol.model";
3
3
  export declare abstract class ProtocolService {
4
4
  static getIdFromAmmV3(amm: AMMV3): ProtocolId;
5
5
  static findMany(query: GetProtocolsQueryModel): Promise<Protocol["model"][]>;
6
6
  static countMany(query: GetProtocolsQueryModel): Promise<number>;
7
7
  static getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
8
8
  static getFromName(name: string): Promise<Protocol["model"] | null>;
9
+ static create(data: CreateProtocolModel): Promise<{
10
+ name: string;
11
+ url: string;
12
+ description: string;
13
+ id: string;
14
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
15
+ icon: string;
16
+ }>;
9
17
  static update(id: string, data: UpdateProtocolModel): Promise<{
10
18
  name: string;
11
19
  url: string;
@@ -49,6 +49,9 @@ export class ProtocolService {
49
49
  static async getFromName(name) {
50
50
  return (await ProtocolRepository.findManyByName(name))[0];
51
51
  }
52
+ static async create(data) {
53
+ return await ProtocolRepository.create(data);
54
+ }
52
55
  static async update(id, data) {
53
56
  // let iconUri = data.icon;
54
57
  // if (data.iconFile) {
@@ -208,7 +208,7 @@ export declare const v4: Elysia<"/v4", false, {
208
208
  url: string;
209
209
  description: string;
210
210
  id: string;
211
- tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
211
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
212
212
  icon: string;
213
213
  } | null | undefined;
214
214
  aprRecord?: {
@@ -317,7 +317,7 @@ export declare const v4: Elysia<"/v4", false, {
317
317
  url: string;
318
318
  description: string;
319
319
  id: string;
320
- tags: ("AMM" | "ALM" | "DEX" | "LENDING")[];
320
+ tags: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[];
321
321
  icon: string;
322
322
  } | null | undefined;
323
323
  aprRecord?: {
@@ -734,7 +734,7 @@ export declare const v4: Elysia<"/v4", false, {
734
734
  query: {
735
735
  name?: string | undefined;
736
736
  items?: number | undefined;
737
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
737
+ tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
738
738
  page?: number | undefined;
739
739
  };
740
740
  headers: unknown;
@@ -817,6 +817,36 @@ export declare const v4: Elysia<"/v4", false, {
817
817
  };
818
818
  };
819
819
  };
820
+ } & {
821
+ protocols: {
822
+ index: {
823
+ post: {
824
+ body: {
825
+ name: string;
826
+ url: string;
827
+ description: string;
828
+ id: string;
829
+ tags: never[];
830
+ icon: string;
831
+ };
832
+ params: {};
833
+ query: unknown;
834
+ headers: {
835
+ authorization: string;
836
+ };
837
+ response: {
838
+ 200: {
839
+ name: string;
840
+ url: string;
841
+ description: string;
842
+ id: string;
843
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
844
+ icon: string;
845
+ };
846
+ };
847
+ };
848
+ };
849
+ };
820
850
  };
821
851
  } & {
822
852
  v4: {
@@ -29,12 +29,12 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
29
29
  query: {
30
30
  user?: string | undefined;
31
31
  AMMs?: string | string[] | undefined;
32
- "AMMs[0]"?: string | undefined;
33
- "AMMs[]"?: string | string[] | undefined;
34
32
  chainIds?: number | number[] | undefined;
35
- "chainIds[0]"?: number | undefined;
36
- "chainIds[]"?: number | number[] | undefined;
37
33
  onlyLive?: string | undefined;
34
+ "AMMs[]"?: string | string[] | undefined;
35
+ "AMMs[0]"?: string | undefined;
36
+ "chainIds[]"?: number | number[] | undefined;
37
+ "chainIds[0]"?: number | undefined;
38
38
  };
39
39
  headers: unknown;
40
40
  response: {
@@ -20,12 +20,12 @@ export declare const v2: Elysia<"/v2", false, {
20
20
  query: {
21
21
  user?: string | undefined;
22
22
  AMMs?: string | string[] | undefined;
23
- "AMMs[0]"?: string | undefined;
24
- "AMMs[]"?: string | string[] | undefined;
25
23
  chainIds?: number | number[] | undefined;
26
- "chainIds[0]"?: number | undefined;
27
- "chainIds[]"?: number | number[] | undefined;
28
24
  onlyLive?: string | undefined;
25
+ "AMMs[]"?: string | string[] | undefined;
26
+ "AMMs[0]"?: string | undefined;
27
+ "chainIds[]"?: number | number[] | undefined;
28
+ "chainIds[0]"?: number | undefined;
29
29
  };
30
30
  headers: unknown;
31
31
  response: {
@@ -1,9 +1,45 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export declare const query: import("@sinclair/typebox").TObject<{
3
3
  user: import("@sinclair/typebox").TString;
4
4
  }>;
5
5
  export declare const response: import("@sinclair/typebox").TObject<{
6
6
  isBlacklisted: import("@sinclair/typebox").TBoolean;
7
7
  }>;
8
- declare const _default: (app: App) => any;
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
+ blacklist: {
22
+ get: {
23
+ body: unknown;
24
+ params: {};
25
+ query: {
26
+ user: string;
27
+ };
28
+ headers: unknown;
29
+ response: {
30
+ 200: {
31
+ isBlacklisted: boolean;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ }, {
37
+ derive: {};
38
+ resolve: {};
39
+ schema: {};
40
+ }, {
41
+ derive: {};
42
+ resolve: {};
43
+ schema: {};
44
+ }>;
9
45
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export declare const query: import("@sinclair/typebox").TObject<{
3
3
  chainIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
4
4
  types: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>, import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
@@ -7,5 +7,44 @@ export declare const query: import("@sinclair/typebox").TObject<{
7
7
  hideTestTokens: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
8
  }>;
9
9
  export declare const response: import("@sinclair/typebox").TObject<{}>;
10
- declare const _default: (app: App) => any;
10
+ declare const _default: (app: Elysia) => Elysia<"", false, {
11
+ decorator: {};
12
+ store: {};
13
+ derive: {};
14
+ resolve: {};
15
+ }, {
16
+ type: {};
17
+ error: {};
18
+ }, {
19
+ schema: {};
20
+ macro: {};
21
+ macroFn: {};
22
+ }, {
23
+ campaigns: {
24
+ get: {
25
+ body: unknown;
26
+ params: {};
27
+ query: {
28
+ types?: string | number | string[] | number[] | undefined;
29
+ creatorTag?: string | undefined;
30
+ live?: boolean | undefined;
31
+ chainIds?: string | string[] | undefined;
32
+ hideTestTokens?: string | undefined;
33
+ };
34
+ headers: unknown;
35
+ response: {
36
+ [x: string]: any;
37
+ 200: any;
38
+ };
39
+ };
40
+ };
41
+ }, {
42
+ derive: {};
43
+ resolve: {};
44
+ schema: {};
45
+ }, {
46
+ derive: {};
47
+ resolve: {};
48
+ schema: {};
49
+ }>;
11
50
  export default _default;
@@ -1,3 +1,41 @@
1
- import type { App } from "../../index";
2
- declare const _default: (app: App) => any;
1
+ import type Elysia from "elysia";
2
+ declare const _default: (app: Elysia) => Elysia<"", false, {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ type: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ macro: {};
13
+ macroFn: {};
14
+ }, {
15
+ campaignInfo: {
16
+ post: {
17
+ body: {
18
+ [x: string]: string[];
19
+ };
20
+ params: {};
21
+ query: unknown;
22
+ headers: unknown;
23
+ response: {
24
+ 200: {
25
+ [x: string]: Record<string, any>;
26
+ } | {
27
+ error: string;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ }, {
33
+ derive: {};
34
+ resolve: {};
35
+ schema: {};
36
+ }, {
37
+ derive: {};
38
+ resolve: {};
39
+ schema: {};
40
+ }>;
3
41
  export default _default;
@@ -23,8 +23,8 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
23
23
  body: unknown;
24
24
  params: {};
25
25
  query: {
26
- chainIds?: string | string[] | undefined;
27
26
  creatorTag?: string | undefined;
27
+ chainIds?: string | string[] | undefined;
28
28
  byReason?: boolean | undefined;
29
29
  user: string;
30
30
  };
@@ -1,8 +1,45 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export declare const query: import("@sinclair/typebox").TObject<{
3
3
  chainIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>>;
4
4
  user: import("@sinclair/typebox").TString;
5
5
  creatorTag: import("@sinclair/typebox").TString;
6
6
  }>;
7
- declare const _default: (app: App) => any;
7
+ declare const _default: (app: Elysia) => Elysia<"", false, {
8
+ decorator: {};
9
+ store: {};
10
+ derive: {};
11
+ resolve: {};
12
+ }, {
13
+ type: {};
14
+ error: {};
15
+ }, {
16
+ schema: {};
17
+ macro: {};
18
+ macroFn: {};
19
+ }, {
20
+ multiChainPositions: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: {
25
+ chainIds?: string | string[] | undefined;
26
+ user: string;
27
+ creatorTag: string;
28
+ };
29
+ headers: unknown;
30
+ response: {
31
+ [x: string]: any;
32
+ 200: any;
33
+ };
34
+ };
35
+ };
36
+ }, {
37
+ derive: {};
38
+ resolve: {};
39
+ schema: {};
40
+ }, {
41
+ derive: {};
42
+ resolve: {};
43
+ schema: {};
44
+ }>;
8
45
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { App } from "../../index";
1
+ import type Elysia from "elysia";
2
2
  export declare const query: import("@sinclair/typebox").TObject<{
3
3
  campaigns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
4
4
  testTokens: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -22,5 +22,45 @@ export declare const response: import("@sinclair/typebox").TRecord<import("@sinc
22
22
  type: import("@sinclair/typebox").TNumber;
23
23
  }>;
24
24
  }>>;
25
- declare const _default: (app: App) => any;
25
+ declare const _default: (app: Elysia) => Elysia<"", false, {
26
+ decorator: {};
27
+ store: {};
28
+ derive: {};
29
+ resolve: {};
30
+ }, {
31
+ type: {};
32
+ error: {};
33
+ }, {
34
+ schema: {};
35
+ macro: {};
36
+ macroFn: {};
37
+ }, {
38
+ opportunity: {
39
+ get: {
40
+ body: unknown;
41
+ params: {};
42
+ query: {
43
+ type?: undefined;
44
+ tag?: string | undefined;
45
+ chainId?: undefined;
46
+ mainParameter?: string | undefined;
47
+ action?: undefined;
48
+ campaigns?: boolean | undefined;
49
+ testTokens?: boolean | undefined;
50
+ };
51
+ headers: unknown;
52
+ response: {
53
+ 200: {};
54
+ };
55
+ };
56
+ };
57
+ }, {
58
+ derive: {};
59
+ resolve: {};
60
+ schema: {};
61
+ }, {
62
+ derive: {};
63
+ resolve: {};
64
+ schema: {};
65
+ }>;
26
66
  export default _default;