@merkl/api 0.10.209 → 0.10.210

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/database/api/.generated/edge.js +6 -4
  2. package/dist/database/api/.generated/index-browser.js +3 -1
  3. package/dist/database/api/.generated/index.d.ts +3 -1
  4. package/dist/database/api/.generated/index.js +6 -4
  5. package/dist/database/api/.generated/package.json +1 -1
  6. package/dist/database/api/.generated/schema.prisma +2 -0
  7. package/dist/database/api/.generated/wasm.js +3 -1
  8. package/dist/database/api/seeder/resources/protocol.d.ts +12 -0
  9. package/dist/database/api/seeder/resources/protocol.js +2 -0
  10. package/dist/src/eden/index.d.ts +9 -9
  11. package/dist/src/entities/opportunity.js +36 -1
  12. package/dist/src/index.d.ts +3 -3
  13. package/dist/src/libs/campaigns/campaignTypes/EigenLayerDynamicData.d.ts +3 -0
  14. package/dist/src/libs/campaigns/campaignTypes/EigenLayerDynamicData.js +67 -0
  15. package/dist/src/libs/campaigns/campaignsDynamicData.js +4 -0
  16. package/dist/src/libs/positions/EigenLayer/index.d.ts +6 -0
  17. package/dist/src/libs/positions/EigenLayer/index.js +53 -0
  18. package/dist/src/libs/positions/ajna/index.d.ts +4 -39
  19. package/dist/src/libs/positions/ajna/index.js +2 -2
  20. package/dist/src/libs/positions/badger/index.d.ts +3 -24
  21. package/dist/src/libs/positions/badger/index.js +1 -1
  22. package/dist/src/libs/positions/index.js +4 -0
  23. package/dist/src/libs/positions/morpho/index.d.ts +4 -38
  24. package/dist/src/libs/positions/prepareFetch.js +29 -1
  25. package/dist/src/libs/positions/types.d.ts +55 -0
  26. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -2
  27. package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
  28. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1 -1
  29. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  30. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  31. package/dist/src/modules/v4/protocol/protocol.model.js +2 -0
  32. package/dist/src/modules/v4/router.d.ts +3 -3
  33. package/dist/tsconfig.package.tsbuildinfo +1 -1
  34. package/package.json +1 -1
@@ -5,7 +5,7 @@ import type { Resource } from "../prisma";
5
5
  * @see {@link Resource}
6
6
  */
7
7
  export type Protocol = Resource<"Protocol">;
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", "zkswap", "thirdtrade", "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"];
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", "zkswap", "thirdtrade", "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", "ion", "eigenlayer"];
9
9
  export type ProtocolId = (typeof protocolTypes)[number];
10
10
  export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
11
11
  id: import("@sinclair/typebox").TString;
@@ -58,6 +58,8 @@ const protocolTypes = [
58
58
  "badger",
59
59
  "ajna",
60
60
  "layerbank",
61
+ "ion",
62
+ "eigenlayer",
61
63
  ];
62
64
  // ─── DTOs ────────────────────────────────────────────────────────────────────
63
65
  export const ProtocolResourceDto = t.Object({
@@ -26,7 +26,7 @@ export declare const v4: Elysia<"/v4", false, {
26
26
  post: {
27
27
  body: {
28
28
  name?: string | undefined;
29
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
29
+ type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER";
30
30
  tokens: {
31
31
  chainId: number;
32
32
  address: string;
@@ -573,7 +573,7 @@ export declare const v4: Elysia<"/v4", false, {
573
573
  body: unknown;
574
574
  params: {};
575
575
  query: {
576
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
576
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
577
577
  items?: number | undefined;
578
578
  subType?: number | undefined;
579
579
  page?: number | undefined;
@@ -645,7 +645,7 @@ export declare const v4: Elysia<"/v4", false, {
645
645
  body: unknown;
646
646
  params: {};
647
647
  query: {
648
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
648
+ type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | undefined;
649
649
  items?: number | undefined;
650
650
  subType?: number | undefined;
651
651
  page?: number | undefined;