@merkl/api 1.0.96 → 1.0.98

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 (29) hide show
  1. package/dist/src/eden/index.d.ts +3282 -252
  2. package/dist/src/index.d.ts +1638 -123
  3. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +380 -18
  4. package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +2 -1
  5. package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -2
  6. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -10
  7. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -28
  8. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +1162 -44
  9. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +14 -1
  10. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -28
  11. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +0 -6
  12. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -10
  13. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -28
  14. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -26
  15. package/dist/src/modules/v4/payload/payload.controller.d.ts +93 -6
  16. package/dist/src/modules/v4/payload/payload.service.d.ts +95 -8
  17. package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +0 -2
  18. package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +0 -2
  19. package/dist/src/modules/v4/reward/reward.model.d.ts +0 -4
  20. package/dist/src/modules/v4/reward/reward.repository.d.ts +0 -4
  21. package/dist/src/modules/v4/reward/reward.service.d.ts +0 -26
  22. package/dist/src/modules/v4/router.d.ts +1638 -123
  23. package/dist/src/modules/v4/token/token.controller.d.ts +3 -21
  24. package/dist/src/modules/v4/token/token.model.d.ts +1 -8
  25. package/dist/src/modules/v4/token/token.repository.d.ts +2 -11
  26. package/dist/src/modules/v4/token/token.service.d.ts +1 -29
  27. package/dist/src/modules/v4/user/user.controller.d.ts +0 -4
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +1 -1
@@ -1,4 +1,7 @@
1
1
  import { type CampaignParameters, Campaign as CampaignType, ChainId, type MerklChainId } from "@angleprotocol/sdk/ts";
2
+ import type { AprRecord } from "../../../modules/v4/apr/apr.model";
3
+ import type { DailyRewardsRecord } from "../../../modules/v4/reward/reward.model";
4
+ import type { TvlRecord } from "../../../modules/v4/tvl/tvl.model";
2
5
  export declare class DynamicDataService {
3
6
  /**
4
7
  * @notice Updates all records for opportunities associated to the given campaigns
@@ -6,7 +9,17 @@ export declare class DynamicDataService {
6
9
  * @dev The list must ONLY contain campaigns of the same type and the same computeChainId
7
10
  */
8
11
  static checkValidUpdate(opportunityId: string, newApr: number): Promise<boolean>;
9
- static update(chainId: ChainId, type: CampaignType, campaigns: CampaignParameters<CampaignType>[], dryRun?: boolean): Promise<unknown[]>;
12
+ static update(chainId: ChainId, type: CampaignType, campaigns: CampaignParameters<CampaignType>[], dryRun?: boolean): Promise<{
13
+ campaignId: string;
14
+ apr: AprRecord["model"];
15
+ tvl: TvlRecord["model"];
16
+ dailyRewards: DailyRewardsRecord["model"];
17
+ }[] | {
18
+ opportunityId: string;
19
+ apr: AprRecord["model"];
20
+ tvl: TvlRecord["model"];
21
+ dailyRewards: DailyRewardsRecord["model"];
22
+ }[]>;
10
23
  static modifyCampaignAPRWithHooks<C extends CampaignType>(campaignDailyValue: number, aprCampaignValue: number, campaign: CampaignParameters<C>): Promise<number>;
11
24
  /**
12
25
  * @dev Recursive function to handle errors in fetching dynamic data
@@ -101,8 +101,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
101
101
  type: "TOKEN" | "PRETGE" | "POINT";
102
102
  icon: string;
103
103
  isNative: boolean;
104
- isPoint: boolean;
105
- isPreTGE: boolean;
106
104
  isTest: boolean;
107
105
  verified: boolean;
108
106
  };
@@ -124,8 +122,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
124
122
  type: "TOKEN" | "PRETGE" | "POINT";
125
123
  icon: string;
126
124
  isNative: boolean;
127
- isPoint: boolean;
128
- isPreTGE: boolean;
129
125
  isTest: boolean;
130
126
  verified: boolean;
131
127
  }[];
@@ -172,8 +168,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
172
168
  type: "TOKEN" | "PRETGE" | "POINT";
173
169
  icon: string;
174
170
  isNative: boolean;
175
- isPoint: boolean;
176
- isPreTGE: boolean;
177
171
  isTest: boolean;
178
172
  verified: boolean;
179
173
  };
@@ -307,8 +301,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
307
301
  type: "TOKEN" | "PRETGE" | "POINT";
308
302
  icon: string;
309
303
  isNative: boolean;
310
- isPoint: boolean;
311
- isPreTGE: boolean;
312
304
  isTest: boolean;
313
305
  verified: boolean;
314
306
  };
@@ -330,8 +322,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
330
322
  type: "TOKEN" | "PRETGE" | "POINT";
331
323
  icon: string;
332
324
  isNative: boolean;
333
- isPoint: boolean;
334
- isPreTGE: boolean;
335
325
  isTest: boolean;
336
326
  verified: boolean;
337
327
  }[];
@@ -448,8 +438,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
448
438
  type: "TOKEN" | "PRETGE" | "POINT";
449
439
  icon: string;
450
440
  isNative: boolean;
451
- isPoint: boolean;
452
- isPreTGE: boolean;
453
441
  isTest: boolean;
454
442
  verified: boolean;
455
443
  };
@@ -471,8 +459,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
471
459
  type: "TOKEN" | "PRETGE" | "POINT";
472
460
  icon: string;
473
461
  isNative: boolean;
474
- isPoint: boolean;
475
- isPreTGE: boolean;
476
462
  isTest: boolean;
477
463
  verified: boolean;
478
464
  }[];
@@ -519,8 +505,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
519
505
  type: "TOKEN" | "PRETGE" | "POINT";
520
506
  icon: string;
521
507
  isNative: boolean;
522
- isPoint: boolean;
523
- isPreTGE: boolean;
524
508
  isTest: boolean;
525
509
  verified: boolean;
526
510
  };
@@ -673,8 +657,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
673
657
  type: "TOKEN" | "PRETGE" | "POINT";
674
658
  icon: string;
675
659
  isNative: boolean;
676
- isPoint: boolean;
677
- isPreTGE: boolean;
678
660
  isTest: boolean;
679
661
  verified: boolean;
680
662
  };
@@ -696,8 +678,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
696
678
  type: "TOKEN" | "PRETGE" | "POINT";
697
679
  icon: string;
698
680
  isNative: boolean;
699
- isPoint: boolean;
700
- isPreTGE: boolean;
701
681
  isTest: boolean;
702
682
  verified: boolean;
703
683
  }[];
@@ -1106,8 +1086,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
1106
1086
  type: import("@package/databases").TokenType;
1107
1087
  icon: string;
1108
1088
  isNative: boolean;
1109
- isPoint: boolean;
1110
- isPreTGE: boolean;
1111
1089
  isTest: boolean;
1112
1090
  verified: boolean;
1113
1091
  } & {
@@ -1133,8 +1111,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
1133
1111
  type: import("@package/databases").TokenType;
1134
1112
  icon: string;
1135
1113
  isNative: boolean;
1136
- isPoint: boolean;
1137
- isPreTGE: boolean;
1138
1114
  isTest: boolean;
1139
1115
  verified: boolean;
1140
1116
  displaySymbol: string;
@@ -1309,8 +1285,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
1309
1285
  type: import("@package/databases").TokenType;
1310
1286
  icon: string;
1311
1287
  isNative: boolean;
1312
- isPoint: boolean;
1313
- isPreTGE: boolean;
1314
1288
  isTest: boolean;
1315
1289
  verified: boolean;
1316
1290
  } & {
@@ -1336,8 +1310,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
1336
1310
  type: import("@package/databases").TokenType;
1337
1311
  icon: string;
1338
1312
  isNative: boolean;
1339
- isPoint: boolean;
1340
- isPreTGE: boolean;
1341
1313
  isTest: boolean;
1342
1314
  verified: boolean;
1343
1315
  displaySymbol: string;
@@ -45,8 +45,6 @@ export declare abstract class OpportunityFormatter {
45
45
  type: import("@package/databases").TokenType;
46
46
  icon: string;
47
47
  isNative: boolean;
48
- isPoint: boolean;
49
- isPreTGE: boolean;
50
48
  isTest: boolean;
51
49
  verified: boolean;
52
50
  displaySymbol: string;
@@ -67,8 +65,6 @@ export declare abstract class OpportunityFormatter {
67
65
  type: import("@package/databases").TokenType;
68
66
  icon: string;
69
67
  isNative: boolean;
70
- isPoint: boolean;
71
- isPreTGE: boolean;
72
68
  isTest: boolean;
73
69
  verified: boolean;
74
70
  } & {
@@ -117,8 +113,6 @@ export declare abstract class OpportunityFormatter {
117
113
  type: import("@package/databases").TokenType;
118
114
  icon: string;
119
115
  isNative: boolean;
120
- isPoint: boolean;
121
- isPreTGE: boolean;
122
116
  isTest: boolean;
123
117
  verified: boolean;
124
118
  } & {
@@ -77,8 +77,6 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
77
77
  verified: import("@sinclair/typebox").TBoolean;
78
78
  isNative: import("@sinclair/typebox").TBoolean;
79
79
  isTest: import("@sinclair/typebox").TBoolean;
80
- isPoint: import("@sinclair/typebox").TBoolean;
81
- isPreTGE: import("@sinclair/typebox").TBoolean;
82
80
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
83
81
  symbol: import("@sinclair/typebox").TString;
84
82
  type: import("@sinclair/typebox").TEnum<{
@@ -148,8 +146,6 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
148
146
  verified: import("@sinclair/typebox").TBoolean;
149
147
  isNative: import("@sinclair/typebox").TBoolean;
150
148
  isTest: import("@sinclair/typebox").TBoolean;
151
- isPoint: import("@sinclair/typebox").TBoolean;
152
- isPreTGE: import("@sinclair/typebox").TBoolean;
153
149
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
154
150
  symbol: import("@sinclair/typebox").TString;
155
151
  type: import("@sinclair/typebox").TEnum<{
@@ -194,8 +190,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
194
190
  verified: import("@sinclair/typebox").TBoolean;
195
191
  isNative: import("@sinclair/typebox").TBoolean;
196
192
  isTest: import("@sinclair/typebox").TBoolean;
197
- isPoint: import("@sinclair/typebox").TBoolean;
198
- isPreTGE: import("@sinclair/typebox").TBoolean;
199
193
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
200
194
  symbol: import("@sinclair/typebox").TString;
201
195
  type: import("@sinclair/typebox").TEnum<{
@@ -297,8 +291,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
297
291
  verified: import("@sinclair/typebox").TBoolean;
298
292
  isNative: import("@sinclair/typebox").TBoolean;
299
293
  isTest: import("@sinclair/typebox").TBoolean;
300
- isPoint: import("@sinclair/typebox").TBoolean;
301
- isPreTGE: import("@sinclair/typebox").TBoolean;
302
294
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
303
295
  symbol: import("@sinclair/typebox").TString;
304
296
  type: import("@sinclair/typebox").TEnum<{
@@ -358,8 +350,6 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
358
350
  verified: import("@sinclair/typebox").TBoolean;
359
351
  isNative: import("@sinclair/typebox").TBoolean;
360
352
  isTest: import("@sinclair/typebox").TBoolean;
361
- isPoint: import("@sinclair/typebox").TBoolean;
362
- isPreTGE: import("@sinclair/typebox").TBoolean;
363
353
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
364
354
  symbol: import("@sinclair/typebox").TString;
365
355
  type: import("@sinclair/typebox").TEnum<{
@@ -22,8 +22,6 @@ export declare abstract class OpportunityRepository {
22
22
  type: TokenType;
23
23
  icon: string;
24
24
  isNative: boolean;
25
- isPoint: boolean;
26
- isPreTGE: boolean;
27
25
  isTest: boolean;
28
26
  verified: boolean;
29
27
  displaySymbol: string;
@@ -74,8 +72,6 @@ export declare abstract class OpportunityRepository {
74
72
  type: TokenType;
75
73
  icon: string;
76
74
  isNative: boolean;
77
- isPoint: boolean;
78
- isPreTGE: boolean;
79
75
  isTest: boolean;
80
76
  verified: boolean;
81
77
  displaySymbol: string;
@@ -112,8 +108,6 @@ export declare abstract class OpportunityRepository {
112
108
  type: TokenType;
113
109
  icon: string;
114
110
  isNative: boolean;
115
- isPoint: boolean;
116
- isPreTGE: boolean;
117
111
  isTest: boolean;
118
112
  verified: boolean;
119
113
  displaySymbol: string;
@@ -185,8 +179,6 @@ export declare abstract class OpportunityRepository {
185
179
  type: TokenType;
186
180
  icon: string;
187
181
  isNative: boolean;
188
- isPoint: boolean;
189
- isPreTGE: boolean;
190
182
  isTest: boolean;
191
183
  verified: boolean;
192
184
  displaySymbol: string;
@@ -262,8 +254,6 @@ export declare abstract class OpportunityRepository {
262
254
  type: TokenType;
263
255
  icon: string;
264
256
  isNative: boolean;
265
- isPoint: boolean;
266
- isPreTGE: boolean;
267
257
  isTest: boolean;
268
258
  verified: boolean;
269
259
  displaySymbol: string;
@@ -335,8 +325,6 @@ export declare abstract class OpportunityRepository {
335
325
  type: TokenType;
336
326
  icon: string;
337
327
  isNative: boolean;
338
- isPoint: boolean;
339
- isPreTGE: boolean;
340
328
  isTest: boolean;
341
329
  verified: boolean;
342
330
  displaySymbol: string;
@@ -432,8 +420,6 @@ export declare abstract class OpportunityRepository {
432
420
  type: TokenType;
433
421
  icon: string;
434
422
  isNative: boolean;
435
- isPoint: boolean;
436
- isPreTGE: boolean;
437
423
  isTest: boolean;
438
424
  verified: boolean;
439
425
  displaySymbol: string;
@@ -470,8 +456,6 @@ export declare abstract class OpportunityRepository {
470
456
  type: TokenType;
471
457
  icon: string;
472
458
  isNative: boolean;
473
- isPoint: boolean;
474
- isPreTGE: boolean;
475
459
  isTest: boolean;
476
460
  verified: boolean;
477
461
  displaySymbol: string;
@@ -543,8 +527,6 @@ export declare abstract class OpportunityRepository {
543
527
  type: TokenType;
544
528
  icon: string;
545
529
  isNative: boolean;
546
- isPoint: boolean;
547
- isPreTGE: boolean;
548
530
  isTest: boolean;
549
531
  verified: boolean;
550
532
  displaySymbol: string;
@@ -627,8 +609,6 @@ export declare abstract class OpportunityRepository {
627
609
  type: TokenType;
628
610
  icon: string;
629
611
  isNative: boolean;
630
- isPoint: boolean;
631
- isPreTGE: boolean;
632
612
  isTest: boolean;
633
613
  verified: boolean;
634
614
  displaySymbol: string;
@@ -700,8 +680,6 @@ export declare abstract class OpportunityRepository {
700
680
  type: TokenType;
701
681
  icon: string;
702
682
  isNative: boolean;
703
- isPoint: boolean;
704
- isPreTGE: boolean;
705
683
  isTest: boolean;
706
684
  verified: boolean;
707
685
  displaySymbol: string;
@@ -802,8 +780,6 @@ export declare abstract class OpportunityRepository {
802
780
  type: TokenType;
803
781
  icon: string;
804
782
  isNative: boolean;
805
- isPoint: boolean;
806
- isPreTGE: boolean;
807
783
  isTest: boolean;
808
784
  verified: boolean;
809
785
  displaySymbol: string;
@@ -840,8 +816,6 @@ export declare abstract class OpportunityRepository {
840
816
  type: TokenType;
841
817
  icon: string;
842
818
  isNative: boolean;
843
- isPoint: boolean;
844
- isPreTGE: boolean;
845
819
  isTest: boolean;
846
820
  verified: boolean;
847
821
  displaySymbol: string;
@@ -913,8 +887,6 @@ export declare abstract class OpportunityRepository {
913
887
  type: TokenType;
914
888
  icon: string;
915
889
  isNative: boolean;
916
- isPoint: boolean;
917
- isPreTGE: boolean;
918
890
  isTest: boolean;
919
891
  verified: boolean;
920
892
  displaySymbol: string;
@@ -66,8 +66,6 @@ export declare abstract class OpportunityService {
66
66
  type: import("@package/databases").TokenType;
67
67
  icon: string;
68
68
  isNative: boolean;
69
- isPoint: boolean;
70
- isPreTGE: boolean;
71
69
  isTest: boolean;
72
70
  verified: boolean;
73
71
  } & {
@@ -93,8 +91,6 @@ export declare abstract class OpportunityService {
93
91
  type: import("@package/databases").TokenType;
94
92
  icon: string;
95
93
  isNative: boolean;
96
- isPoint: boolean;
97
- isPreTGE: boolean;
98
94
  isTest: boolean;
99
95
  verified: boolean;
100
96
  displaySymbol: string;
@@ -150,8 +146,6 @@ export declare abstract class OpportunityService {
150
146
  type: import("@package/databases").TokenType;
151
147
  icon: string;
152
148
  isNative: boolean;
153
- isPoint: boolean;
154
- isPreTGE: boolean;
155
149
  isTest: boolean;
156
150
  verified: boolean;
157
151
  } & {
@@ -177,8 +171,6 @@ export declare abstract class OpportunityService {
177
171
  type: import("@package/databases").TokenType;
178
172
  icon: string;
179
173
  isNative: boolean;
180
- isPoint: boolean;
181
- isPreTGE: boolean;
182
174
  isTest: boolean;
183
175
  verified: boolean;
184
176
  displaySymbol: string;
@@ -233,8 +225,6 @@ export declare abstract class OpportunityService {
233
225
  type: import("@package/databases").TokenType;
234
226
  icon: string;
235
227
  isNative: boolean;
236
- isPoint: boolean;
237
- isPreTGE: boolean;
238
228
  isTest: boolean;
239
229
  verified: boolean;
240
230
  } & {
@@ -260,8 +250,6 @@ export declare abstract class OpportunityService {
260
250
  type: import("@package/databases").TokenType;
261
251
  icon: string;
262
252
  isNative: boolean;
263
- isPoint: boolean;
264
- isPreTGE: boolean;
265
253
  isTest: boolean;
266
254
  verified: boolean;
267
255
  displaySymbol: string;
@@ -350,8 +338,6 @@ export declare abstract class OpportunityService {
350
338
  type: "TOKEN" | "PRETGE" | "POINT";
351
339
  icon: string;
352
340
  isNative: boolean;
353
- isPoint: boolean;
354
- isPreTGE: boolean;
355
341
  isTest: boolean;
356
342
  verified: boolean;
357
343
  };
@@ -373,8 +359,6 @@ export declare abstract class OpportunityService {
373
359
  type: "TOKEN" | "PRETGE" | "POINT";
374
360
  icon: string;
375
361
  isNative: boolean;
376
- isPoint: boolean;
377
- isPreTGE: boolean;
378
362
  isTest: boolean;
379
363
  verified: boolean;
380
364
  }[];
@@ -421,8 +405,6 @@ export declare abstract class OpportunityService {
421
405
  type: "TOKEN" | "PRETGE" | "POINT";
422
406
  icon: string;
423
407
  isNative: boolean;
424
- isPoint: boolean;
425
- isPreTGE: boolean;
426
408
  isTest: boolean;
427
409
  verified: boolean;
428
410
  };
@@ -517,8 +499,6 @@ export declare abstract class OpportunityService {
517
499
  type: import("@package/databases").TokenType;
518
500
  icon: string;
519
501
  isNative: boolean;
520
- isPoint: boolean;
521
- isPreTGE: boolean;
522
502
  isTest: boolean;
523
503
  verified: boolean;
524
504
  displaySymbol: string;
@@ -539,8 +519,6 @@ export declare abstract class OpportunityService {
539
519
  type: import("@package/databases").TokenType;
540
520
  icon: string;
541
521
  isNative: boolean;
542
- isPoint: boolean;
543
- isPreTGE: boolean;
544
522
  isTest: boolean;
545
523
  verified: boolean;
546
524
  } & {
@@ -629,8 +607,6 @@ export declare abstract class OpportunityService {
629
607
  type: import("@package/databases").TokenType;
630
608
  icon: string;
631
609
  isNative: boolean;
632
- isPoint: boolean;
633
- isPreTGE: boolean;
634
610
  isTest: boolean;
635
611
  verified: boolean;
636
612
  displaySymbol: string;
@@ -651,8 +627,6 @@ export declare abstract class OpportunityService {
651
627
  type: import("@package/databases").TokenType;
652
628
  icon: string;
653
629
  isNative: boolean;
654
- isPoint: boolean;
655
- isPreTGE: boolean;
656
630
  isTest: boolean;
657
631
  verified: boolean;
658
632
  } & {
@@ -90,14 +90,101 @@ export declare const PayloadController: Elysia<"/payload", {
90
90
  200: {
91
91
  message: string;
92
92
  name: string;
93
- args?: undefined;
94
- parsedCampaign?: undefined;
95
- payload?: undefined;
93
+ solidity?: undefined;
94
+ campaign?: undefined;
95
+ opportunity?: undefined;
96
+ tvl?: undefined;
96
97
  fee?: undefined;
97
98
  } | {
98
- args: import("@angleprotocol/sdk/ts").OnChainCampaignDto;
99
- parsedCampaign: import("@angleprotocol/sdk/ts").M0Campaign | import("@angleprotocol/sdk/ts").AaveCampaign | import("@angleprotocol/sdk/ts").EigenLayerCampaign | import("@angleprotocol/sdk/ts").ERC20LogCampaign | import("@angleprotocol/sdk/ts").ERC20FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseLogCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseFixAPRCampaign | import("@angleprotocol/sdk/ts").EulerCampaign | import("@angleprotocol/sdk/ts").EventBasedCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogFixCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyFixAPRCampaign | import("@angleprotocol/sdk/ts").TargetTokenCampaign | import("@angleprotocol/sdk/ts").InvalidCampaign | import("@angleprotocol/sdk/ts").ERC20Campaign | import("@angleprotocol/sdk/ts").CLAMMCampaign | import("@angleprotocol/sdk/ts").ERC20_SNAPSHOTCampaign | import("@angleprotocol/sdk/ts").JSON_AIRDROPCampaign | import("@angleprotocol/sdk/ts").SILOCampaign | import("@angleprotocol/sdk/ts").RadiantCampaign | import("@angleprotocol/sdk/ts").DolomiteCampaign | import("@angleprotocol/sdk/ts").BadgerCampaign | import("@angleprotocol/sdk/ts").CompoundCampaign | import("@angleprotocol/sdk/ts").AjnaCampaign | import("@angleprotocol/sdk/ts").UniswapV4Campaign | import("@angleprotocol/sdk/ts").EkuboCampaign | import("@angleprotocol/sdk/ts").IonCampaign | import("@angleprotocol/sdk/ts").VestCampaign | import("@angleprotocol/sdk/ts").SyncswapVaultCampaign | import("@angleprotocol/sdk/ts").AmbientCampaign | import("@angleprotocol/sdk/ts").EncompassingCampaign | import("@angleprotocol/sdk/ts").MaverickBPCampaign | import("@angleprotocol/sdk/ts").ERC6909Campaign | import("@angleprotocol/sdk/ts").ERC6909FixAPRCampaign | import("@angleprotocol/sdk/ts").CompoundV3Campaign | import("@angleprotocol/sdk/ts").CompoundV3FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC721Campaign | import("@angleprotocol/sdk/ts").ERC721FixAPRCampaign | import("@angleprotocol/sdk/ts").MultiLogCampaign | import("@angleprotocol/sdk/ts").LockerCampaign | import("@angleprotocol/sdk/ts").ConvexCampaign | import("@angleprotocol/sdk/ts").StakeDAOCampaign | import("@angleprotocol/sdk/ts").MappingCampaign | import("@angleprotocol/sdk/ts").FraxLendCampaign | import("@angleprotocol/sdk/ts").FraxLendFixAPRCampaign | import("@angleprotocol/sdk/ts").SymbioticVaultCampaign | import("@angleprotocol/sdk/ts").EkuboPositionManagerCampaign | import("@angleprotocol/sdk/ts").MorphoCampaign<import("@angleprotocol/sdk/ts").MorphoSubCampaignType>;
100
- payload: string;
99
+ solidity: {
100
+ args: import("@angleprotocol/sdk/ts").OnChainCampaignDto;
101
+ payload: string;
102
+ };
103
+ campaign: import("@angleprotocol/sdk/ts").M0Campaign | import("@angleprotocol/sdk/ts").AaveCampaign | import("@angleprotocol/sdk/ts").EigenLayerCampaign | import("@angleprotocol/sdk/ts").ERC20LogCampaign | import("@angleprotocol/sdk/ts").ERC20FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseLogCampaign | import("@angleprotocol/sdk/ts").ERC20RebaseFixAPRCampaign | import("@angleprotocol/sdk/ts").EulerCampaign | import("@angleprotocol/sdk/ts").EventBasedCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogCampaign | import("@angleprotocol/sdk/ts").HyperDriveLogFixCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowCampaign | import("@angleprotocol/sdk/ts").MorphoBorrowFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralCampaign | import("@angleprotocol/sdk/ts").MorphoCollateralFixAPRCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyCampaign | import("@angleprotocol/sdk/ts").MorphoSupplyFixAPRCampaign | import("@angleprotocol/sdk/ts").TargetTokenCampaign | import("@angleprotocol/sdk/ts").ERC20Campaign | import("@angleprotocol/sdk/ts").CLAMMCampaign | import("@angleprotocol/sdk/ts").ERC20_SNAPSHOTCampaign | import("@angleprotocol/sdk/ts").JSON_AIRDROPCampaign | import("@angleprotocol/sdk/ts").SILOCampaign | import("@angleprotocol/sdk/ts").RadiantCampaign | import("@angleprotocol/sdk/ts").DolomiteCampaign | import("@angleprotocol/sdk/ts").BadgerCampaign | import("@angleprotocol/sdk/ts").CompoundCampaign | import("@angleprotocol/sdk/ts").AjnaCampaign | import("@angleprotocol/sdk/ts").UniswapV4Campaign | import("@angleprotocol/sdk/ts").EkuboCampaign | import("@angleprotocol/sdk/ts").IonCampaign | import("@angleprotocol/sdk/ts").VestCampaign | import("@angleprotocol/sdk/ts").SyncswapVaultCampaign | import("@angleprotocol/sdk/ts").AmbientCampaign | import("@angleprotocol/sdk/ts").EncompassingCampaign | import("@angleprotocol/sdk/ts").MaverickBPCampaign | import("@angleprotocol/sdk/ts").ERC6909Campaign | import("@angleprotocol/sdk/ts").ERC6909FixAPRCampaign | import("@angleprotocol/sdk/ts").CompoundV3Campaign | import("@angleprotocol/sdk/ts").CompoundV3FixAPRCampaign | import("@angleprotocol/sdk/ts").ERC721Campaign | import("@angleprotocol/sdk/ts").ERC721FixAPRCampaign | import("@angleprotocol/sdk/ts").MultiLogCampaign | import("@angleprotocol/sdk/ts").LockerCampaign | import("@angleprotocol/sdk/ts").ConvexCampaign | import("@angleprotocol/sdk/ts").StakeDAOCampaign | import("@angleprotocol/sdk/ts").MappingCampaign | import("@angleprotocol/sdk/ts").FraxLendCampaign | import("@angleprotocol/sdk/ts").FraxLendFixAPRCampaign | import("@angleprotocol/sdk/ts").SymbioticVaultCampaign | import("@angleprotocol/sdk/ts").EkuboPositionManagerCampaign | import("@angleprotocol/sdk/ts").MorphoCampaign<import("@angleprotocol/sdk/ts").MorphoSubCampaignType>;
104
+ opportunity: Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides"> | {
105
+ id: string;
106
+ chainId: number;
107
+ type: string;
108
+ identifier: string;
109
+ name: string;
110
+ status: "PAST" | "LIVE" | "SOON";
111
+ action: OpportunityAction;
112
+ tokens: ({
113
+ symbol: string;
114
+ name: string | null;
115
+ decimals: number;
116
+ address: string;
117
+ id: string;
118
+ chainId: number;
119
+ type: import("@package/databases").TokenType;
120
+ icon: string;
121
+ isNative: boolean;
122
+ isTest: boolean;
123
+ verified: boolean;
124
+ } & {
125
+ price?: number | null | undefined;
126
+ isTokenWrapper?: boolean | undefined;
127
+ tokenWrapperAddress?: string | undefined;
128
+ })[];
129
+ mainProtocol: "splice" | "curve" | "morpho" | "compound" | "silo" | "reserve" | "gamma" | "vest" | "zero" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quickswap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "pinto" | "mimswap" | "ichi" | "ekubo" | "radiant" | "aave" | "fraxlend" | "ironclad" | "euler" | "gearbox" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "zerolend" | "lnd" | "dlend" | "hyperdrive" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "stability" | "hypurrfi" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "termmax" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "punchswap" | "satlayer" | "puffer" | undefined;
130
+ description: string;
131
+ howToSteps: string[];
132
+ depositUrl: string | undefined;
133
+ explorerAddress: string | undefined;
134
+ tags: string[];
135
+ } | ({
136
+ Tokens: {
137
+ symbol: string;
138
+ name: string | null;
139
+ decimals: number;
140
+ price: number | null;
141
+ address: string;
142
+ id: string;
143
+ chainId: number;
144
+ type: import("@package/databases").TokenType;
145
+ icon: string;
146
+ isNative: boolean;
147
+ isTest: boolean;
148
+ verified: boolean;
149
+ displaySymbol: string;
150
+ }[];
151
+ Protocols: {
152
+ name: string;
153
+ description: string;
154
+ id: string;
155
+ url: string;
156
+ icon: string;
157
+ tags: string[];
158
+ }[];
159
+ } & {
160
+ name: string;
161
+ apr: number;
162
+ tvl: number;
163
+ description: string;
164
+ id: string;
165
+ status: import("@package/databases").Status;
166
+ chainId: number;
167
+ action: import("@package/databases").OpportunityAction;
168
+ type: string;
169
+ depositUrl: string | null;
170
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
171
+ identifier: string;
172
+ howToSteps: string[];
173
+ explorerAddress: string | null;
174
+ mainProtocolId: string | null;
175
+ dailyRewards: number;
176
+ tags: string[];
177
+ lastCampaignCreatedAt: Date;
178
+ });
179
+ tvl: {
180
+ timestamp: bigint;
181
+ total: number;
182
+ breakdowns: ({
183
+ value: number;
184
+ type: import("@package/databases").TvlType;
185
+ identifier: string;
186
+ } & {})[];
187
+ } & {};
101
188
  fee: string | undefined;
102
189
  message?: undefined;
103
190
  name?: undefined;