@merkl/api 1.1.15 → 1.1.16

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