@merkl/api 0.10.219 → 0.10.221

Sign up to get free protection for your applications and to get access to all the features.
@@ -767,7 +767,7 @@ declare const eden: {
767
767
  get: (options: {
768
768
  headers?: Record<string, unknown> | undefined;
769
769
  query: {
770
- name?: string | undefined;
770
+ id?: string | undefined;
771
771
  items?: number | undefined;
772
772
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
773
773
  page?: number | undefined;
@@ -3593,7 +3593,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3593
3593
  body: unknown;
3594
3594
  params: {};
3595
3595
  query: {
3596
- name?: string | undefined;
3596
+ id?: string | undefined;
3597
3597
  items?: number | undefined;
3598
3598
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
3599
3599
  page?: number | undefined;
@@ -6951,7 +6951,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6951
6951
  get: (options: {
6952
6952
  headers?: Record<string, unknown> | undefined;
6953
6953
  query: {
6954
- name?: string | undefined;
6954
+ id?: string | undefined;
6955
6955
  items?: number | undefined;
6956
6956
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
6957
6957
  page?: number | undefined;
@@ -854,7 +854,7 @@ declare const app: Elysia<"", false, {
854
854
  body: unknown;
855
855
  params: {};
856
856
  query: {
857
- name?: string | undefined;
857
+ id?: string | undefined;
858
858
  items?: number | undefined;
859
859
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
860
860
  page?: number | undefined;
@@ -26,8 +26,12 @@ export async function ERC20DynamicData(chainId, campaigns) {
26
26
  ].includes(campaign.campaignId)) {
27
27
  campaign.campaignParameters.url = "https://moonwell.fi/markets/supply/base/usdc";
28
28
  }
29
- if (campaign.campaignId === "0xb656fa534c487d3d7c94a5ac2c265acde0d5b7a7c562548c58cfcbf4f7f552f4") {
30
- campaign.campaignParameters.url = "https://app.indexcoop.com/swap/eth/hyeth";
29
+ if ([
30
+ "0x2d3ae0a97c6f73ad37c1a9cc5e360f72b206ee61d96952fe772b3ab02f8a5713",
31
+ "0x653ec2bd4aa79b74a2d6c3240ebe3bc4afb679ea6963c2c8afceef69c7c914f9",
32
+ ].includes(campaign.campaignId)) {
33
+ campaign.campaignParameters.url =
34
+ "https://app.zerolend.xyz/reserve-overview/?underlyingAsset=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&marketName=proto_mainnet_rwa_v3&utm_source=Merkle&utm_medium=Website&utm_campaign=MerklMagic30";
31
35
  }
32
36
  callsRounds1.push({
33
37
  allowFailure: true,
@@ -18,7 +18,7 @@ export declare const ProtocolController: Elysia<"/protocols", false, {
18
18
  body: unknown;
19
19
  params: {};
20
20
  query: {
21
- name?: string | undefined;
21
+ id?: string | undefined;
22
22
  items?: number | undefined;
23
23
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
24
24
  page?: number | undefined;
@@ -22,7 +22,7 @@ export declare const ProtocolResourceDto: import("@sinclair/typebox").TObject<{
22
22
  url: import("@sinclair/typebox").TString;
23
23
  }>;
24
24
  export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
25
- name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
25
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
26
  tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
27
27
  AMM: "AMM";
28
28
  ALM: "ALM";
@@ -71,7 +71,7 @@ export const ProtocolResourceDto = t.Object({
71
71
  url: t.String(),
72
72
  });
73
73
  export const GetProtocolsQueryDto = t.Object({
74
- name: t.Optional(t.String({ description: "Filter results by name. Useful for searching a protocol to verify its integration" })),
74
+ id: t.Optional(t.String({ description: "Filter results by name. Useful for searching a protocol to verify its integration" })),
75
75
  tags: t.Optional(t.Array(t.Enum(ProtocolTag, { description: "Filter by protocol tag" }))),
76
76
  page: t.Optional(t.Numeric({ description: "0-indexed page number", default: 0 })),
77
77
  items: t.Optional(t.Numeric({ description: "Number of items returned by page", default: 20 })), // items per page
@@ -22,7 +22,7 @@ export class ProtocolRepository {
22
22
  static #transformQueryToPrismaFilters(query) {
23
23
  return {
24
24
  where: {
25
- name: query.name ? { contains: query.name, mode: "insensitive" } : undefined,
25
+ id: query.id ? { contains: query.id, mode: "insensitive" } : undefined,
26
26
  tags: query.tags ? { hasEvery: query.tags } : undefined,
27
27
  // id: typeof query.id === "string" ? query.id : !!query.id ? { in: query.id } : undefined,
28
28
  },
@@ -732,7 +732,7 @@ export declare const v4: Elysia<"/v4", false, {
732
732
  body: unknown;
733
733
  params: {};
734
734
  query: {
735
- name?: string | undefined;
735
+ id?: string | undefined;
736
736
  items?: number | undefined;
737
737
  tags?: ("AMM" | "ALM" | "DEX" | "LENDING" | "PERPETUAL")[] | undefined;
738
738
  page?: number | undefined;