@merkl/api 1.1.13 → 1.1.15

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 (48) hide show
  1. package/dist/src/constants.d.ts +61 -0
  2. package/dist/src/eden/index.d.ts +895 -5238
  3. package/dist/src/engine/deprecated/dynamicData/implementations/default.d.ts +1 -1
  4. package/dist/src/engine/implementations/Aave/metadata.d.ts +1 -1
  5. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +1 -2
  6. package/dist/src/engine/tvl/factory.d.ts +1 -1
  7. package/dist/src/index.d.ts +192 -2368
  8. package/dist/src/modules/v4/apr/apr.model.d.ts +0 -8
  9. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +20 -396
  10. package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +1 -2
  11. package/dist/src/modules/v4/campaign/campaign.model.d.ts +17 -15
  12. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +60 -63
  13. package/dist/src/modules/v4/campaign/campaign.service.d.ts +34 -54
  14. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +44 -1168
  15. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +1 -14
  16. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +46 -264
  17. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +0 -6
  18. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +6 -3
  19. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +21 -73
  20. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +34 -21
  21. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +40 -38
  22. package/dist/src/modules/v4/payload/payload.controller.d.ts +16 -468
  23. package/dist/src/modules/v4/payload/payload.model.d.ts +1 -10
  24. package/dist/src/modules/v4/payload/payload.service.d.ts +12 -379
  25. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +3 -17
  26. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +1 -1
  27. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +7 -429
  28. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -1
  29. package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +3 -11
  30. package/dist/src/modules/v4/reward/reward.controller.d.ts +3 -3
  31. package/dist/src/modules/v4/reward/reward.model.d.ts +4 -18
  32. package/dist/src/modules/v4/reward/reward.repository.d.ts +4 -2
  33. package/dist/src/modules/v4/reward/reward.service.d.ts +26 -13
  34. package/dist/src/modules/v4/router.d.ts +191 -2364
  35. package/dist/src/modules/v4/token/token.controller.d.ts +22 -14
  36. package/dist/src/modules/v4/token/token.model.d.ts +5 -15
  37. package/dist/src/modules/v4/token/token.repository.d.ts +11 -7
  38. package/dist/src/modules/v4/user/user.controller.d.ts +4 -2
  39. package/dist/src/routes/v3/opportunity.d.ts +0 -3
  40. package/dist/src/routes/v3/payload.d.ts +1 -1
  41. package/dist/src/routes/v3/router.d.ts +1 -4
  42. package/dist/src/utils/parseDistributionType.d.ts +1 -2
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +1 -1
  45. package/dist/src/engine/implementations/Erc20/subTypes/implementations/ERC4626/metadata.d.ts +0 -31
  46. package/dist/src/engine/implementations/Erc20/subTypes/implementations/ERC4626/tvl.d.ts +0 -6
  47. package/dist/src/modules/v4/token/token.service.d.ts +0 -348
  48. package/dist/src/modules/v4/transaction/transaction.model.d.ts +0 -17
@@ -34,6 +34,7 @@ export declare const CampaignUniqueDto: import("@sinclair/typebox").TObject<{
34
34
  distributionChain: import("@sinclair/typebox").TNumber;
35
35
  campaignId: import("@sinclair/typebox").TString;
36
36
  }>;
37
+ export declare const CampaignsDto: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
37
38
  export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
38
39
  id: import("@sinclair/typebox").TString;
39
40
  computeChainId: import("@sinclair/typebox").TNumber;
@@ -75,13 +76,10 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
75
76
  verified: import("@sinclair/typebox").TBoolean;
76
77
  isNative: import("@sinclair/typebox").TBoolean;
77
78
  isTest: import("@sinclair/typebox").TBoolean;
79
+ isPoint: import("@sinclair/typebox").TBoolean;
80
+ isPreTGE: import("@sinclair/typebox").TBoolean;
78
81
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
79
82
  symbol: import("@sinclair/typebox").TString;
80
- type: import("@sinclair/typebox").TEnum<{
81
- readonly TOKEN: "TOKEN";
82
- readonly PRETGE: "PRETGE";
83
- readonly POINT: "POINT";
84
- }>;
85
83
  }>;
86
84
  distributionChain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
87
85
  id: import("@sinclair/typebox").TNumber;
@@ -102,10 +100,6 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
102
100
  readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
103
101
  readonly FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
104
102
  readonly FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
105
- readonly MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE: "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE";
106
- readonly MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE: "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE";
107
- readonly MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT: "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT";
108
- readonly MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT: "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT";
109
103
  }>>;
110
104
  campaignStatus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
111
105
  computedUntil: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
@@ -118,6 +112,10 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
118
112
  rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
119
113
  parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
120
114
  }>;
115
+ export declare const TransactionDto: import("@sinclair/typebox").TObject<{
116
+ hash: import("@sinclair/typebox").TString;
117
+ chainId: import("@sinclair/typebox").TNumber;
118
+ }>;
121
119
  export declare const CampaignConfigMinimal: import("@sinclair/typebox").TObject<{
122
120
  computeChainId: import("@sinclair/typebox").TNumber;
123
121
  params: import("@sinclair/typebox").TAny;
@@ -168,6 +166,11 @@ export declare const RemoveManualOverrideDto: import("@sinclair/typebox").TObjec
168
166
  readonly creatorAddress: "creatorAddress";
169
167
  }>;
170
168
  }>;
169
+ export declare const UpdateMetaDataCampaignDto: import("@sinclair/typebox").TObject<{
170
+ distributionChain: import("@sinclair/typebox").TNumber;
171
+ campaignId: import("@sinclair/typebox").TString;
172
+ url: import("@sinclair/typebox").TString;
173
+ }>;
171
174
  export declare const FindCampaignDto: import("@sinclair/typebox").TObject<{
172
175
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
173
176
  creatorTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -183,11 +186,6 @@ export declare const FindCampaignDto: import("@sinclair/typebox").TObject<{
183
186
  tokenSymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
184
187
  tokenAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
185
188
  test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
186
- tokenTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
187
- readonly TOKEN: "TOKEN";
188
- readonly PRETGE: "PRETGE";
189
- readonly POINT: "POINT";
190
- }>>>;
191
189
  point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
192
190
  opportunityId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
193
191
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
@@ -215,8 +213,12 @@ export type UpdateCampaignModel = typeof UpdateCampaignDto.static & {
215
213
  id: string;
216
214
  };
217
215
  export type UpdateCampaignCreatorModel = typeof UpdateCampaignCreatorDto.static;
216
+ export type UpdateMetaDataCampaignModel = typeof UpdateMetaDataCampaignDto.static & {
217
+ url: string;
218
+ };
219
+ export type TransactionModel = typeof TransactionDto.static;
218
220
  export type FindCampaignModel = typeof FindCampaignDto.static;
219
- export type FindCampaignWithStatusModel = Partial<{
221
+ export type findCampaignWithStatusModel = Partial<{
220
222
  computeChainId: number;
221
223
  distributionChainId: number;
222
224
  type: string;
@@ -1,10 +1,34 @@
1
1
  import { type ChainId } from "@angleprotocol/sdk/ts";
2
2
  import { type CampaignManualOverride } from "@package/databases/api";
3
- import type { Campaign, CampaignUnique, CampaignWithParams, FindCampaignModel, FindCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
3
+ import type { Campaign, CampaignUnique, CampaignWithParams, FindCampaignModel, findCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
4
4
  export declare abstract class CampaignRepository {
5
5
  #private;
6
6
  static transformQueryToPrismaFilters(query: Omit<FindCampaignModel, "page" | "items">): {
7
7
  where: {
8
+ createdAt: {
9
+ gte: Date;
10
+ } | undefined;
11
+ rootCampaignId: {
12
+ equals: string;
13
+ mode: "insensitive";
14
+ } | {
15
+ equals: null;
16
+ mode?: undefined;
17
+ } | undefined;
18
+ parentCampaignId: {
19
+ equals: string;
20
+ mode: "insensitive";
21
+ } | undefined;
22
+ endTimestamp: {
23
+ gt: number;
24
+ lt?: undefined;
25
+ gte?: undefined;
26
+ };
27
+ startTimestamp: {
28
+ lte: number;
29
+ gt?: undefined;
30
+ gte?: undefined;
31
+ };
8
32
  OR: {
9
33
  id: string;
10
34
  }[] | undefined;
@@ -41,9 +65,7 @@ export declare abstract class CampaignRepository {
41
65
  symbol?: undefined;
42
66
  })[] | undefined;
43
67
  isTest: false | undefined;
44
- type: {
45
- in: import("@package/databases").TokenType[];
46
- } | undefined;
68
+ isPoint: boolean | undefined;
47
69
  };
48
70
  };
49
71
  Creator: {
@@ -73,6 +95,7 @@ export declare abstract class CampaignRepository {
73
95
  OR?: undefined;
74
96
  Creator?: undefined;
75
97
  } | undefined;
98
+ } | {
76
99
  createdAt: {
77
100
  gte: Date;
78
101
  } | undefined;
@@ -88,16 +111,11 @@ export declare abstract class CampaignRepository {
88
111
  mode: "insensitive";
89
112
  } | undefined;
90
113
  endTimestamp: {
91
- gt: number;
92
- lt?: undefined;
93
- gte?: undefined;
94
- };
95
- startTimestamp: {
96
- lte: number;
114
+ lt: number;
97
115
  gt?: undefined;
98
116
  gte?: undefined;
99
117
  };
100
- } | {
118
+ startTimestamp?: undefined;
101
119
  OR: {
102
120
  id: string;
103
121
  }[] | undefined;
@@ -134,9 +152,7 @@ export declare abstract class CampaignRepository {
134
152
  symbol?: undefined;
135
153
  })[] | undefined;
136
154
  isTest: false | undefined;
137
- type: {
138
- in: import("@package/databases").TokenType[];
139
- } | undefined;
155
+ isPoint: boolean | undefined;
140
156
  };
141
157
  };
142
158
  Creator: {
@@ -166,6 +182,7 @@ export declare abstract class CampaignRepository {
166
182
  OR?: undefined;
167
183
  Creator?: undefined;
168
184
  } | undefined;
185
+ } | {
169
186
  createdAt: {
170
187
  gte: Date;
171
188
  } | undefined;
@@ -180,13 +197,12 @@ export declare abstract class CampaignRepository {
180
197
  equals: string;
181
198
  mode: "insensitive";
182
199
  } | undefined;
183
- endTimestamp: {
184
- lt: number;
185
- gt?: undefined;
200
+ startTimestamp: {
201
+ gt: number;
202
+ lte?: undefined;
186
203
  gte?: undefined;
187
204
  };
188
- startTimestamp?: undefined;
189
- } | {
205
+ endTimestamp?: undefined;
190
206
  OR: {
191
207
  id: string;
192
208
  }[] | undefined;
@@ -223,9 +239,7 @@ export declare abstract class CampaignRepository {
223
239
  symbol?: undefined;
224
240
  })[] | undefined;
225
241
  isTest: false | undefined;
226
- type: {
227
- in: import("@package/databases").TokenType[];
228
- } | undefined;
242
+ isPoint: boolean | undefined;
229
243
  };
230
244
  };
231
245
  Creator: {
@@ -255,6 +269,7 @@ export declare abstract class CampaignRepository {
255
269
  OR?: undefined;
256
270
  Creator?: undefined;
257
271
  } | undefined;
272
+ } | {
258
273
  createdAt: {
259
274
  gte: Date;
260
275
  } | undefined;
@@ -269,13 +284,16 @@ export declare abstract class CampaignRepository {
269
284
  equals: string;
270
285
  mode: "insensitive";
271
286
  } | undefined;
287
+ endTimestamp: {
288
+ gte: number;
289
+ gt?: undefined;
290
+ lt?: undefined;
291
+ } | undefined;
272
292
  startTimestamp: {
273
- gt: number;
293
+ gte: number;
274
294
  lte?: undefined;
275
- gte?: undefined;
276
- };
277
- endTimestamp?: undefined;
278
- } | {
295
+ gt?: undefined;
296
+ } | undefined;
279
297
  OR: {
280
298
  id: string;
281
299
  }[] | undefined;
@@ -312,9 +330,7 @@ export declare abstract class CampaignRepository {
312
330
  symbol?: undefined;
313
331
  })[] | undefined;
314
332
  isTest: false | undefined;
315
- type: {
316
- in: import("@package/databases").TokenType[];
317
- } | undefined;
333
+ isPoint: boolean | undefined;
318
334
  };
319
335
  };
320
336
  Creator: {
@@ -344,30 +360,6 @@ export declare abstract class CampaignRepository {
344
360
  OR?: undefined;
345
361
  Creator?: undefined;
346
362
  } | undefined;
347
- createdAt: {
348
- gte: Date;
349
- } | undefined;
350
- rootCampaignId: {
351
- equals: string;
352
- mode: "insensitive";
353
- } | {
354
- equals: null;
355
- mode?: undefined;
356
- } | undefined;
357
- parentCampaignId: {
358
- equals: string;
359
- mode: "insensitive";
360
- } | undefined;
361
- endTimestamp: {
362
- gte: number;
363
- gt?: undefined;
364
- lt?: undefined;
365
- } | undefined;
366
- startTimestamp: {
367
- gte: number;
368
- lte?: undefined;
369
- gt?: undefined;
370
- } | undefined;
371
363
  };
372
364
  };
373
365
  /**
@@ -378,7 +370,7 @@ export declare abstract class CampaignRepository {
378
370
  *
379
371
  * @dev Excludes test campaigns
380
372
  */
381
- static getPastCampaigns(query?: FindCampaignWithStatusModel): Promise<({
373
+ static getPastCampaigns(query?: findCampaignWithStatusModel): Promise<({
382
374
  Opportunity: {
383
375
  name: string;
384
376
  apr: number;
@@ -428,7 +420,7 @@ export declare abstract class CampaignRepository {
428
420
  *
429
421
  * @dev Excludes test campaigns
430
422
  */
431
- static getFutureCampaigns(query?: FindCampaignWithStatusModel): Promise<({
423
+ static getFutureCampaigns(query?: findCampaignWithStatusModel): Promise<({
432
424
  Opportunity: {
433
425
  name: string;
434
426
  apr: number;
@@ -478,7 +470,7 @@ export declare abstract class CampaignRepository {
478
470
  *
479
471
  * @dev Excludes test campaigns
480
472
  */
481
- static getLiveCampaigns(query?: FindCampaignWithStatusModel): Promise<({
473
+ static getLiveCampaigns(query?: findCampaignWithStatusModel): Promise<({
482
474
  Opportunity: {
483
475
  name: string;
484
476
  apr: number;
@@ -529,9 +521,10 @@ export declare abstract class CampaignRepository {
529
521
  address: string;
530
522
  id: string;
531
523
  chainId: number;
532
- type: import("@package/databases").TokenType;
533
524
  icon: string;
534
525
  isNative: boolean;
526
+ isPoint: boolean;
527
+ isPreTGE: boolean;
535
528
  isTest: boolean;
536
529
  verified: boolean;
537
530
  displaySymbol: string;
@@ -557,7 +550,7 @@ export declare abstract class CampaignRepository {
557
550
  rootCampaignId: string | null;
558
551
  parentCampaignId: string | null;
559
552
  })[]>;
560
- static countLives(query?: FindCampaignWithStatusModel, includeSubCampaigns?: boolean): Promise<number>;
553
+ static countLives(query?: findCampaignWithStatusModel, includeSubCampaigns?: boolean): Promise<number>;
561
554
  /**
562
555
  * Upserts a campaign in the database. If the campaign already exists, it updates the existing record;
563
556
  * otherwise, it creates a new one.
@@ -671,9 +664,10 @@ export declare abstract class CampaignRepository {
671
664
  address: string;
672
665
  id: string;
673
666
  chainId: number;
674
- type: import("@package/databases").TokenType;
675
667
  icon: string;
676
668
  isNative: boolean;
669
+ isPoint: boolean;
670
+ isPreTGE: boolean;
677
671
  isTest: boolean;
678
672
  verified: boolean;
679
673
  displaySymbol: string;
@@ -751,9 +745,10 @@ export declare abstract class CampaignRepository {
751
745
  address: string;
752
746
  id: string;
753
747
  chainId: number;
754
- type: import("@package/databases").TokenType;
755
748
  icon: string;
756
749
  isNative: boolean;
750
+ isPoint: boolean;
751
+ isPreTGE: boolean;
757
752
  isTest: boolean;
758
753
  verified: boolean;
759
754
  displaySymbol: string;
@@ -840,9 +835,10 @@ export declare abstract class CampaignRepository {
840
835
  address: string;
841
836
  id: string;
842
837
  chainId: number;
843
- type: import("@package/databases").TokenType;
844
838
  icon: string;
845
839
  isNative: boolean;
840
+ isPoint: boolean;
841
+ isPreTGE: boolean;
846
842
  isTest: boolean;
847
843
  verified: boolean;
848
844
  displaySymbol: string;
@@ -920,9 +916,10 @@ export declare abstract class CampaignRepository {
920
916
  address: string;
921
917
  id: string;
922
918
  chainId: number;
923
- type: import("@package/databases").TokenType;
924
919
  icon: string;
925
920
  isNative: boolean;
921
+ isPoint: boolean;
922
+ isPreTGE: boolean;
926
923
  isTest: boolean;
927
924
  verified: boolean;
928
925
  displaySymbol: string;
@@ -1,54 +1,12 @@
1
- import { type CampaignParameters, Campaign as CampaignType, type ChainId, type OnChainCampaignDto } from "@angleprotocol/sdk/ts";
1
+ import { type CampaignParameters, Campaign as CampaignType, type ChainId } from "@angleprotocol/sdk/ts";
2
2
  import type { CampaignManualOverride } from "@package/databases/api";
3
- import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, FindCampaignModel, FindCampaignWithStatusModel, UpdateCampaignCreatorModel, UpdateCampaignModel } from "../../../modules/v4/campaign/campaign.model";
4
- import type { TransactionModel } from "../../../modules/v4/transaction/transaction.model";
3
+ import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, FindCampaignModel, TransactionModel, UpdateCampaignCreatorModel, UpdateCampaignModel, findCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
5
4
  import type { FindCampaignComputedValueModel } from "../computedValue/computedValue.model";
6
5
  import { CampaignFormatter } from "./campaign.formatter";
7
6
  export declare abstract class CampaignService {
8
7
  static hashId(campaign: CampaignUnique): string;
9
- static transformStatusToTimestampFilter(query: {
10
- status: FindCampaignModel["status"];
11
- startTimestamp: FindCampaignModel["startTimestamp"];
12
- endTimestamp: FindCampaignModel["endTimestamp"];
13
- }): {
14
- endTimestamp: {
15
- gt: number;
16
- lt?: undefined;
17
- gte?: undefined;
18
- };
19
- startTimestamp: {
20
- lte: number;
21
- gt?: undefined;
22
- gte?: undefined;
23
- };
24
- } | {
25
- endTimestamp: {
26
- lt: number;
27
- gt?: undefined;
28
- gte?: undefined;
29
- };
30
- startTimestamp?: undefined;
31
- } | {
32
- startTimestamp: {
33
- gt: number;
34
- lte?: undefined;
35
- gte?: undefined;
36
- };
37
- endTimestamp?: undefined;
38
- } | {
39
- endTimestamp: {
40
- gte: number;
41
- gt?: undefined;
42
- lt?: undefined;
43
- } | undefined;
44
- startTimestamp: {
45
- gte: number;
46
- lte?: undefined;
47
- gt?: undefined;
48
- } | undefined;
49
- };
50
8
  static splitIdOrThrow(chainAndCampaignId: `${number}-${string}` | string): CampaignUnique;
51
- static getPastCampaigns(query?: FindCampaignWithStatusModel): Promise<({
9
+ static getPastCampaigns(query?: findCampaignWithStatusModel): Promise<({
52
10
  Opportunity: {
53
11
  name: string;
54
12
  apr: number;
@@ -90,7 +48,7 @@ export declare abstract class CampaignService {
90
48
  rootCampaignId: string | null;
91
49
  parentCampaignId: string | null;
92
50
  })[]>;
93
- static getFutureCampaigns(query?: FindCampaignWithStatusModel): Promise<({
51
+ static getFutureCampaigns(query?: findCampaignWithStatusModel): Promise<({
94
52
  Opportunity: {
95
53
  name: string;
96
54
  apr: number;
@@ -132,7 +90,7 @@ export declare abstract class CampaignService {
132
90
  rootCampaignId: string | null;
133
91
  parentCampaignId: string | null;
134
92
  })[]>;
135
- static getLiveCampaigns(query?: FindCampaignWithStatusModel): Promise<({
93
+ static getLiveCampaigns(query?: findCampaignWithStatusModel): Promise<({
136
94
  Opportunity: {
137
95
  name: string;
138
96
  apr: number;
@@ -183,9 +141,10 @@ export declare abstract class CampaignService {
183
141
  address: string;
184
142
  id: string;
185
143
  chainId: number;
186
- type: import("@package/databases").TokenType;
187
144
  icon: string;
188
145
  isNative: boolean;
146
+ isPoint: boolean;
147
+ isPreTGE: boolean;
189
148
  isTest: boolean;
190
149
  verified: boolean;
191
150
  displaySymbol: string;
@@ -211,8 +170,28 @@ export declare abstract class CampaignService {
211
170
  rootCampaignId: string | null;
212
171
  parentCampaignId: string | null;
213
172
  })[]>;
214
- static countLives(query?: FindCampaignWithStatusModel): Promise<number>;
215
- static create(body: Omit<CreateCampaignModel, "id">, dryRun?: boolean): Promise<Omit<CampaignWithParams, "manualOverrides"> | {
173
+ static countLives(query?: findCampaignWithStatusModel): Promise<number>;
174
+ static create(body: Omit<CreateCampaignModel, "id">, dryRun?: boolean): Promise<{
175
+ campaignId: string;
176
+ description: string | null;
177
+ id: string;
178
+ params: import("@prisma/client/runtime/client").JsonValue;
179
+ amount: string;
180
+ startTimestamp: bigint;
181
+ type: string;
182
+ computeChainId: number;
183
+ distributionChainId: number;
184
+ endTimestamp: bigint;
185
+ distributionType: import("@package/databases").DistributionType;
186
+ subType: number | null;
187
+ rewardTokenId: string;
188
+ opportunityId: string;
189
+ creatorAddress: string;
190
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
191
+ createdAt: Date;
192
+ rootCampaignId: string | null;
193
+ parentCampaignId: string | null;
194
+ } | {
216
195
  id: string;
217
196
  chainId: number;
218
197
  type: string;
@@ -227,9 +206,10 @@ export declare abstract class CampaignService {
227
206
  address: string;
228
207
  id: string;
229
208
  chainId: number;
230
- type: import("@package/databases").TokenType;
231
209
  icon: string;
232
210
  isNative: boolean;
211
+ isPoint: boolean;
212
+ isPreTGE: boolean;
233
213
  isTest: boolean;
234
214
  verified: boolean;
235
215
  } & {
@@ -252,9 +232,10 @@ export declare abstract class CampaignService {
252
232
  address: string;
253
233
  id: string;
254
234
  chainId: number;
255
- type: import("@package/databases").TokenType;
256
235
  icon: string;
257
236
  isNative: boolean;
237
+ isPoint: boolean;
238
+ isPreTGE: boolean;
258
239
  isTest: boolean;
259
240
  verified: boolean;
260
241
  displaySymbol: string;
@@ -286,8 +267,7 @@ export declare abstract class CampaignService {
286
267
  dailyRewards: number;
287
268
  tags: string[];
288
269
  lastCampaignCreatedAt: Date;
289
- })>;
290
- static getNewCampaignEventsFromCreationTxHash(query: TransactionModel): Promise<OnChainCampaignDto[]>;
270
+ }) | undefined>;
291
271
  static getCampaignIdsFromCreationTxHash(query: TransactionModel): Promise<string[]>;
292
272
  /**
293
273
  * @dev back-office function for manual overrides