@merkl/api 0.16.1 → 0.16.2

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 (45) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +8 -9
  2. package/dist/database/api/.generated/drizzle/schema.js +2 -3
  3. package/dist/database/api/.generated/drizzle/schema.ts +2 -4
  4. package/dist/database/api/.generated/edge.js +5 -33
  5. package/dist/database/api/.generated/index-browser.js +2 -30
  6. package/dist/database/api/.generated/index.d.ts +123 -210
  7. package/dist/database/api/.generated/index.js +5 -33
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +2 -32
  10. package/dist/database/api/.generated/wasm.js +2 -30
  11. package/dist/src/constants.d.ts +259 -13
  12. package/dist/src/eden/index.d.ts +98 -98
  13. package/dist/src/index.d.ts +19 -19
  14. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -6
  15. package/dist/src/modules/v4/campaign/campaign.model.d.ts +5 -65
  16. package/dist/src/modules/v4/campaign/campaign.model.js +1 -34
  17. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +7 -7
  18. package/dist/src/modules/v4/campaign/campaign.service.d.ts +14 -15
  19. package/dist/src/modules/v4/campaign/campaign.service.js +6 -6
  20. package/dist/src/modules/v4/chain/chain.repository.d.ts +1 -1
  21. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +2 -2
  22. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -58
  23. package/dist/src/modules/v4/dynamicData/dynamicData.model.js +2 -3
  24. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -8
  25. package/dist/src/modules/v4/dynamicData/dynamicData.service.js +4 -13
  26. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +9 -9
  27. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -31
  28. package/dist/src/modules/v4/opportunity/opportunity.model.js +2 -2
  29. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +33 -18
  30. package/dist/src/modules/v4/opportunity/opportunity.repository.js +9 -1
  31. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -15
  32. package/dist/src/modules/v4/opportunity/opportunity.service.js +3 -2
  33. package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.d.ts +1 -1
  34. package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.js +2 -2
  35. package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.d.ts +1 -1
  36. package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.js +3 -2
  37. package/dist/src/modules/v4/opportunity/validate-id.pipe.js +3 -3
  38. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -2
  39. package/dist/src/modules/v4/reward/reward.repository.d.ts +1 -1
  40. package/dist/src/modules/v4/reward/reward.service.d.ts +8 -8
  41. package/dist/src/modules/v4/reward/reward.service.js +2 -2
  42. package/dist/src/modules/v4/router.d.ts +19 -19
  43. package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
  44. package/dist/tsconfig.package.tsbuildinfo +1 -1
  45. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { type CreateCampaignModel, type GetCampaignQueryModel } from "../campaign";
2
2
  import { Prisma } from "../../../../database/api/.generated";
3
- import type { ChainId, MerklChainId } from "@sdk";
3
+ import { type ChainId, type MerklChainId } from "@sdk";
4
4
  import type { CreateOpportunityModel, GetOpportunitiesQueryModel, LightOpportunityFromDB, OpportunityResourceModel, OpportunityUnique, OpportunityWithCampaignsResourceModel, UpdateOpportunityModel } from "./opportunity.model";
5
5
  import { OpportunityRepository } from "./opportunity.repository";
6
6
  export declare abstract class OpportunityService {
@@ -13,7 +13,7 @@ export declare abstract class OpportunityService {
13
13
  */
14
14
  static create(newOpp: Omit<CreateOpportunityModel, "id">): Promise<{
15
15
  name: string;
16
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
16
+ type: string;
17
17
  id: string;
18
18
  status: import("../../../../database/api/.generated").$Enums.Status;
19
19
  tags: string[];
@@ -29,7 +29,7 @@ export declare abstract class OpportunityService {
29
29
  static fakeCreateFromCampaign(campaign: Omit<CreateCampaignModel, "id">): Promise<{
30
30
  id: string;
31
31
  chainId: number;
32
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
32
+ type: string;
33
33
  identifier: string;
34
34
  name: string;
35
35
  status: "SOON";
@@ -41,7 +41,7 @@ export declare abstract class OpportunityService {
41
41
  static createFromCampaign(campaign: Omit<CreateCampaignModel, "id">, upsert?: boolean): Promise<{
42
42
  id: string;
43
43
  chainId: number;
44
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
44
+ type: string;
45
45
  identifier: string;
46
46
  name: string;
47
47
  status: "PAST" | "LIVE" | "SOON";
@@ -66,7 +66,7 @@ export declare abstract class OpportunityService {
66
66
  static updateStatusFromCampaign(campaign: Omit<CreateCampaignModel, "id">, upsert?: boolean): Promise<{
67
67
  id: string;
68
68
  chainId: number;
69
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
69
+ type: string;
70
70
  identifier: string;
71
71
  name: string;
72
72
  status: "PAST" | "LIVE" | "SOON";
@@ -93,7 +93,7 @@ export declare abstract class OpportunityService {
93
93
  static recreate(opportunityId: string | OpportunityUnique, campaignId?: string): Promise<{
94
94
  id: string;
95
95
  chainId: number;
96
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
96
+ type: string;
97
97
  identifier: string;
98
98
  name: string;
99
99
  status: "PAST" | "LIVE" | "SOON";
@@ -240,12 +240,13 @@ export declare abstract class OpportunityService {
240
240
  computedUntil: bigint;
241
241
  processingStarted: bigint;
242
242
  };
243
+ creatorAddress: string;
243
244
  Creator: {
244
245
  tags: string[];
245
246
  address: string;
246
247
  creatorId: string | null;
247
248
  };
248
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
249
+ type: string;
249
250
  id: string;
250
251
  subType: number | null;
251
252
  startTimestamp: bigint;
@@ -256,7 +257,6 @@ export declare abstract class OpportunityService {
256
257
  rewardTokenId: string;
257
258
  amount: string;
258
259
  opportunityId: string;
259
- creatorAddress: string;
260
260
  }[];
261
261
  })[]>;
262
262
  static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique, withTest?: boolean): Promise<OpportunityWithCampaignsResourceModel>;
@@ -345,7 +345,7 @@ export declare abstract class OpportunityService {
345
345
  icon: string;
346
346
  } | undefined;
347
347
  name: string;
348
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
348
+ type: string;
349
349
  status: import("../../../../database/api/.generated").$Enums.Status;
350
350
  tags: string[];
351
351
  identifier: string;
@@ -433,7 +433,7 @@ export declare abstract class OpportunityService {
433
433
  icon: string;
434
434
  } | undefined;
435
435
  name: string;
436
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
436
+ type: string;
437
437
  status: import("../../../../database/api/.generated").$Enums.Status;
438
438
  tags: string[];
439
439
  identifier: string;
@@ -475,12 +475,13 @@ export declare abstract class OpportunityService {
475
475
  computedUntil: bigint;
476
476
  processingStarted: bigint;
477
477
  };
478
+ creatorAddress: string;
478
479
  Creator: {
479
480
  tags: string[];
480
481
  address: string;
481
482
  creatorId: string | null;
482
483
  };
483
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
484
+ type: string;
484
485
  id: string;
485
486
  subType: number | null;
486
487
  startTimestamp: bigint;
@@ -491,7 +492,6 @@ export declare abstract class OpportunityService {
491
492
  rewardTokenId: string;
492
493
  amount: string;
493
494
  opportunityId: string;
494
- creatorAddress: string;
495
495
  }[];
496
496
  })[]>;
497
497
  static getAllIds(): Promise<{
@@ -583,7 +583,7 @@ export declare abstract class OpportunityService {
583
583
  icon: string;
584
584
  } | undefined;
585
585
  name: string;
586
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
586
+ type: string;
587
587
  status: import("../../../../database/api/.generated").$Enums.Status;
588
588
  tags: string[];
589
589
  identifier: string;
@@ -622,7 +622,7 @@ export declare abstract class OpportunityService {
622
622
  icon: string;
623
623
  } | undefined;
624
624
  name: string;
625
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
625
+ type: string;
626
626
  status: import("../../../../database/api/.generated").$Enums.Status;
627
627
  tags: string[];
628
628
  identifier: string;
@@ -643,7 +643,7 @@ export declare abstract class OpportunityService {
643
643
  }>;
644
644
  static update(id: string, data: UpdateOpportunityModel): Promise<{
645
645
  name: string;
646
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
646
+ type: string;
647
647
  id: string;
648
648
  status: import("../../../../database/api/.generated").$Enums.Status;
649
649
  tags: string[];
@@ -1,8 +1,9 @@
1
1
  import { NotFoundError } from "../../../errors";
2
- import { CampaignService, campaignTypeToEnumMap, } from "../campaign";
2
+ import { CampaignService } from "../campaign";
3
3
  import { log } from "../../../utils/logger";
4
4
  import { OpportunityAction, Prisma, Status } from "../../../../database/api/.generated";
5
5
  import { record } from "@elysiajs/opentelemetry";
6
+ import { Campaign as CampaignEnum } from "@sdk";
6
7
  import moment from "moment";
7
8
  import { CacheService } from "../cache";
8
9
  import { TTLPresets } from "../cache/cache.model";
@@ -202,7 +203,7 @@ export class OpportunityService {
202
203
  const firstCampaign = opportunity?.Campaigns.filter(campaign => campaignId ? campaign.campaignId === campaignId : true)[0];
203
204
  return await OpportunityService.createFromCampaign({
204
205
  ...firstCampaign,
205
- type: campaignTypeToEnumMap[firstCampaign.type],
206
+ type: CampaignEnum[firstCampaign.type],
206
207
  chainId: firstCampaign.distributionChainId,
207
208
  computeChainId: firstCampaign.computeChainId,
208
209
  creator: firstCampaign.creatorAddress,
@@ -1,5 +1,5 @@
1
1
  import type { OpportunityMetadata } from "..";
2
- import type { ChainId, ERC20Campaign } from "@sdk";
2
+ import { type ChainId, type ERC20Campaign } from "@sdk";
3
3
  import type { ERC20FixAPRCampaign, ERC20LogCampaign } from "libs/sdk/src/types/merkl/campaignTypes/erc20Log";
4
4
  import type { ERC20RebaseLogCampaign } from "libs/sdk/src/types/merkl/campaignTypes/erc20RebaseLog";
5
5
  export declare const getErc20Metadata: (computeChainId: ChainId, distributionChainId: ChainId, campaignId: string, rewardToken: string, amount: string, params: ERC20Campaign["campaignParameters"] | ERC20LogCampaign["campaignParameters"] | ERC20RebaseLogCampaign["campaignParameters"] | ERC20FixAPRCampaign["campaignParameters"]) => Promise<OpportunityMetadata>;
@@ -1,5 +1,5 @@
1
1
  import { log } from "../../../../utils/logger";
2
- import { CampaignType } from "../../../../../database/api/.generated";
2
+ import { Campaign as CampaignEnum } from "@sdk";
3
3
  import { CampaignService } from "../../campaign";
4
4
  import { ProtocolService } from "../../protocol";
5
5
  export const getErc20Metadata = async (computeChainId, distributionChainId, campaignId, rewardToken, amount, params) => {
@@ -8,7 +8,7 @@ export const getErc20Metadata = async (computeChainId, distributionChainId, camp
8
8
  let mainProtocolId = undefined;
9
9
  const tokens = [{ chainId: computeChainId, address: params.targetToken }];
10
10
  try {
11
- const [dynamicData] = await CampaignService.fetchDynamicData(computeChainId, CampaignType.ERC20, [
11
+ const [dynamicData] = await CampaignService.fetchDynamicData(computeChainId, CampaignEnum[CampaignEnum.ERC20], [
12
12
  {
13
13
  campaignId,
14
14
  rewardToken,
@@ -1,3 +1,3 @@
1
- import type { ChainId, EulerCampaign } from "@sdk";
1
+ import { type ChainId, type EulerCampaign } from "@sdk";
2
2
  import type { OpportunityMetadata } from "../opportunity.model";
3
3
  export declare const getEulerMetadata: (chainId: ChainId, campaignId: string, campaignSubType: EulerCampaign["campaignSubType"], rewardToken: string, amount: string, params: EulerCampaign["campaignParameters"]) => Promise<OpportunityMetadata>;
@@ -1,12 +1,13 @@
1
1
  import { log } from "../../../../utils/logger";
2
- import { CampaignType, OpportunityAction } from "../../../../../database/api/.generated";
2
+ import { OpportunityAction } from "../../../../../database/api/.generated";
3
+ import { Campaign as CampaignEnum } from "@sdk";
3
4
  import { CampaignService } from "../../campaign";
4
5
  export const getEulerMetadata = async (chainId, campaignId, campaignSubType, rewardToken, amount, params
5
6
  // campaign: CampaignParameters<ConvertedCampaignType<"EULER">>
6
7
  ) => {
7
8
  let name = `Hold ${params.symbolTargetToken}`;
8
9
  try {
9
- const [dynamicData] = await CampaignService.fetchDynamicData(chainId, CampaignType.EULER, [
10
+ const [dynamicData] = await CampaignService.fetchDynamicData(chainId, CampaignEnum[CampaignEnum.EULER], [
10
11
  {
11
12
  campaignSubType,
12
13
  campaignParameters: params,
@@ -1,5 +1,5 @@
1
1
  import { BadRequestError } from "../../../errors";
2
- import { CampaignType } from "../../../../database/api/.generated";
2
+ import { Campaign as CampaignEnum } from "@sdk";
3
3
  export const validateId = ({ params }) => {
4
4
  if (!params.id.includes("-")) {
5
5
  if (/[0-9]{1,20}/.test(params.id))
@@ -7,6 +7,6 @@ export const validateId = ({ params }) => {
7
7
  throw new BadRequestError("Invalid Opportunity id");
8
8
  }
9
9
  const [_chainId, type, _campaignId] = params.id.split("-");
10
- if (!Object.values(CampaignType).includes(type))
11
- throw new BadRequestError("Invalid Campaign type", Object.values(CampaignType));
10
+ if (!Object.values(CampaignEnum).includes(type))
11
+ throw new BadRequestError("Invalid Campaign type", Object.keys(CampaignEnum));
12
12
  };
@@ -28,7 +28,7 @@ export declare abstract class ProtocolRepository {
28
28
  static findMany(query: GetProtocolsQueryModel): Promise<({
29
29
  MainOpportunities: ({
30
30
  Campaigns: {
31
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
31
+ type: string;
32
32
  id: string;
33
33
  params: import("database/api/.generated/runtime/library").JsonValue;
34
34
  subType: number | null;
@@ -44,7 +44,7 @@ export declare abstract class ProtocolRepository {
44
44
  }[];
45
45
  } & {
46
46
  name: string;
47
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
47
+ type: string;
48
48
  id: string;
49
49
  status: import("../../../../database/api/.generated").$Enums.Status;
50
50
  tags: string[];
@@ -56,7 +56,7 @@ export declare abstract class RewardRepository {
56
56
  } | null;
57
57
  } & {
58
58
  name: string;
59
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
59
+ type: string;
60
60
  id: string;
61
61
  status: import("../../../../database/api/.generated").$Enums.Status;
62
62
  tags: string[];
@@ -1,6 +1,6 @@
1
1
  import type { CacheKeys } from "../../../cache/keys";
2
2
  import type { Chain } from "../../../../database/api/.generated";
3
- import { Campaign, type CampaignDynamicData, type ChainId, type MerklChainId } from "@sdk";
3
+ import { type CampaignDynamicData, Campaign as CampaignEnum, type ChainId, type MerklChainId } from "@sdk";
4
4
  import { type LightOpportunityFromDB, type Opportunity } from "../opportunity";
5
5
  import type { CampaignIdModel, CampaignIdWithoutPageModel, CreateManyBreakdownModel, CreateManyRewardModel, DailyRewardsRecord, RegisterClaimsModel, RewardBreakdown, TokenIdModel } from "./reward.model";
6
6
  import { RewardRepository } from "./reward.repository";
@@ -52,7 +52,7 @@ export declare abstract class RewardService {
52
52
  } | null;
53
53
  } & {
54
54
  name: string;
55
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
55
+ type: string;
56
56
  id: string;
57
57
  status: import("../../../../database/api/.generated").$Enums.Status;
58
58
  tags: string[];
@@ -128,7 +128,7 @@ export declare abstract class RewardService {
128
128
  } | null;
129
129
  } & {
130
130
  name: string;
131
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
131
+ type: string;
132
132
  id: string;
133
133
  status: import("../../../../database/api/.generated").$Enums.Status;
134
134
  tags: string[];
@@ -207,7 +207,7 @@ export declare abstract class RewardService {
207
207
  } | null;
208
208
  } & {
209
209
  name: string;
210
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
210
+ type: string;
211
211
  id: string;
212
212
  status: import("../../../../database/api/.generated").$Enums.Status;
213
213
  tags: string[];
@@ -317,7 +317,7 @@ export declare abstract class RewardService {
317
317
  } | null;
318
318
  } & {
319
319
  name: string;
320
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
320
+ type: string;
321
321
  id: string;
322
322
  status: import("../../../../database/api/.generated").$Enums.Status;
323
323
  tags: string[];
@@ -408,7 +408,7 @@ export declare abstract class RewardService {
408
408
  } | null;
409
409
  } & {
410
410
  name: string;
411
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
411
+ type: string;
412
412
  id: string;
413
413
  status: import("../../../../database/api/.generated").$Enums.Status;
414
414
  tags: string[];
@@ -496,7 +496,7 @@ export declare abstract class RewardService {
496
496
  } | null;
497
497
  } & {
498
498
  name: string;
499
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
499
+ type: string;
500
500
  id: string;
501
501
  status: import("../../../../database/api/.generated").$Enums.Status;
502
502
  tags: string[];
@@ -569,5 +569,5 @@ export declare abstract class RewardService {
569
569
  claimed: string;
570
570
  }[]>;
571
571
  static getUnclaimed(x: CampaignIdWithoutPageModel): Promise<Record<string, string>>;
572
- static extractDailyRewardsRecordFromDynamicData<C extends Campaign>(type: C, dynamicData: CampaignDynamicData<C>[], timestamp?: bigint): Promise<DailyRewardsRecord["model"]>;
572
+ static extractDailyRewardsRecordFromDynamicData<C extends CampaignEnum>(type: C, dynamicData: CampaignDynamicData<C>[], timestamp?: bigint): Promise<DailyRewardsRecord["model"]>;
573
573
  }
@@ -1,5 +1,5 @@
1
1
  import { log } from "../../../utils/logger";
2
- import { Campaign, DAY, DistributorService, NETWORK_LABELS, } from "@sdk";
2
+ import { Campaign as CampaignEnum, DAY, DistributorService, NETWORK_LABELS, } from "@sdk";
3
3
  import moment from "moment";
4
4
  import { BlacklistService } from "../blacklist";
5
5
  import { CacheService } from "../cache";
@@ -301,7 +301,7 @@ export class RewardService {
301
301
  }, {});
302
302
  }
303
303
  static async extractDailyRewardsRecordFromDynamicData(type, dynamicData, timestamp = BigInt(moment().unix())) {
304
- const typesWithoutApr = [Campaign.INVALID];
304
+ const typesWithoutApr = [CampaignEnum.INVALID];
305
305
  if (typesWithoutApr.includes(type))
306
306
  return { timestamp, total: 0, breakdowns: [] };
307
307
  const breakdowns = [];
@@ -36,7 +36,7 @@ export declare const v4: Elysia<"/v4", false, {
36
36
  depositUrl?: string | undefined;
37
37
  protocols?: string[] | undefined;
38
38
  mainProtocol?: string | undefined;
39
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT";
39
+ type: string;
40
40
  tokens: {
41
41
  chainId: number;
42
42
  address: string;
@@ -44,7 +44,7 @@ export declare const v4: Elysia<"/v4", false, {
44
44
  status: "NONE" | "PAST" | "LIVE" | "SOON";
45
45
  identifier: string;
46
46
  chainId: number;
47
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT";
47
+ action: "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "INVALID";
48
48
  };
49
49
  params: {};
50
50
  query: unknown;
@@ -54,7 +54,7 @@ export declare const v4: Elysia<"/v4", false, {
54
54
  response: {
55
55
  200: {
56
56
  name: string;
57
- type: import("../../../database/api/.generated").$Enums.CampaignType;
57
+ type: string;
58
58
  id: string;
59
59
  status: import("../../../database/api/.generated").$Enums.Status;
60
60
  tags: string[];
@@ -88,7 +88,7 @@ export declare const v4: Elysia<"/v4", false, {
88
88
  200: {
89
89
  id: string;
90
90
  chainId: number;
91
- type: import("../../../database/api/.generated").$Enums.CampaignType;
91
+ type: string;
92
92
  identifier: string;
93
93
  name: string;
94
94
  status: "PAST" | "LIVE" | "SOON";
@@ -218,7 +218,7 @@ export declare const v4: Elysia<"/v4", false, {
218
218
  icon: string;
219
219
  } | undefined;
220
220
  name: string;
221
- type: import("../../../database/api/.generated").$Enums.CampaignType;
221
+ type: string;
222
222
  status: import("../../../database/api/.generated").$Enums.Status;
223
223
  tags: string[];
224
224
  identifier: string;
@@ -379,7 +379,7 @@ export declare const v4: Elysia<"/v4", false, {
379
379
  body: unknown;
380
380
  params: {};
381
381
  query: {
382
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT" | undefined;
382
+ type?: string | undefined;
383
383
  items?: number | undefined;
384
384
  subType?: number | undefined;
385
385
  page?: number | undefined;
@@ -516,12 +516,13 @@ export declare const v4: Elysia<"/v4", false, {
516
516
  computedUntil: bigint;
517
517
  processingStarted: bigint;
518
518
  };
519
+ creatorAddress: string;
519
520
  Creator: {
520
521
  tags: string[];
521
522
  address: string;
522
523
  creatorId: string | null;
523
524
  };
524
- type: import("../../../database/api/.generated").$Enums.CampaignType;
525
+ type: string;
525
526
  id: string;
526
527
  subType: number | null;
527
528
  startTimestamp: bigint;
@@ -532,7 +533,6 @@ export declare const v4: Elysia<"/v4", false, {
532
533
  rewardTokenId: string;
533
534
  amount: string;
534
535
  opportunityId: string;
535
- creatorAddress: string;
536
536
  }[];
537
537
  })[];
538
538
  readonly 404: {
@@ -836,7 +836,7 @@ export declare const v4: Elysia<"/v4", false, {
836
836
  response: {
837
837
  200: {
838
838
  name: string;
839
- type: import("../../../database/api/.generated").$Enums.CampaignType;
839
+ type: string;
840
840
  id: string;
841
841
  status: import("../../../database/api/.generated").$Enums.Status;
842
842
  tags: string[];
@@ -882,7 +882,7 @@ export declare const v4: Elysia<"/v4", false, {
882
882
  };
883
883
  response: {
884
884
  200: {
885
- type: import("../../../database/api/.generated").$Enums.CampaignType;
885
+ type: string;
886
886
  id: string;
887
887
  params: import("database/api/.generated/runtime/library").JsonValue;
888
888
  subType: number | null;
@@ -933,7 +933,7 @@ export declare const v4: Elysia<"/v4", false, {
933
933
  };
934
934
  response: {
935
935
  200: {
936
- type: import("../../../database/api/.generated").$Enums.CampaignType;
936
+ type: string;
937
937
  id: string;
938
938
  params: import("database/api/.generated/runtime/library").JsonValue;
939
939
  subType: number | null;
@@ -956,7 +956,7 @@ export declare const v4: Elysia<"/v4", false, {
956
956
  body: unknown;
957
957
  params: {};
958
958
  query: {
959
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT" | undefined;
959
+ type?: string | undefined;
960
960
  items?: number | undefined;
961
961
  subType?: number | undefined;
962
962
  page?: number | undefined;
@@ -1008,12 +1008,13 @@ export declare const v4: Elysia<"/v4", false, {
1008
1008
  computedUntil: bigint;
1009
1009
  processingStarted: bigint;
1010
1010
  };
1011
+ creatorAddress: string;
1011
1012
  Creator: {
1012
1013
  tags: string[];
1013
1014
  address: string;
1014
1015
  creatorId: string | null;
1015
1016
  };
1016
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1017
+ type: string;
1017
1018
  id: string;
1018
1019
  subType: number | null;
1019
1020
  startTimestamp: bigint;
@@ -1024,7 +1025,6 @@ export declare const v4: Elysia<"/v4", false, {
1024
1025
  rewardTokenId: string;
1025
1026
  amount: string;
1026
1027
  opportunityId: string;
1027
- creatorAddress: string;
1028
1028
  }[];
1029
1029
  };
1030
1030
  };
@@ -1035,7 +1035,7 @@ export declare const v4: Elysia<"/v4", false, {
1035
1035
  body: unknown;
1036
1036
  params: {};
1037
1037
  query: {
1038
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT" | undefined;
1038
+ type?: string | undefined;
1039
1039
  items?: number | undefined;
1040
1040
  subType?: number | undefined;
1041
1041
  page?: number | undefined;
@@ -2417,7 +2417,7 @@ export declare const v4: Elysia<"/v4", false, {
2417
2417
  } | null;
2418
2418
  } & {
2419
2419
  name: string;
2420
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2420
+ type: string;
2421
2421
  id: string;
2422
2422
  status: import("../../../database/api/.generated").$Enums.Status;
2423
2423
  tags: string[];
@@ -2530,7 +2530,7 @@ export declare const v4: Elysia<"/v4", false, {
2530
2530
  } | null;
2531
2531
  } & {
2532
2532
  name: string;
2533
- type: import("../../../database/api/.generated").$Enums.CampaignType;
2533
+ type: string;
2534
2534
  id: string;
2535
2535
  status: import("../../../database/api/.generated").$Enums.Status;
2536
2536
  tags: string[];
@@ -3036,7 +3036,7 @@ export declare const v4: Elysia<"/v4", false, {
3036
3036
  rewardTokenAddress?: string | undefined;
3037
3037
  distributionChain?: {} | undefined;
3038
3038
  opportunityIdentifier?: string | undefined;
3039
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT";
3039
+ type: string;
3040
3040
  params: {};
3041
3041
  computeChainId: number;
3042
3042
  };
@@ -3058,7 +3058,7 @@ export declare const v4: Elysia<"/v4", false, {
3058
3058
  body: unknown;
3059
3059
  params: {};
3060
3060
  query: {
3061
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | "ION" | "EIGENLAYER" | "ERC20TRANSFERS" | "ERC20LOGPROCESSOR" | "ERC20REBASELOGPROCESSOR" | "VEST" | "ERC20_FIX_APR" | "HYPERDRIVELOGPROCESSOR" | "HYPERDRIVELOGFIXPROCESSOR" | "AMBIENTPROCESSOR" | "M0" | "MORPHOSUPPLY" | "SYNCSWAP_VAULT" | undefined;
3061
+ type?: string | undefined;
3062
3062
  items?: number | undefined;
3063
3063
  subType?: number | undefined;
3064
3064
  page?: number | undefined;
@@ -172,7 +172,7 @@ export declare const UserController: Elysia<"/users", false, {
172
172
  } | null;
173
173
  } & {
174
174
  name: string;
175
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
175
+ type: string;
176
176
  id: string;
177
177
  status: import("../../../../database/api/.generated").$Enums.Status;
178
178
  tags: string[];
@@ -285,7 +285,7 @@ export declare const UserController: Elysia<"/users", false, {
285
285
  } | null;
286
286
  } & {
287
287
  name: string;
288
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
288
+ type: string;
289
289
  id: string;
290
290
  status: import("../../../../database/api/.generated").$Enums.Status;
291
291
  tags: string[];