@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.
@@ -11093,14 +11093,8 @@ export declare const v4: Elysia<"/v4", {
11093
11093
  headers: unknown;
11094
11094
  response: {
11095
11095
  200: Record<string, {
11096
- tvl?: undefined;
11097
- message: string;
11098
- name: string;
11099
- campaign?: undefined;
11100
- opportunity?: undefined;
11101
- } | {
11102
- message?: undefined;
11103
- 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>;
11104
11098
  opportunity: ({
11105
11099
  chainId: number;
11106
11100
  type: string;
@@ -11331,7 +11325,6 @@ export declare const v4: Elysia<"/v4", {
11331
11325
  timestamp: bigint;
11332
11326
  total: number;
11333
11327
  } & {};
11334
- name?: undefined;
11335
11328
  }>;
11336
11329
  422: {
11337
11330
  type: "validation";
@@ -11366,247 +11359,246 @@ export declare const v4: Elysia<"/v4", {
11366
11359
  authorization: string;
11367
11360
  };
11368
11361
  response: {
11369
- 200: Record<string, {
11370
- tvl?: undefined;
11371
- message: string;
11372
- name: string;
11373
- campaign?: undefined;
11374
- opportunity?: undefined;
11375
- } | {
11376
- message?: undefined;
11377
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11378
- opportunity: ({
11379
- chainId: number;
11380
- type: string;
11381
- identifier: string;
11382
- name?: string | undefined;
11383
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11384
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11385
- description?: string | undefined;
11386
- howToSteps?: string[] | undefined;
11387
- tokens: {
11388
- 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: ({
11389
11367
  chainId: number;
11390
- }[];
11391
- protocols?: string[] | undefined;
11392
- mainProtocol?: string | undefined;
11393
- depositUrl?: string | undefined;
11394
- explorerAddress?: string | undefined;
11395
- tags?: string[] | undefined;
11396
- } & {
11397
- id: string;
11398
- }) | ({
11399
- ActivePrograms: {
11400
- icon: string;
11401
- id: string;
11402
- name: string;
11403
- slug: string | null;
11404
- }[];
11405
- AprRecords: ({
11406
- AprBreakdown: {
11407
- identifier: string;
11408
- timestamp: bigint;
11409
- type: import("@package/databases").AprType;
11410
- 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;
11411
11378
  }[];
11379
+ protocols?: string[] | undefined;
11380
+ mainProtocol?: string | undefined;
11381
+ depositUrl?: string | undefined;
11382
+ explorerAddress?: string | undefined;
11383
+ tags?: string[] | undefined;
11412
11384
  } & {
11413
11385
  id: string;
11414
- timestamp: bigint;
11415
- cumulated: number;
11416
- opportunityId: string;
11417
- })[];
11418
- Campaigns: {
11419
- id: string;
11420
- computeChainId: number;
11421
- distributionChainId: number;
11422
- campaignId: string;
11423
- type: string;
11424
- distributionType: import("@package/databases").DistributionType;
11425
- subType: number | null;
11426
- rewardTokenId: string;
11427
- amount: string;
11428
- opportunityId: string;
11429
- startTimestamp: bigint;
11430
- endTimestamp: bigint;
11431
- params: import("@prisma/client/runtime/client").JsonValue;
11432
- description: string | null;
11433
- dailyRewards: number;
11434
- apr: number;
11435
- creatorAddress: string;
11436
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11437
- createdAt: Date;
11438
- rootCampaignId: string | null;
11439
- parentCampaignId: string | null;
11440
- }[];
11441
- Chain: {
11442
- id: number;
11443
- name: string;
11444
- icon: string;
11445
- liveCampaigns: number;
11446
- endOfDisputePeriod: number;
11447
- };
11448
- DailyRewardsRecords: ({
11449
- DailyRewardsBreakdown: ({
11450
- Campaign: {
11451
- 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;
11452
11467
  campaignId: string;
11453
- computedUntil: bigint;
11454
- processingStarted: bigint;
11455
- status: import("@package/databases").RunStatus;
11456
- preComputeStatus: import("@package/databases").RunStatus;
11457
- preComputeProcessingStarted: bigint;
11458
- error: string;
11459
- details: import("@prisma/client/runtime/client").JsonValue;
11460
- }[];
11461
- RewardToken: {
11462
- id: string;
11463
- name: string | null;
11464
- chainId: number;
11465
- address: string;
11466
- decimals: number;
11467
- symbol: string;
11468
- displaySymbol: string;
11469
- icon: string;
11470
- verified: boolean;
11471
- isTest: boolean;
11472
- type: import("@package/databases").TokenType;
11473
- isNative: boolean;
11474
- price: number | null;
11475
- updatedAt: number | null;
11476
- priceSource: string | null;
11468
+ distributionType: import("@package/databases").DistributionType;
11469
+ endTimestamp: bigint;
11470
+ startTimestamp: bigint;
11477
11471
  };
11478
- amount: string;
11472
+ } & {
11473
+ id: string;
11474
+ value: number;
11475
+ timestamp: bigint;
11479
11476
  campaignId: string;
11480
- distributionType: import("@package/databases").DistributionType;
11481
- endTimestamp: bigint;
11482
- startTimestamp: bigint;
11483
- };
11477
+ dailyRewardsRecordId: string;
11478
+ })[];
11484
11479
  } & {
11485
11480
  id: string;
11486
- value: number;
11487
11481
  timestamp: bigint;
11488
- campaignId: string;
11489
- dailyRewardsRecordId: string;
11482
+ total: number;
11483
+ opportunityId: string;
11490
11484
  })[];
11491
- } & {
11492
- id: string;
11493
- timestamp: bigint;
11494
- total: number;
11495
- opportunityId: string;
11496
- })[];
11497
- MainProtocol: {
11498
- id: string;
11499
- tags: string[];
11500
- name: string;
11501
- description: string;
11502
- url: string;
11503
- icon: string;
11504
- banner: string | null;
11505
- opportunityBannerLight: string | null;
11506
- opportunityBannerDark: string | null;
11507
- } | null;
11508
- NativeAprRecords: ({
11509
- RewardToken: {
11485
+ MainProtocol: {
11510
11486
  id: string;
11511
- name: string | null;
11512
- chainId: number;
11513
- address: string;
11514
- decimals: number;
11515
- symbol: string;
11516
- displaySymbol: string;
11487
+ tags: string[];
11488
+ name: string;
11489
+ description: string;
11490
+ url: string;
11517
11491
  icon: string;
11518
- verified: boolean;
11519
- isTest: boolean;
11520
- type: import("@package/databases").TokenType;
11521
- isNative: boolean;
11522
- price: number | null;
11523
- updatedAt: number | null;
11524
- priceSource: string | null;
11492
+ banner: string | null;
11493
+ opportunityBannerLight: string | null;
11494
+ opportunityBannerDark: string | null;
11525
11495
  } | null;
11526
- } & {
11527
- id: string;
11528
- title: string;
11529
- description: string | null;
11530
- timestamp: bigint;
11531
- value: number;
11532
- amount: bigint | null;
11533
- rewardTokenId: string | null;
11534
- opportunityId: string;
11535
- })[];
11536
- Protocols: {
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
+ })[];
11564
+ } & {
11537
11565
  id: string;
11538
- tags: string[];
11566
+ chainId: number;
11567
+ type: string;
11568
+ identifier: string;
11539
11569
  name: string;
11540
11570
  description: string;
11541
- url: string;
11542
- icon: string;
11543
- banner: string | null;
11544
- opportunityBannerLight: string | null;
11545
- opportunityBannerDark: string | null;
11546
- }[];
11547
- Tokens: {
11548
- id: string;
11549
- name: string | null;
11550
- chainId: number;
11551
- address: string;
11552
- decimals: number;
11553
- symbol: string;
11554
- displaySymbol: string;
11555
- icon: string;
11556
- verified: boolean;
11557
- isTest: boolean;
11558
- type: import("@package/databases").TokenType;
11559
- isNative: boolean;
11560
- price: number | null;
11561
- updatedAt: number | null;
11562
- priceSource: string | null;
11563
- }[];
11564
- TvlRecords: ({
11565
- 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: ({
11566
11589
  identifier: string;
11567
11590
  type: import("@package/databases").TvlType;
11568
11591
  value: number;
11569
- }[];
11570
- } & {
11571
- id: string;
11592
+ } & {})[];
11572
11593
  timestamp: bigint;
11573
11594
  total: number;
11574
- opportunityId: string;
11575
- })[];
11576
- } & {
11577
- id: string;
11578
- chainId: number;
11579
- type: string;
11580
- identifier: string;
11581
- name: string;
11582
- description: string;
11583
- howToSteps: string[];
11584
- depositUrl: string | null;
11585
- explorerAddress: string | null;
11586
- status: import("@package/databases").Status;
11587
- action: import("@package/databases").OpportunityAction;
11588
- mainProtocolId: string | null;
11589
- tvl: number;
11590
- apr: number;
11591
- nativeApr: number | null;
11592
- maxApr: number | null;
11593
- dailyRewards: number;
11594
- tags: string[];
11595
- lastCampaignCreatedAt: Date;
11596
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11597
- liveCampaigns: number;
11598
- });
11599
- tvl: {
11600
- breakdowns: ({
11601
- identifier: string;
11602
- type: import("@package/databases").TvlType;
11603
- value: number;
11604
- } & {})[];
11605
- timestamp: bigint;
11606
- total: number;
11607
- } & {};
11608
- name?: undefined;
11609
- }>;
11595
+ } & {};
11596
+ }>;
11597
+ errors: {
11598
+ campaignId: string;
11599
+ error: string;
11600
+ }[];
11601
+ };
11610
11602
  422: {
11611
11603
  type: "validation";
11612
11604
  on: string;
@@ -11636,147 +11628,180 @@ export declare const v4: Elysia<"/v4", {
11636
11628
  authorization: string;
11637
11629
  };
11638
11630
  response: {
11639
- 200: Record<string, {
11640
- tvl?: undefined;
11641
- message: string;
11642
- name: string;
11643
- campaign?: undefined;
11644
- opportunity?: undefined;
11645
- } | {
11646
- message?: undefined;
11647
- campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
11648
- opportunity: ({
11649
- chainId: 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;
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: ({
11659
11636
  chainId: number;
11660
- }[];
11661
- protocols?: string[] | undefined;
11662
- mainProtocol?: string | undefined;
11663
- depositUrl?: string | undefined;
11664
- explorerAddress?: string | undefined;
11665
- tags?: string[] | undefined;
11666
- } & {
11667
- id: string;
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;
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;
11681
11647
  }[];
11648
+ protocols?: string[] | undefined;
11649
+ mainProtocol?: string | undefined;
11650
+ depositUrl?: string | undefined;
11651
+ explorerAddress?: string | undefined;
11652
+ tags?: string[] | undefined;
11682
11653
  } & {
11683
11654
  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: {
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;
11722
11736
  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;
11737
+ distributionType: import("@package/databases").DistributionType;
11738
+ endTimestamp: bigint;
11739
+ startTimestamp: bigint;
11747
11740
  };
11748
- amount: string;
11741
+ } & {
11742
+ id: string;
11743
+ value: number;
11744
+ timestamp: bigint;
11749
11745
  campaignId: string;
11750
- distributionType: import("@package/databases").DistributionType;
11751
- endTimestamp: bigint;
11752
- startTimestamp: bigint;
11753
- };
11746
+ dailyRewardsRecordId: string;
11747
+ })[];
11754
11748
  } & {
11755
11749
  id: string;
11756
- value: number;
11757
11750
  timestamp: bigint;
11758
- campaignId: string;
11759
- dailyRewardsRecordId: string;
11751
+ total: number;
11752
+ opportunityId: string;
11760
11753
  })[];
11761
- } & {
11762
- id: string;
11763
- timestamp: bigint;
11764
- total: number;
11765
- opportunityId: string;
11766
- })[];
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: {
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: {
11780
11805
  id: string;
11781
11806
  name: string | null;
11782
11807
  chainId: number;
@@ -11792,91 +11817,57 @@ export declare const v4: Elysia<"/v4", {
11792
11817
  price: number | null;
11793
11818
  updatedAt: number | null;
11794
11819
  priceSource: string | null;
11795
- } | 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
+ })[];
11796
11833
  } & {
11797
11834
  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[];
11835
+ chainId: number;
11836
+ type: string;
11837
+ identifier: string;
11809
11838
  name: string;
11810
11839
  description: string;
11811
- url: string;
11812
- icon: string;
11813
- banner: string | null;
11814
- opportunityBannerLight: string | null;
11815
- opportunityBannerDark: string | null;
11816
- }[];
11817
- Tokens: {
11818
- id: string;
11819
- name: string | null;
11820
- chainId: number;
11821
- address: string;
11822
- decimals: number;
11823
- symbol: string;
11824
- displaySymbol: string;
11825
- icon: string;
11826
- verified: boolean;
11827
- isTest: boolean;
11828
- type: import("@package/databases").TokenType;
11829
- isNative: boolean;
11830
- price: number | null;
11831
- updatedAt: number | null;
11832
- priceSource: string | null;
11833
- }[];
11834
- TvlRecords: ({
11835
- 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: ({
11836
11858
  identifier: string;
11837
11859
  type: import("@package/databases").TvlType;
11838
11860
  value: number;
11839
- }[];
11840
- } & {
11841
- id: string;
11861
+ } & {})[];
11842
11862
  timestamp: bigint;
11843
11863
  total: number;
11844
- opportunityId: string;
11845
- })[];
11846
- } & {
11847
- id: string;
11848
- chainId: number;
11849
- type: string;
11850
- identifier: string;
11851
- name: string;
11852
- description: string;
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: ({
11871
- identifier: string;
11872
- type: import("@package/databases").TvlType;
11873
- value: number;
11874
- } & {})[];
11875
- timestamp: bigint;
11876
- total: number;
11877
- } & {};
11878
- name?: undefined;
11879
- }>;
11864
+ } & {};
11865
+ }>;
11866
+ errors: {
11867
+ campaignId: string;
11868
+ error: string;
11869
+ }[];
11870
+ };
11880
11871
  422: {
11881
11872
  type: "validation";
11882
11873
  on: string;