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