@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
@@ -2887,6 +2887,9 @@ export declare const v4: Elysia<"/v4", {
2887
2887
  authorization: string;
2888
2888
  };
2889
2889
  response: {
2890
+ 200: {
2891
+ success: boolean;
2892
+ };
2890
2893
  422: {
2891
2894
  type: "validation";
2892
2895
  on: string;
@@ -5093,6 +5096,9 @@ export declare const v4: Elysia<"/v4", {
5093
5096
  authorization: string;
5094
5097
  };
5095
5098
  response: {
5099
+ 200: {
5100
+ success: boolean;
5101
+ };
5096
5102
  422: {
5097
5103
  type: "validation";
5098
5104
  on: string;
@@ -11087,14 +11093,8 @@ export declare const v4: Elysia<"/v4", {
11087
11093
  headers: unknown;
11088
11094
  response: {
11089
11095
  200: Record<string, {
11090
- tvl?: undefined;
11091
- message: string;
11092
- name: string;
11093
- campaign?: undefined;
11094
- opportunity?: undefined;
11095
- } | {
11096
- message?: undefined;
11097
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11096
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11097
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11098
11098
  opportunity: ({
11099
11099
  chainId: number;
11100
11100
  type: string;
@@ -11325,7 +11325,6 @@ export declare const v4: Elysia<"/v4", {
11325
11325
  timestamp: bigint;
11326
11326
  total: number;
11327
11327
  } & {};
11328
- name?: undefined;
11329
11328
  }>;
11330
11329
  422: {
11331
11330
  type: "validation";
@@ -11360,247 +11359,246 @@ export declare const v4: Elysia<"/v4", {
11360
11359
  authorization: string;
11361
11360
  };
11362
11361
  response: {
11363
- 200: Record<string, {
11364
- tvl?: undefined;
11365
- message: string;
11366
- name: string;
11367
- campaign?: undefined;
11368
- opportunity?: undefined;
11369
- } | {
11370
- message?: undefined;
11371
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11372
- opportunity: ({
11373
- chainId: number;
11374
- type: string;
11375
- identifier: string;
11376
- name?: string | undefined;
11377
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11378
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11379
- description?: string | undefined;
11380
- howToSteps?: string[] | undefined;
11381
- tokens: {
11382
- address: string;
11362
+ 200: {
11363
+ campaigns: Record<string, {
11364
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11365
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11366
+ opportunity: ({
11383
11367
  chainId: number;
11384
- }[];
11385
- protocols?: string[] | undefined;
11386
- mainProtocol?: string | undefined;
11387
- depositUrl?: string | undefined;
11388
- explorerAddress?: string | undefined;
11389
- tags?: string[] | undefined;
11390
- } & {
11391
- id: string;
11392
- }) | ({
11393
- ActivePrograms: {
11394
- icon: string;
11395
- id: string;
11396
- name: string;
11397
- slug: string | null;
11398
- }[];
11399
- AprRecords: ({
11400
- AprBreakdown: {
11401
- identifier: string;
11402
- timestamp: bigint;
11403
- type: import("@package/databases").AprType;
11404
- value: number;
11368
+ type: string;
11369
+ identifier: string;
11370
+ name?: string | undefined;
11371
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11372
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11373
+ description?: string | undefined;
11374
+ howToSteps?: string[] | undefined;
11375
+ tokens: {
11376
+ address: string;
11377
+ chainId: number;
11405
11378
  }[];
11379
+ protocols?: string[] | undefined;
11380
+ mainProtocol?: string | undefined;
11381
+ depositUrl?: string | undefined;
11382
+ explorerAddress?: string | undefined;
11383
+ tags?: string[] | undefined;
11406
11384
  } & {
11407
11385
  id: string;
11408
- timestamp: bigint;
11409
- cumulated: number;
11410
- opportunityId: string;
11411
- })[];
11412
- Campaigns: {
11413
- id: string;
11414
- computeChainId: number;
11415
- distributionChainId: number;
11416
- campaignId: string;
11417
- type: string;
11418
- distributionType: import("@package/databases").DistributionType;
11419
- subType: number | null;
11420
- rewardTokenId: string;
11421
- amount: string;
11422
- opportunityId: string;
11423
- startTimestamp: bigint;
11424
- endTimestamp: bigint;
11425
- params: import("@prisma/client/runtime/client").JsonValue;
11426
- description: string | null;
11427
- dailyRewards: number;
11428
- apr: number;
11429
- creatorAddress: string;
11430
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11431
- createdAt: Date;
11432
- rootCampaignId: string | null;
11433
- parentCampaignId: string | null;
11434
- }[];
11435
- Chain: {
11436
- id: number;
11437
- name: string;
11438
- icon: string;
11439
- liveCampaigns: number;
11440
- endOfDisputePeriod: number;
11441
- };
11442
- DailyRewardsRecords: ({
11443
- DailyRewardsBreakdown: ({
11444
- Campaign: {
11445
- CampaignStatus: {
11386
+ }) | ({
11387
+ ActivePrograms: {
11388
+ icon: string;
11389
+ id: string;
11390
+ name: string;
11391
+ slug: string | null;
11392
+ }[];
11393
+ AprRecords: ({
11394
+ AprBreakdown: {
11395
+ identifier: string;
11396
+ timestamp: bigint;
11397
+ type: import("@package/databases").AprType;
11398
+ value: number;
11399
+ }[];
11400
+ } & {
11401
+ id: string;
11402
+ timestamp: bigint;
11403
+ cumulated: number;
11404
+ opportunityId: string;
11405
+ })[];
11406
+ Campaigns: {
11407
+ id: string;
11408
+ computeChainId: number;
11409
+ distributionChainId: number;
11410
+ campaignId: string;
11411
+ type: string;
11412
+ distributionType: import("@package/databases").DistributionType;
11413
+ subType: number | null;
11414
+ rewardTokenId: string;
11415
+ amount: string;
11416
+ opportunityId: string;
11417
+ startTimestamp: bigint;
11418
+ endTimestamp: bigint;
11419
+ params: import("@prisma/client/runtime/client").JsonValue;
11420
+ description: string | null;
11421
+ dailyRewards: number;
11422
+ apr: number;
11423
+ creatorAddress: string;
11424
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11425
+ createdAt: Date;
11426
+ rootCampaignId: string | null;
11427
+ parentCampaignId: string | null;
11428
+ }[];
11429
+ Chain: {
11430
+ id: number;
11431
+ name: string;
11432
+ icon: string;
11433
+ liveCampaigns: number;
11434
+ endOfDisputePeriod: number;
11435
+ };
11436
+ DailyRewardsRecords: ({
11437
+ DailyRewardsBreakdown: ({
11438
+ Campaign: {
11439
+ CampaignStatus: {
11440
+ campaignId: string;
11441
+ computedUntil: bigint;
11442
+ processingStarted: bigint;
11443
+ status: import("@package/databases").RunStatus;
11444
+ preComputeStatus: import("@package/databases").RunStatus;
11445
+ preComputeProcessingStarted: bigint;
11446
+ error: string;
11447
+ details: import("@prisma/client/runtime/client").JsonValue;
11448
+ }[];
11449
+ RewardToken: {
11450
+ id: string;
11451
+ name: string | null;
11452
+ chainId: number;
11453
+ address: string;
11454
+ decimals: number;
11455
+ symbol: string;
11456
+ displaySymbol: string;
11457
+ icon: string;
11458
+ verified: boolean;
11459
+ isTest: boolean;
11460
+ type: import("@package/databases").TokenType;
11461
+ isNative: boolean;
11462
+ price: number | null;
11463
+ updatedAt: number | null;
11464
+ priceSource: string | null;
11465
+ };
11466
+ amount: string;
11446
11467
  campaignId: string;
11447
- computedUntil: bigint;
11448
- processingStarted: bigint;
11449
- status: import("@package/databases").RunStatus;
11450
- preComputeStatus: import("@package/databases").RunStatus;
11451
- preComputeProcessingStarted: bigint;
11452
- error: string;
11453
- details: import("@prisma/client/runtime/client").JsonValue;
11454
- }[];
11455
- RewardToken: {
11456
- id: string;
11457
- name: string | null;
11458
- chainId: number;
11459
- address: string;
11460
- decimals: number;
11461
- symbol: string;
11462
- displaySymbol: string;
11463
- icon: string;
11464
- verified: boolean;
11465
- isTest: boolean;
11466
- type: import("@package/databases").TokenType;
11467
- isNative: boolean;
11468
- price: number | null;
11469
- updatedAt: number | null;
11470
- priceSource: string | null;
11468
+ distributionType: import("@package/databases").DistributionType;
11469
+ endTimestamp: bigint;
11470
+ startTimestamp: bigint;
11471
11471
  };
11472
- amount: string;
11472
+ } & {
11473
+ id: string;
11474
+ value: number;
11475
+ timestamp: bigint;
11473
11476
  campaignId: string;
11474
- distributionType: import("@package/databases").DistributionType;
11475
- endTimestamp: bigint;
11476
- startTimestamp: bigint;
11477
- };
11477
+ dailyRewardsRecordId: string;
11478
+ })[];
11478
11479
  } & {
11479
11480
  id: string;
11480
- value: number;
11481
11481
  timestamp: bigint;
11482
- campaignId: string;
11483
- dailyRewardsRecordId: string;
11482
+ total: number;
11483
+ opportunityId: string;
11484
11484
  })[];
11485
- } & {
11486
- id: string;
11487
- timestamp: bigint;
11488
- total: number;
11489
- opportunityId: string;
11490
- })[];
11491
- MainProtocol: {
11492
- id: string;
11493
- tags: string[];
11494
- name: string;
11495
- description: string;
11496
- url: string;
11497
- icon: string;
11498
- banner: string | null;
11499
- opportunityBannerLight: string | null;
11500
- opportunityBannerDark: string | null;
11501
- } | null;
11502
- NativeAprRecords: ({
11503
- RewardToken: {
11485
+ MainProtocol: {
11504
11486
  id: string;
11505
- name: string | null;
11506
- chainId: number;
11507
- address: string;
11508
- decimals: number;
11509
- symbol: string;
11510
- displaySymbol: string;
11487
+ tags: string[];
11488
+ name: string;
11489
+ description: string;
11490
+ url: string;
11511
11491
  icon: string;
11512
- verified: boolean;
11513
- isTest: boolean;
11514
- type: import("@package/databases").TokenType;
11515
- isNative: boolean;
11516
- price: number | null;
11517
- updatedAt: number | null;
11518
- priceSource: string | null;
11492
+ banner: string | null;
11493
+ opportunityBannerLight: string | null;
11494
+ opportunityBannerDark: string | null;
11519
11495
  } | null;
11496
+ NativeAprRecords: ({
11497
+ RewardToken: {
11498
+ id: string;
11499
+ name: string | null;
11500
+ chainId: number;
11501
+ address: string;
11502
+ decimals: number;
11503
+ symbol: string;
11504
+ displaySymbol: string;
11505
+ icon: string;
11506
+ verified: boolean;
11507
+ isTest: boolean;
11508
+ type: import("@package/databases").TokenType;
11509
+ isNative: boolean;
11510
+ price: number | null;
11511
+ updatedAt: number | null;
11512
+ priceSource: string | null;
11513
+ } | null;
11514
+ } & {
11515
+ id: string;
11516
+ title: string;
11517
+ description: string | null;
11518
+ timestamp: bigint;
11519
+ value: number;
11520
+ amount: bigint | null;
11521
+ rewardTokenId: string | null;
11522
+ opportunityId: string;
11523
+ })[];
11524
+ Protocols: {
11525
+ id: string;
11526
+ tags: string[];
11527
+ name: string;
11528
+ description: string;
11529
+ url: string;
11530
+ icon: string;
11531
+ banner: string | null;
11532
+ opportunityBannerLight: string | null;
11533
+ opportunityBannerDark: string | null;
11534
+ }[];
11535
+ Tokens: {
11536
+ id: string;
11537
+ name: string | null;
11538
+ chainId: number;
11539
+ address: string;
11540
+ decimals: number;
11541
+ symbol: string;
11542
+ displaySymbol: string;
11543
+ icon: string;
11544
+ verified: boolean;
11545
+ isTest: boolean;
11546
+ type: import("@package/databases").TokenType;
11547
+ isNative: boolean;
11548
+ price: number | null;
11549
+ updatedAt: number | null;
11550
+ priceSource: string | null;
11551
+ }[];
11552
+ TvlRecords: ({
11553
+ TvlBreakdown: {
11554
+ identifier: string;
11555
+ type: import("@package/databases").TvlType;
11556
+ value: number;
11557
+ }[];
11558
+ } & {
11559
+ id: string;
11560
+ timestamp: bigint;
11561
+ total: number;
11562
+ opportunityId: string;
11563
+ })[];
11520
11564
  } & {
11521
11565
  id: string;
11522
- title: string;
11523
- description: string | null;
11524
- timestamp: bigint;
11525
- value: number;
11526
- amount: bigint | null;
11527
- rewardTokenId: string | null;
11528
- opportunityId: string;
11529
- })[];
11530
- Protocols: {
11531
- id: string;
11532
- tags: string[];
11566
+ chainId: number;
11567
+ type: string;
11568
+ identifier: string;
11533
11569
  name: string;
11534
11570
  description: string;
11535
- url: string;
11536
- icon: string;
11537
- banner: string | null;
11538
- opportunityBannerLight: string | null;
11539
- opportunityBannerDark: string | null;
11540
- }[];
11541
- Tokens: {
11542
- id: string;
11543
- name: string | null;
11544
- chainId: number;
11545
- address: string;
11546
- decimals: number;
11547
- symbol: string;
11548
- displaySymbol: string;
11549
- icon: string;
11550
- verified: boolean;
11551
- isTest: boolean;
11552
- type: import("@package/databases").TokenType;
11553
- isNative: boolean;
11554
- price: number | null;
11555
- updatedAt: number | null;
11556
- priceSource: string | null;
11557
- }[];
11558
- TvlRecords: ({
11559
- TvlBreakdown: {
11571
+ howToSteps: string[];
11572
+ depositUrl: string | null;
11573
+ explorerAddress: string | null;
11574
+ status: import("@package/databases").Status;
11575
+ action: import("@package/databases").OpportunityAction;
11576
+ mainProtocolId: string | null;
11577
+ tvl: number;
11578
+ apr: number;
11579
+ nativeApr: number | null;
11580
+ maxApr: number | null;
11581
+ dailyRewards: number;
11582
+ tags: string[];
11583
+ lastCampaignCreatedAt: Date;
11584
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11585
+ liveCampaigns: number;
11586
+ });
11587
+ tvl: {
11588
+ breakdowns: ({
11560
11589
  identifier: string;
11561
11590
  type: import("@package/databases").TvlType;
11562
11591
  value: number;
11563
- }[];
11564
- } & {
11565
- id: string;
11592
+ } & {})[];
11566
11593
  timestamp: bigint;
11567
11594
  total: number;
11568
- opportunityId: string;
11569
- })[];
11570
- } & {
11571
- id: string;
11572
- chainId: number;
11573
- type: string;
11574
- identifier: string;
11575
- name: string;
11576
- description: string;
11577
- howToSteps: string[];
11578
- depositUrl: string | null;
11579
- explorerAddress: string | null;
11580
- status: import("@package/databases").Status;
11581
- action: import("@package/databases").OpportunityAction;
11582
- mainProtocolId: string | null;
11583
- tvl: number;
11584
- apr: number;
11585
- nativeApr: number | null;
11586
- maxApr: number | null;
11587
- dailyRewards: number;
11588
- tags: string[];
11589
- lastCampaignCreatedAt: Date;
11590
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11591
- liveCampaigns: number;
11592
- });
11593
- tvl: {
11594
- breakdowns: ({
11595
- identifier: string;
11596
- type: import("@package/databases").TvlType;
11597
- value: number;
11598
- } & {})[];
11599
- timestamp: bigint;
11600
- total: number;
11601
- } & {};
11602
- name?: undefined;
11603
- }>;
11595
+ } & {};
11596
+ }>;
11597
+ errors: {
11598
+ campaignId: string;
11599
+ error: string;
11600
+ }[];
11601
+ };
11604
11602
  422: {
11605
11603
  type: "validation";
11606
11604
  on: string;
@@ -11630,147 +11628,180 @@ export declare const v4: Elysia<"/v4", {
11630
11628
  authorization: string;
11631
11629
  };
11632
11630
  response: {
11633
- 200: Record<string, {
11634
- tvl?: undefined;
11635
- message: string;
11636
- name: string;
11637
- campaign?: undefined;
11638
- opportunity?: undefined;
11639
- } | {
11640
- message?: undefined;
11641
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11642
- opportunity: ({
11643
- chainId: number;
11644
- type: string;
11645
- identifier: string;
11646
- name?: string | undefined;
11647
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11648
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11649
- description?: string | undefined;
11650
- howToSteps?: string[] | undefined;
11651
- tokens: {
11652
- address: string;
11631
+ 200: {
11632
+ campaigns: Record<string, {
11633
+ config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
11634
+ campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11635
+ opportunity: ({
11653
11636
  chainId: number;
11654
- }[];
11655
- protocols?: string[] | undefined;
11656
- mainProtocol?: string | undefined;
11657
- depositUrl?: string | undefined;
11658
- explorerAddress?: string | undefined;
11659
- tags?: string[] | undefined;
11660
- } & {
11661
- id: string;
11662
- }) | ({
11663
- ActivePrograms: {
11664
- icon: string;
11665
- id: string;
11666
- name: string;
11667
- slug: string | null;
11668
- }[];
11669
- AprRecords: ({
11670
- AprBreakdown: {
11671
- identifier: string;
11672
- timestamp: bigint;
11673
- type: import("@package/databases").AprType;
11674
- value: number;
11637
+ type: string;
11638
+ identifier: string;
11639
+ name?: string | undefined;
11640
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11641
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11642
+ description?: string | undefined;
11643
+ howToSteps?: string[] | undefined;
11644
+ tokens: {
11645
+ address: string;
11646
+ chainId: number;
11675
11647
  }[];
11648
+ protocols?: string[] | undefined;
11649
+ mainProtocol?: string | undefined;
11650
+ depositUrl?: string | undefined;
11651
+ explorerAddress?: string | undefined;
11652
+ tags?: string[] | undefined;
11676
11653
  } & {
11677
11654
  id: string;
11678
- timestamp: bigint;
11679
- cumulated: number;
11680
- opportunityId: string;
11681
- })[];
11682
- Campaigns: {
11683
- id: string;
11684
- computeChainId: number;
11685
- distributionChainId: number;
11686
- campaignId: string;
11687
- type: string;
11688
- distributionType: import("@package/databases").DistributionType;
11689
- subType: number | null;
11690
- rewardTokenId: string;
11691
- amount: string;
11692
- opportunityId: string;
11693
- startTimestamp: bigint;
11694
- endTimestamp: bigint;
11695
- params: import("@prisma/client/runtime/client").JsonValue;
11696
- description: string | null;
11697
- dailyRewards: number;
11698
- apr: number;
11699
- creatorAddress: string;
11700
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11701
- createdAt: Date;
11702
- rootCampaignId: string | null;
11703
- parentCampaignId: string | null;
11704
- }[];
11705
- Chain: {
11706
- id: number;
11707
- name: string;
11708
- icon: string;
11709
- liveCampaigns: number;
11710
- endOfDisputePeriod: number;
11711
- };
11712
- DailyRewardsRecords: ({
11713
- DailyRewardsBreakdown: ({
11714
- Campaign: {
11715
- CampaignStatus: {
11655
+ }) | ({
11656
+ ActivePrograms: {
11657
+ icon: string;
11658
+ id: string;
11659
+ name: string;
11660
+ slug: string | null;
11661
+ }[];
11662
+ AprRecords: ({
11663
+ AprBreakdown: {
11664
+ identifier: string;
11665
+ timestamp: bigint;
11666
+ type: import("@package/databases").AprType;
11667
+ value: number;
11668
+ }[];
11669
+ } & {
11670
+ id: string;
11671
+ timestamp: bigint;
11672
+ cumulated: number;
11673
+ opportunityId: string;
11674
+ })[];
11675
+ Campaigns: {
11676
+ id: string;
11677
+ computeChainId: number;
11678
+ distributionChainId: number;
11679
+ campaignId: string;
11680
+ type: string;
11681
+ distributionType: import("@package/databases").DistributionType;
11682
+ subType: number | null;
11683
+ rewardTokenId: string;
11684
+ amount: string;
11685
+ opportunityId: string;
11686
+ startTimestamp: bigint;
11687
+ endTimestamp: bigint;
11688
+ params: import("@prisma/client/runtime/client").JsonValue;
11689
+ description: string | null;
11690
+ dailyRewards: number;
11691
+ apr: number;
11692
+ creatorAddress: string;
11693
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11694
+ createdAt: Date;
11695
+ rootCampaignId: string | null;
11696
+ parentCampaignId: string | null;
11697
+ }[];
11698
+ Chain: {
11699
+ id: number;
11700
+ name: string;
11701
+ icon: string;
11702
+ liveCampaigns: number;
11703
+ endOfDisputePeriod: number;
11704
+ };
11705
+ DailyRewardsRecords: ({
11706
+ DailyRewardsBreakdown: ({
11707
+ Campaign: {
11708
+ CampaignStatus: {
11709
+ campaignId: string;
11710
+ computedUntil: bigint;
11711
+ processingStarted: bigint;
11712
+ status: import("@package/databases").RunStatus;
11713
+ preComputeStatus: import("@package/databases").RunStatus;
11714
+ preComputeProcessingStarted: bigint;
11715
+ error: string;
11716
+ details: import("@prisma/client/runtime/client").JsonValue;
11717
+ }[];
11718
+ RewardToken: {
11719
+ id: string;
11720
+ name: string | null;
11721
+ chainId: number;
11722
+ address: string;
11723
+ decimals: number;
11724
+ symbol: string;
11725
+ displaySymbol: string;
11726
+ icon: string;
11727
+ verified: boolean;
11728
+ isTest: boolean;
11729
+ type: import("@package/databases").TokenType;
11730
+ isNative: boolean;
11731
+ price: number | null;
11732
+ updatedAt: number | null;
11733
+ priceSource: string | null;
11734
+ };
11735
+ amount: string;
11716
11736
  campaignId: string;
11717
- computedUntil: bigint;
11718
- processingStarted: bigint;
11719
- status: import("@package/databases").RunStatus;
11720
- preComputeStatus: import("@package/databases").RunStatus;
11721
- preComputeProcessingStarted: bigint;
11722
- error: string;
11723
- details: import("@prisma/client/runtime/client").JsonValue;
11724
- }[];
11725
- RewardToken: {
11726
- id: string;
11727
- name: string | null;
11728
- chainId: number;
11729
- address: string;
11730
- decimals: number;
11731
- symbol: string;
11732
- displaySymbol: string;
11733
- icon: string;
11734
- verified: boolean;
11735
- isTest: boolean;
11736
- type: import("@package/databases").TokenType;
11737
- isNative: boolean;
11738
- price: number | null;
11739
- updatedAt: number | null;
11740
- priceSource: string | null;
11737
+ distributionType: import("@package/databases").DistributionType;
11738
+ endTimestamp: bigint;
11739
+ startTimestamp: bigint;
11741
11740
  };
11742
- amount: string;
11741
+ } & {
11742
+ id: string;
11743
+ value: number;
11744
+ timestamp: bigint;
11743
11745
  campaignId: string;
11744
- distributionType: import("@package/databases").DistributionType;
11745
- endTimestamp: bigint;
11746
- startTimestamp: bigint;
11747
- };
11746
+ dailyRewardsRecordId: string;
11747
+ })[];
11748
11748
  } & {
11749
11749
  id: string;
11750
- value: number;
11751
11750
  timestamp: bigint;
11752
- campaignId: string;
11753
- dailyRewardsRecordId: string;
11751
+ total: number;
11752
+ opportunityId: string;
11754
11753
  })[];
11755
- } & {
11756
- id: string;
11757
- timestamp: bigint;
11758
- total: number;
11759
- opportunityId: string;
11760
- })[];
11761
- MainProtocol: {
11762
- id: string;
11763
- tags: string[];
11764
- name: string;
11765
- description: string;
11766
- url: string;
11767
- icon: string;
11768
- banner: string | null;
11769
- opportunityBannerLight: string | null;
11770
- opportunityBannerDark: string | null;
11771
- } | null;
11772
- NativeAprRecords: ({
11773
- RewardToken: {
11754
+ MainProtocol: {
11755
+ id: string;
11756
+ tags: string[];
11757
+ name: string;
11758
+ description: string;
11759
+ url: string;
11760
+ icon: string;
11761
+ banner: string | null;
11762
+ opportunityBannerLight: string | null;
11763
+ opportunityBannerDark: string | null;
11764
+ } | null;
11765
+ NativeAprRecords: ({
11766
+ RewardToken: {
11767
+ id: string;
11768
+ name: string | null;
11769
+ chainId: number;
11770
+ address: string;
11771
+ decimals: number;
11772
+ symbol: string;
11773
+ displaySymbol: string;
11774
+ icon: string;
11775
+ verified: boolean;
11776
+ isTest: boolean;
11777
+ type: import("@package/databases").TokenType;
11778
+ isNative: boolean;
11779
+ price: number | null;
11780
+ updatedAt: number | null;
11781
+ priceSource: string | null;
11782
+ } | null;
11783
+ } & {
11784
+ id: string;
11785
+ title: string;
11786
+ description: string | null;
11787
+ timestamp: bigint;
11788
+ value: number;
11789
+ amount: bigint | null;
11790
+ rewardTokenId: string | null;
11791
+ opportunityId: string;
11792
+ })[];
11793
+ Protocols: {
11794
+ id: string;
11795
+ tags: string[];
11796
+ name: string;
11797
+ description: string;
11798
+ url: string;
11799
+ icon: string;
11800
+ banner: string | null;
11801
+ opportunityBannerLight: string | null;
11802
+ opportunityBannerDark: string | null;
11803
+ }[];
11804
+ Tokens: {
11774
11805
  id: string;
11775
11806
  name: string | null;
11776
11807
  chainId: number;
@@ -11786,91 +11817,57 @@ export declare const v4: Elysia<"/v4", {
11786
11817
  price: number | null;
11787
11818
  updatedAt: number | null;
11788
11819
  priceSource: string | null;
11789
- } | null;
11820
+ }[];
11821
+ TvlRecords: ({
11822
+ TvlBreakdown: {
11823
+ identifier: string;
11824
+ type: import("@package/databases").TvlType;
11825
+ value: number;
11826
+ }[];
11827
+ } & {
11828
+ id: string;
11829
+ timestamp: bigint;
11830
+ total: number;
11831
+ opportunityId: string;
11832
+ })[];
11790
11833
  } & {
11791
11834
  id: string;
11792
- title: string;
11793
- description: string | null;
11794
- timestamp: bigint;
11795
- value: number;
11796
- amount: bigint | null;
11797
- rewardTokenId: string | null;
11798
- opportunityId: string;
11799
- })[];
11800
- Protocols: {
11801
- id: string;
11802
- tags: string[];
11835
+ chainId: number;
11836
+ type: string;
11837
+ identifier: string;
11803
11838
  name: string;
11804
11839
  description: string;
11805
- url: string;
11806
- icon: string;
11807
- banner: string | null;
11808
- opportunityBannerLight: string | null;
11809
- opportunityBannerDark: string | null;
11810
- }[];
11811
- Tokens: {
11812
- id: string;
11813
- name: string | null;
11814
- chainId: number;
11815
- address: string;
11816
- decimals: number;
11817
- symbol: string;
11818
- displaySymbol: string;
11819
- icon: string;
11820
- verified: boolean;
11821
- isTest: boolean;
11822
- type: import("@package/databases").TokenType;
11823
- isNative: boolean;
11824
- price: number | null;
11825
- updatedAt: number | null;
11826
- priceSource: string | null;
11827
- }[];
11828
- TvlRecords: ({
11829
- TvlBreakdown: {
11840
+ howToSteps: string[];
11841
+ depositUrl: string | null;
11842
+ explorerAddress: string | null;
11843
+ status: import("@package/databases").Status;
11844
+ action: import("@package/databases").OpportunityAction;
11845
+ mainProtocolId: string | null;
11846
+ tvl: number;
11847
+ apr: number;
11848
+ nativeApr: number | null;
11849
+ maxApr: number | null;
11850
+ dailyRewards: number;
11851
+ tags: string[];
11852
+ lastCampaignCreatedAt: Date;
11853
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11854
+ liveCampaigns: number;
11855
+ });
11856
+ tvl: {
11857
+ breakdowns: ({
11830
11858
  identifier: string;
11831
11859
  type: import("@package/databases").TvlType;
11832
11860
  value: number;
11833
- }[];
11834
- } & {
11835
- id: string;
11861
+ } & {})[];
11836
11862
  timestamp: bigint;
11837
11863
  total: number;
11838
- opportunityId: string;
11839
- })[];
11840
- } & {
11841
- id: string;
11842
- chainId: number;
11843
- type: string;
11844
- identifier: string;
11845
- name: string;
11846
- description: string;
11847
- howToSteps: string[];
11848
- depositUrl: string | null;
11849
- explorerAddress: string | null;
11850
- status: import("@package/databases").Status;
11851
- action: import("@package/databases").OpportunityAction;
11852
- mainProtocolId: string | null;
11853
- tvl: number;
11854
- apr: number;
11855
- nativeApr: number | null;
11856
- maxApr: number | null;
11857
- dailyRewards: number;
11858
- tags: string[];
11859
- lastCampaignCreatedAt: Date;
11860
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11861
- liveCampaigns: number;
11862
- });
11863
- tvl: {
11864
- breakdowns: ({
11865
- identifier: string;
11866
- type: import("@package/databases").TvlType;
11867
- value: number;
11868
- } & {})[];
11869
- timestamp: bigint;
11870
- total: number;
11871
- } & {};
11872
- name?: undefined;
11873
- }>;
11864
+ } & {};
11865
+ }>;
11866
+ errors: {
11867
+ campaignId: string;
11868
+ error: string;
11869
+ }[];
11870
+ };
11874
11871
  422: {
11875
11872
  type: "validation";
11876
11873
  on: string;