@merkl/api 0.17.41 → 0.17.42

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.
@@ -3043,7 +3043,7 @@ declare const eden: {
3043
3043
  };
3044
3044
  fetch?: RequestInit | undefined;
3045
3045
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3046
- 200: (import("../modules/v4/claims").ClaimModel & {
3046
+ 200: (import("../modules/v4/claims/claims.model").ClaimModel & {
3047
3047
  token?: import("../modules/v4/token/token.model").Token["model"];
3048
3048
  })[];
3049
3049
  }>>;
@@ -6460,7 +6460,7 @@ declare const eden: {
6460
6460
  };
6461
6461
  fetch?: RequestInit | undefined;
6462
6462
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6463
- 200: (import("../modules/v4/claims").ClaimModel & {
6463
+ 200: (import("../modules/v4/claims/claims.model").ClaimModel & {
6464
6464
  token?: import("../modules/v4/token/token.model").Token["model"];
6465
6465
  })[];
6466
6466
  }>>;
@@ -6971,8 +6971,8 @@ declare const eden: {
6971
6971
  query: {
6972
6972
  types?: string | number | string[] | number[] | undefined;
6973
6973
  chainIds?: string | string[] | undefined;
6974
- creatorTag?: string | undefined;
6975
6974
  live?: boolean | undefined;
6975
+ creatorTag?: string | undefined;
6976
6976
  hideTestTokens?: string | undefined;
6977
6977
  };
6978
6978
  fetch?: RequestInit | undefined;
@@ -11194,7 +11194,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11194
11194
  };
11195
11195
  headers: unknown;
11196
11196
  response: {
11197
- 200: (import("../modules/v4/claims").ClaimModel & {
11197
+ 200: (import("../modules/v4/claims/claims.model").ClaimModel & {
11198
11198
  token?: import("../modules/v4/token/token.model").Token["model"];
11199
11199
  })[];
11200
11200
  };
@@ -11850,8 +11850,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11850
11850
  query: {
11851
11851
  types?: string | number | string[] | number[] | undefined;
11852
11852
  chainIds?: string | string[] | undefined;
11853
- creatorTag?: string | undefined;
11854
11853
  live?: boolean | undefined;
11854
+ creatorTag?: string | undefined;
11855
11855
  hideTestTokens?: string | undefined;
11856
11856
  };
11857
11857
  headers: unknown;
@@ -15577,7 +15577,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15577
15577
  };
15578
15578
  fetch?: RequestInit | undefined;
15579
15579
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15580
- 200: (import("../modules/v4/claims").ClaimModel & {
15580
+ 200: (import("../modules/v4/claims/claims.model").ClaimModel & {
15581
15581
  token?: import("../modules/v4/token/token.model").Token["model"];
15582
15582
  })[];
15583
15583
  }>>;
@@ -18994,7 +18994,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18994
18994
  };
18995
18995
  fetch?: RequestInit | undefined;
18996
18996
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18997
- 200: (import("../modules/v4/claims").ClaimModel & {
18997
+ 200: (import("../modules/v4/claims/claims.model").ClaimModel & {
18998
18998
  token?: import("../modules/v4/token/token.model").Token["model"];
18999
18999
  })[];
19000
19000
  }>>;
@@ -19505,8 +19505,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19505
19505
  query: {
19506
19506
  types?: string | number | string[] | number[] | undefined;
19507
19507
  chainIds?: string | string[] | undefined;
19508
- creatorTag?: string | undefined;
19509
19508
  live?: boolean | undefined;
19509
+ creatorTag?: string | undefined;
19510
19510
  hideTestTokens?: string | undefined;
19511
19511
  };
19512
19512
  fetch?: RequestInit | undefined;
@@ -1,5 +1,5 @@
1
1
  import { type Campaign as CampaignEnum, type CampaignParameters, type ChainId } from "@sdk";
2
- import type { ProtocolId } from "../../../modules/v4/protocol";
2
+ import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
3
3
  import type { MetadataBuilder } from "../interface";
4
4
  type campaignType = CampaignEnum.COMPOUND;
5
5
  export declare class CompoundMetadata implements MetadataBuilder<campaignType> {
@@ -1,7 +1,7 @@
1
1
  import { log } from "../../../utils/logger";
2
2
  import { Campaign as CampaignEnum } from "@sdk";
3
3
  import { CampaignService } from "../../../modules/v4/campaign";
4
- import { ProtocolService } from "../../../modules/v4/protocol";
4
+ import { ProtocolService } from "../../../modules/v4/protocol/protocol.service";
5
5
  export class Erc20Metadata {
6
6
  async getMetadata(computeChainId, params, _subType, rewardTokenAddress, distributionChainId, campaignId) {
7
7
  let action = "HOLD";
@@ -3691,7 +3691,7 @@ declare const app: Elysia<"", false, {
3691
3691
  };
3692
3692
  headers: unknown;
3693
3693
  response: {
3694
- 200: (import("./modules/v4/claims").ClaimModel & {
3694
+ 200: (import("./modules/v4/claims/claims.model").ClaimModel & {
3695
3695
  token?: import("./modules/v4/token/token.model").Token["model"];
3696
3696
  })[];
3697
3697
  };
@@ -4347,8 +4347,8 @@ declare const app: Elysia<"", false, {
4347
4347
  query: {
4348
4348
  types?: string | number | string[] | number[] | undefined;
4349
4349
  chainIds?: string | string[] | undefined;
4350
- creatorTag?: string | undefined;
4351
4350
  live?: boolean | undefined;
4351
+ creatorTag?: string | undefined;
4352
4352
  hideTestTokens?: string | undefined;
4353
4353
  };
4354
4354
  headers: unknown;
@@ -1,4 +1,4 @@
1
- import { UserService } from "../../modules/v4/user";
1
+ import { UserService } from "../../modules/v4/user/user.service";
2
2
  import { Campaign } from "@sdk";
3
3
  import { AjnaDynamicData } from "./campaignTypes/AjnaDynamicData";
4
4
  import { AmbientDynamicData } from "./campaignTypes/AmbientDynamicData";
@@ -1,7 +1,7 @@
1
1
  import { throwOnInvalidRequiredAddress, throwOnUnsupportedChainId } from "../../../utils/throw";
2
2
  import Elysia from "elysia";
3
3
  import { ChainArrayOptionalDto } from "../chain/chain.model";
4
- import { UserUniqueDto } from "../user";
4
+ import { UserUniqueDto } from "../user/user.model";
5
5
  import { ClaimService } from "./claims.service";
6
6
  // ─── Claim Controller ───────────────────────────────────────────────────────
7
7
  export const ClaimController = new Elysia({ prefix: "/claims", detail: { tags: ["Claims"] } })
@@ -1,6 +1,6 @@
1
1
  import type { ChainId } from "@sdk";
2
2
  import type { Token } from "../token/token.model";
3
- import type { UserUniqueModel } from "../user";
3
+ import type { UserUniqueModel } from "../user/user.model";
4
4
  import type { ClaimModel } from "./claims.model";
5
5
  export declare abstract class ClaimService {
6
6
  static getHistoricalClaims(params: UserUniqueModel, chainFilter?: ChainId[]): Promise<(ClaimModel & {
@@ -1,5 +1,5 @@
1
1
  import type { GetInteractionProtocolsQuery, InteractionAction, InteractionTarget, Router } from "../interaction/interaction.model";
2
- import { type ProtocolId } from "../protocol";
2
+ import type { ProtocolId } from "../protocol/protocol.model";
3
3
  import { type EnsoApi, type EnsoSlug } from "./enso.model";
4
4
  export declare abstract class EnsoService {
5
5
  #private;
@@ -1,4 +1,4 @@
1
- import { ProtocolService } from "../protocol";
1
+ import { ProtocolService } from "../protocol/protocol.service";
2
2
  import { TokenService } from "../token/token.service";
3
3
  import { slugToProtocolId } from "./enso.model";
4
4
  const ENSO = "https://api.enso.finance/api";
@@ -1,8 +1,8 @@
1
+ import { ProtocolService } from "../protocol/protocol.service";
1
2
  import { apiDbClient } from "../../../utils/prisma";
2
3
  import { Status } from "../../../../database/api/.generated";
3
4
  import moment from "moment";
4
5
  import { AprService } from "../apr";
5
- import { ProtocolService } from "../protocol";
6
6
  import { RewardService } from "../reward";
7
7
  import { TvlService } from "../tvl";
8
8
  export class OpportunityRepository {
@@ -1,7 +1,7 @@
1
1
  import { AuthorizationHeadersDto, BackOfficeGuard } from "../../../guards/BackOffice.guard";
2
2
  import Elysia, { t } from "elysia";
3
- import { ProtocolService } from ".";
4
3
  import { CreateProtocolDto, GetProtocolsQueryDto, ProtocolIdDto, ProtocolResourceDto, UpdateProtocolDto, } from "./protocol.model";
4
+ import { ProtocolService } from "./protocol.service";
5
5
  // ─── Protocols Controller ────────────────────────────────────────────────────
6
6
  export const ProtocolController = new Elysia({ prefix: "/protocols", detail: { tags: ["Protocols"] } })
7
7
  // ─── Get Many Protocols ──────────────────────────────────────────────
@@ -3561,7 +3561,7 @@ export declare const v4: Elysia<"/v4", false, {
3561
3561
  };
3562
3562
  headers: unknown;
3563
3563
  response: {
3564
- 200: (import("./claims").ClaimModel & {
3564
+ 200: (import("./claims/claims.model").ClaimModel & {
3565
3565
  token?: import("./token/token.model").Token["model"];
3566
3566
  })[];
3567
3567
  };
@@ -35,8 +35,8 @@ declare const _default: (app: Elysia) => Elysia<"", false, {
35
35
  query: {
36
36
  types?: string | number | string[] | number[] | undefined;
37
37
  chainIds?: string | string[] | undefined;
38
- creatorTag?: string | undefined;
39
38
  live?: boolean | undefined;
39
+ creatorTag?: string | undefined;
40
40
  hideTestTokens?: string | undefined;
41
41
  };
42
42
  headers: unknown;
@@ -71,8 +71,8 @@ export declare const v3: Elysia<"/v3", false, {
71
71
  query: {
72
72
  types?: string | number | string[] | number[] | undefined;
73
73
  chainIds?: string | string[] | undefined;
74
- creatorTag?: string | undefined;
75
74
  live?: boolean | undefined;
75
+ creatorTag?: string | undefined;
76
76
  hideTestTokens?: string | undefined;
77
77
  };
78
78
  headers: unknown;