@merkl/api 1.5.55 → 1.6.1

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 (24) hide show
  1. package/dist/src/eden/index.d.ts +428 -431
  2. package/dist/src/index.d.ts +430 -433
  3. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  4. package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +3 -0
  5. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +3 -1
  6. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.js.map +1 -1
  7. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +3 -0
  8. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +3 -1
  9. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
  10. package/dist/src/modules/v4/payload/payload.controller.d.ts +412 -421
  11. package/dist/src/modules/v4/payload/payload.controller.js.map +1 -1
  12. package/dist/src/modules/v4/payload/payload.service.d.ts +417 -426
  13. package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
  14. package/dist/src/modules/v4/router.d.ts +430 -433
  15. package/dist/src/scripts/compare-engine-campaigns/campaign-loader.js.map +1 -1
  16. package/dist/src/scripts/compare-engine-campaigns/constants.d.ts +1 -0
  17. package/dist/src/scripts/compare-engine-campaigns/constants.js.map +1 -1
  18. package/dist/src/scripts/compare-engine-campaigns/diff-reporter.js.map +1 -1
  19. package/dist/src/scripts/compare-engine-campaigns/index.js.map +1 -1
  20. package/dist/src/scripts/compare-engine-campaigns/normalizer.d.ts +1 -1
  21. package/dist/src/scripts/compare-engine-campaigns/normalizer.js.map +1 -1
  22. package/dist/src/scripts/recompute-override.js.map +1 -1
  23. package/dist/src/utils/getAPR.d.ts +24 -24
  24. package/package.json +1 -1
@@ -2900,6 +2900,9 @@ declare const app: Elysia<"", {
2900
2900
  authorization: string;
2901
2901
  };
2902
2902
  response: {
2903
+ 200: {
2904
+ success: boolean;
2905
+ };
2903
2906
  422: {
2904
2907
  type: "validation";
2905
2908
  on: string;
@@ -5106,6 +5109,9 @@ declare const app: Elysia<"", {
5106
5109
  authorization: string;
5107
5110
  };
5108
5111
  response: {
5112
+ 200: {
5113
+ success: boolean;
5114
+ };
5109
5115
  422: {
5110
5116
  type: "validation";
5111
5117
  on: string;
@@ -11100,14 +11106,8 @@ declare const app: Elysia<"", {
11100
11106
  headers: unknown;
11101
11107
  response: {
11102
11108
  200: Record<string, {
11103
- message: string;
11104
- name: string;
11105
- campaign?: undefined;
11106
- opportunity?: undefined;
11107
- tvl?: undefined;
11108
- } | {
11109
- message?: undefined;
11110
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11109
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11110
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11111
11111
  opportunity: ({
11112
11112
  chainId: number;
11113
11113
  type: string;
@@ -11338,7 +11338,6 @@ declare const app: Elysia<"", {
11338
11338
  timestamp: bigint;
11339
11339
  total: number;
11340
11340
  } & {};
11341
- name?: undefined;
11342
11341
  }>;
11343
11342
  422: {
11344
11343
  type: "validation";
@@ -11373,247 +11372,246 @@ declare const app: Elysia<"", {
11373
11372
  authorization: string;
11374
11373
  };
11375
11374
  response: {
11376
- 200: Record<string, {
11377
- message: string;
11378
- name: string;
11379
- campaign?: undefined;
11380
- opportunity?: undefined;
11381
- tvl?: undefined;
11382
- } | {
11383
- message?: undefined;
11384
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11385
- opportunity: ({
11386
- chainId: number;
11387
- type: string;
11388
- identifier: string;
11389
- name?: string | undefined;
11390
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11391
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11392
- description?: string | undefined;
11393
- howToSteps?: string[] | undefined;
11394
- tokens: {
11395
- address: string;
11375
+ 200: {
11376
+ campaigns: Record<string, {
11377
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11378
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11379
+ opportunity: ({
11396
11380
  chainId: number;
11397
- }[];
11398
- protocols?: string[] | undefined;
11399
- mainProtocol?: string | undefined;
11400
- depositUrl?: string | undefined;
11401
- explorerAddress?: string | undefined;
11402
- tags?: string[] | undefined;
11403
- } & {
11404
- id: string;
11405
- }) | ({
11406
- ActivePrograms: {
11407
- icon: string;
11408
- id: string;
11409
- name: string;
11410
- slug: string | null;
11411
- }[];
11412
- AprRecords: ({
11413
- AprBreakdown: {
11414
- identifier: string;
11415
- timestamp: bigint;
11416
- type: import("@package/databases").AprType;
11417
- value: number;
11381
+ type: string;
11382
+ identifier: string;
11383
+ name?: string | undefined;
11384
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11385
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11386
+ description?: string | undefined;
11387
+ howToSteps?: string[] | undefined;
11388
+ tokens: {
11389
+ address: string;
11390
+ chainId: number;
11418
11391
  }[];
11392
+ protocols?: string[] | undefined;
11393
+ mainProtocol?: string | undefined;
11394
+ depositUrl?: string | undefined;
11395
+ explorerAddress?: string | undefined;
11396
+ tags?: string[] | undefined;
11419
11397
  } & {
11420
11398
  id: string;
11421
- timestamp: bigint;
11422
- cumulated: number;
11423
- opportunityId: string;
11424
- })[];
11425
- Campaigns: {
11426
- id: string;
11427
- computeChainId: number;
11428
- distributionChainId: number;
11429
- campaignId: string;
11430
- type: string;
11431
- distributionType: import("@package/databases").DistributionType;
11432
- subType: number | null;
11433
- rewardTokenId: string;
11434
- amount: string;
11435
- opportunityId: string;
11436
- startTimestamp: bigint;
11437
- endTimestamp: bigint;
11438
- params: import("@prisma/client/runtime/client").JsonValue;
11439
- description: string | null;
11440
- dailyRewards: number;
11441
- apr: number;
11442
- creatorAddress: string;
11443
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11444
- createdAt: Date;
11445
- rootCampaignId: string | null;
11446
- parentCampaignId: string | null;
11447
- }[];
11448
- Chain: {
11449
- id: number;
11450
- name: string;
11451
- icon: string;
11452
- liveCampaigns: number;
11453
- endOfDisputePeriod: number;
11454
- };
11455
- DailyRewardsRecords: ({
11456
- DailyRewardsBreakdown: ({
11457
- Campaign: {
11458
- CampaignStatus: {
11399
+ }) | ({
11400
+ ActivePrograms: {
11401
+ icon: string;
11402
+ id: string;
11403
+ name: string;
11404
+ slug: string | null;
11405
+ }[];
11406
+ AprRecords: ({
11407
+ AprBreakdown: {
11408
+ identifier: string;
11409
+ timestamp: bigint;
11410
+ type: import("@package/databases").AprType;
11411
+ value: number;
11412
+ }[];
11413
+ } & {
11414
+ id: string;
11415
+ timestamp: bigint;
11416
+ cumulated: number;
11417
+ opportunityId: string;
11418
+ })[];
11419
+ Campaigns: {
11420
+ id: string;
11421
+ computeChainId: number;
11422
+ distributionChainId: number;
11423
+ campaignId: string;
11424
+ type: string;
11425
+ distributionType: import("@package/databases").DistributionType;
11426
+ subType: number | null;
11427
+ rewardTokenId: string;
11428
+ amount: string;
11429
+ opportunityId: string;
11430
+ startTimestamp: bigint;
11431
+ endTimestamp: bigint;
11432
+ params: import("@prisma/client/runtime/client").JsonValue;
11433
+ description: string | null;
11434
+ dailyRewards: number;
11435
+ apr: number;
11436
+ creatorAddress: string;
11437
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11438
+ createdAt: Date;
11439
+ rootCampaignId: string | null;
11440
+ parentCampaignId: string | null;
11441
+ }[];
11442
+ Chain: {
11443
+ id: number;
11444
+ name: string;
11445
+ icon: string;
11446
+ liveCampaigns: number;
11447
+ endOfDisputePeriod: number;
11448
+ };
11449
+ DailyRewardsRecords: ({
11450
+ DailyRewardsBreakdown: ({
11451
+ Campaign: {
11452
+ CampaignStatus: {
11453
+ campaignId: string;
11454
+ computedUntil: bigint;
11455
+ processingStarted: bigint;
11456
+ status: import("@package/databases").RunStatus;
11457
+ preComputeStatus: import("@package/databases").RunStatus;
11458
+ preComputeProcessingStarted: bigint;
11459
+ error: string;
11460
+ details: import("@prisma/client/runtime/client").JsonValue;
11461
+ }[];
11462
+ RewardToken: {
11463
+ id: string;
11464
+ name: string | null;
11465
+ chainId: number;
11466
+ address: string;
11467
+ decimals: number;
11468
+ symbol: string;
11469
+ displaySymbol: string;
11470
+ icon: string;
11471
+ verified: boolean;
11472
+ isTest: boolean;
11473
+ type: import("@package/databases").TokenType;
11474
+ isNative: boolean;
11475
+ price: number | null;
11476
+ updatedAt: number | null;
11477
+ priceSource: string | null;
11478
+ };
11479
+ amount: string;
11459
11480
  campaignId: string;
11460
- computedUntil: bigint;
11461
- processingStarted: bigint;
11462
- status: import("@package/databases").RunStatus;
11463
- preComputeStatus: import("@package/databases").RunStatus;
11464
- preComputeProcessingStarted: bigint;
11465
- error: string;
11466
- details: import("@prisma/client/runtime/client").JsonValue;
11467
- }[];
11468
- RewardToken: {
11469
- id: string;
11470
- name: string | null;
11471
- chainId: number;
11472
- address: string;
11473
- decimals: number;
11474
- symbol: string;
11475
- displaySymbol: string;
11476
- icon: string;
11477
- verified: boolean;
11478
- isTest: boolean;
11479
- type: import("@package/databases").TokenType;
11480
- isNative: boolean;
11481
- price: number | null;
11482
- updatedAt: number | null;
11483
- priceSource: string | null;
11481
+ distributionType: import("@package/databases").DistributionType;
11482
+ endTimestamp: bigint;
11483
+ startTimestamp: bigint;
11484
11484
  };
11485
- amount: string;
11485
+ } & {
11486
+ id: string;
11487
+ value: number;
11488
+ timestamp: bigint;
11486
11489
  campaignId: string;
11487
- distributionType: import("@package/databases").DistributionType;
11488
- endTimestamp: bigint;
11489
- startTimestamp: bigint;
11490
- };
11490
+ dailyRewardsRecordId: string;
11491
+ })[];
11491
11492
  } & {
11492
11493
  id: string;
11493
- value: number;
11494
11494
  timestamp: bigint;
11495
- campaignId: string;
11496
- dailyRewardsRecordId: string;
11495
+ total: number;
11496
+ opportunityId: string;
11497
11497
  })[];
11498
- } & {
11499
- id: string;
11500
- timestamp: bigint;
11501
- total: number;
11502
- opportunityId: string;
11503
- })[];
11504
- MainProtocol: {
11505
- id: string;
11506
- tags: string[];
11507
- name: string;
11508
- description: string;
11509
- url: string;
11510
- icon: string;
11511
- banner: string | null;
11512
- opportunityBannerLight: string | null;
11513
- opportunityBannerDark: string | null;
11514
- } | null;
11515
- NativeAprRecords: ({
11516
- RewardToken: {
11498
+ MainProtocol: {
11517
11499
  id: string;
11518
- name: string | null;
11519
- chainId: number;
11520
- address: string;
11521
- decimals: number;
11522
- symbol: string;
11523
- displaySymbol: string;
11500
+ tags: string[];
11501
+ name: string;
11502
+ description: string;
11503
+ url: string;
11524
11504
  icon: string;
11525
- verified: boolean;
11526
- isTest: boolean;
11527
- type: import("@package/databases").TokenType;
11528
- isNative: boolean;
11529
- price: number | null;
11530
- updatedAt: number | null;
11531
- priceSource: string | null;
11505
+ banner: string | null;
11506
+ opportunityBannerLight: string | null;
11507
+ opportunityBannerDark: string | null;
11532
11508
  } | null;
11509
+ NativeAprRecords: ({
11510
+ RewardToken: {
11511
+ id: string;
11512
+ name: string | null;
11513
+ chainId: number;
11514
+ address: string;
11515
+ decimals: number;
11516
+ symbol: string;
11517
+ displaySymbol: string;
11518
+ icon: string;
11519
+ verified: boolean;
11520
+ isTest: boolean;
11521
+ type: import("@package/databases").TokenType;
11522
+ isNative: boolean;
11523
+ price: number | null;
11524
+ updatedAt: number | null;
11525
+ priceSource: string | null;
11526
+ } | null;
11527
+ } & {
11528
+ id: string;
11529
+ title: string;
11530
+ description: string | null;
11531
+ timestamp: bigint;
11532
+ value: number;
11533
+ amount: bigint | null;
11534
+ rewardTokenId: string | null;
11535
+ opportunityId: string;
11536
+ })[];
11537
+ Protocols: {
11538
+ id: string;
11539
+ tags: string[];
11540
+ name: string;
11541
+ description: string;
11542
+ url: string;
11543
+ icon: string;
11544
+ banner: string | null;
11545
+ opportunityBannerLight: string | null;
11546
+ opportunityBannerDark: string | null;
11547
+ }[];
11548
+ Tokens: {
11549
+ id: string;
11550
+ name: string | null;
11551
+ chainId: number;
11552
+ address: string;
11553
+ decimals: number;
11554
+ symbol: string;
11555
+ displaySymbol: string;
11556
+ icon: string;
11557
+ verified: boolean;
11558
+ isTest: boolean;
11559
+ type: import("@package/databases").TokenType;
11560
+ isNative: boolean;
11561
+ price: number | null;
11562
+ updatedAt: number | null;
11563
+ priceSource: string | null;
11564
+ }[];
11565
+ TvlRecords: ({
11566
+ TvlBreakdown: {
11567
+ identifier: string;
11568
+ type: import("@package/databases").TvlType;
11569
+ value: number;
11570
+ }[];
11571
+ } & {
11572
+ id: string;
11573
+ timestamp: bigint;
11574
+ total: number;
11575
+ opportunityId: string;
11576
+ })[];
11533
11577
  } & {
11534
11578
  id: string;
11535
- title: string;
11536
- description: string | null;
11537
- timestamp: bigint;
11538
- value: number;
11539
- amount: bigint | null;
11540
- rewardTokenId: string | null;
11541
- opportunityId: string;
11542
- })[];
11543
- Protocols: {
11544
- id: string;
11545
- tags: string[];
11579
+ chainId: number;
11580
+ type: string;
11581
+ identifier: string;
11546
11582
  name: string;
11547
11583
  description: string;
11548
- url: string;
11549
- icon: string;
11550
- banner: string | null;
11551
- opportunityBannerLight: string | null;
11552
- opportunityBannerDark: string | null;
11553
- }[];
11554
- Tokens: {
11555
- id: string;
11556
- name: string | null;
11557
- chainId: number;
11558
- address: string;
11559
- decimals: number;
11560
- symbol: string;
11561
- displaySymbol: string;
11562
- icon: string;
11563
- verified: boolean;
11564
- isTest: boolean;
11565
- type: import("@package/databases").TokenType;
11566
- isNative: boolean;
11567
- price: number | null;
11568
- updatedAt: number | null;
11569
- priceSource: string | null;
11570
- }[];
11571
- TvlRecords: ({
11572
- TvlBreakdown: {
11584
+ howToSteps: string[];
11585
+ depositUrl: string | null;
11586
+ explorerAddress: string | null;
11587
+ status: import("@package/databases").Status;
11588
+ action: import("@package/databases").OpportunityAction;
11589
+ mainProtocolId: string | null;
11590
+ tvl: number;
11591
+ apr: number;
11592
+ nativeApr: number | null;
11593
+ maxApr: number | null;
11594
+ dailyRewards: number;
11595
+ tags: string[];
11596
+ lastCampaignCreatedAt: Date;
11597
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11598
+ liveCampaigns: number;
11599
+ });
11600
+ tvl: {
11601
+ breakdowns: ({
11573
11602
  identifier: string;
11574
11603
  type: import("@package/databases").TvlType;
11575
11604
  value: number;
11576
- }[];
11577
- } & {
11578
- id: string;
11605
+ } & {})[];
11579
11606
  timestamp: bigint;
11580
11607
  total: number;
11581
- opportunityId: string;
11582
- })[];
11583
- } & {
11584
- id: string;
11585
- chainId: number;
11586
- type: string;
11587
- identifier: string;
11588
- name: string;
11589
- description: string;
11590
- howToSteps: string[];
11591
- depositUrl: string | null;
11592
- explorerAddress: string | null;
11593
- status: import("@package/databases").Status;
11594
- action: import("@package/databases").OpportunityAction;
11595
- mainProtocolId: string | null;
11596
- tvl: number;
11597
- apr: number;
11598
- nativeApr: number | null;
11599
- maxApr: number | null;
11600
- dailyRewards: number;
11601
- tags: string[];
11602
- lastCampaignCreatedAt: Date;
11603
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11604
- liveCampaigns: number;
11605
- });
11606
- tvl: {
11607
- breakdowns: ({
11608
- identifier: string;
11609
- type: import("@package/databases").TvlType;
11610
- value: number;
11611
- } & {})[];
11612
- timestamp: bigint;
11613
- total: number;
11614
- } & {};
11615
- name?: undefined;
11616
- }>;
11608
+ } & {};
11609
+ }>;
11610
+ errors: {
11611
+ campaignId: string;
11612
+ error: string;
11613
+ }[];
11614
+ };
11617
11615
  422: {
11618
11616
  type: "validation";
11619
11617
  on: string;
@@ -11643,147 +11641,180 @@ declare const app: Elysia<"", {
11643
11641
  authorization: string;
11644
11642
  };
11645
11643
  response: {
11646
- 200: Record<string, {
11647
- message: string;
11648
- name: string;
11649
- campaign?: undefined;
11650
- opportunity?: undefined;
11651
- tvl?: undefined;
11652
- } | {
11653
- message?: undefined;
11654
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11655
- opportunity: ({
11656
- chainId: number;
11657
- type: string;
11658
- identifier: string;
11659
- name?: string | undefined;
11660
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11661
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11662
- description?: string | undefined;
11663
- howToSteps?: string[] | undefined;
11664
- tokens: {
11665
- address: string;
11644
+ 200: {
11645
+ campaigns: Record<string, {
11646
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11647
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11648
+ opportunity: ({
11666
11649
  chainId: number;
11667
- }[];
11668
- protocols?: string[] | undefined;
11669
- mainProtocol?: string | undefined;
11670
- depositUrl?: string | undefined;
11671
- explorerAddress?: string | undefined;
11672
- tags?: string[] | undefined;
11673
- } & {
11674
- id: string;
11675
- }) | ({
11676
- ActivePrograms: {
11677
- icon: string;
11678
- id: string;
11679
- name: string;
11680
- slug: string | null;
11681
- }[];
11682
- AprRecords: ({
11683
- AprBreakdown: {
11684
- identifier: string;
11685
- timestamp: bigint;
11686
- type: import("@package/databases").AprType;
11687
- value: number;
11650
+ type: string;
11651
+ identifier: string;
11652
+ name?: string | undefined;
11653
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11654
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11655
+ description?: string | undefined;
11656
+ howToSteps?: string[] | undefined;
11657
+ tokens: {
11658
+ address: string;
11659
+ chainId: number;
11688
11660
  }[];
11661
+ protocols?: string[] | undefined;
11662
+ mainProtocol?: string | undefined;
11663
+ depositUrl?: string | undefined;
11664
+ explorerAddress?: string | undefined;
11665
+ tags?: string[] | undefined;
11689
11666
  } & {
11690
11667
  id: string;
11691
- timestamp: bigint;
11692
- cumulated: number;
11693
- opportunityId: string;
11694
- })[];
11695
- Campaigns: {
11696
- id: string;
11697
- computeChainId: number;
11698
- distributionChainId: number;
11699
- campaignId: string;
11700
- type: string;
11701
- distributionType: import("@package/databases").DistributionType;
11702
- subType: number | null;
11703
- rewardTokenId: string;
11704
- amount: string;
11705
- opportunityId: string;
11706
- startTimestamp: bigint;
11707
- endTimestamp: bigint;
11708
- params: import("@prisma/client/runtime/client").JsonValue;
11709
- description: string | null;
11710
- dailyRewards: number;
11711
- apr: number;
11712
- creatorAddress: string;
11713
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11714
- createdAt: Date;
11715
- rootCampaignId: string | null;
11716
- parentCampaignId: string | null;
11717
- }[];
11718
- Chain: {
11719
- id: number;
11720
- name: string;
11721
- icon: string;
11722
- liveCampaigns: number;
11723
- endOfDisputePeriod: number;
11724
- };
11725
- DailyRewardsRecords: ({
11726
- DailyRewardsBreakdown: ({
11727
- Campaign: {
11728
- CampaignStatus: {
11668
+ }) | ({
11669
+ ActivePrograms: {
11670
+ icon: string;
11671
+ id: string;
11672
+ name: string;
11673
+ slug: string | null;
11674
+ }[];
11675
+ AprRecords: ({
11676
+ AprBreakdown: {
11677
+ identifier: string;
11678
+ timestamp: bigint;
11679
+ type: import("@package/databases").AprType;
11680
+ value: number;
11681
+ }[];
11682
+ } & {
11683
+ id: string;
11684
+ timestamp: bigint;
11685
+ cumulated: number;
11686
+ opportunityId: string;
11687
+ })[];
11688
+ Campaigns: {
11689
+ id: string;
11690
+ computeChainId: number;
11691
+ distributionChainId: number;
11692
+ campaignId: string;
11693
+ type: string;
11694
+ distributionType: import("@package/databases").DistributionType;
11695
+ subType: number | null;
11696
+ rewardTokenId: string;
11697
+ amount: string;
11698
+ opportunityId: string;
11699
+ startTimestamp: bigint;
11700
+ endTimestamp: bigint;
11701
+ params: import("@prisma/client/runtime/client").JsonValue;
11702
+ description: string | null;
11703
+ dailyRewards: number;
11704
+ apr: number;
11705
+ creatorAddress: string;
11706
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11707
+ createdAt: Date;
11708
+ rootCampaignId: string | null;
11709
+ parentCampaignId: string | null;
11710
+ }[];
11711
+ Chain: {
11712
+ id: number;
11713
+ name: string;
11714
+ icon: string;
11715
+ liveCampaigns: number;
11716
+ endOfDisputePeriod: number;
11717
+ };
11718
+ DailyRewardsRecords: ({
11719
+ DailyRewardsBreakdown: ({
11720
+ Campaign: {
11721
+ CampaignStatus: {
11722
+ campaignId: string;
11723
+ computedUntil: bigint;
11724
+ processingStarted: bigint;
11725
+ status: import("@package/databases").RunStatus;
11726
+ preComputeStatus: import("@package/databases").RunStatus;
11727
+ preComputeProcessingStarted: bigint;
11728
+ error: string;
11729
+ details: import("@prisma/client/runtime/client").JsonValue;
11730
+ }[];
11731
+ RewardToken: {
11732
+ id: string;
11733
+ name: string | null;
11734
+ chainId: number;
11735
+ address: string;
11736
+ decimals: number;
11737
+ symbol: string;
11738
+ displaySymbol: string;
11739
+ icon: string;
11740
+ verified: boolean;
11741
+ isTest: boolean;
11742
+ type: import("@package/databases").TokenType;
11743
+ isNative: boolean;
11744
+ price: number | null;
11745
+ updatedAt: number | null;
11746
+ priceSource: string | null;
11747
+ };
11748
+ amount: string;
11729
11749
  campaignId: string;
11730
- computedUntil: bigint;
11731
- processingStarted: bigint;
11732
- status: import("@package/databases").RunStatus;
11733
- preComputeStatus: import("@package/databases").RunStatus;
11734
- preComputeProcessingStarted: bigint;
11735
- error: string;
11736
- details: import("@prisma/client/runtime/client").JsonValue;
11737
- }[];
11738
- RewardToken: {
11739
- id: string;
11740
- name: string | null;
11741
- chainId: number;
11742
- address: string;
11743
- decimals: number;
11744
- symbol: string;
11745
- displaySymbol: string;
11746
- icon: string;
11747
- verified: boolean;
11748
- isTest: boolean;
11749
- type: import("@package/databases").TokenType;
11750
- isNative: boolean;
11751
- price: number | null;
11752
- updatedAt: number | null;
11753
- priceSource: string | null;
11750
+ distributionType: import("@package/databases").DistributionType;
11751
+ endTimestamp: bigint;
11752
+ startTimestamp: bigint;
11754
11753
  };
11755
- amount: string;
11754
+ } & {
11755
+ id: string;
11756
+ value: number;
11757
+ timestamp: bigint;
11756
11758
  campaignId: string;
11757
- distributionType: import("@package/databases").DistributionType;
11758
- endTimestamp: bigint;
11759
- startTimestamp: bigint;
11760
- };
11759
+ dailyRewardsRecordId: string;
11760
+ })[];
11761
11761
  } & {
11762
11762
  id: string;
11763
- value: number;
11764
11763
  timestamp: bigint;
11765
- campaignId: string;
11766
- dailyRewardsRecordId: string;
11764
+ total: number;
11765
+ opportunityId: string;
11767
11766
  })[];
11768
- } & {
11769
- id: string;
11770
- timestamp: bigint;
11771
- total: number;
11772
- opportunityId: string;
11773
- })[];
11774
- MainProtocol: {
11775
- id: string;
11776
- tags: string[];
11777
- name: string;
11778
- description: string;
11779
- url: string;
11780
- icon: string;
11781
- banner: string | null;
11782
- opportunityBannerLight: string | null;
11783
- opportunityBannerDark: string | null;
11784
- } | null;
11785
- NativeAprRecords: ({
11786
- RewardToken: {
11767
+ MainProtocol: {
11768
+ id: string;
11769
+ tags: string[];
11770
+ name: string;
11771
+ description: string;
11772
+ url: string;
11773
+ icon: string;
11774
+ banner: string | null;
11775
+ opportunityBannerLight: string | null;
11776
+ opportunityBannerDark: string | null;
11777
+ } | null;
11778
+ NativeAprRecords: ({
11779
+ RewardToken: {
11780
+ id: string;
11781
+ name: string | null;
11782
+ chainId: number;
11783
+ address: string;
11784
+ decimals: number;
11785
+ symbol: string;
11786
+ displaySymbol: string;
11787
+ icon: string;
11788
+ verified: boolean;
11789
+ isTest: boolean;
11790
+ type: import("@package/databases").TokenType;
11791
+ isNative: boolean;
11792
+ price: number | null;
11793
+ updatedAt: number | null;
11794
+ priceSource: string | null;
11795
+ } | null;
11796
+ } & {
11797
+ id: string;
11798
+ title: string;
11799
+ description: string | null;
11800
+ timestamp: bigint;
11801
+ value: number;
11802
+ amount: bigint | null;
11803
+ rewardTokenId: string | null;
11804
+ opportunityId: string;
11805
+ })[];
11806
+ Protocols: {
11807
+ id: string;
11808
+ tags: string[];
11809
+ name: string;
11810
+ description: string;
11811
+ url: string;
11812
+ icon: string;
11813
+ banner: string | null;
11814
+ opportunityBannerLight: string | null;
11815
+ opportunityBannerDark: string | null;
11816
+ }[];
11817
+ Tokens: {
11787
11818
  id: string;
11788
11819
  name: string | null;
11789
11820
  chainId: number;
@@ -11799,91 +11830,57 @@ declare const app: Elysia<"", {
11799
11830
  price: number | null;
11800
11831
  updatedAt: number | null;
11801
11832
  priceSource: string | null;
11802
- } | null;
11833
+ }[];
11834
+ TvlRecords: ({
11835
+ TvlBreakdown: {
11836
+ identifier: string;
11837
+ type: import("@package/databases").TvlType;
11838
+ value: number;
11839
+ }[];
11840
+ } & {
11841
+ id: string;
11842
+ timestamp: bigint;
11843
+ total: number;
11844
+ opportunityId: string;
11845
+ })[];
11803
11846
  } & {
11804
11847
  id: string;
11805
- title: string;
11806
- description: string | null;
11807
- timestamp: bigint;
11808
- value: number;
11809
- amount: bigint | null;
11810
- rewardTokenId: string | null;
11811
- opportunityId: string;
11812
- })[];
11813
- Protocols: {
11814
- id: string;
11815
- tags: string[];
11848
+ chainId: number;
11849
+ type: string;
11850
+ identifier: string;
11816
11851
  name: string;
11817
11852
  description: string;
11818
- url: string;
11819
- icon: string;
11820
- banner: string | null;
11821
- opportunityBannerLight: string | null;
11822
- opportunityBannerDark: string | null;
11823
- }[];
11824
- Tokens: {
11825
- id: string;
11826
- name: string | null;
11827
- chainId: number;
11828
- address: string;
11829
- decimals: number;
11830
- symbol: string;
11831
- displaySymbol: string;
11832
- icon: string;
11833
- verified: boolean;
11834
- isTest: boolean;
11835
- type: import("@package/databases").TokenType;
11836
- isNative: boolean;
11837
- price: number | null;
11838
- updatedAt: number | null;
11839
- priceSource: string | null;
11840
- }[];
11841
- TvlRecords: ({
11842
- TvlBreakdown: {
11853
+ howToSteps: string[];
11854
+ depositUrl: string | null;
11855
+ explorerAddress: string | null;
11856
+ status: import("@package/databases").Status;
11857
+ action: import("@package/databases").OpportunityAction;
11858
+ mainProtocolId: string | null;
11859
+ tvl: number;
11860
+ apr: number;
11861
+ nativeApr: number | null;
11862
+ maxApr: number | null;
11863
+ dailyRewards: number;
11864
+ tags: string[];
11865
+ lastCampaignCreatedAt: Date;
11866
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11867
+ liveCampaigns: number;
11868
+ });
11869
+ tvl: {
11870
+ breakdowns: ({
11843
11871
  identifier: string;
11844
11872
  type: import("@package/databases").TvlType;
11845
11873
  value: number;
11846
- }[];
11847
- } & {
11848
- id: string;
11874
+ } & {})[];
11849
11875
  timestamp: bigint;
11850
11876
  total: number;
11851
- opportunityId: string;
11852
- })[];
11853
- } & {
11854
- id: string;
11855
- chainId: number;
11856
- type: string;
11857
- identifier: string;
11858
- name: string;
11859
- description: string;
11860
- howToSteps: string[];
11861
- depositUrl: string | null;
11862
- explorerAddress: string | null;
11863
- status: import("@package/databases").Status;
11864
- action: import("@package/databases").OpportunityAction;
11865
- mainProtocolId: string | null;
11866
- tvl: number;
11867
- apr: number;
11868
- nativeApr: number | null;
11869
- maxApr: number | null;
11870
- dailyRewards: number;
11871
- tags: string[];
11872
- lastCampaignCreatedAt: Date;
11873
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11874
- liveCampaigns: number;
11875
- });
11876
- tvl: {
11877
- breakdowns: ({
11878
- identifier: string;
11879
- type: import("@package/databases").TvlType;
11880
- value: number;
11881
- } & {})[];
11882
- timestamp: bigint;
11883
- total: number;
11884
- } & {};
11885
- name?: undefined;
11886
- }>;
11877
+ } & {};
11878
+ }>;
11879
+ errors: {
11880
+ campaignId: string;
11881
+ error: string;
11882
+ }[];
11883
+ };
11887
11884
  422: {
11888
11885
  type: "validation";
11889
11886
  on: string;