@merkl/api 0.17.42 → 0.18.0

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.
@@ -616,6 +616,13 @@ declare const eden: {
616
616
  price?: number | null | undefined;
617
617
  })[];
618
618
  chain: {
619
+ Explorer: {
620
+ type: import("../../database/api/.generated").$Enums.ExplorerType;
621
+ url: string;
622
+ id: string;
623
+ chainId: number;
624
+ }[];
625
+ } & {
619
626
  name: string;
620
627
  id: number;
621
628
  icon: string;
@@ -4033,6 +4040,13 @@ declare const eden: {
4033
4040
  price?: number | null | undefined;
4034
4041
  })[];
4035
4042
  chain: {
4043
+ Explorer: {
4044
+ type: import("../../database/api/.generated").$Enums.ExplorerType;
4045
+ url: string;
4046
+ id: string;
4047
+ chainId: number;
4048
+ }[];
4049
+ } & {
4036
4050
  name: string;
4037
4051
  id: number;
4038
4052
  icon: string;
@@ -7911,6 +7925,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7911
7925
  price?: number | null | undefined;
7912
7926
  })[];
7913
7927
  chain: {
7928
+ Explorer: {
7929
+ type: import("../../database/api/.generated").$Enums.ExplorerType;
7930
+ url: string;
7931
+ id: string;
7932
+ chainId: number;
7933
+ }[];
7934
+ } & {
7914
7935
  name: string;
7915
7936
  id: number;
7916
7937
  icon: string;
@@ -13150,6 +13171,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13150
13171
  price?: number | null | undefined;
13151
13172
  })[];
13152
13173
  chain: {
13174
+ Explorer: {
13175
+ type: import("../../database/api/.generated").$Enums.ExplorerType;
13176
+ url: string;
13177
+ id: string;
13178
+ chainId: number;
13179
+ }[];
13180
+ } & {
13153
13181
  name: string;
13154
13182
  id: number;
13155
13183
  icon: string;
@@ -16567,6 +16595,13 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16567
16595
  price?: number | null | undefined;
16568
16596
  })[];
16569
16597
  chain: {
16598
+ Explorer: {
16599
+ type: import("../../database/api/.generated").$Enums.ExplorerType;
16600
+ url: string;
16601
+ id: string;
16602
+ chainId: number;
16603
+ }[];
16604
+ } & {
16570
16605
  name: string;
16571
16606
  id: number;
16572
16607
  icon: string;
@@ -18,7 +18,7 @@ import { JsonAirdropMetadata } from "./implementations/JsonAirdrop";
18
18
  import { MorphoMetadata } from "./implementations/Morpho";
19
19
  import { RadiantMetadata } from "./implementations/Radiant";
20
20
  import { SiloMetadata } from "./implementations/Silo";
21
- import { UniswapV4Metadata } from "./implementations/UniswapV4Metadata";
21
+ import { UniswapV4Metadata } from "./implementations/UniswapV4";
22
22
  import { VestMetadata } from "./implementations/Vest";
23
23
  // @dev Casts are made to enforce type safety
24
24
  // @dev A type error must be thrown if a new campaign type is added and the corresponding metadata builder is not implemented
@@ -52,5 +52,6 @@ const map = {
52
52
  [Campaign.AMBIENTPROCESSOR]: new AmbientMetadata(),
53
53
  [Campaign.ENCOMPASSING]: new EncompassingMetadata(),
54
54
  [Campaign.EVENT_BASED]: new EventBasedMetadata(),
55
+ [Campaign.ERC20REBASEFIXAPR]: new Erc20Metadata(),
55
56
  };
56
57
  export const metadataBuilderFactory = (campaignType) => map[campaignType];
@@ -408,6 +408,13 @@ declare const app: Elysia<"", false, {
408
408
  price?: number | null | undefined;
409
409
  })[];
410
410
  chain: {
411
+ Explorer: {
412
+ type: import("../database/api/.generated").$Enums.ExplorerType;
413
+ url: string;
414
+ id: string;
415
+ chainId: number;
416
+ }[];
417
+ } & {
411
418
  name: string;
412
419
  id: number;
413
420
  icon: string;
@@ -263,6 +263,13 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
263
263
  price?: number | null | undefined;
264
264
  })[];
265
265
  chain: {
266
+ Explorer: {
267
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
268
+ url: string;
269
+ id: string;
270
+ chainId: number;
271
+ }[];
272
+ } & {
266
273
  name: string;
267
274
  id: number;
268
275
  icon: string;
@@ -175,6 +175,13 @@ export declare abstract class OpportunityRepository {
175
175
  }) | null>;
176
176
  static findUniqueOrThrow(id: string, withTest?: boolean, withCampaigns?: boolean): Promise<{
177
177
  Chain: {
178
+ Explorer: {
179
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
180
+ url: string;
181
+ id: string;
182
+ chainId: number;
183
+ }[];
184
+ } & {
178
185
  name: string;
179
186
  id: number;
180
187
  icon: string;
@@ -197,7 +197,7 @@ export class OpportunityRepository {
197
197
  include: {
198
198
  ...OpportunityRepository.#getRecordInclusion(withTest),
199
199
  Campaigns: withCampaigns ? OpportunityRepository.#getCampaignInclusion(withTest) : undefined,
200
- Chain: true,
200
+ Chain: { include: { Explorer: true } },
201
201
  MainProtocol: true,
202
202
  Protocols: true,
203
203
  Tokens: {
@@ -551,6 +551,13 @@ export declare abstract class OpportunityService {
551
551
  price?: number | null | undefined;
552
552
  })[];
553
553
  chain: {
554
+ Explorer: {
555
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
556
+ url: string;
557
+ id: string;
558
+ chainId: number;
559
+ }[];
560
+ } & {
554
561
  name: string;
555
562
  id: number;
556
563
  icon: string;
@@ -716,6 +723,13 @@ export declare abstract class OpportunityService {
716
723
  price?: number | null | undefined;
717
724
  })[];
718
725
  chain: {
726
+ Explorer: {
727
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
728
+ url: string;
729
+ id: string;
730
+ chainId: number;
731
+ }[];
732
+ } & {
719
733
  name: string;
720
734
  id: number;
721
735
  icon: string;
@@ -877,6 +891,13 @@ export declare abstract class OpportunityService {
877
891
  price?: number | null | undefined;
878
892
  })[];
879
893
  chain: {
894
+ Explorer: {
895
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
896
+ url: string;
897
+ id: string;
898
+ chainId: number;
899
+ }[];
900
+ } & {
880
901
  name: string;
881
902
  id: number;
882
903
  icon: string;
@@ -917,6 +938,13 @@ export declare abstract class OpportunityService {
917
938
  price?: number | null | undefined;
918
939
  })[];
919
940
  chain: {
941
+ Explorer: {
942
+ type: import("../../../../database/api/.generated").$Enums.ExplorerType;
943
+ url: string;
944
+ id: string;
945
+ chainId: number;
946
+ }[];
947
+ } & {
920
948
  name: string;
921
949
  id: number;
922
950
  icon: string;
@@ -278,6 +278,13 @@ export declare const v4: Elysia<"/v4", false, {
278
278
  price?: number | null | undefined;
279
279
  })[];
280
280
  chain: {
281
+ Explorer: {
282
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
283
+ url: string;
284
+ id: string;
285
+ chainId: number;
286
+ }[];
287
+ } & {
281
288
  name: string;
282
289
  id: number;
283
290
  icon: string;