@merkl/api 0.10.132 → 0.10.134

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 (42) hide show
  1. package/dist/src/constants.d.ts +1 -0
  2. package/dist/src/constants.js +1 -0
  3. package/dist/src/eden/index.d.ts +98 -25
  4. package/dist/src/index.d.ts +36 -7
  5. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +4 -8
  6. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -2
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +11 -3
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.d.ts +50 -0
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MaverickBPProcessor.js +75 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +2 -0
  12. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -0
  13. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +32 -0
  14. package/dist/src/modules/v4/opportunity/opportunity.controller.js +7 -2
  15. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +4 -0
  16. package/dist/src/modules/v4/opportunity/opportunity.model.js +3 -0
  17. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +3 -0
  18. package/dist/src/modules/v4/opportunity/opportunity.repository.js +10 -0
  19. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +4 -0
  20. package/dist/src/modules/v4/opportunity/opportunity.service.js +3 -0
  21. package/dist/src/modules/v4/participate/participate.controller.d.ts +1 -0
  22. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +3 -7
  23. package/dist/src/modules/v4/protocol/protocol.controller.js +4 -9
  24. package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
  25. package/dist/src/modules/v4/protocol/protocol.model.js +4 -1
  26. package/dist/src/modules/v4/protocol/protocol.service.js +4 -3
  27. package/dist/src/modules/v4/router.d.ts +36 -7
  28. package/dist/src/routes/v3/ERC20Campaigns.d.ts +36 -7
  29. package/dist/src/routes/v3/blacklist.d.ts +36 -7
  30. package/dist/src/routes/v3/campaigns.d.ts +36 -7
  31. package/dist/src/routes/v3/campaignsInfo.d.ts +36 -7
  32. package/dist/src/routes/v3/multiChainPositions.d.ts +36 -7
  33. package/dist/src/routes/v3/opportunity.d.ts +36 -7
  34. package/dist/src/routes/v3/positions.d.ts +36 -7
  35. package/dist/src/routes/v3/rewards.d.ts +36 -7
  36. package/dist/src/routes/v3/updates.d.ts +36 -7
  37. package/dist/src/routes/v3/userRewards.d.ts +36 -7
  38. package/dist/src/utils/decodeCalls.js +3 -1
  39. package/dist/src/utils/encodeCalls.js +7 -1
  40. package/dist/src/utils/generateCardName.js +2 -0
  41. package/dist/tsconfig.package.tsbuildinfo +1 -1
  42. package/package.json +2 -1
@@ -1,4 +1,5 @@
1
1
  import { type CreateCampaignModel } from "../campaign";
2
+ import { Prisma } from "../../../../database/api/.generated";
2
3
  import type { ChainId } from "@sdk";
3
4
  import type { CreateOpportunityModel, GetOpportunitiesQueryEntity, LightOpportunityFromDB, OpportunityMetadata, OpportunityUnique } from "./opportunity.model";
4
5
  import { OpportunityRepository } from "./opportunity.repository";
@@ -438,4 +439,7 @@ export declare abstract class OpportunityService {
438
439
  apr: number;
439
440
  dailyRewards: number;
440
441
  };
442
+ static aggregate(query: GetOpportunitiesQueryEntity, field: keyof Prisma.OpportunitySumAggregateInputType): Promise<{
443
+ sum: never;
444
+ }>;
441
445
  }
@@ -177,4 +177,7 @@ export class OpportunityService {
177
177
  protocol: MainProtocol ?? undefined,
178
178
  };
179
179
  }
180
+ static aggregate(query, field) {
181
+ return OpportunityRepository.aggregateSum(field, query);
182
+ }
180
183
  }
@@ -44,6 +44,7 @@ export declare const ParticipateController: Elysia<"/participate", false, {
44
44
  name: string;
45
45
  url: string;
46
46
  description: string;
47
+ id: string;
47
48
  tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
48
49
  icon: string;
49
50
  } & {})[] | null;
@@ -26,6 +26,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
26
26
  name: string;
27
27
  url: string;
28
28
  description: string;
29
+ id: string;
29
30
  tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
30
31
  icon: string;
31
32
  } | null;
@@ -52,6 +53,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
52
53
  name: string;
53
54
  url: string;
54
55
  description: string;
56
+ id: string;
55
57
  tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
56
58
  icon: string;
57
59
  } & {})[] | null;
@@ -65,13 +67,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
65
67
  get: {
66
68
  body: unknown;
67
69
  params: {};
68
- query: {
69
- name?: string | undefined;
70
- id?: string[] | undefined;
71
- items?: number | undefined;
72
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
73
- page?: number | undefined;
74
- };
70
+ query: unknown;
75
71
  headers: unknown;
76
72
  response: {
77
73
  200: number;
@@ -3,7 +3,7 @@ import { GetProtocolsQueryDto } from "./protocol.model";
3
3
  import { ProtocolService } from "./protocol.service";
4
4
  // ─── Protocols Controller ────────────────────────────────────────────────────
5
5
  export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { tags: ["Protocols"] } })
6
- // ─── Get A Protocol By Its Id ────────────────────────────────────────
6
+ // ─── Get A Protocol By Its Id/Name ────────────────────────────────────────
7
7
  .get("/:id", async ({ params }) => {
8
8
  const fromId = await ProtocolService.getFromId(params.id);
9
9
  if (fromId)
@@ -11,13 +11,8 @@ export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { t
11
11
  return await ProtocolService.getFromName(params.id);
12
12
  })
13
13
  // ─── Get Many Protocols ──────────────────────────────────────────────
14
- .get("/", async ({ query }) => {
15
- return await ProtocolService.findMany(query);
16
- }, {
14
+ .get("/", async ({ query }) => await ProtocolService.findMany(query), {
17
15
  query: GetProtocolsQueryDto,
18
16
  })
19
- .get("/count", async ({ query }) => {
20
- return await ProtocolService.countMany(query);
21
- }, {
22
- query: GetProtocolsQueryDto,
23
- });
17
+ // ─── Count Protocols ──────────────────────────────────────────────
18
+ .get("/count", async ({ query }) => await ProtocolService.countMany(query));
@@ -4,11 +4,11 @@ import type { Resource } from "../prisma";
4
4
  * @description Target description of rewards campaigns
5
5
  * @see {@link Resource}
6
6
  */
7
- export type Protocol = Resource<"Protocol", "id">;
7
+ export type Protocol = Resource<"Protocol">;
8
8
  declare const protocolTypes: readonly ["arthswap", "baseswap", "camelot", "crust", "fenix", "horiza", "izumi", "kim", "pancakeswap-v3", "quickswap-algebra", "quickswap-uni", "ramses", "retro", "stryke", "stryke-pcs", "stryke-sushi", "sushiswap-v3", "swapr", "thruster", "uniswap-v3", "voltage", "zero", "koi", "supswap-v3", "uniswap-v2", "velodrome", "aerodrome", "balancer", "curve", "aura", "akron", "beefy", "dragonswap", "poolside", "koi", "radiant", "aave", "euler", "gearbox", "compound", "sturdy", "frax", "ionic", "moonwell", "fluid", "silo", "morpho", "coumpound", "dolomite", "badger", "ajna", "layerbank"];
9
9
  export type ProtocolId = (typeof protocolTypes)[number];
10
10
  export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
11
- id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
11
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>, string[]>>;
12
12
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
13
  tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
14
14
  AMM: "AMM";
@@ -59,7 +59,10 @@ const protocolTypes = [
59
59
  ];
60
60
  // ─── DTOs ────────────────────────────────────────────────────────────────────
61
61
  export const GetProtocolsQueryDto = t.Object({
62
- id: t.Optional(t.Array(t.String())),
62
+ id: t.Optional(t
63
+ .Transform(t.Union([t.String(), t.Array(t.String())]))
64
+ .Decode(value => (typeof value === "string" ? value.split(",") : value))
65
+ .Encode(value => [...value])),
63
66
  name: t.Optional(t.String()),
64
67
  tags: t.Optional(t.Array(t.Enum(ProtocolTag))),
65
68
  page: t.Optional(t.Numeric()),
@@ -63,14 +63,15 @@ export class ProtocolService {
63
63
  }[_type];
64
64
  }
65
65
  static async findMany(query) {
66
- return await ProtocolRepository.findMany(query);
66
+ return ProtocolRepository.findMany(query);
67
67
  }
68
68
  static async countMany(query) {
69
- return await ProtocolRepository.countMany(query);
69
+ return ProtocolRepository.countMany(query);
70
70
  }
71
71
  static async getFromId(id) {
72
- return await ProtocolRepository.read(id);
72
+ return ProtocolRepository.read(id);
73
73
  }
74
+ // Todo : Should be a findfirst by name here
74
75
  static async getFromName(name) {
75
76
  return (await ProtocolRepository.findManyByName(name))[0];
76
77
  }
@@ -417,6 +417,38 @@ export declare const v4: Elysia<"/v4", false, {
417
417
  };
418
418
  };
419
419
  };
420
+ } & {
421
+ opportunities: {
422
+ aggregate: {
423
+ ":field": {
424
+ get: {
425
+ body: unknown;
426
+ params: {
427
+ field: never;
428
+ };
429
+ query: {
430
+ sort?: undefined;
431
+ name?: string | undefined;
432
+ tokens?: string | undefined;
433
+ status?: string | undefined;
434
+ items?: number | undefined;
435
+ tags?: string | undefined;
436
+ chainId?: string | undefined;
437
+ page?: number | undefined;
438
+ action?: string | undefined;
439
+ mainProtocolId?: string | undefined;
440
+ order?: undefined;
441
+ };
442
+ headers: unknown;
443
+ response: {
444
+ 200: {
445
+ sum: File;
446
+ };
447
+ };
448
+ };
449
+ };
450
+ };
451
+ };
420
452
  };
421
453
  } & {
422
454
  v4: {
@@ -621,6 +653,7 @@ export declare const v4: Elysia<"/v4", false, {
621
653
  name: string;
622
654
  url: string;
623
655
  description: string;
656
+ id: string;
624
657
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
625
658
  icon: string;
626
659
  } | null;
@@ -647,6 +680,7 @@ export declare const v4: Elysia<"/v4", false, {
647
680
  name: string;
648
681
  url: string;
649
682
  description: string;
683
+ id: string;
650
684
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
651
685
  icon: string;
652
686
  } & {})[] | null;
@@ -660,13 +694,7 @@ export declare const v4: Elysia<"/v4", false, {
660
694
  get: {
661
695
  body: unknown;
662
696
  params: {};
663
- query: {
664
- name?: string | undefined;
665
- id?: string[] | undefined;
666
- items?: number | undefined;
667
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
668
- page?: number | undefined;
669
- };
697
+ query: unknown;
670
698
  headers: unknown;
671
699
  response: {
672
700
  200: number;
@@ -1746,6 +1774,7 @@ export declare const v4: Elysia<"/v4", false, {
1746
1774
  name: string;
1747
1775
  url: string;
1748
1776
  description: string;
1777
+ id: string;
1749
1778
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1750
1779
  icon: string;
1751
1780
  } & {})[] | null;
@@ -443,6 +443,38 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
443
443
  };
444
444
  };
445
445
  };
446
+ } & {
447
+ opportunities: {
448
+ aggregate: {
449
+ ":field": {
450
+ get: {
451
+ body: unknown;
452
+ params: {
453
+ field: never;
454
+ };
455
+ query: {
456
+ sort?: undefined;
457
+ name?: string | undefined;
458
+ tokens?: string | undefined;
459
+ status?: string | undefined;
460
+ items?: number | undefined;
461
+ tags?: string | undefined;
462
+ chainId?: string | undefined;
463
+ page?: number | undefined;
464
+ action?: string | undefined;
465
+ mainProtocolId?: string | undefined;
466
+ order?: undefined;
467
+ };
468
+ headers: unknown;
469
+ response: {
470
+ 200: {
471
+ sum: File;
472
+ };
473
+ };
474
+ };
475
+ };
476
+ };
477
+ };
446
478
  };
447
479
  } & {
448
480
  v4: {
@@ -647,6 +679,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
647
679
  name: string;
648
680
  url: string;
649
681
  description: string;
682
+ id: string;
650
683
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
651
684
  icon: string;
652
685
  } | null;
@@ -673,6 +706,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
673
706
  name: string;
674
707
  url: string;
675
708
  description: string;
709
+ id: string;
676
710
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
677
711
  icon: string;
678
712
  } & {})[] | null;
@@ -686,13 +720,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
686
720
  get: {
687
721
  body: unknown;
688
722
  params: {};
689
- query: {
690
- name?: string | undefined;
691
- id?: string[] | undefined;
692
- items?: number | undefined;
693
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
694
- page?: number | undefined;
695
- };
723
+ query: unknown;
696
724
  headers: unknown;
697
725
  response: {
698
726
  200: number;
@@ -1772,6 +1800,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1772
1800
  name: string;
1773
1801
  url: string;
1774
1802
  description: string;
1803
+ id: string;
1775
1804
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1776
1805
  icon: string;
1777
1806
  } & {})[] | null;
@@ -441,6 +441,38 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
441
441
  };
442
442
  };
443
443
  };
444
+ } & {
445
+ opportunities: {
446
+ aggregate: {
447
+ ":field": {
448
+ get: {
449
+ body: unknown;
450
+ params: {
451
+ field: never;
452
+ };
453
+ query: {
454
+ sort?: undefined;
455
+ name?: string | undefined;
456
+ tokens?: string | undefined;
457
+ status?: string | undefined;
458
+ items?: number | undefined;
459
+ tags?: string | undefined;
460
+ chainId?: string | undefined;
461
+ page?: number | undefined;
462
+ action?: string | undefined;
463
+ mainProtocolId?: string | undefined;
464
+ order?: undefined;
465
+ };
466
+ headers: unknown;
467
+ response: {
468
+ 200: {
469
+ sum: File;
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
475
+ };
444
476
  };
445
477
  } & {
446
478
  v4: {
@@ -645,6 +677,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
645
677
  name: string;
646
678
  url: string;
647
679
  description: string;
680
+ id: string;
648
681
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
649
682
  icon: string;
650
683
  } | null;
@@ -671,6 +704,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
671
704
  name: string;
672
705
  url: string;
673
706
  description: string;
707
+ id: string;
674
708
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
675
709
  icon: string;
676
710
  } & {})[] | null;
@@ -684,13 +718,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
684
718
  get: {
685
719
  body: unknown;
686
720
  params: {};
687
- query: {
688
- name?: string | undefined;
689
- id?: string[] | undefined;
690
- items?: number | undefined;
691
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
692
- page?: number | undefined;
693
- };
721
+ query: unknown;
694
722
  headers: unknown;
695
723
  response: {
696
724
  200: number;
@@ -1770,6 +1798,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1770
1798
  name: string;
1771
1799
  url: string;
1772
1800
  description: string;
1801
+ id: string;
1773
1802
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1774
1803
  icon: string;
1775
1804
  } & {})[] | null;
@@ -444,6 +444,38 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
444
444
  };
445
445
  };
446
446
  };
447
+ } & {
448
+ opportunities: {
449
+ aggregate: {
450
+ ":field": {
451
+ get: {
452
+ body: unknown;
453
+ params: {
454
+ field: never;
455
+ };
456
+ query: {
457
+ sort?: undefined;
458
+ name?: string | undefined;
459
+ tokens?: string | undefined;
460
+ status?: string | undefined;
461
+ items?: number | undefined;
462
+ tags?: string | undefined;
463
+ chainId?: string | undefined;
464
+ page?: number | undefined;
465
+ action?: string | undefined;
466
+ mainProtocolId?: string | undefined;
467
+ order?: undefined;
468
+ };
469
+ headers: unknown;
470
+ response: {
471
+ 200: {
472
+ sum: File;
473
+ };
474
+ };
475
+ };
476
+ };
477
+ };
478
+ };
447
479
  };
448
480
  } & {
449
481
  v4: {
@@ -648,6 +680,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
648
680
  name: string;
649
681
  url: string;
650
682
  description: string;
683
+ id: string;
651
684
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
652
685
  icon: string;
653
686
  } | null;
@@ -674,6 +707,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
674
707
  name: string;
675
708
  url: string;
676
709
  description: string;
710
+ id: string;
677
711
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
678
712
  icon: string;
679
713
  } & {})[] | null;
@@ -687,13 +721,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
687
721
  get: {
688
722
  body: unknown;
689
723
  params: {};
690
- query: {
691
- name?: string | undefined;
692
- id?: string[] | undefined;
693
- items?: number | undefined;
694
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
695
- page?: number | undefined;
696
- };
724
+ query: unknown;
697
725
  headers: unknown;
698
726
  response: {
699
727
  200: number;
@@ -1773,6 +1801,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1773
1801
  name: string;
1774
1802
  url: string;
1775
1803
  description: string;
1804
+ id: string;
1776
1805
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1777
1806
  icon: string;
1778
1807
  } & {})[] | null;
@@ -435,6 +435,38 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
435
435
  };
436
436
  };
437
437
  };
438
+ } & {
439
+ opportunities: {
440
+ aggregate: {
441
+ ":field": {
442
+ get: {
443
+ body: unknown;
444
+ params: {
445
+ field: never;
446
+ };
447
+ query: {
448
+ sort?: undefined;
449
+ name?: string | undefined;
450
+ tokens?: string | undefined;
451
+ status?: string | undefined;
452
+ items?: number | undefined;
453
+ tags?: string | undefined;
454
+ chainId?: string | undefined;
455
+ page?: number | undefined;
456
+ action?: string | undefined;
457
+ mainProtocolId?: string | undefined;
458
+ order?: undefined;
459
+ };
460
+ headers: unknown;
461
+ response: {
462
+ 200: {
463
+ sum: File;
464
+ };
465
+ };
466
+ };
467
+ };
468
+ };
469
+ };
438
470
  };
439
471
  } & {
440
472
  v4: {
@@ -639,6 +671,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
639
671
  name: string;
640
672
  url: string;
641
673
  description: string;
674
+ id: string;
642
675
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
643
676
  icon: string;
644
677
  } | null;
@@ -665,6 +698,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
665
698
  name: string;
666
699
  url: string;
667
700
  description: string;
701
+ id: string;
668
702
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
669
703
  icon: string;
670
704
  } & {})[] | null;
@@ -678,13 +712,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
678
712
  get: {
679
713
  body: unknown;
680
714
  params: {};
681
- query: {
682
- name?: string | undefined;
683
- id?: string[] | undefined;
684
- items?: number | undefined;
685
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
686
- page?: number | undefined;
687
- };
715
+ query: unknown;
688
716
  headers: unknown;
689
717
  response: {
690
718
  200: number;
@@ -1764,6 +1792,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1764
1792
  name: string;
1765
1793
  url: string;
1766
1794
  description: string;
1795
+ id: string;
1767
1796
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1768
1797
  icon: string;
1769
1798
  } & {})[] | null;
@@ -440,6 +440,38 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
440
440
  };
441
441
  };
442
442
  };
443
+ } & {
444
+ opportunities: {
445
+ aggregate: {
446
+ ":field": {
447
+ get: {
448
+ body: unknown;
449
+ params: {
450
+ field: never;
451
+ };
452
+ query: {
453
+ sort?: undefined;
454
+ name?: string | undefined;
455
+ tokens?: string | undefined;
456
+ status?: string | undefined;
457
+ items?: number | undefined;
458
+ tags?: string | undefined;
459
+ chainId?: string | undefined;
460
+ page?: number | undefined;
461
+ action?: string | undefined;
462
+ mainProtocolId?: string | undefined;
463
+ order?: undefined;
464
+ };
465
+ headers: unknown;
466
+ response: {
467
+ 200: {
468
+ sum: File;
469
+ };
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
443
475
  };
444
476
  } & {
445
477
  v4: {
@@ -644,6 +676,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
644
676
  name: string;
645
677
  url: string;
646
678
  description: string;
679
+ id: string;
647
680
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
648
681
  icon: string;
649
682
  } | null;
@@ -670,6 +703,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
670
703
  name: string;
671
704
  url: string;
672
705
  description: string;
706
+ id: string;
673
707
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
674
708
  icon: string;
675
709
  } & {})[] | null;
@@ -683,13 +717,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
683
717
  get: {
684
718
  body: unknown;
685
719
  params: {};
686
- query: {
687
- name?: string | undefined;
688
- id?: string[] | undefined;
689
- items?: number | undefined;
690
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
691
- page?: number | undefined;
692
- };
720
+ query: unknown;
693
721
  headers: unknown;
694
722
  response: {
695
723
  200: number;
@@ -1769,6 +1797,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1769
1797
  name: string;
1770
1798
  url: string;
1771
1799
  description: string;
1800
+ id: string;
1772
1801
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1773
1802
  icon: string;
1774
1803
  } & {})[] | null;