@merkl/api 1.0.47 → 1.0.49

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 (69) hide show
  1. package/dist/src/eden/index.d.ts +4 -604
  2. package/dist/src/engine/implementations/Ajna/metadata.d.ts +1 -1
  3. package/dist/src/engine/implementations/Ambient/metadata.d.ts +1 -1
  4. package/dist/src/engine/implementations/Badger/metadata.d.ts +1 -1
  5. package/dist/src/engine/implementations/Clamm/metadata.d.ts +1 -1
  6. package/dist/src/engine/implementations/Compound/metadata.d.ts +1 -1
  7. package/dist/src/engine/implementations/CompoundV3/metadata.d.ts +1 -1
  8. package/dist/src/engine/implementations/Default/metadata.d.ts +1 -1
  9. package/dist/src/engine/implementations/Dolomite/metadata.d.ts +1 -1
  10. package/dist/src/engine/implementations/EigenLayer/metadata.d.ts +1 -1
  11. package/dist/src/engine/implementations/Encompassing/metadata.d.ts +1 -1
  12. package/dist/src/engine/implementations/Erc20/metadata.d.ts +1 -1
  13. package/dist/src/engine/implementations/Erc20/subTypes/implementations/aave/metadata.d.ts +1 -1
  14. package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/metadata.d.ts +18 -0
  15. package/dist/src/engine/implementations/Erc20/subTypes/implementations/bunni/tvl.d.ts +6 -0
  16. package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/metadata.d.ts +1 -1
  17. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gamma/metadata.d.ts +1 -1
  18. package/dist/src/engine/implementations/Erc20/subTypes/implementations/gearbox/metadata.d.ts +1 -1
  19. package/dist/src/engine/implementations/Erc20/subTypes/implementations/hypurrfiIsolatedMarket/metadata.d.ts +1 -1
  20. package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +1 -1
  21. package/dist/src/engine/implementations/Erc20/subTypes/implementations/metamorpho/metadata.d.ts +1 -1
  22. package/dist/src/engine/implementations/Erc20/subTypes/implementations/pino/metadata.d.ts +1 -1
  23. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmax/metadata.d.ts +1 -1
  24. package/dist/src/engine/implementations/Erc20/subTypes/implementations/termmaxVault/metadata.d.ts +1 -1
  25. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/metadata.d.ts +1 -1
  26. package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/metadata.d.ts +1 -1
  27. package/dist/src/engine/implementations/Erc20Snapshot/metadata.d.ts +1 -1
  28. package/dist/src/engine/implementations/Erc721/metadata.d.ts +1 -1
  29. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
  30. package/dist/src/engine/implementations/EventBased/metadata.d.ts +1 -1
  31. package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +2 -2
  32. package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +1 -1
  33. package/dist/src/engine/implementations/Hyperdrive/metadata.d.ts +1 -1
  34. package/dist/src/engine/implementations/Ion/metadata.d.ts +1 -1
  35. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
  36. package/dist/src/engine/implementations/Locker/metadata.d.ts +1 -1
  37. package/dist/src/engine/implementations/Morpho/metadata.d.ts +1 -1
  38. package/dist/src/engine/implementations/MultiLog/metadata.d.ts +1 -1
  39. package/dist/src/engine/implementations/Radiant/metadata.d.ts +1 -1
  40. package/dist/src/engine/implementations/Silo/metadata.d.ts +1 -1
  41. package/dist/src/engine/implementations/UniswapV4/metadata.d.ts +1 -1
  42. package/dist/src/engine/implementations/Vest/metadata.d.ts +1 -1
  43. package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +1 -1
  44. package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +1 -1
  45. package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +1 -1
  46. package/dist/src/index.d.ts +2 -307
  47. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +0 -55
  48. package/dist/src/modules/v4/campaign/campaign.convertor.d.ts +6 -0
  49. package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -0
  50. package/dist/src/modules/v4/campaign/campaign.model.d.ts +11 -9
  51. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +32 -31
  52. package/dist/src/modules/v4/campaign/campaign.service.d.ts +18 -702
  53. package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -162
  54. package/dist/src/modules/v4/creator/creator.service.d.ts +2 -162
  55. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +0 -90
  56. package/dist/src/modules/v4/opportunity/opportunity.converter.d.ts +2 -6
  57. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +174 -0
  58. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +15 -5
  59. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +2 -4
  60. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +14 -460
  61. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +125 -1
  62. package/dist/src/modules/v4/reward/reward.service.d.ts +8 -88
  63. package/dist/src/modules/v4/router.d.ts +2 -307
  64. package/dist/src/modules/v4/status/status.model.d.ts +0 -1
  65. package/dist/src/modules/v4/status/status.service.d.ts +2 -2
  66. package/dist/src/utils/prices/services/coinGeckoService.d.ts +1 -1
  67. package/dist/src/utils/prices/services/defillamaService.d.ts +1 -1
  68. package/dist/tsconfig.tsbuildinfo +1 -1
  69. package/package.json +1 -1
@@ -311,87 +311,7 @@ export declare const CreatorController: Elysia<"/creators", {
311
311
  createdAt: Date;
312
312
  rootCampaignId: string | null;
313
313
  parentCampaignId: string | null;
314
- }) | {
315
- params: any;
316
- chain: {
317
- name: string;
318
- id: number;
319
- icon: string;
320
- };
321
- endTimestamp: number;
322
- startTimestamp: number;
323
- rewardToken: {
324
- symbol: string;
325
- name: string | null;
326
- decimals: number;
327
- address: string;
328
- id: string;
329
- chainId: number;
330
- icon: string;
331
- isNative: boolean;
332
- isPoint: boolean;
333
- isPreTGE: boolean;
334
- isTest: boolean;
335
- verified: boolean;
336
- } & {
337
- price?: number | null | undefined;
338
- isTokenWrapper?: boolean | undefined;
339
- tokenWrapperAddress?: string | undefined;
340
- };
341
- distributionChain: {
342
- name: string;
343
- id: number;
344
- icon: string;
345
- } | undefined;
346
- campaignStatus: {
347
- computedUntil: number;
348
- processingStarted: number;
349
- campaignId: string;
350
- error: string;
351
- status: import("@package/databases").RunStatus;
352
- details: import("@prisma/client/runtime/library").JsonValue;
353
- } | undefined;
354
- creatorAddress: string;
355
- creator: {
356
- address: string;
357
- tags: string[];
358
- creatorId: string | null;
359
- };
360
- createdAt: string;
361
- description: string | undefined;
362
- parentCampaignId: string | undefined;
363
- rootCampaignId: string | undefined;
364
- Opportunity: {
365
- name: string;
366
- apr: number;
367
- tvl: number;
368
- description: string;
369
- id: string;
370
- status: import("@package/databases").Status;
371
- chainId: number;
372
- action: import("@package/databases").OpportunityAction;
373
- type: string;
374
- depositUrl: string | null;
375
- explorerAddress: string | null;
376
- howToSteps: string[];
377
- mainProtocolId: string | null;
378
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
379
- identifier: string;
380
- dailyRewards: number;
381
- tags: string[];
382
- lastCampaignCreatedAt: Date;
383
- };
384
- campaignId: string;
385
- id: string;
386
- amount: string;
387
- type: string;
388
- computeChainId: number;
389
- distributionChainId: number;
390
- opportunityId: string;
391
- distributionType: import("@package/databases").DistributionType;
392
- subType: number | null;
393
- rewardTokenId: string;
394
- })[];
314
+ }) | Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">)[];
395
315
  422: {
396
316
  type: "validation";
397
317
  on: string;
@@ -462,87 +382,7 @@ export declare const CreatorController: Elysia<"/creators", {
462
382
  createdAt: Date;
463
383
  rootCampaignId: string | null;
464
384
  parentCampaignId: string | null;
465
- })[] | {
466
- params: any;
467
- chain: {
468
- name: string;
469
- id: number;
470
- icon: string;
471
- };
472
- endTimestamp: number;
473
- startTimestamp: number;
474
- rewardToken: {
475
- symbol: string;
476
- name: string | null;
477
- decimals: number;
478
- address: string;
479
- id: string;
480
- chainId: number;
481
- icon: string;
482
- isNative: boolean;
483
- isPoint: boolean;
484
- isPreTGE: boolean;
485
- isTest: boolean;
486
- verified: boolean;
487
- } & {
488
- price?: number | null | undefined;
489
- isTokenWrapper?: boolean | undefined;
490
- tokenWrapperAddress?: string | undefined;
491
- };
492
- distributionChain: {
493
- name: string;
494
- id: number;
495
- icon: string;
496
- } | undefined;
497
- campaignStatus: {
498
- computedUntil: number;
499
- processingStarted: number;
500
- campaignId: string;
501
- error: string;
502
- status: import("@package/databases").RunStatus;
503
- details: import("@prisma/client/runtime/library").JsonValue;
504
- } | undefined;
505
- creatorAddress: string;
506
- creator: {
507
- address: string;
508
- tags: string[];
509
- creatorId: string | null;
510
- };
511
- createdAt: string;
512
- description: string | undefined;
513
- parentCampaignId: string | undefined;
514
- rootCampaignId: string | undefined;
515
- Opportunity: {
516
- name: string;
517
- apr: number;
518
- tvl: number;
519
- description: string;
520
- id: string;
521
- status: import("@package/databases").Status;
522
- chainId: number;
523
- action: import("@package/databases").OpportunityAction;
524
- type: string;
525
- depositUrl: string | null;
526
- explorerAddress: string | null;
527
- howToSteps: string[];
528
- mainProtocolId: string | null;
529
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
530
- identifier: string;
531
- dailyRewards: number;
532
- tags: string[];
533
- lastCampaignCreatedAt: Date;
534
- };
535
- campaignId: string;
536
- id: string;
537
- amount: string;
538
- type: string;
539
- computeChainId: number;
540
- distributionChainId: number;
541
- opportunityId: string;
542
- distributionType: import("@package/databases").DistributionType;
543
- subType: number | null;
544
- rewardTokenId: string;
545
- }[];
385
+ })[] | Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">[];
546
386
  422: {
547
387
  type: "validation";
548
388
  on: string;
@@ -121,87 +121,7 @@ export declare abstract class CreatorService {
121
121
  createdAt: Date;
122
122
  rootCampaignId: string | null;
123
123
  parentCampaignId: string | null;
124
- }) | {
125
- params: any;
126
- chain: {
127
- name: string;
128
- id: number;
129
- icon: string;
130
- };
131
- endTimestamp: number;
132
- startTimestamp: number;
133
- rewardToken: {
134
- symbol: string;
135
- name: string | null;
136
- decimals: number;
137
- address: string;
138
- id: string;
139
- chainId: number;
140
- icon: string;
141
- isNative: boolean;
142
- isPoint: boolean;
143
- isPreTGE: boolean;
144
- isTest: boolean;
145
- verified: boolean;
146
- } & {
147
- price?: number | null | undefined;
148
- isTokenWrapper?: boolean | undefined;
149
- tokenWrapperAddress?: string | undefined;
150
- };
151
- distributionChain: {
152
- name: string;
153
- id: number;
154
- icon: string;
155
- } | undefined;
156
- campaignStatus: {
157
- computedUntil: number;
158
- processingStarted: number;
159
- campaignId: string;
160
- error: string;
161
- status: import("@package/databases").RunStatus;
162
- details: import("@prisma/client/runtime/library").JsonValue;
163
- } | undefined;
164
- creatorAddress: string;
165
- creator: {
166
- address: string;
167
- tags: string[];
168
- creatorId: string | null;
169
- };
170
- createdAt: string;
171
- description: string | undefined;
172
- parentCampaignId: string | undefined;
173
- rootCampaignId: string | undefined;
174
- Opportunity: {
175
- name: string;
176
- apr: number;
177
- tvl: number;
178
- description: string;
179
- id: string;
180
- status: import("@package/databases").Status;
181
- chainId: number;
182
- action: import("@package/databases").OpportunityAction;
183
- type: string;
184
- depositUrl: string | null;
185
- explorerAddress: string | null;
186
- howToSteps: string[];
187
- mainProtocolId: string | null;
188
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
189
- identifier: string;
190
- dailyRewards: number;
191
- tags: string[];
192
- lastCampaignCreatedAt: Date;
193
- };
194
- campaignId: string;
195
- id: string;
196
- amount: string;
197
- type: string;
198
- computeChainId: number;
199
- distributionChainId: number;
200
- opportunityId: string;
201
- distributionType: import("@package/databases").DistributionType;
202
- subType: number | null;
203
- rewardTokenId: string;
204
- })[]>;
124
+ }) | Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">)[]>;
205
125
  static getCampaignsForAddress(creatorAddress: string, status?: "PAST" | "LIVE" | "FUTURE"): Promise<({
206
126
  Opportunity: {
207
127
  name: string;
@@ -243,87 +163,7 @@ export declare abstract class CreatorService {
243
163
  createdAt: Date;
244
164
  rootCampaignId: string | null;
245
165
  parentCampaignId: string | null;
246
- })[] | {
247
- params: any;
248
- chain: {
249
- name: string;
250
- id: number;
251
- icon: string;
252
- };
253
- endTimestamp: number;
254
- startTimestamp: number;
255
- rewardToken: {
256
- symbol: string;
257
- name: string | null;
258
- decimals: number;
259
- address: string;
260
- id: string;
261
- chainId: number;
262
- icon: string;
263
- isNative: boolean;
264
- isPoint: boolean;
265
- isPreTGE: boolean;
266
- isTest: boolean;
267
- verified: boolean;
268
- } & {
269
- price?: number | null | undefined;
270
- isTokenWrapper?: boolean | undefined;
271
- tokenWrapperAddress?: string | undefined;
272
- };
273
- distributionChain: {
274
- name: string;
275
- id: number;
276
- icon: string;
277
- } | undefined;
278
- campaignStatus: {
279
- computedUntil: number;
280
- processingStarted: number;
281
- campaignId: string;
282
- error: string;
283
- status: import("@package/databases").RunStatus;
284
- details: import("@prisma/client/runtime/library").JsonValue;
285
- } | undefined;
286
- creatorAddress: string;
287
- creator: {
288
- address: string;
289
- tags: string[];
290
- creatorId: string | null;
291
- };
292
- createdAt: string;
293
- description: string | undefined;
294
- parentCampaignId: string | undefined;
295
- rootCampaignId: string | undefined;
296
- Opportunity: {
297
- name: string;
298
- apr: number;
299
- tvl: number;
300
- description: string;
301
- id: string;
302
- status: import("@package/databases").Status;
303
- chainId: number;
304
- action: import("@package/databases").OpportunityAction;
305
- type: string;
306
- depositUrl: string | null;
307
- explorerAddress: string | null;
308
- howToSteps: string[];
309
- mainProtocolId: string | null;
310
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
311
- identifier: string;
312
- dailyRewards: number;
313
- tags: string[];
314
- lastCampaignCreatedAt: Date;
315
- };
316
- campaignId: string;
317
- id: string;
318
- amount: string;
319
- type: string;
320
- computeChainId: number;
321
- distributionChainId: number;
322
- opportunityId: string;
323
- distributionType: import("@package/databases").DistributionType;
324
- subType: number | null;
325
- rewardTokenId: string;
326
- }[]>;
166
+ })[] | Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">[]>;
327
167
  static getCampaignMetrics(campaignId: string): Promise<{
328
168
  tvlRecords: {
329
169
  timestamp: bigint;
@@ -144,7 +144,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
144
144
  campaignStatus?: {
145
145
  error?: string | undefined;
146
146
  details?: any;
147
- campaignId: string;
148
147
  status: string;
149
148
  computedUntil: string | number;
150
149
  processingStarted: string | number;
@@ -183,10 +182,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
183
182
  computeChainId: number;
184
183
  distributionChainId: number;
185
184
  endTimestamp: string | number;
186
- opportunityId: string;
187
185
  creatorAddress: string;
188
186
  subType: number | null;
189
- rewardTokenId: string;
190
187
  createdAt: string;
191
188
  chain: {
192
189
  explorers?: {
@@ -487,7 +484,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
487
484
  campaignStatus?: {
488
485
  error?: string | undefined;
489
486
  details?: any;
490
- campaignId: string;
491
487
  status: string;
492
488
  computedUntil: string | number;
493
489
  processingStarted: string | number;
@@ -526,10 +522,8 @@ export declare const OpportunityController: Elysia<"/opportunities", {
526
522
  computeChainId: number;
527
523
  distributionChainId: number;
528
524
  endTimestamp: string | number;
529
- opportunityId: string;
530
525
  creatorAddress: string;
531
526
  subType: number | null;
532
- rewardTokenId: string;
533
527
  createdAt: string;
534
528
  chain: {
535
529
  explorers?: {
@@ -1059,90 +1053,6 @@ export declare const OpportunityController: Elysia<"/opportunities", {
1059
1053
  };
1060
1054
  };
1061
1055
  };
1062
- } & {
1063
- opportunities: {
1064
- post: {
1065
- body: {
1066
- name?: string | undefined;
1067
- description?: string | undefined;
1068
- depositUrl?: string | undefined;
1069
- explorerAddress?: string | undefined;
1070
- howToSteps?: string[] | undefined;
1071
- tags?: string[] | undefined;
1072
- protocols?: string[] | undefined;
1073
- mainProtocol?: string | undefined;
1074
- tokens: {
1075
- address: string;
1076
- chainId: number;
1077
- }[];
1078
- status: "NONE" | "PAST" | "LIVE" | "SOON";
1079
- chainId: number;
1080
- action: "POOL" | "INVALID" | "HOLD" | "DROP" | "LEND" | "BORROW" | "LONG" | "SHORT" | "SWAP";
1081
- type: string;
1082
- identifier: string;
1083
- };
1084
- params: {};
1085
- query: unknown;
1086
- headers: {
1087
- authorization: string;
1088
- };
1089
- response: {
1090
- 200: {
1091
- Tokens: {
1092
- symbol: string;
1093
- name: string | null;
1094
- decimals: number;
1095
- price: number | null;
1096
- address: string;
1097
- id: string;
1098
- chainId: number;
1099
- icon: string;
1100
- isNative: boolean;
1101
- isPoint: boolean;
1102
- isPreTGE: boolean;
1103
- isTest: boolean;
1104
- verified: boolean;
1105
- displaySymbol: string;
1106
- }[];
1107
- Protocols: {
1108
- name: string;
1109
- description: string;
1110
- id: string;
1111
- url: string;
1112
- icon: string;
1113
- tags: string[];
1114
- }[];
1115
- name: string;
1116
- apr: number;
1117
- tvl: number;
1118
- description: string;
1119
- id: string;
1120
- status: import("@package/databases").Status;
1121
- chainId: number;
1122
- action: import("@package/databases").OpportunityAction;
1123
- type: string;
1124
- depositUrl: string | null;
1125
- explorerAddress: string | null;
1126
- howToSteps: string[];
1127
- mainProtocolId: string | null;
1128
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
1129
- identifier: string;
1130
- dailyRewards: number;
1131
- tags: string[];
1132
- lastCampaignCreatedAt: Date;
1133
- };
1134
- 422: {
1135
- type: "validation";
1136
- on: string;
1137
- summary?: string;
1138
- message?: string;
1139
- found?: unknown;
1140
- property?: string;
1141
- expected?: string;
1142
- };
1143
- };
1144
- };
1145
- };
1146
1056
  } & {
1147
1057
  opportunities: {
1148
1058
  ":id": {
@@ -1,10 +1,6 @@
1
- import { type CampaignParameters, Campaign as CampaignType, type Opportunity as OpportunityV3 } from "@angleprotocol/sdk/ts";
2
- import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
3
- import { OpportunityService } from "../../../modules/v4/opportunity/opportunity.service";
4
- export declare abstract class OpportunityConvertorService {
1
+ import { type Opportunity as OpportunityV3 } from "@angleprotocol/sdk/ts";
2
+ export declare abstract class OpportunityConvertor {
5
3
  #private;
6
- static convertV4CampaignToV3<C extends CampaignType>(campaignType: C, campaign: Exclude<Awaited<ReturnType<(typeof OpportunityService)["findMany"]>>[number]["campaigns"], undefined>[number] | Omit<CampaignWithParams<C>, "manualOverrides">, opportunityIdentifier: string): CampaignParameters<C>;
7
- static convertV4toV3(opportunity: Awaited<ReturnType<(typeof OpportunityService)["findMany"]>>[number], withCampaigns?: boolean): OpportunityV3;
8
4
  static setV3Opportunities(showCampaigns: boolean, test: boolean | undefined, identifier: string | undefined, chainId: string | undefined): Promise<{
9
5
  [id: `0_${string}`]: OpportunityV3;
10
6
  [id: `1_${string}`]: OpportunityV3;
@@ -0,0 +1,174 @@
1
+ import type { OpportunityWithoutRecords, OpportunityWithoutRecordsAndRelation } from "./opportunity.model";
2
+ import type { OpportunityRepository } from "./opportunity.repository";
3
+ export declare abstract class OpportunityFormatter {
4
+ static format(opportunity: Awaited<ReturnType<typeof OpportunityRepository.findUniqueOrThrow>>): {
5
+ aprRecord: {
6
+ cumulated: number;
7
+ timestamp: bigint;
8
+ breakdowns: ({
9
+ value: number;
10
+ distributionType: import("@package/databases").DistributionType;
11
+ identifier: string;
12
+ type: "CAMPAIGN";
13
+ } | {
14
+ value: number;
15
+ identifier: string;
16
+ type: import("@package/databases").AprType;
17
+ })[];
18
+ };
19
+ tvlRecord: {
20
+ id: string;
21
+ total: number;
22
+ timestamp: bigint;
23
+ breakdowns: {
24
+ value: number;
25
+ type: import("@package/databases").TvlType;
26
+ identifier: string;
27
+ }[];
28
+ };
29
+ rewardsRecord: {
30
+ id: string;
31
+ total: number;
32
+ timestamp: bigint;
33
+ breakdowns: {
34
+ campaignId: string;
35
+ id: string;
36
+ dailyRewardsRecordId: string;
37
+ token: {
38
+ symbol: string;
39
+ name: string | null;
40
+ decimals: number;
41
+ price: number | null;
42
+ address: string;
43
+ id: string;
44
+ chainId: number;
45
+ icon: string;
46
+ isNative: boolean;
47
+ isPoint: boolean;
48
+ isPreTGE: boolean;
49
+ isTest: boolean;
50
+ verified: boolean;
51
+ displaySymbol: string;
52
+ };
53
+ amount: bigint;
54
+ value: number;
55
+ distributionType: import("@package/databases").DistributionType;
56
+ }[];
57
+ };
58
+ campaigns: Omit<import("../campaign/campaign.model").CampaignWithParams, "manualOverrides">[] | undefined;
59
+ tokens: ({
60
+ symbol: string;
61
+ name: string | null;
62
+ decimals: number;
63
+ address: string;
64
+ id: string;
65
+ chainId: number;
66
+ icon: string;
67
+ isNative: boolean;
68
+ isPoint: boolean;
69
+ isPreTGE: boolean;
70
+ isTest: boolean;
71
+ verified: boolean;
72
+ } & {
73
+ price?: number | null | undefined;
74
+ isTokenWrapper?: boolean | undefined;
75
+ tokenWrapperAddress?: string | undefined;
76
+ })[];
77
+ chain: {
78
+ name: string;
79
+ id: number;
80
+ icon: string;
81
+ };
82
+ protocol: {
83
+ name: string;
84
+ description: string;
85
+ id: string;
86
+ url: string;
87
+ icon: string;
88
+ tags: string[];
89
+ } | undefined;
90
+ id: string;
91
+ depositUrl: string | undefined;
92
+ explorerAddress: string | undefined;
93
+ lastCampaignCreatedAt: string;
94
+ name: string;
95
+ apr: number;
96
+ tvl: number;
97
+ description: string;
98
+ status: import("@package/databases").Status;
99
+ chainId: number;
100
+ action: import("@package/databases").OpportunityAction;
101
+ type: string;
102
+ howToSteps: string[];
103
+ identifier: string;
104
+ dailyRewards: number;
105
+ tags: string[];
106
+ };
107
+ static formatWithoutRecords(opportunity: OpportunityWithoutRecords): {
108
+ tokens: ({
109
+ symbol: string;
110
+ name: string | null;
111
+ decimals: number;
112
+ address: string;
113
+ id: string;
114
+ chainId: number;
115
+ icon: string;
116
+ isNative: boolean;
117
+ isPoint: boolean;
118
+ isPreTGE: boolean;
119
+ isTest: boolean;
120
+ verified: boolean;
121
+ } & {
122
+ price?: number | null | undefined;
123
+ isTokenWrapper?: boolean | undefined;
124
+ tokenWrapperAddress?: string | undefined;
125
+ })[];
126
+ chain: {
127
+ name: string;
128
+ id: number;
129
+ icon: string;
130
+ };
131
+ protocol: {
132
+ name: string;
133
+ description: string;
134
+ id: string;
135
+ url: string;
136
+ icon: string;
137
+ tags: string[];
138
+ } | undefined;
139
+ id: string;
140
+ depositUrl: string | undefined;
141
+ explorerAddress: string | undefined;
142
+ lastCampaignCreatedAt: string;
143
+ name: string;
144
+ apr: number;
145
+ tvl: number;
146
+ description: string;
147
+ status: import("@package/databases").Status;
148
+ chainId: number;
149
+ action: import("@package/databases").OpportunityAction;
150
+ type: string;
151
+ howToSteps: string[];
152
+ identifier: string;
153
+ dailyRewards: number;
154
+ tags: string[];
155
+ };
156
+ static formatWithoutRecordsAndRelations(opportunity: OpportunityWithoutRecordsAndRelation): {
157
+ id: string;
158
+ depositUrl: string | undefined;
159
+ explorerAddress: string | undefined;
160
+ lastCampaignCreatedAt: string;
161
+ name: string;
162
+ apr: number;
163
+ tvl: number;
164
+ description: string;
165
+ status: import("@package/databases").Status;
166
+ chainId: number;
167
+ action: import("@package/databases").OpportunityAction;
168
+ type: string;
169
+ howToSteps: string[];
170
+ identifier: string;
171
+ dailyRewards: number;
172
+ tags: string[];
173
+ };
174
+ }