@merkl/api 1.8.38 → 1.9.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 (78) hide show
  1. package/dist/src/constants.js.map +1 -1
  2. package/dist/src/eden/index.d.ts +2000 -750
  3. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +0 -364
  4. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js.map +1 -1
  5. package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +1 -1
  6. package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +1 -1
  7. package/dist/src/engine/implementations/Erc20/subTypes/index.js.map +1 -1
  8. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
  9. package/dist/src/engine/implementations/FraxLend/metadataBorrow.d.ts +2 -2
  10. package/dist/src/engine/implementations/FraxLend/metadataCollateral.d.ts +1 -1
  11. package/dist/src/engine/implementations/FraxLend/tvlBorrow.d.ts +2 -2
  12. package/dist/src/engine/implementations/FraxLend/tvlCollateral.d.ts +2 -2
  13. package/dist/src/engine/implementations/StabullStaking/metadata.d.ts +1 -1
  14. package/dist/src/engine/implementations/morphoBorrow/metadata.d.ts +1 -1
  15. package/dist/src/engine/implementations/morphoBorrow/tvl.d.ts +2 -2
  16. package/dist/src/engine/implementations/morphoCollateral/metadata.d.ts +1 -1
  17. package/dist/src/engine/implementations/morphoCollateral/tvl.d.ts +2 -2
  18. package/dist/src/engine/implementations/morphoSupply/metadata.d.ts +1 -1
  19. package/dist/src/engine/implementations/morphoSupply/tvl.d.ts +2 -2
  20. package/dist/src/engine/metadata/factory.js.map +1 -1
  21. package/dist/src/engine/tvl/factory.js.map +1 -1
  22. package/dist/src/index.d.ts +2063 -813
  23. package/dist/src/jobs/update-dynamic-data.js.map +1 -1
  24. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +448 -84
  25. package/dist/src/modules/v4/campaign/campaign.convertor.js.map +1 -1
  26. package/dist/src/modules/v4/campaign/campaign.model.d.ts +10 -9
  27. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  28. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +15 -15
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -0
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +36 -0
  31. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  32. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +16 -0
  33. package/dist/src/modules/v4/campaignStatus/campaignStatus.model.d.ts +2 -1
  34. package/dist/src/modules/v4/campaignStatus/campaignStatus.model.js.map +1 -1
  35. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +106 -84
  36. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +24 -0
  37. package/dist/src/modules/v4/carousel/carousel.service.d.ts +84 -56
  38. package/dist/src/modules/v4/carousel/carousel.service.js.map +1 -1
  39. package/dist/src/modules/v4/config/config.controller.d.ts +4 -0
  40. package/dist/src/modules/v4/config/config.service.d.ts +4 -0
  41. package/dist/src/modules/v4/creator/creator.controller.d.ts +132 -16
  42. package/dist/src/modules/v4/creator/creator.model.d.ts +192 -19
  43. package/dist/src/modules/v4/creator/creator.service.d.ts +4 -0
  44. package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
  45. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +1183 -483
  46. package/dist/src/modules/v4/opportunity/opportunity.converter.js.map +1 -1
  47. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +16 -0
  48. package/dist/src/modules/v4/opportunity/opportunity.formatter.js.map +1 -1
  49. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +483 -128
  50. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  51. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +4 -0
  52. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -1
  53. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +57 -0
  54. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  55. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +687 -279
  56. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  57. package/dist/src/modules/v4/payload/payload.controller.d.ts +12 -0
  58. package/dist/src/modules/v4/payload/payload.service.d.ts +16 -0
  59. package/dist/src/modules/v4/program/program.controller.d.ts +60 -56
  60. package/dist/src/modules/v4/program/program.repository.d.ts +16 -0
  61. package/dist/src/modules/v4/program/program.service.d.ts +60 -56
  62. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +72 -27
  63. package/dist/src/modules/v4/programPayload/programPayload.repository.js.map +1 -1
  64. package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.js.map +1 -1
  65. package/dist/src/modules/v4/programPayload/subPayloads/nibiru.js.map +1 -1
  66. package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -0
  67. package/dist/src/modules/v4/reward/reward.service.d.ts +67 -14
  68. package/dist/src/modules/v4/router.d.ts +2063 -813
  69. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +30 -28
  70. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +15 -14
  71. package/dist/src/modules/v4/user/user.controller.d.ts +25 -15
  72. package/dist/src/modules/v4/user/user.model.d.ts +2 -1
  73. package/dist/src/scripts/importOpportunities.js.map +1 -1
  74. package/dist/src/scripts/seed.js.map +1 -1
  75. package/dist/src/utils/getAPR.d.ts +78 -680
  76. package/dist/src/utils/parseDistributionType.d.ts +8 -610
  77. package/dist/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +1 -1
@@ -843,6 +843,10 @@ declare const app: Elysia<"", {
843
843
  depositUrl: string | undefined;
844
844
  explorerAddress: string | undefined;
845
845
  lastCampaignCreatedAt: number;
846
+ earliestCampaignStart: bigint | undefined;
847
+ latestCampaignStart: bigint | undefined;
848
+ earliestCampaignEnd: bigint | undefined;
849
+ latestCampaignEnd: bigint | undefined;
846
850
  };
847
851
  };
848
852
  422: {
@@ -875,10 +879,10 @@ declare const app: Elysia<"", {
875
879
  distributionChainId: number;
876
880
  campaignId: string;
877
881
  type: string;
878
- subType: number | null;
882
+ subType?: number | null | undefined;
879
883
  amount: string;
880
- startTimestamp: string | number;
881
- endTimestamp: string | number;
884
+ startTimestamp: string | number | bigint;
885
+ endTimestamp: string | number | bigint;
882
886
  creatorAddress: string;
883
887
  apr?: number | undefined;
884
888
  dailyRewards?: number | undefined;
@@ -887,7 +891,7 @@ declare const app: Elysia<"", {
887
891
  tags?: string[] | undefined;
888
892
  creatorId?: string | null | undefined;
889
893
  } | undefined;
890
- params: any;
894
+ params: unknown;
891
895
  description?: string | undefined;
892
896
  chain: {
893
897
  id: number;
@@ -936,6 +940,7 @@ declare const app: Elysia<"", {
936
940
  } | undefined;
937
941
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
938
942
  campaignStatus: {
943
+ campaignId: string;
939
944
  computedUntil: string | number;
940
945
  processingStarted: string | number;
941
946
  status: string;
@@ -943,11 +948,11 @@ declare const app: Elysia<"", {
943
948
  preComputeStatus: string;
944
949
  delay?: number | undefined;
945
950
  error?: string | undefined;
946
- details?: any;
951
+ details?: unknown;
947
952
  };
948
953
  createdAt: string;
949
- rootCampaignId?: string | undefined;
950
- parentCampaignId?: string | undefined;
954
+ rootCampaignId?: string | null | undefined;
955
+ parentCampaignId?: string | null | undefined;
951
956
  childCampaignIds?: string[] | undefined;
952
957
  dailyRewardsBreakdown?: {
953
958
  campaignId: string;
@@ -974,7 +979,7 @@ declare const app: Elysia<"", {
974
979
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
975
980
  onChainCampaignId?: string | undefined;
976
981
  }[] | undefined;
977
- pauseCompute?: string | undefined;
982
+ pauseCompute?: string | null | undefined;
978
983
  hasOverrides?: boolean | undefined;
979
984
  isPrivate: boolean;
980
985
  campaignEncodingHash?: string | undefined;
@@ -999,12 +1004,19 @@ declare const app: Elysia<"", {
999
1004
  dailyRewards?: number | undefined;
1000
1005
  tvl?: number | undefined;
1001
1006
  hidden?: boolean | undefined;
1007
+ liveCampaigns?: number | undefined;
1008
+ lastCampaignCreatedAt?: number | undefined;
1009
+ earliestCampaignStart?: string | bigint | undefined;
1010
+ latestCampaignStart?: string | bigint | undefined;
1011
+ earliestCampaignEnd?: string | bigint | undefined;
1012
+ latestCampaignEnd?: string | bigint | undefined;
1002
1013
  };
1003
1014
  amount: string;
1004
1015
  apr?: number | undefined;
1005
1016
  campaignEncodingHash?: string | undefined;
1006
1017
  campaignId: string;
1007
1018
  campaignStatus: {
1019
+ campaignId: string;
1008
1020
  computedUntil: string | number;
1009
1021
  processingStarted: string | number;
1010
1022
  status: string;
@@ -1012,7 +1024,7 @@ declare const app: Elysia<"", {
1012
1024
  preComputeStatus: string;
1013
1025
  delay?: number | undefined;
1014
1026
  error?: string | undefined;
1015
- details?: any;
1027
+ details?: unknown;
1016
1028
  };
1017
1029
  chain: {
1018
1030
  id: number;
@@ -1078,14 +1090,14 @@ declare const app: Elysia<"", {
1078
1090
  } | undefined;
1079
1091
  distributionChainId: number;
1080
1092
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1081
- endTimestamp: string | number;
1093
+ endTimestamp: string | number | bigint;
1082
1094
  hasOverrides?: boolean | undefined;
1083
1095
  id: string;
1084
1096
  isPrivate: boolean;
1085
1097
  opportunityId?: string | undefined;
1086
- params: any;
1087
- parentCampaignId?: string | undefined;
1088
- pauseCompute?: string | undefined;
1098
+ params: unknown;
1099
+ parentCampaignId?: string | null | undefined;
1100
+ pauseCompute?: string | null | undefined;
1089
1101
  rewardToken: {
1090
1102
  id: string;
1091
1103
  name: string | null;
@@ -1104,9 +1116,9 @@ declare const app: Elysia<"", {
1104
1116
  displaySymbol?: string | undefined;
1105
1117
  };
1106
1118
  rewardTokenId?: string | undefined;
1107
- rootCampaignId?: string | undefined;
1108
- startTimestamp: string | number;
1109
- subType: number | null;
1119
+ rootCampaignId?: string | null | undefined;
1120
+ startTimestamp: string | number | bigint;
1121
+ subType?: number | null | undefined;
1110
1122
  type: string;
1111
1123
  };
1112
1124
  422: {
@@ -1267,7 +1279,7 @@ declare const app: Elysia<"", {
1267
1279
  headers: unknown;
1268
1280
  response: {
1269
1281
  200: {
1270
- parent?: {
1282
+ parent?: ({
1271
1283
  id: string;
1272
1284
  type: string;
1273
1285
  identifier: string;
@@ -1288,6 +1300,10 @@ declare const app: Elysia<"", {
1288
1300
  dailyRewards: number;
1289
1301
  liveCampaigns: number;
1290
1302
  lastCampaignCreatedAt: number;
1303
+ earliestCampaignStart?: string | bigint | undefined;
1304
+ latestCampaignStart?: string | bigint | undefined;
1305
+ earliestCampaignEnd?: string | bigint | undefined;
1306
+ latestCampaignEnd?: string | bigint | undefined;
1291
1307
  nativeApr?: number | undefined;
1292
1308
  maxApr?: number | null | undefined;
1293
1309
  liveCampaignsForCreator?: number | undefined;
@@ -1344,27 +1360,22 @@ declare const app: Elysia<"", {
1344
1360
  opportunityBannerDark: string | null;
1345
1361
  } | null | undefined;
1346
1362
  aprRecord?: {
1347
- id?: string | undefined;
1348
- timestamp: string | bigint;
1349
1363
  cumulated: number;
1350
- opportunityId?: string | undefined;
1364
+ timestamp: string | bigint;
1351
1365
  breakdowns: {
1352
1366
  identifier: string;
1353
- type: string;
1367
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
1354
1368
  value: number;
1355
1369
  timestamp: string | bigint;
1356
- distributionType?: string | undefined;
1370
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1357
1371
  }[];
1358
1372
  } | undefined;
1359
1373
  nativeAprRecord?: {
1360
- id?: string | undefined;
1361
1374
  title: string;
1362
1375
  description?: string | undefined;
1363
- timestamp: string | number | bigint;
1364
1376
  value: number;
1365
- amount?: string | number | bigint | undefined;
1366
- rewardTokenId?: string | undefined;
1367
- opportunityId?: string | undefined;
1377
+ timestamp: string | bigint;
1378
+ amount?: bigint | undefined;
1368
1379
  rewardToken?: {
1369
1380
  id: string;
1370
1381
  name: string | null;
@@ -1384,11 +1395,13 @@ declare const app: Elysia<"", {
1384
1395
  } | undefined;
1385
1396
  } | undefined;
1386
1397
  tvlRecord?: {
1387
- id?: string | undefined;
1388
- timestamp: string | number | bigint;
1389
1398
  total: number;
1390
- opportunityId?: string | undefined;
1391
- breakdowns?: any[] | undefined;
1399
+ timestamp: string | bigint;
1400
+ breakdowns: {
1401
+ identifier: string;
1402
+ type: "PROTOCOL" | "TOKEN";
1403
+ value: number;
1404
+ }[];
1392
1405
  } | undefined;
1393
1406
  rewardsRecord?: {
1394
1407
  total: number;
@@ -1415,13 +1428,124 @@ declare const app: Elysia<"", {
1415
1428
  displaySymbol?: string | undefined;
1416
1429
  };
1417
1430
  amount: string | bigint;
1418
- distributionType?: string | undefined;
1431
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1419
1432
  onChainCampaignId?: string | undefined;
1420
1433
  }[];
1421
1434
  } | undefined;
1422
- campaigns?: any[] | undefined;
1423
- } | undefined;
1424
- children: {
1435
+ } & {
1436
+ campaigns?: {
1437
+ id: string;
1438
+ computeChainId: number;
1439
+ distributionChainId: number;
1440
+ campaignId: string;
1441
+ type: string;
1442
+ subType?: number | null | undefined;
1443
+ amount: string;
1444
+ startTimestamp: string | number | bigint;
1445
+ endTimestamp: string | number | bigint;
1446
+ creatorAddress: string;
1447
+ apr?: number | undefined;
1448
+ dailyRewards?: number | undefined;
1449
+ creator?: {
1450
+ address: string;
1451
+ tags?: string[] | undefined;
1452
+ creatorId?: string | null | undefined;
1453
+ } | undefined;
1454
+ params: unknown;
1455
+ description?: string | undefined;
1456
+ chain: {
1457
+ id: number;
1458
+ name: string;
1459
+ icon: string;
1460
+ liveCampaigns: number;
1461
+ endOfDisputePeriod: number;
1462
+ explorers?: {
1463
+ type: "BLOCKSCOUT" | "ETHERSCAN";
1464
+ url: string;
1465
+ chainId: number;
1466
+ }[] | undefined;
1467
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
1468
+ };
1469
+ rewardTokenId?: string | undefined;
1470
+ rewardToken: {
1471
+ id: string;
1472
+ name: string | null;
1473
+ chainId: number;
1474
+ address: string;
1475
+ decimals: number;
1476
+ symbol: string;
1477
+ icon: string;
1478
+ verified: boolean;
1479
+ isNative: boolean;
1480
+ isTest: boolean;
1481
+ type: "POINT" | "PRETGE" | "TOKEN";
1482
+ price?: number | null | undefined;
1483
+ updatedAt?: number | null | undefined;
1484
+ priceSource?: string | null | undefined;
1485
+ displaySymbol?: string | undefined;
1486
+ };
1487
+ opportunityId?: string | undefined;
1488
+ distributionChain?: {
1489
+ id: number;
1490
+ name: string;
1491
+ icon: string;
1492
+ liveCampaigns: number;
1493
+ endOfDisputePeriod: number;
1494
+ explorers?: {
1495
+ type: "BLOCKSCOUT" | "ETHERSCAN";
1496
+ url: string;
1497
+ chainId: number;
1498
+ }[] | undefined;
1499
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
1500
+ } | undefined;
1501
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1502
+ campaignStatus: {
1503
+ campaignId: string;
1504
+ computedUntil: string | number;
1505
+ processingStarted: string | number;
1506
+ status: string;
1507
+ preComputeProcessingStarted: string | number;
1508
+ preComputeStatus: string;
1509
+ delay?: number | undefined;
1510
+ error?: string | undefined;
1511
+ details?: unknown;
1512
+ };
1513
+ createdAt: string;
1514
+ rootCampaignId?: string | null | undefined;
1515
+ parentCampaignId?: string | null | undefined;
1516
+ childCampaignIds?: string[] | undefined;
1517
+ dailyRewardsBreakdown?: {
1518
+ campaignId: string;
1519
+ value: number;
1520
+ timestamp: string | bigint;
1521
+ token: {
1522
+ id: string;
1523
+ name: string | null;
1524
+ chainId: number;
1525
+ address: string;
1526
+ decimals: number;
1527
+ symbol: string;
1528
+ icon: string;
1529
+ verified: boolean;
1530
+ isNative: boolean;
1531
+ isTest: boolean;
1532
+ type: "POINT" | "PRETGE" | "TOKEN";
1533
+ price?: number | null | undefined;
1534
+ updatedAt?: number | null | undefined;
1535
+ priceSource?: string | null | undefined;
1536
+ displaySymbol?: string | undefined;
1537
+ };
1538
+ amount: string | bigint;
1539
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1540
+ onChainCampaignId?: string | undefined;
1541
+ }[] | undefined;
1542
+ pauseCompute?: string | null | undefined;
1543
+ hasOverrides?: boolean | undefined;
1544
+ isPrivate: boolean;
1545
+ campaignEncodingHash?: string | undefined;
1546
+ }[] | undefined;
1547
+ }) | undefined;
1548
+ children: ({
1425
1549
  id: string;
1426
1550
  type: string;
1427
1551
  identifier: string;
@@ -1442,6 +1566,10 @@ declare const app: Elysia<"", {
1442
1566
  dailyRewards: number;
1443
1567
  liveCampaigns: number;
1444
1568
  lastCampaignCreatedAt: number;
1569
+ earliestCampaignStart?: string | bigint | undefined;
1570
+ latestCampaignStart?: string | bigint | undefined;
1571
+ earliestCampaignEnd?: string | bigint | undefined;
1572
+ latestCampaignEnd?: string | bigint | undefined;
1445
1573
  nativeApr?: number | undefined;
1446
1574
  maxApr?: number | null | undefined;
1447
1575
  liveCampaignsForCreator?: number | undefined;
@@ -1498,27 +1626,22 @@ declare const app: Elysia<"", {
1498
1626
  opportunityBannerDark: string | null;
1499
1627
  } | null | undefined;
1500
1628
  aprRecord?: {
1501
- id?: string | undefined;
1502
- timestamp: string | bigint;
1503
1629
  cumulated: number;
1504
- opportunityId?: string | undefined;
1630
+ timestamp: string | bigint;
1505
1631
  breakdowns: {
1506
1632
  identifier: string;
1507
- type: string;
1633
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
1508
1634
  value: number;
1509
1635
  timestamp: string | bigint;
1510
- distributionType?: string | undefined;
1636
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1511
1637
  }[];
1512
1638
  } | undefined;
1513
1639
  nativeAprRecord?: {
1514
- id?: string | undefined;
1515
1640
  title: string;
1516
1641
  description?: string | undefined;
1517
- timestamp: string | number | bigint;
1518
1642
  value: number;
1519
- amount?: string | number | bigint | undefined;
1520
- rewardTokenId?: string | undefined;
1521
- opportunityId?: string | undefined;
1643
+ timestamp: string | bigint;
1644
+ amount?: bigint | undefined;
1522
1645
  rewardToken?: {
1523
1646
  id: string;
1524
1647
  name: string | null;
@@ -1538,11 +1661,13 @@ declare const app: Elysia<"", {
1538
1661
  } | undefined;
1539
1662
  } | undefined;
1540
1663
  tvlRecord?: {
1541
- id?: string | undefined;
1542
- timestamp: string | number | bigint;
1543
1664
  total: number;
1544
- opportunityId?: string | undefined;
1545
- breakdowns?: any[] | undefined;
1665
+ timestamp: string | bigint;
1666
+ breakdowns: {
1667
+ identifier: string;
1668
+ type: "PROTOCOL" | "TOKEN";
1669
+ value: number;
1670
+ }[];
1546
1671
  } | undefined;
1547
1672
  rewardsRecord?: {
1548
1673
  total: number;
@@ -1569,12 +1694,123 @@ declare const app: Elysia<"", {
1569
1694
  displaySymbol?: string | undefined;
1570
1695
  };
1571
1696
  amount: string | bigint;
1572
- distributionType?: string | undefined;
1697
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1573
1698
  onChainCampaignId?: string | undefined;
1574
1699
  }[];
1575
1700
  } | undefined;
1576
- campaigns?: any[] | undefined;
1577
- }[];
1701
+ } & {
1702
+ campaigns?: {
1703
+ id: string;
1704
+ computeChainId: number;
1705
+ distributionChainId: number;
1706
+ campaignId: string;
1707
+ type: string;
1708
+ subType?: number | null | undefined;
1709
+ amount: string;
1710
+ startTimestamp: string | number | bigint;
1711
+ endTimestamp: string | number | bigint;
1712
+ creatorAddress: string;
1713
+ apr?: number | undefined;
1714
+ dailyRewards?: number | undefined;
1715
+ creator?: {
1716
+ address: string;
1717
+ tags?: string[] | undefined;
1718
+ creatorId?: string | null | undefined;
1719
+ } | undefined;
1720
+ params: unknown;
1721
+ description?: string | undefined;
1722
+ chain: {
1723
+ id: number;
1724
+ name: string;
1725
+ icon: string;
1726
+ liveCampaigns: number;
1727
+ endOfDisputePeriod: number;
1728
+ explorers?: {
1729
+ type: "BLOCKSCOUT" | "ETHERSCAN";
1730
+ url: string;
1731
+ chainId: number;
1732
+ }[] | undefined;
1733
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
1734
+ };
1735
+ rewardTokenId?: string | undefined;
1736
+ rewardToken: {
1737
+ id: string;
1738
+ name: string | null;
1739
+ chainId: number;
1740
+ address: string;
1741
+ decimals: number;
1742
+ symbol: string;
1743
+ icon: string;
1744
+ verified: boolean;
1745
+ isNative: boolean;
1746
+ isTest: boolean;
1747
+ type: "POINT" | "PRETGE" | "TOKEN";
1748
+ price?: number | null | undefined;
1749
+ updatedAt?: number | null | undefined;
1750
+ priceSource?: string | null | undefined;
1751
+ displaySymbol?: string | undefined;
1752
+ };
1753
+ opportunityId?: string | undefined;
1754
+ distributionChain?: {
1755
+ id: number;
1756
+ name: string;
1757
+ icon: string;
1758
+ liveCampaigns: number;
1759
+ endOfDisputePeriod: number;
1760
+ explorers?: {
1761
+ type: "BLOCKSCOUT" | "ETHERSCAN";
1762
+ url: string;
1763
+ chainId: number;
1764
+ }[] | undefined;
1765
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
1766
+ } | undefined;
1767
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1768
+ campaignStatus: {
1769
+ campaignId: string;
1770
+ computedUntil: string | number;
1771
+ processingStarted: string | number;
1772
+ status: string;
1773
+ preComputeProcessingStarted: string | number;
1774
+ preComputeStatus: string;
1775
+ delay?: number | undefined;
1776
+ error?: string | undefined;
1777
+ details?: unknown;
1778
+ };
1779
+ createdAt: string;
1780
+ rootCampaignId?: string | null | undefined;
1781
+ parentCampaignId?: string | null | undefined;
1782
+ childCampaignIds?: string[] | undefined;
1783
+ dailyRewardsBreakdown?: {
1784
+ campaignId: string;
1785
+ value: number;
1786
+ timestamp: string | bigint;
1787
+ token: {
1788
+ id: string;
1789
+ name: string | null;
1790
+ chainId: number;
1791
+ address: string;
1792
+ decimals: number;
1793
+ symbol: string;
1794
+ icon: string;
1795
+ verified: boolean;
1796
+ isNative: boolean;
1797
+ isTest: boolean;
1798
+ type: "POINT" | "PRETGE" | "TOKEN";
1799
+ price?: number | null | undefined;
1800
+ updatedAt?: number | null | undefined;
1801
+ priceSource?: string | null | undefined;
1802
+ displaySymbol?: string | undefined;
1803
+ };
1804
+ amount: string | bigint;
1805
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1806
+ onChainCampaignId?: string | undefined;
1807
+ }[] | undefined;
1808
+ pauseCompute?: string | null | undefined;
1809
+ hasOverrides?: boolean | undefined;
1810
+ isPrivate: boolean;
1811
+ campaignEncodingHash?: string | undefined;
1812
+ }[] | undefined;
1813
+ })[];
1578
1814
  self: {
1579
1815
  id: string;
1580
1816
  type: string;
@@ -1596,6 +1832,10 @@ declare const app: Elysia<"", {
1596
1832
  dailyRewards: number;
1597
1833
  liveCampaigns: number;
1598
1834
  lastCampaignCreatedAt: number;
1835
+ earliestCampaignStart?: string | bigint | undefined;
1836
+ latestCampaignStart?: string | bigint | undefined;
1837
+ earliestCampaignEnd?: string | bigint | undefined;
1838
+ latestCampaignEnd?: string | bigint | undefined;
1599
1839
  nativeApr?: number | undefined;
1600
1840
  maxApr?: number | null | undefined;
1601
1841
  liveCampaignsForCreator?: number | undefined;
@@ -1652,27 +1892,22 @@ declare const app: Elysia<"", {
1652
1892
  opportunityBannerDark: string | null;
1653
1893
  } | null | undefined;
1654
1894
  aprRecord?: {
1655
- id?: string | undefined;
1656
- timestamp: string | bigint;
1657
1895
  cumulated: number;
1658
- opportunityId?: string | undefined;
1896
+ timestamp: string | bigint;
1659
1897
  breakdowns: {
1660
1898
  identifier: string;
1661
- type: string;
1899
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
1662
1900
  value: number;
1663
1901
  timestamp: string | bigint;
1664
- distributionType?: string | undefined;
1902
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1665
1903
  }[];
1666
1904
  } | undefined;
1667
1905
  nativeAprRecord?: {
1668
- id?: string | undefined;
1669
1906
  title: string;
1670
1907
  description?: string | undefined;
1671
- timestamp: string | number | bigint;
1672
1908
  value: number;
1673
- amount?: string | number | bigint | undefined;
1674
- rewardTokenId?: string | undefined;
1675
- opportunityId?: string | undefined;
1909
+ timestamp: string | bigint;
1910
+ amount?: bigint | undefined;
1676
1911
  rewardToken?: {
1677
1912
  id: string;
1678
1913
  name: string | null;
@@ -1692,11 +1927,13 @@ declare const app: Elysia<"", {
1692
1927
  } | undefined;
1693
1928
  } | undefined;
1694
1929
  tvlRecord?: {
1695
- id?: string | undefined;
1696
- timestamp: string | number | bigint;
1697
1930
  total: number;
1698
- opportunityId?: string | undefined;
1699
- breakdowns?: any[] | undefined;
1931
+ timestamp: string | bigint;
1932
+ breakdowns: {
1933
+ identifier: string;
1934
+ type: "PROTOCOL" | "TOKEN";
1935
+ value: number;
1936
+ }[];
1700
1937
  } | undefined;
1701
1938
  rewardsRecord?: {
1702
1939
  total: number;
@@ -1723,30 +1960,141 @@ declare const app: Elysia<"", {
1723
1960
  displaySymbol?: string | undefined;
1724
1961
  };
1725
1962
  amount: string | bigint;
1726
- distributionType?: string | undefined;
1963
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
1727
1964
  onChainCampaignId?: string | undefined;
1728
1965
  }[];
1729
1966
  } | undefined;
1730
- campaigns?: any[] | undefined;
1731
- };
1732
- };
1733
- 422: {
1734
- type: "validation";
1735
- on: string;
1736
- summary?: string | undefined;
1737
- message?: string | undefined;
1738
- found?: unknown;
1739
- property?: string | undefined;
1740
- expected?: string | undefined;
1741
- };
1742
- };
1743
- };
1744
- };
1745
- };
1746
- };
1747
- } & {
1748
- campaigns: {
1749
- "campaigns-to-process": {
1967
+ } & {
1968
+ campaigns?: {
1969
+ id: string;
1970
+ computeChainId: number;
1971
+ distributionChainId: number;
1972
+ campaignId: string;
1973
+ type: string;
1974
+ subType?: number | null | undefined;
1975
+ amount: string;
1976
+ startTimestamp: string | number | bigint;
1977
+ endTimestamp: string | number | bigint;
1978
+ creatorAddress: string;
1979
+ apr?: number | undefined;
1980
+ dailyRewards?: number | undefined;
1981
+ creator?: {
1982
+ address: string;
1983
+ tags?: string[] | undefined;
1984
+ creatorId?: string | null | undefined;
1985
+ } | undefined;
1986
+ params: unknown;
1987
+ description?: string | undefined;
1988
+ chain: {
1989
+ id: number;
1990
+ name: string;
1991
+ icon: string;
1992
+ liveCampaigns: number;
1993
+ endOfDisputePeriod: number;
1994
+ explorers?: {
1995
+ type: "BLOCKSCOUT" | "ETHERSCAN";
1996
+ url: string;
1997
+ chainId: number;
1998
+ }[] | undefined;
1999
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
2000
+ };
2001
+ rewardTokenId?: string | undefined;
2002
+ rewardToken: {
2003
+ id: string;
2004
+ name: string | null;
2005
+ chainId: number;
2006
+ address: string;
2007
+ decimals: number;
2008
+ symbol: string;
2009
+ icon: string;
2010
+ verified: boolean;
2011
+ isNative: boolean;
2012
+ isTest: boolean;
2013
+ type: "POINT" | "PRETGE" | "TOKEN";
2014
+ price?: number | null | undefined;
2015
+ updatedAt?: number | null | undefined;
2016
+ priceSource?: string | null | undefined;
2017
+ displaySymbol?: string | undefined;
2018
+ };
2019
+ opportunityId?: string | undefined;
2020
+ distributionChain?: {
2021
+ id: number;
2022
+ name: string;
2023
+ icon: string;
2024
+ liveCampaigns: number;
2025
+ endOfDisputePeriod: number;
2026
+ explorers?: {
2027
+ type: "BLOCKSCOUT" | "ETHERSCAN";
2028
+ url: string;
2029
+ chainId: number;
2030
+ }[] | undefined;
2031
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
2032
+ } | undefined;
2033
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
2034
+ campaignStatus: {
2035
+ campaignId: string;
2036
+ computedUntil: string | number;
2037
+ processingStarted: string | number;
2038
+ status: string;
2039
+ preComputeProcessingStarted: string | number;
2040
+ preComputeStatus: string;
2041
+ delay?: number | undefined;
2042
+ error?: string | undefined;
2043
+ details?: unknown;
2044
+ };
2045
+ createdAt: string;
2046
+ rootCampaignId?: string | null | undefined;
2047
+ parentCampaignId?: string | null | undefined;
2048
+ childCampaignIds?: string[] | undefined;
2049
+ dailyRewardsBreakdown?: {
2050
+ campaignId: string;
2051
+ value: number;
2052
+ timestamp: string | bigint;
2053
+ token: {
2054
+ id: string;
2055
+ name: string | null;
2056
+ chainId: number;
2057
+ address: string;
2058
+ decimals: number;
2059
+ symbol: string;
2060
+ icon: string;
2061
+ verified: boolean;
2062
+ isNative: boolean;
2063
+ isTest: boolean;
2064
+ type: "POINT" | "PRETGE" | "TOKEN";
2065
+ price?: number | null | undefined;
2066
+ updatedAt?: number | null | undefined;
2067
+ priceSource?: string | null | undefined;
2068
+ displaySymbol?: string | undefined;
2069
+ };
2070
+ amount: string | bigint;
2071
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
2072
+ onChainCampaignId?: string | undefined;
2073
+ }[] | undefined;
2074
+ pauseCompute?: string | null | undefined;
2075
+ hasOverrides?: boolean | undefined;
2076
+ isPrivate: boolean;
2077
+ campaignEncodingHash?: string | undefined;
2078
+ }[] | undefined;
2079
+ };
2080
+ };
2081
+ 422: {
2082
+ type: "validation";
2083
+ on: string;
2084
+ summary?: string | undefined;
2085
+ message?: string | undefined;
2086
+ found?: unknown;
2087
+ property?: string | undefined;
2088
+ expected?: string | undefined;
2089
+ };
2090
+ };
2091
+ };
2092
+ };
2093
+ };
2094
+ };
2095
+ } & {
2096
+ campaigns: {
2097
+ "campaigns-to-process": {
1750
2098
  engine: {
1751
2099
  post: {
1752
2100
  body: unknown;
@@ -1946,10 +2294,10 @@ declare const app: Elysia<"", {
1946
2294
  distributionChainId: number;
1947
2295
  campaignId: string;
1948
2296
  type: string;
1949
- subType: number | null;
2297
+ subType?: number | null | undefined;
1950
2298
  amount: string;
1951
- startTimestamp: string | number;
1952
- endTimestamp: string | number;
2299
+ startTimestamp: string | number | bigint;
2300
+ endTimestamp: string | number | bigint;
1953
2301
  creatorAddress: string;
1954
2302
  apr?: number | undefined;
1955
2303
  dailyRewards?: number | undefined;
@@ -1958,7 +2306,7 @@ declare const app: Elysia<"", {
1958
2306
  tags?: string[] | undefined;
1959
2307
  creatorId?: string | null | undefined;
1960
2308
  } | undefined;
1961
- params: any;
2309
+ params: unknown;
1962
2310
  description?: string | undefined;
1963
2311
  chain: {
1964
2312
  id: number;
@@ -2007,6 +2355,7 @@ declare const app: Elysia<"", {
2007
2355
  } | undefined;
2008
2356
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
2009
2357
  campaignStatus: {
2358
+ campaignId: string;
2010
2359
  computedUntil: string | number;
2011
2360
  processingStarted: string | number;
2012
2361
  status: string;
@@ -2014,11 +2363,11 @@ declare const app: Elysia<"", {
2014
2363
  preComputeStatus: string;
2015
2364
  delay?: number | undefined;
2016
2365
  error?: string | undefined;
2017
- details?: any;
2366
+ details?: unknown;
2018
2367
  };
2019
2368
  createdAt: string;
2020
- rootCampaignId?: string | undefined;
2021
- parentCampaignId?: string | undefined;
2369
+ rootCampaignId?: string | null | undefined;
2370
+ parentCampaignId?: string | null | undefined;
2022
2371
  childCampaignIds?: string[] | undefined;
2023
2372
  dailyRewardsBreakdown?: {
2024
2373
  campaignId: string;
@@ -2045,7 +2394,7 @@ declare const app: Elysia<"", {
2045
2394
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
2046
2395
  onChainCampaignId?: string | undefined;
2047
2396
  }[] | undefined;
2048
- pauseCompute?: string | undefined;
2397
+ pauseCompute?: string | null | undefined;
2049
2398
  hasOverrides?: boolean | undefined;
2050
2399
  isPrivate: boolean;
2051
2400
  campaignEncodingHash?: string | undefined;
@@ -2070,12 +2419,19 @@ declare const app: Elysia<"", {
2070
2419
  dailyRewards?: number | undefined;
2071
2420
  tvl?: number | undefined;
2072
2421
  hidden?: boolean | undefined;
2422
+ liveCampaigns?: number | undefined;
2423
+ lastCampaignCreatedAt?: number | undefined;
2424
+ earliestCampaignStart?: string | bigint | undefined;
2425
+ latestCampaignStart?: string | bigint | undefined;
2426
+ earliestCampaignEnd?: string | bigint | undefined;
2427
+ latestCampaignEnd?: string | bigint | undefined;
2073
2428
  };
2074
2429
  amount: string;
2075
2430
  apr?: number | undefined;
2076
2431
  campaignEncodingHash?: string | undefined;
2077
2432
  campaignId: string;
2078
2433
  campaignStatus: {
2434
+ campaignId: string;
2079
2435
  computedUntil: string | number;
2080
2436
  processingStarted: string | number;
2081
2437
  status: string;
@@ -2083,7 +2439,7 @@ declare const app: Elysia<"", {
2083
2439
  preComputeStatus: string;
2084
2440
  delay?: number | undefined;
2085
2441
  error?: string | undefined;
2086
- details?: any;
2442
+ details?: unknown;
2087
2443
  };
2088
2444
  chain: {
2089
2445
  id: number;
@@ -2149,14 +2505,14 @@ declare const app: Elysia<"", {
2149
2505
  } | undefined;
2150
2506
  distributionChainId: number;
2151
2507
  distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
2152
- endTimestamp: string | number;
2508
+ endTimestamp: string | number | bigint;
2153
2509
  hasOverrides?: boolean | undefined;
2154
2510
  id: string;
2155
2511
  isPrivate: boolean;
2156
2512
  opportunityId?: string | undefined;
2157
- params: any;
2158
- parentCampaignId?: string | undefined;
2159
- pauseCompute?: string | undefined;
2513
+ params: unknown;
2514
+ parentCampaignId?: string | null | undefined;
2515
+ pauseCompute?: string | null | undefined;
2160
2516
  rewardToken: {
2161
2517
  id: string;
2162
2518
  name: string | null;
@@ -2175,9 +2531,9 @@ declare const app: Elysia<"", {
2175
2531
  displaySymbol?: string | undefined;
2176
2532
  };
2177
2533
  rewardTokenId?: string | undefined;
2178
- rootCampaignId?: string | undefined;
2179
- startTimestamp: string | number;
2180
- subType: number | null;
2534
+ rootCampaignId?: string | null | undefined;
2535
+ startTimestamp: string | number | bigint;
2536
+ subType?: number | null | undefined;
2181
2537
  type: string;
2182
2538
  })[];
2183
2539
  422: {
@@ -2527,6 +2883,10 @@ declare const app: Elysia<"", {
2527
2883
  depositUrl: string | undefined;
2528
2884
  explorerAddress: string | undefined;
2529
2885
  lastCampaignCreatedAt: number;
2886
+ earliestCampaignStart: bigint | undefined;
2887
+ latestCampaignStart: bigint | undefined;
2888
+ earliestCampaignEnd: bigint | undefined;
2889
+ latestCampaignEnd: bigint | undefined;
2530
2890
  };
2531
2891
  };
2532
2892
  422: {
@@ -2703,6 +3063,10 @@ declare const app: Elysia<"", {
2703
3063
  depositUrl: string | undefined;
2704
3064
  explorerAddress: string | undefined;
2705
3065
  lastCampaignCreatedAt: number;
3066
+ earliestCampaignStart: bigint | undefined;
3067
+ latestCampaignStart: bigint | undefined;
3068
+ earliestCampaignEnd: bigint | undefined;
3069
+ latestCampaignEnd: bigint | undefined;
2706
3070
  };
2707
3071
  });
2708
3072
  422: {
@@ -3629,6 +3993,10 @@ declare const app: Elysia<"", {
3629
3993
  lastCampaignCreatedAt: Date;
3630
3994
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
3631
3995
  liveCampaigns: number;
3996
+ earliestCampaignStart: bigint | null;
3997
+ latestCampaignStart: bigint | null;
3998
+ earliestCampaignEnd: bigint | null;
3999
+ latestCampaignEnd: bigint | null;
3632
4000
  hidden: boolean;
3633
4001
  });
3634
4002
  422: {
@@ -4479,6 +4847,10 @@ declare const app: Elysia<"", {
4479
4847
  lastCampaignCreatedAt: Date;
4480
4848
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4481
4849
  liveCampaigns: number;
4850
+ earliestCampaignStart: bigint | null;
4851
+ latestCampaignStart: bigint | null;
4852
+ earliestCampaignEnd: bigint | null;
4853
+ latestCampaignEnd: bigint | null;
4482
4854
  hidden: boolean;
4483
4855
  });
4484
4856
  422: {
@@ -4736,6 +5108,10 @@ declare const app: Elysia<"", {
4736
5108
  lastCampaignCreatedAt: Date;
4737
5109
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4738
5110
  liveCampaigns: number;
5111
+ earliestCampaignStart: bigint | null;
5112
+ latestCampaignStart: bigint | null;
5113
+ earliestCampaignEnd: bigint | null;
5114
+ latestCampaignEnd: bigint | null;
4739
5115
  hidden: boolean;
4740
5116
  });
4741
5117
  422: {
@@ -4992,6 +5368,10 @@ declare const app: Elysia<"", {
4992
5368
  lastCampaignCreatedAt: Date;
4993
5369
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
4994
5370
  liveCampaigns: number;
5371
+ earliestCampaignStart: bigint | null;
5372
+ latestCampaignStart: bigint | null;
5373
+ earliestCampaignEnd: bigint | null;
5374
+ latestCampaignEnd: bigint | null;
4995
5375
  hidden: boolean;
4996
5376
  });
4997
5377
  422: {
@@ -5366,6 +5746,10 @@ declare const app: Elysia<"", {
5366
5746
  dailyRewards: number;
5367
5747
  liveCampaigns: number;
5368
5748
  lastCampaignCreatedAt: number;
5749
+ earliestCampaignStart?: string | bigint | undefined;
5750
+ latestCampaignStart?: string | bigint | undefined;
5751
+ earliestCampaignEnd?: string | bigint | undefined;
5752
+ latestCampaignEnd?: string | bigint | undefined;
5369
5753
  nativeApr?: number | undefined;
5370
5754
  maxApr?: number | null | undefined;
5371
5755
  liveCampaignsForCreator?: number | undefined;
@@ -5422,27 +5806,22 @@ declare const app: Elysia<"", {
5422
5806
  opportunityBannerDark: string | null;
5423
5807
  } | null | undefined;
5424
5808
  aprRecord?: {
5425
- id?: string | undefined;
5426
5809
  timestamp: string | bigint;
5427
5810
  cumulated: number;
5428
- opportunityId?: string | undefined;
5429
5811
  breakdowns: {
5430
5812
  identifier: string;
5431
- type: string;
5813
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
5432
5814
  value: number;
5433
5815
  timestamp: string | bigint;
5434
- distributionType?: string | undefined;
5816
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5435
5817
  }[];
5436
5818
  } | undefined;
5437
5819
  nativeAprRecord?: {
5438
- id?: string | undefined;
5439
5820
  title: string;
5440
5821
  description?: string | undefined;
5441
- timestamp: string | number | bigint;
5822
+ timestamp: string | bigint;
5442
5823
  value: number;
5443
- amount?: string | number | bigint | undefined;
5444
- rewardTokenId?: string | undefined;
5445
- opportunityId?: string | undefined;
5824
+ amount?: bigint | undefined;
5446
5825
  rewardToken?: {
5447
5826
  id: string;
5448
5827
  name: string | null;
@@ -5462,11 +5841,13 @@ declare const app: Elysia<"", {
5462
5841
  } | undefined;
5463
5842
  } | undefined;
5464
5843
  tvlRecord?: {
5465
- id?: string | undefined;
5466
- timestamp: string | number | bigint;
5844
+ timestamp: string | bigint;
5467
5845
  total: number;
5468
- opportunityId?: string | undefined;
5469
- breakdowns?: any[] | undefined;
5846
+ breakdowns: {
5847
+ identifier: string;
5848
+ type: "PROTOCOL" | "TOKEN";
5849
+ value: number;
5850
+ }[];
5470
5851
  } | undefined;
5471
5852
  rewardsRecord?: {
5472
5853
  total: number;
@@ -5493,7 +5874,7 @@ declare const app: Elysia<"", {
5493
5874
  displaySymbol?: string | undefined;
5494
5875
  };
5495
5876
  amount: string | bigint;
5496
- distributionType?: string | undefined;
5877
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5497
5878
  onChainCampaignId?: string | undefined;
5498
5879
  }[];
5499
5880
  } | undefined;
@@ -5528,6 +5909,10 @@ declare const app: Elysia<"", {
5528
5909
  dailyRewards: number;
5529
5910
  liveCampaigns: number;
5530
5911
  lastCampaignCreatedAt: number;
5912
+ earliestCampaignStart?: string | bigint | undefined;
5913
+ latestCampaignStart?: string | bigint | undefined;
5914
+ earliestCampaignEnd?: string | bigint | undefined;
5915
+ latestCampaignEnd?: string | bigint | undefined;
5531
5916
  nativeApr?: number | undefined;
5532
5917
  maxApr?: number | null | undefined;
5533
5918
  liveCampaignsForCreator?: number | undefined;
@@ -5584,27 +5969,22 @@ declare const app: Elysia<"", {
5584
5969
  opportunityBannerDark: string | null;
5585
5970
  } | null | undefined;
5586
5971
  aprRecord?: {
5587
- id?: string | undefined;
5588
5972
  timestamp: string | bigint;
5589
5973
  cumulated: number;
5590
- opportunityId?: string | undefined;
5591
5974
  breakdowns: {
5592
5975
  identifier: string;
5593
- type: string;
5976
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
5594
5977
  value: number;
5595
5978
  timestamp: string | bigint;
5596
- distributionType?: string | undefined;
5979
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5597
5980
  }[];
5598
5981
  } | undefined;
5599
5982
  nativeAprRecord?: {
5600
- id?: string | undefined;
5601
5983
  title: string;
5602
5984
  description?: string | undefined;
5603
- timestamp: string | number | bigint;
5985
+ timestamp: string | bigint;
5604
5986
  value: number;
5605
- amount?: string | number | bigint | undefined;
5606
- rewardTokenId?: string | undefined;
5607
- opportunityId?: string | undefined;
5987
+ amount?: bigint | undefined;
5608
5988
  rewardToken?: {
5609
5989
  id: string;
5610
5990
  name: string | null;
@@ -5624,11 +6004,13 @@ declare const app: Elysia<"", {
5624
6004
  } | undefined;
5625
6005
  } | undefined;
5626
6006
  tvlRecord?: {
5627
- id?: string | undefined;
5628
- timestamp: string | number | bigint;
6007
+ timestamp: string | bigint;
5629
6008
  total: number;
5630
- opportunityId?: string | undefined;
5631
- breakdowns?: any[] | undefined;
6009
+ breakdowns: {
6010
+ identifier: string;
6011
+ type: "PROTOCOL" | "TOKEN";
6012
+ value: number;
6013
+ }[];
5632
6014
  } | undefined;
5633
6015
  rewardsRecord?: {
5634
6016
  total: number;
@@ -5655,7 +6037,7 @@ declare const app: Elysia<"", {
5655
6037
  displaySymbol?: string | undefined;
5656
6038
  };
5657
6039
  amount: string | bigint;
5658
- distributionType?: string | undefined;
6040
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5659
6041
  onChainCampaignId?: string | undefined;
5660
6042
  }[];
5661
6043
  } | undefined;
@@ -5747,6 +6129,10 @@ declare const app: Elysia<"", {
5747
6129
  dailyRewards: number;
5748
6130
  liveCampaigns: number;
5749
6131
  lastCampaignCreatedAt: number;
6132
+ earliestCampaignStart?: string | bigint | undefined;
6133
+ latestCampaignStart?: string | bigint | undefined;
6134
+ earliestCampaignEnd?: string | bigint | undefined;
6135
+ latestCampaignEnd?: string | bigint | undefined;
5750
6136
  nativeApr?: number | undefined;
5751
6137
  maxApr?: number | null | undefined;
5752
6138
  liveCampaignsForCreator?: number | undefined;
@@ -5803,27 +6189,22 @@ declare const app: Elysia<"", {
5803
6189
  opportunityBannerDark: string | null;
5804
6190
  } | null | undefined;
5805
6191
  aprRecord?: {
5806
- id?: string | undefined;
5807
6192
  timestamp: string | bigint;
5808
6193
  cumulated: number;
5809
- opportunityId?: string | undefined;
5810
6194
  breakdowns: {
5811
6195
  identifier: string;
5812
- type: string;
6196
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
5813
6197
  value: number;
5814
6198
  timestamp: string | bigint;
5815
- distributionType?: string | undefined;
6199
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5816
6200
  }[];
5817
6201
  } | undefined;
5818
6202
  nativeAprRecord?: {
5819
- id?: string | undefined;
5820
6203
  title: string;
5821
6204
  description?: string | undefined;
5822
- timestamp: string | number | bigint;
6205
+ timestamp: string | bigint;
5823
6206
  value: number;
5824
- amount?: string | number | bigint | undefined;
5825
- rewardTokenId?: string | undefined;
5826
- opportunityId?: string | undefined;
6207
+ amount?: bigint | undefined;
5827
6208
  rewardToken?: {
5828
6209
  id: string;
5829
6210
  name: string | null;
@@ -5843,11 +6224,13 @@ declare const app: Elysia<"", {
5843
6224
  } | undefined;
5844
6225
  } | undefined;
5845
6226
  tvlRecord?: {
5846
- id?: string | undefined;
5847
- timestamp: string | number | bigint;
6227
+ timestamp: string | bigint;
5848
6228
  total: number;
5849
- opportunityId?: string | undefined;
5850
- breakdowns?: any[] | undefined;
6229
+ breakdowns: {
6230
+ identifier: string;
6231
+ type: "PROTOCOL" | "TOKEN";
6232
+ value: number;
6233
+ }[];
5851
6234
  } | undefined;
5852
6235
  rewardsRecord?: {
5853
6236
  total: number;
@@ -5874,7 +6257,7 @@ declare const app: Elysia<"", {
5874
6257
  displaySymbol?: string | undefined;
5875
6258
  };
5876
6259
  amount: string | bigint;
5877
- distributionType?: string | undefined;
6260
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5878
6261
  onChainCampaignId?: string | undefined;
5879
6262
  }[];
5880
6263
  } | undefined;
@@ -5909,6 +6292,10 @@ declare const app: Elysia<"", {
5909
6292
  dailyRewards: number;
5910
6293
  liveCampaigns: number;
5911
6294
  lastCampaignCreatedAt: number;
6295
+ earliestCampaignStart?: string | bigint | undefined;
6296
+ latestCampaignStart?: string | bigint | undefined;
6297
+ earliestCampaignEnd?: string | bigint | undefined;
6298
+ latestCampaignEnd?: string | bigint | undefined;
5912
6299
  nativeApr?: number | undefined;
5913
6300
  maxApr?: number | null | undefined;
5914
6301
  liveCampaignsForCreator?: number | undefined;
@@ -5965,27 +6352,22 @@ declare const app: Elysia<"", {
5965
6352
  opportunityBannerDark: string | null;
5966
6353
  } | null | undefined;
5967
6354
  aprRecord?: {
5968
- id?: string | undefined;
5969
6355
  timestamp: string | bigint;
5970
6356
  cumulated: number;
5971
- opportunityId?: string | undefined;
5972
6357
  breakdowns: {
5973
6358
  identifier: string;
5974
- type: string;
6359
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
5975
6360
  value: number;
5976
6361
  timestamp: string | bigint;
5977
- distributionType?: string | undefined;
6362
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
5978
6363
  }[];
5979
6364
  } | undefined;
5980
6365
  nativeAprRecord?: {
5981
- id?: string | undefined;
5982
6366
  title: string;
5983
6367
  description?: string | undefined;
5984
- timestamp: string | number | bigint;
6368
+ timestamp: string | bigint;
5985
6369
  value: number;
5986
- amount?: string | number | bigint | undefined;
5987
- rewardTokenId?: string | undefined;
5988
- opportunityId?: string | undefined;
6370
+ amount?: bigint | undefined;
5989
6371
  rewardToken?: {
5990
6372
  id: string;
5991
6373
  name: string | null;
@@ -6005,11 +6387,13 @@ declare const app: Elysia<"", {
6005
6387
  } | undefined;
6006
6388
  } | undefined;
6007
6389
  tvlRecord?: {
6008
- id?: string | undefined;
6009
- timestamp: string | number | bigint;
6390
+ timestamp: string | bigint;
6010
6391
  total: number;
6011
- opportunityId?: string | undefined;
6012
- breakdowns?: any[] | undefined;
6392
+ breakdowns: {
6393
+ identifier: string;
6394
+ type: "PROTOCOL" | "TOKEN";
6395
+ value: number;
6396
+ }[];
6013
6397
  } | undefined;
6014
6398
  rewardsRecord?: {
6015
6399
  total: number;
@@ -6036,7 +6420,7 @@ declare const app: Elysia<"", {
6036
6420
  displaySymbol?: string | undefined;
6037
6421
  };
6038
6422
  amount: string | bigint;
6039
- distributionType?: string | undefined;
6423
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
6040
6424
  onChainCampaignId?: string | undefined;
6041
6425
  }[];
6042
6426
  } | undefined;
@@ -6193,6 +6577,10 @@ declare const app: Elysia<"", {
6193
6577
  lastCampaignCreatedAt: Date;
6194
6578
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
6195
6579
  liveCampaigns: number;
6580
+ earliestCampaignStart: bigint | null;
6581
+ latestCampaignStart: bigint | null;
6582
+ earliestCampaignEnd: bigint | null;
6583
+ latestCampaignEnd: bigint | null;
6196
6584
  hidden: boolean;
6197
6585
  }) | null;
6198
6586
  Program: ({
@@ -6273,6 +6661,10 @@ declare const app: Elysia<"", {
6273
6661
  lastCampaignCreatedAt: Date;
6274
6662
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
6275
6663
  liveCampaigns: number;
6664
+ earliestCampaignStart: bigint | null;
6665
+ latestCampaignStart: bigint | null;
6666
+ earliestCampaignEnd: bigint | null;
6667
+ latestCampaignEnd: bigint | null;
6276
6668
  hidden: boolean;
6277
6669
  })[];
6278
6670
  } & {
@@ -6389,6 +6781,10 @@ declare const app: Elysia<"", {
6389
6781
  dailyRewards: number;
6390
6782
  liveCampaigns: number;
6391
6783
  lastCampaignCreatedAt: number;
6784
+ earliestCampaignStart?: string | bigint | undefined;
6785
+ latestCampaignStart?: string | bigint | undefined;
6786
+ earliestCampaignEnd?: string | bigint | undefined;
6787
+ latestCampaignEnd?: string | bigint | undefined;
6392
6788
  nativeApr?: number | undefined;
6393
6789
  maxApr?: number | null | undefined;
6394
6790
  liveCampaignsForCreator?: number | undefined;
@@ -6445,27 +6841,22 @@ declare const app: Elysia<"", {
6445
6841
  opportunityBannerDark: string | null;
6446
6842
  } | null | undefined;
6447
6843
  aprRecord?: {
6448
- id?: string | undefined;
6449
6844
  timestamp: string | bigint;
6450
6845
  cumulated: number;
6451
- opportunityId?: string | undefined;
6452
6846
  breakdowns: {
6453
6847
  identifier: string;
6454
- type: string;
6848
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
6455
6849
  value: number;
6456
6850
  timestamp: string | bigint;
6457
- distributionType?: string | undefined;
6851
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
6458
6852
  }[];
6459
6853
  } | undefined;
6460
6854
  nativeAprRecord?: {
6461
- id?: string | undefined;
6462
6855
  title: string;
6463
6856
  description?: string | undefined;
6464
- timestamp: string | number | bigint;
6857
+ timestamp: string | bigint;
6465
6858
  value: number;
6466
- amount?: string | number | bigint | undefined;
6467
- rewardTokenId?: string | undefined;
6468
- opportunityId?: string | undefined;
6859
+ amount?: bigint | undefined;
6469
6860
  rewardToken?: {
6470
6861
  id: string;
6471
6862
  name: string | null;
@@ -6485,11 +6876,13 @@ declare const app: Elysia<"", {
6485
6876
  } | undefined;
6486
6877
  } | undefined;
6487
6878
  tvlRecord?: {
6488
- id?: string | undefined;
6489
- timestamp: string | number | bigint;
6879
+ timestamp: string | bigint;
6490
6880
  total: number;
6491
- opportunityId?: string | undefined;
6492
- breakdowns?: any[] | undefined;
6881
+ breakdowns: {
6882
+ identifier: string;
6883
+ type: "PROTOCOL" | "TOKEN";
6884
+ value: number;
6885
+ }[];
6493
6886
  } | undefined;
6494
6887
  rewardsRecord?: {
6495
6888
  total: number;
@@ -6516,7 +6909,7 @@ declare const app: Elysia<"", {
6516
6909
  displaySymbol?: string | undefined;
6517
6910
  };
6518
6911
  amount: string | bigint;
6519
- distributionType?: string | undefined;
6912
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
6520
6913
  onChainCampaignId?: string | undefined;
6521
6914
  }[];
6522
6915
  } | undefined;
@@ -6551,6 +6944,10 @@ declare const app: Elysia<"", {
6551
6944
  dailyRewards: number;
6552
6945
  liveCampaigns: number;
6553
6946
  lastCampaignCreatedAt: number;
6947
+ earliestCampaignStart?: string | bigint | undefined;
6948
+ latestCampaignStart?: string | bigint | undefined;
6949
+ earliestCampaignEnd?: string | bigint | undefined;
6950
+ latestCampaignEnd?: string | bigint | undefined;
6554
6951
  nativeApr?: number | undefined;
6555
6952
  maxApr?: number | null | undefined;
6556
6953
  liveCampaignsForCreator?: number | undefined;
@@ -6607,27 +7004,22 @@ declare const app: Elysia<"", {
6607
7004
  opportunityBannerDark: string | null;
6608
7005
  } | null | undefined;
6609
7006
  aprRecord?: {
6610
- id?: string | undefined;
6611
7007
  timestamp: string | bigint;
6612
7008
  cumulated: number;
6613
- opportunityId?: string | undefined;
6614
7009
  breakdowns: {
6615
7010
  identifier: string;
6616
- type: string;
7011
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
6617
7012
  value: number;
6618
7013
  timestamp: string | bigint;
6619
- distributionType?: string | undefined;
7014
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
6620
7015
  }[];
6621
7016
  } | undefined;
6622
7017
  nativeAprRecord?: {
6623
- id?: string | undefined;
6624
7018
  title: string;
6625
7019
  description?: string | undefined;
6626
- timestamp: string | number | bigint;
7020
+ timestamp: string | bigint;
6627
7021
  value: number;
6628
- amount?: string | number | bigint | undefined;
6629
- rewardTokenId?: string | undefined;
6630
- opportunityId?: string | undefined;
7022
+ amount?: bigint | undefined;
6631
7023
  rewardToken?: {
6632
7024
  id: string;
6633
7025
  name: string | null;
@@ -6647,11 +7039,13 @@ declare const app: Elysia<"", {
6647
7039
  } | undefined;
6648
7040
  } | undefined;
6649
7041
  tvlRecord?: {
6650
- id?: string | undefined;
6651
- timestamp: string | number | bigint;
7042
+ timestamp: string | bigint;
6652
7043
  total: number;
6653
- opportunityId?: string | undefined;
6654
- breakdowns?: any[] | undefined;
7044
+ breakdowns: {
7045
+ identifier: string;
7046
+ type: "PROTOCOL" | "TOKEN";
7047
+ value: number;
7048
+ }[];
6655
7049
  } | undefined;
6656
7050
  rewardsRecord?: {
6657
7051
  total: number;
@@ -6678,7 +7072,7 @@ declare const app: Elysia<"", {
6678
7072
  displaySymbol?: string | undefined;
6679
7073
  };
6680
7074
  amount: string | bigint;
6681
- distributionType?: string | undefined;
7075
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
6682
7076
  onChainCampaignId?: string | undefined;
6683
7077
  }[];
6684
7078
  } | undefined;
@@ -6858,6 +7252,10 @@ declare const app: Elysia<"", {
6858
7252
  lastCampaignCreatedAt: Date;
6859
7253
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
6860
7254
  liveCampaigns: number;
7255
+ earliestCampaignStart: bigint | null;
7256
+ latestCampaignStart: bigint | null;
7257
+ earliestCampaignEnd: bigint | null;
7258
+ latestCampaignEnd: bigint | null;
6861
7259
  hidden: boolean;
6862
7260
  }) | null;
6863
7261
  Program: ({
@@ -6938,6 +7336,10 @@ declare const app: Elysia<"", {
6938
7336
  lastCampaignCreatedAt: Date;
6939
7337
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
6940
7338
  liveCampaigns: number;
7339
+ earliestCampaignStart: bigint | null;
7340
+ latestCampaignStart: bigint | null;
7341
+ earliestCampaignEnd: bigint | null;
7342
+ latestCampaignEnd: bigint | null;
6941
7343
  hidden: boolean;
6942
7344
  })[];
6943
7345
  } & {
@@ -8220,6 +8622,10 @@ declare const app: Elysia<"", {
8220
8622
  lastCampaignCreatedAt: Date;
8221
8623
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
8222
8624
  liveCampaigns: number;
8625
+ earliestCampaignStart: bigint | null;
8626
+ latestCampaignStart: bigint | null;
8627
+ earliestCampaignEnd: bigint | null;
8628
+ latestCampaignEnd: bigint | null;
8223
8629
  hidden: boolean;
8224
8630
  });
8225
8631
  };
@@ -9001,6 +9407,10 @@ declare const app: Elysia<"", {
9001
9407
  dailyRewards: number;
9002
9408
  liveCampaigns: number;
9003
9409
  lastCampaignCreatedAt: number;
9410
+ earliestCampaignStart?: string | bigint | undefined;
9411
+ latestCampaignStart?: string | bigint | undefined;
9412
+ earliestCampaignEnd?: string | bigint | undefined;
9413
+ latestCampaignEnd?: string | bigint | undefined;
9004
9414
  nativeApr?: number | undefined;
9005
9415
  maxApr?: number | null | undefined;
9006
9416
  liveCampaignsForCreator?: number | undefined;
@@ -9057,27 +9467,22 @@ declare const app: Elysia<"", {
9057
9467
  opportunityBannerDark: string | null;
9058
9468
  } | null | undefined;
9059
9469
  aprRecord?: {
9060
- id?: string | undefined;
9061
- timestamp: string | bigint;
9062
9470
  cumulated: number;
9063
- opportunityId?: string | undefined;
9471
+ timestamp: string | bigint;
9064
9472
  breakdowns: {
9065
9473
  identifier: string;
9066
- type: string;
9474
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
9067
9475
  value: number;
9068
9476
  timestamp: string | bigint;
9069
- distributionType?: string | undefined;
9477
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
9070
9478
  }[];
9071
9479
  } | undefined;
9072
9480
  nativeAprRecord?: {
9073
- id?: string | undefined;
9074
9481
  title: string;
9075
9482
  description?: string | undefined;
9076
- timestamp: string | number | bigint;
9077
9483
  value: number;
9078
- amount?: string | number | bigint | undefined;
9079
- rewardTokenId?: string | undefined;
9080
- opportunityId?: string | undefined;
9484
+ timestamp: string | bigint;
9485
+ amount?: bigint | undefined;
9081
9486
  rewardToken?: {
9082
9487
  id: string;
9083
9488
  name: string | null;
@@ -9097,11 +9502,13 @@ declare const app: Elysia<"", {
9097
9502
  } | undefined;
9098
9503
  } | undefined;
9099
9504
  tvlRecord?: {
9100
- id?: string | undefined;
9101
- timestamp: string | number | bigint;
9102
9505
  total: number;
9103
- opportunityId?: string | undefined;
9104
- breakdowns?: any[] | undefined;
9506
+ timestamp: string | bigint;
9507
+ breakdowns: {
9508
+ identifier: string;
9509
+ type: "PROTOCOL" | "TOKEN";
9510
+ value: number;
9511
+ }[];
9105
9512
  } | undefined;
9106
9513
  rewardsRecord?: {
9107
9514
  total: number;
@@ -9128,62 +9535,173 @@ declare const app: Elysia<"", {
9128
9535
  displaySymbol?: string | undefined;
9129
9536
  };
9130
9537
  amount: string | bigint;
9131
- distributionType?: string | undefined;
9538
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
9132
9539
  onChainCampaignId?: string | undefined;
9133
9540
  }[];
9134
9541
  } | undefined;
9135
- campaigns?: any[] | undefined;
9136
9542
  } & {
9137
- liveCampaignsForCreator: number;
9138
- distributedBycreator: number;
9139
- })[];
9140
- 422: {
9141
- type: "validation";
9142
- on: string;
9143
- summary?: string | undefined;
9144
- message?: string | undefined;
9145
- found?: unknown;
9146
- property?: string | undefined;
9147
- expected?: string | undefined;
9148
- };
9149
- };
9150
- };
9151
- };
9152
- };
9153
- };
9154
- } & {
9155
- creators: {
9156
- ":creator": {
9157
- campaigns: {
9158
- get: {
9159
- body: unknown;
9160
- params: {
9161
- creator: string;
9162
- };
9163
- query: {
9164
- status?: "FUTURE" | "LIVE" | "PAST" | undefined;
9165
- };
9166
- headers: unknown;
9167
- response: {
9168
- 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
9169
- subType: number | null;
9170
- startTimestamp: number;
9171
- endTimestamp: number;
9172
- createdAt: string;
9173
- parentCampaignId?: string | undefined;
9174
- rootCampaignId?: string | undefined;
9175
- pauseCompute?: string | undefined;
9176
- })[] | ({
9177
- Opportunity: {
9543
+ campaigns?: {
9178
9544
  id: string;
9179
- chainId: number;
9545
+ computeChainId: number;
9546
+ distributionChainId: number;
9547
+ campaignId: string;
9180
9548
  type: string;
9181
- identifier: string;
9182
- name: string;
9183
- description: string;
9184
- howToSteps: string[];
9185
- depositUrl: string | null;
9186
- explorerAddress: string | null;
9549
+ subType?: number | null | undefined;
9550
+ amount: string;
9551
+ startTimestamp: string | number | bigint;
9552
+ endTimestamp: string | number | bigint;
9553
+ creatorAddress: string;
9554
+ apr?: number | undefined;
9555
+ dailyRewards?: number | undefined;
9556
+ creator?: {
9557
+ address: string;
9558
+ tags?: string[] | undefined;
9559
+ creatorId?: string | null | undefined;
9560
+ } | undefined;
9561
+ params: unknown;
9562
+ description?: string | undefined;
9563
+ chain: {
9564
+ id: number;
9565
+ name: string;
9566
+ icon: string;
9567
+ liveCampaigns: number;
9568
+ endOfDisputePeriod: number;
9569
+ explorers?: {
9570
+ type: "BLOCKSCOUT" | "ETHERSCAN";
9571
+ url: string;
9572
+ chainId: number;
9573
+ }[] | undefined;
9574
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
9575
+ };
9576
+ rewardTokenId?: string | undefined;
9577
+ rewardToken: {
9578
+ id: string;
9579
+ name: string | null;
9580
+ chainId: number;
9581
+ address: string;
9582
+ decimals: number;
9583
+ symbol: string;
9584
+ icon: string;
9585
+ verified: boolean;
9586
+ isNative: boolean;
9587
+ isTest: boolean;
9588
+ type: "POINT" | "PRETGE" | "TOKEN";
9589
+ price?: number | null | undefined;
9590
+ updatedAt?: number | null | undefined;
9591
+ priceSource?: string | null | undefined;
9592
+ displaySymbol?: string | undefined;
9593
+ };
9594
+ opportunityId?: string | undefined;
9595
+ distributionChain?: {
9596
+ id: number;
9597
+ name: string;
9598
+ icon: string;
9599
+ liveCampaigns: number;
9600
+ endOfDisputePeriod: number;
9601
+ explorers?: {
9602
+ type: "BLOCKSCOUT" | "ETHERSCAN";
9603
+ url: string;
9604
+ chainId: number;
9605
+ }[] | undefined;
9606
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
9607
+ } | undefined;
9608
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
9609
+ campaignStatus: {
9610
+ campaignId: string;
9611
+ computedUntil: string | number;
9612
+ processingStarted: string | number;
9613
+ status: string;
9614
+ preComputeProcessingStarted: string | number;
9615
+ preComputeStatus: string;
9616
+ delay?: number | undefined;
9617
+ error?: string | undefined;
9618
+ details?: unknown;
9619
+ };
9620
+ createdAt: string;
9621
+ rootCampaignId?: string | null | undefined;
9622
+ parentCampaignId?: string | null | undefined;
9623
+ childCampaignIds?: string[] | undefined;
9624
+ dailyRewardsBreakdown?: {
9625
+ campaignId: string;
9626
+ value: number;
9627
+ timestamp: string | bigint;
9628
+ token: {
9629
+ id: string;
9630
+ name: string | null;
9631
+ chainId: number;
9632
+ address: string;
9633
+ decimals: number;
9634
+ symbol: string;
9635
+ icon: string;
9636
+ verified: boolean;
9637
+ isNative: boolean;
9638
+ isTest: boolean;
9639
+ type: "POINT" | "PRETGE" | "TOKEN";
9640
+ price?: number | null | undefined;
9641
+ updatedAt?: number | null | undefined;
9642
+ priceSource?: string | null | undefined;
9643
+ displaySymbol?: string | undefined;
9644
+ };
9645
+ amount: string | bigint;
9646
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
9647
+ onChainCampaignId?: string | undefined;
9648
+ }[] | undefined;
9649
+ pauseCompute?: string | null | undefined;
9650
+ hasOverrides?: boolean | undefined;
9651
+ isPrivate: boolean;
9652
+ campaignEncodingHash?: string | undefined;
9653
+ }[] | undefined;
9654
+ } & {
9655
+ liveCampaignsForCreator: number;
9656
+ distributedBycreator: number;
9657
+ })[];
9658
+ 422: {
9659
+ type: "validation";
9660
+ on: string;
9661
+ summary?: string | undefined;
9662
+ message?: string | undefined;
9663
+ found?: unknown;
9664
+ property?: string | undefined;
9665
+ expected?: string | undefined;
9666
+ };
9667
+ };
9668
+ };
9669
+ };
9670
+ };
9671
+ };
9672
+ } & {
9673
+ creators: {
9674
+ ":creator": {
9675
+ campaigns: {
9676
+ get: {
9677
+ body: unknown;
9678
+ params: {
9679
+ creator: string;
9680
+ };
9681
+ query: {
9682
+ status?: "FUTURE" | "LIVE" | "PAST" | undefined;
9683
+ };
9684
+ headers: unknown;
9685
+ response: {
9686
+ 200: (Omit<import("./modules/v4/campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
9687
+ subType: number | null;
9688
+ startTimestamp: number;
9689
+ endTimestamp: number;
9690
+ createdAt: string;
9691
+ parentCampaignId?: string | undefined;
9692
+ rootCampaignId?: string | undefined;
9693
+ pauseCompute?: string | undefined;
9694
+ })[] | ({
9695
+ Opportunity: {
9696
+ id: string;
9697
+ chainId: number;
9698
+ type: string;
9699
+ identifier: string;
9700
+ name: string;
9701
+ description: string;
9702
+ howToSteps: string[];
9703
+ depositUrl: string | null;
9704
+ explorerAddress: string | null;
9187
9705
  status: import("@package/databases").Status;
9188
9706
  action: import("@package/databases").OpportunityAction;
9189
9707
  mainProtocolId: string | null;
@@ -9196,6 +9714,10 @@ declare const app: Elysia<"", {
9196
9714
  lastCampaignCreatedAt: Date;
9197
9715
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
9198
9716
  liveCampaigns: number;
9717
+ earliestCampaignStart: bigint | null;
9718
+ latestCampaignStart: bigint | null;
9719
+ earliestCampaignEnd: bigint | null;
9720
+ latestCampaignEnd: bigint | null;
9199
9721
  hidden: boolean;
9200
9722
  };
9201
9723
  } & {
@@ -10498,30 +11020,52 @@ declare const app: Elysia<"", {
10498
11020
  };
10499
11021
  headers: unknown;
10500
11022
  response: {
10501
- 200: {
11023
+ 200: ({
11024
+ id: string;
11025
+ type: string;
11026
+ identifier: string;
11027
+ chainId: number;
11028
+ name: string;
11029
+ description: string;
11030
+ howToSteps: string[];
11031
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
10502
11032
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10503
- activePrograms: {
11033
+ tags: string[];
11034
+ protocols?: string[] | undefined;
11035
+ mainProtocol?: string | undefined;
11036
+ depositUrl?: string | undefined;
11037
+ explorerAddress?: string | undefined;
11038
+ hidden?: boolean | undefined;
11039
+ tvl: number;
11040
+ apr: number;
11041
+ dailyRewards: number;
11042
+ liveCampaigns: number;
11043
+ lastCampaignCreatedAt: number;
11044
+ earliestCampaignStart?: string | bigint | undefined;
11045
+ latestCampaignStart?: string | bigint | undefined;
11046
+ earliestCampaignEnd?: string | bigint | undefined;
11047
+ latestCampaignEnd?: string | bigint | undefined;
11048
+ nativeApr?: number | undefined;
11049
+ maxApr?: number | null | undefined;
11050
+ liveCampaignsForCreator?: number | undefined;
11051
+ distributionType?: string | undefined;
11052
+ tokens: {
10504
11053
  id: string;
10505
- name: string;
10506
- slug?: string | null | undefined;
10507
- description?: string | undefined;
10508
- icon?: string | undefined;
11054
+ name: string | null;
11055
+ chainId: number;
11056
+ address: string;
11057
+ decimals: number;
11058
+ symbol: string;
11059
+ icon: string;
11060
+ verified: boolean;
11061
+ isNative: boolean;
11062
+ isTest: boolean;
11063
+ type: "POINT" | "PRETGE" | "TOKEN";
11064
+ price?: number | null | undefined;
11065
+ updatedAt?: number | null | undefined;
11066
+ priceSource?: string | null | undefined;
11067
+ displaySymbol?: string | undefined;
10509
11068
  }[];
10510
- apr: number;
10511
- aprRecord?: {
10512
- id?: string | undefined;
10513
- timestamp: string | bigint;
10514
- cumulated: number;
10515
- opportunityId?: string | undefined;
10516
- breakdowns: {
10517
- identifier: string;
10518
- type: string;
10519
- value: number;
10520
- timestamp: string | bigint;
10521
- distributionType?: string | undefined;
10522
- }[];
10523
- } | undefined;
10524
- campaigns: any[];
10525
11069
  chain: {
10526
11070
  id: number;
10527
11071
  name: string;
@@ -10535,32 +11079,44 @@ declare const app: Elysia<"", {
10535
11079
  }[] | undefined;
10536
11080
  lastClaimsOnchainFetchTimestamp?: string | null | undefined;
10537
11081
  };
10538
- chainId: number;
10539
- dailyRewards: number;
10540
- depositUrl?: string | undefined;
10541
- description: string;
10542
- distributionType?: string | undefined;
10543
- explorerAddress?: string | undefined;
10544
- hidden?: boolean | undefined;
10545
- howToSteps: string[];
10546
- id: string;
10547
- identifier: string;
10548
- lastCampaignCreatedAt: number;
10549
- liveCampaigns: number;
10550
- liveCampaignsForCreator?: number | undefined;
10551
- mainProtocol?: string | undefined;
10552
- maxApr?: number | null | undefined;
10553
- name: string;
10554
- nativeApr?: number | undefined;
11082
+ activePrograms: {
11083
+ id: string;
11084
+ name: string;
11085
+ slug?: string | null | undefined;
11086
+ description?: string | undefined;
11087
+ icon?: string | undefined;
11088
+ }[];
11089
+ protocol?: {
11090
+ id: string;
11091
+ name: string;
11092
+ icon: string;
11093
+ tags: string[];
11094
+ description: string;
11095
+ url: string;
11096
+ dailyRewards?: number | undefined;
11097
+ numberOfLiveCampaigns?: number | undefined;
11098
+ opportunityLiveTags?: string[] | undefined;
11099
+ banner: string | null;
11100
+ opportunityBannerLight: string | null;
11101
+ opportunityBannerDark: string | null;
11102
+ } | null | undefined;
11103
+ aprRecord?: {
11104
+ cumulated: number;
11105
+ timestamp: string | bigint;
11106
+ breakdowns: {
11107
+ identifier: string;
11108
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
11109
+ value: number;
11110
+ timestamp: string | bigint;
11111
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11112
+ }[];
11113
+ } | undefined;
10555
11114
  nativeAprRecord?: {
10556
- id?: string | undefined;
10557
11115
  title: string;
10558
11116
  description?: string | undefined;
10559
- timestamp: string | number | bigint;
10560
11117
  value: number;
10561
- amount?: string | number | bigint | undefined;
10562
- rewardTokenId?: string | undefined;
10563
- opportunityId?: string | undefined;
11118
+ timestamp: string | bigint;
11119
+ amount?: bigint | undefined;
10564
11120
  rewardToken?: {
10565
11121
  id: string;
10566
11122
  name: string | null;
@@ -10579,26 +11135,20 @@ declare const app: Elysia<"", {
10579
11135
  displaySymbol?: string | undefined;
10580
11136
  } | undefined;
10581
11137
  } | undefined;
10582
- protocol?: {
10583
- id: string;
10584
- name: string;
10585
- icon: string;
10586
- tags: string[];
10587
- description: string;
10588
- url: string;
10589
- dailyRewards?: number | undefined;
10590
- numberOfLiveCampaigns?: number | undefined;
10591
- opportunityLiveTags?: string[] | undefined;
10592
- banner: string | null;
10593
- opportunityBannerLight: string | null;
10594
- opportunityBannerDark: string | null;
10595
- } | null | undefined;
10596
- protocols?: string[] | undefined;
10597
- rewardsRecord?: {
11138
+ tvlRecord?: {
10598
11139
  total: number;
10599
11140
  timestamp: string | bigint;
10600
11141
  breakdowns: {
10601
- campaignId: string;
11142
+ identifier: string;
11143
+ type: "PROTOCOL" | "TOKEN";
11144
+ value: number;
11145
+ }[];
11146
+ } | undefined;
11147
+ rewardsRecord?: {
11148
+ total: number;
11149
+ timestamp: string | bigint;
11150
+ breakdowns: {
11151
+ campaignId: string;
10602
11152
  value: number;
10603
11153
  timestamp: string | bigint;
10604
11154
  token: {
@@ -10619,39 +11169,123 @@ declare const app: Elysia<"", {
10619
11169
  displaySymbol?: string | undefined;
10620
11170
  };
10621
11171
  amount: string | bigint;
10622
- distributionType?: string | undefined;
11172
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
10623
11173
  onChainCampaignId?: string | undefined;
10624
11174
  }[];
10625
11175
  } | undefined;
10626
- status: "LIVE" | "NONE" | "PAST" | "SOON";
10627
- tags: string[];
10628
- tokens: {
11176
+ } & {
11177
+ campaigns: {
10629
11178
  id: string;
10630
- name: string | null;
10631
- chainId: number;
10632
- address: string;
10633
- decimals: number;
10634
- symbol: string;
10635
- icon: string;
10636
- verified: boolean;
10637
- isNative: boolean;
10638
- isTest: boolean;
10639
- type: "POINT" | "PRETGE" | "TOKEN";
10640
- price?: number | null | undefined;
10641
- updatedAt?: number | null | undefined;
10642
- priceSource?: string | null | undefined;
10643
- displaySymbol?: string | undefined;
10644
- }[];
10645
- tvl: number;
10646
- tvlRecord?: {
10647
- id?: string | undefined;
10648
- timestamp: string | number | bigint;
10649
- total: number;
11179
+ computeChainId: number;
11180
+ distributionChainId: number;
11181
+ campaignId: string;
11182
+ type: string;
11183
+ subType?: number | null | undefined;
11184
+ amount: string;
11185
+ startTimestamp: string | number | bigint;
11186
+ endTimestamp: string | number | bigint;
11187
+ creatorAddress: string;
11188
+ apr?: number | undefined;
11189
+ dailyRewards?: number | undefined;
11190
+ creator?: {
11191
+ address: string;
11192
+ tags?: string[] | undefined;
11193
+ creatorId?: string | null | undefined;
11194
+ } | undefined;
11195
+ params: unknown;
11196
+ description?: string | undefined;
11197
+ chain: {
11198
+ id: number;
11199
+ name: string;
11200
+ icon: string;
11201
+ liveCampaigns: number;
11202
+ endOfDisputePeriod: number;
11203
+ explorers?: {
11204
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11205
+ url: string;
11206
+ chainId: number;
11207
+ }[] | undefined;
11208
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11209
+ };
11210
+ rewardTokenId?: string | undefined;
11211
+ rewardToken: {
11212
+ id: string;
11213
+ name: string | null;
11214
+ chainId: number;
11215
+ address: string;
11216
+ decimals: number;
11217
+ symbol: string;
11218
+ icon: string;
11219
+ verified: boolean;
11220
+ isNative: boolean;
11221
+ isTest: boolean;
11222
+ type: "POINT" | "PRETGE" | "TOKEN";
11223
+ price?: number | null | undefined;
11224
+ updatedAt?: number | null | undefined;
11225
+ priceSource?: string | null | undefined;
11226
+ displaySymbol?: string | undefined;
11227
+ };
10650
11228
  opportunityId?: string | undefined;
10651
- breakdowns?: any[] | undefined;
10652
- } | undefined;
10653
- type: string;
10654
- }[];
11229
+ distributionChain?: {
11230
+ id: number;
11231
+ name: string;
11232
+ icon: string;
11233
+ liveCampaigns: number;
11234
+ endOfDisputePeriod: number;
11235
+ explorers?: {
11236
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11237
+ url: string;
11238
+ chainId: number;
11239
+ }[] | undefined;
11240
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11241
+ } | undefined;
11242
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11243
+ campaignStatus: {
11244
+ campaignId: string;
11245
+ computedUntil: string | number;
11246
+ processingStarted: string | number;
11247
+ status: string;
11248
+ preComputeProcessingStarted: string | number;
11249
+ preComputeStatus: string;
11250
+ delay?: number | undefined;
11251
+ error?: string | undefined;
11252
+ details?: unknown;
11253
+ };
11254
+ createdAt: string;
11255
+ rootCampaignId?: string | null | undefined;
11256
+ parentCampaignId?: string | null | undefined;
11257
+ childCampaignIds?: string[] | undefined;
11258
+ dailyRewardsBreakdown?: {
11259
+ campaignId: string;
11260
+ value: number;
11261
+ timestamp: string | bigint;
11262
+ token: {
11263
+ id: string;
11264
+ name: string | null;
11265
+ chainId: number;
11266
+ address: string;
11267
+ decimals: number;
11268
+ symbol: string;
11269
+ icon: string;
11270
+ verified: boolean;
11271
+ isNative: boolean;
11272
+ isTest: boolean;
11273
+ type: "POINT" | "PRETGE" | "TOKEN";
11274
+ price?: number | null | undefined;
11275
+ updatedAt?: number | null | undefined;
11276
+ priceSource?: string | null | undefined;
11277
+ displaySymbol?: string | undefined;
11278
+ };
11279
+ amount: string | bigint;
11280
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11281
+ onChainCampaignId?: string | undefined;
11282
+ }[] | undefined;
11283
+ pauseCompute?: string | null | undefined;
11284
+ hasOverrides?: boolean | undefined;
11285
+ isPrivate: boolean;
11286
+ campaignEncodingHash?: string | undefined;
11287
+ }[];
11288
+ })[];
10655
11289
  404: {
10656
11290
  name: string;
10657
11291
  message: string;
@@ -10691,7 +11325,7 @@ declare const app: Elysia<"", {
10691
11325
  };
10692
11326
  headers: unknown;
10693
11327
  response: {
10694
- 200: {
11328
+ 200: ({
10695
11329
  id: string;
10696
11330
  type: string;
10697
11331
  identifier: string;
@@ -10712,6 +11346,10 @@ declare const app: Elysia<"", {
10712
11346
  dailyRewards: number;
10713
11347
  liveCampaigns: number;
10714
11348
  lastCampaignCreatedAt: number;
11349
+ earliestCampaignStart?: string | bigint | undefined;
11350
+ latestCampaignStart?: string | bigint | undefined;
11351
+ earliestCampaignEnd?: string | bigint | undefined;
11352
+ latestCampaignEnd?: string | bigint | undefined;
10715
11353
  nativeApr?: number | undefined;
10716
11354
  maxApr?: number | null | undefined;
10717
11355
  liveCampaignsForCreator?: number | undefined;
@@ -10768,27 +11406,22 @@ declare const app: Elysia<"", {
10768
11406
  opportunityBannerDark: string | null;
10769
11407
  } | null | undefined;
10770
11408
  aprRecord?: {
10771
- id?: string | undefined;
10772
- timestamp: string | bigint;
10773
11409
  cumulated: number;
10774
- opportunityId?: string | undefined;
11410
+ timestamp: string | bigint;
10775
11411
  breakdowns: {
10776
11412
  identifier: string;
10777
- type: string;
11413
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
10778
11414
  value: number;
10779
11415
  timestamp: string | bigint;
10780
- distributionType?: string | undefined;
11416
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
10781
11417
  }[];
10782
11418
  } | undefined;
10783
11419
  nativeAprRecord?: {
10784
- id?: string | undefined;
10785
11420
  title: string;
10786
11421
  description?: string | undefined;
10787
- timestamp: string | number | bigint;
10788
11422
  value: number;
10789
- amount?: string | number | bigint | undefined;
10790
- rewardTokenId?: string | undefined;
10791
- opportunityId?: string | undefined;
11423
+ timestamp: string | bigint;
11424
+ amount?: bigint | undefined;
10792
11425
  rewardToken?: {
10793
11426
  id: string;
10794
11427
  name: string | null;
@@ -10808,11 +11441,13 @@ declare const app: Elysia<"", {
10808
11441
  } | undefined;
10809
11442
  } | undefined;
10810
11443
  tvlRecord?: {
10811
- id?: string | undefined;
10812
- timestamp: string | number | bigint;
10813
11444
  total: number;
10814
- opportunityId?: string | undefined;
10815
- breakdowns?: any[] | undefined;
11445
+ timestamp: string | bigint;
11446
+ breakdowns: {
11447
+ identifier: string;
11448
+ type: "PROTOCOL" | "TOKEN";
11449
+ value: number;
11450
+ }[];
10816
11451
  } | undefined;
10817
11452
  rewardsRecord?: {
10818
11453
  total: number;
@@ -10839,75 +11474,46 @@ declare const app: Elysia<"", {
10839
11474
  displaySymbol?: string | undefined;
10840
11475
  };
10841
11476
  amount: string | bigint;
10842
- distributionType?: string | undefined;
11477
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
10843
11478
  onChainCampaignId?: string | undefined;
10844
11479
  }[];
10845
11480
  } | undefined;
10846
- campaigns?: any[] | undefined;
10847
- } | {
10848
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10849
- activePrograms: {
11481
+ } & {
11482
+ campaigns?: {
10850
11483
  id: string;
10851
- name: string;
10852
- slug?: string | null | undefined;
10853
- description?: string | undefined;
10854
- icon?: string | undefined;
10855
- }[];
10856
- apr: number;
10857
- aprRecord?: {
10858
- id?: string | undefined;
10859
- timestamp: string | bigint;
10860
- cumulated: number;
10861
- opportunityId?: string | undefined;
10862
- breakdowns: {
10863
- identifier: string;
10864
- type: string;
10865
- value: number;
10866
- timestamp: string | bigint;
10867
- distributionType?: string | undefined;
10868
- }[];
10869
- } | undefined;
10870
- campaigns: any[];
10871
- chain: {
10872
- id: number;
10873
- name: string;
10874
- icon: string;
10875
- liveCampaigns: number;
10876
- endOfDisputePeriod: number;
10877
- explorers?: {
10878
- type: "BLOCKSCOUT" | "ETHERSCAN";
10879
- url: string;
10880
- chainId: number;
10881
- }[] | undefined;
10882
- lastClaimsOnchainFetchTimestamp?: string | null | undefined;
10883
- };
10884
- chainId: number;
10885
- dailyRewards: number;
10886
- depositUrl?: string | undefined;
10887
- description: string;
10888
- distributionType?: string | undefined;
10889
- explorerAddress?: string | undefined;
10890
- hidden?: boolean | undefined;
10891
- howToSteps: string[];
10892
- id: string;
10893
- identifier: string;
10894
- lastCampaignCreatedAt: number;
10895
- liveCampaigns: number;
10896
- liveCampaignsForCreator?: number | undefined;
10897
- mainProtocol?: string | undefined;
10898
- maxApr?: number | null | undefined;
10899
- name: string;
10900
- nativeApr?: number | undefined;
10901
- nativeAprRecord?: {
10902
- id?: string | undefined;
10903
- title: string;
11484
+ computeChainId: number;
11485
+ distributionChainId: number;
11486
+ campaignId: string;
11487
+ type: string;
11488
+ subType?: number | null | undefined;
11489
+ amount: string;
11490
+ startTimestamp: string | number | bigint;
11491
+ endTimestamp: string | number | bigint;
11492
+ creatorAddress: string;
11493
+ apr?: number | undefined;
11494
+ dailyRewards?: number | undefined;
11495
+ creator?: {
11496
+ address: string;
11497
+ tags?: string[] | undefined;
11498
+ creatorId?: string | null | undefined;
11499
+ } | undefined;
11500
+ params: unknown;
10904
11501
  description?: string | undefined;
10905
- timestamp: string | number | bigint;
10906
- value: number;
10907
- amount?: string | number | bigint | undefined;
11502
+ chain: {
11503
+ id: number;
11504
+ name: string;
11505
+ icon: string;
11506
+ liveCampaigns: number;
11507
+ endOfDisputePeriod: number;
11508
+ explorers?: {
11509
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11510
+ url: string;
11511
+ chainId: number;
11512
+ }[] | undefined;
11513
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11514
+ };
10908
11515
  rewardTokenId?: string | undefined;
10909
- opportunityId?: string | undefined;
10910
- rewardToken?: {
11516
+ rewardToken: {
10911
11517
  id: string;
10912
11518
  name: string | null;
10913
11519
  chainId: number;
@@ -10923,30 +11529,41 @@ declare const app: Elysia<"", {
10923
11529
  updatedAt?: number | null | undefined;
10924
11530
  priceSource?: string | null | undefined;
10925
11531
  displaySymbol?: string | undefined;
11532
+ };
11533
+ opportunityId?: string | undefined;
11534
+ distributionChain?: {
11535
+ id: number;
11536
+ name: string;
11537
+ icon: string;
11538
+ liveCampaigns: number;
11539
+ endOfDisputePeriod: number;
11540
+ explorers?: {
11541
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11542
+ url: string;
11543
+ chainId: number;
11544
+ }[] | undefined;
11545
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
10926
11546
  } | undefined;
10927
- } | undefined;
10928
- protocol?: {
10929
- id: string;
10930
- name: string;
10931
- icon: string;
10932
- tags: string[];
10933
- description: string;
10934
- url: string;
10935
- dailyRewards?: number | undefined;
10936
- numberOfLiveCampaigns?: number | undefined;
10937
- opportunityLiveTags?: string[] | undefined;
10938
- banner: string | null;
10939
- opportunityBannerLight: string | null;
10940
- opportunityBannerDark: string | null;
10941
- } | null | undefined;
10942
- protocols?: string[] | undefined;
10943
- rewardsRecord?: {
10944
- total: number;
10945
- timestamp: string | bigint;
10946
- breakdowns: {
11547
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11548
+ campaignStatus: {
10947
11549
  campaignId: string;
10948
- value: number;
10949
- timestamp: string | bigint;
11550
+ computedUntil: string | number;
11551
+ processingStarted: string | number;
11552
+ status: string;
11553
+ preComputeProcessingStarted: string | number;
11554
+ preComputeStatus: string;
11555
+ delay?: number | undefined;
11556
+ error?: string | undefined;
11557
+ details?: unknown;
11558
+ };
11559
+ createdAt: string;
11560
+ rootCampaignId?: string | null | undefined;
11561
+ parentCampaignId?: string | null | undefined;
11562
+ childCampaignIds?: string[] | undefined;
11563
+ dailyRewardsBreakdown?: {
11564
+ campaignId: string;
11565
+ value: number;
11566
+ timestamp: string | bigint;
10950
11567
  token: {
10951
11568
  id: string;
10952
11569
  name: string | null;
@@ -10965,12 +11582,43 @@ declare const app: Elysia<"", {
10965
11582
  displaySymbol?: string | undefined;
10966
11583
  };
10967
11584
  amount: string | bigint;
10968
- distributionType?: string | undefined;
11585
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
10969
11586
  onChainCampaignId?: string | undefined;
10970
- }[];
10971
- } | undefined;
11587
+ }[] | undefined;
11588
+ pauseCompute?: string | null | undefined;
11589
+ hasOverrides?: boolean | undefined;
11590
+ isPrivate: boolean;
11591
+ campaignEncodingHash?: string | undefined;
11592
+ }[] | undefined;
11593
+ }) | ({
11594
+ id: string;
11595
+ type: string;
11596
+ identifier: string;
11597
+ chainId: number;
11598
+ name: string;
11599
+ description: string;
11600
+ howToSteps: string[];
10972
11601
  status: "LIVE" | "NONE" | "PAST" | "SOON";
11602
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
10973
11603
  tags: string[];
11604
+ protocols?: string[] | undefined;
11605
+ mainProtocol?: string | undefined;
11606
+ depositUrl?: string | undefined;
11607
+ explorerAddress?: string | undefined;
11608
+ hidden?: boolean | undefined;
11609
+ tvl: number;
11610
+ apr: number;
11611
+ dailyRewards: number;
11612
+ liveCampaigns: number;
11613
+ lastCampaignCreatedAt: number;
11614
+ earliestCampaignStart?: string | bigint | undefined;
11615
+ latestCampaignStart?: string | bigint | undefined;
11616
+ earliestCampaignEnd?: string | bigint | undefined;
11617
+ latestCampaignEnd?: string | bigint | undefined;
11618
+ nativeApr?: number | undefined;
11619
+ maxApr?: number | null | undefined;
11620
+ liveCampaignsForCreator?: number | undefined;
11621
+ distributionType?: string | undefined;
10974
11622
  tokens: {
10975
11623
  id: string;
10976
11624
  name: string | null;
@@ -10988,16 +11636,226 @@ declare const app: Elysia<"", {
10988
11636
  priceSource?: string | null | undefined;
10989
11637
  displaySymbol?: string | undefined;
10990
11638
  }[];
10991
- tvl: number;
11639
+ chain: {
11640
+ id: number;
11641
+ name: string;
11642
+ icon: string;
11643
+ liveCampaigns: number;
11644
+ endOfDisputePeriod: number;
11645
+ explorers?: {
11646
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11647
+ url: string;
11648
+ chainId: number;
11649
+ }[] | undefined;
11650
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11651
+ };
11652
+ activePrograms: {
11653
+ id: string;
11654
+ name: string;
11655
+ slug?: string | null | undefined;
11656
+ description?: string | undefined;
11657
+ icon?: string | undefined;
11658
+ }[];
11659
+ protocol?: {
11660
+ id: string;
11661
+ name: string;
11662
+ icon: string;
11663
+ tags: string[];
11664
+ description: string;
11665
+ url: string;
11666
+ dailyRewards?: number | undefined;
11667
+ numberOfLiveCampaigns?: number | undefined;
11668
+ opportunityLiveTags?: string[] | undefined;
11669
+ banner: string | null;
11670
+ opportunityBannerLight: string | null;
11671
+ opportunityBannerDark: string | null;
11672
+ } | null | undefined;
11673
+ aprRecord?: {
11674
+ cumulated: number;
11675
+ timestamp: string | bigint;
11676
+ breakdowns: {
11677
+ identifier: string;
11678
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
11679
+ value: number;
11680
+ timestamp: string | bigint;
11681
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11682
+ }[];
11683
+ } | undefined;
11684
+ nativeAprRecord?: {
11685
+ title: string;
11686
+ description?: string | undefined;
11687
+ value: number;
11688
+ timestamp: string | bigint;
11689
+ amount?: bigint | undefined;
11690
+ rewardToken?: {
11691
+ id: string;
11692
+ name: string | null;
11693
+ chainId: number;
11694
+ address: string;
11695
+ decimals: number;
11696
+ symbol: string;
11697
+ icon: string;
11698
+ verified: boolean;
11699
+ isNative: boolean;
11700
+ isTest: boolean;
11701
+ type: "POINT" | "PRETGE" | "TOKEN";
11702
+ price?: number | null | undefined;
11703
+ updatedAt?: number | null | undefined;
11704
+ priceSource?: string | null | undefined;
11705
+ displaySymbol?: string | undefined;
11706
+ } | undefined;
11707
+ } | undefined;
10992
11708
  tvlRecord?: {
10993
- id?: string | undefined;
10994
- timestamp: string | number | bigint;
10995
11709
  total: number;
10996
- opportunityId?: string | undefined;
10997
- breakdowns?: any[] | undefined;
11710
+ timestamp: string | bigint;
11711
+ breakdowns: {
11712
+ identifier: string;
11713
+ type: "PROTOCOL" | "TOKEN";
11714
+ value: number;
11715
+ }[];
10998
11716
  } | undefined;
10999
- type: string;
11000
- };
11717
+ rewardsRecord?: {
11718
+ total: number;
11719
+ timestamp: string | bigint;
11720
+ breakdowns: {
11721
+ campaignId: string;
11722
+ value: number;
11723
+ timestamp: string | bigint;
11724
+ token: {
11725
+ id: string;
11726
+ name: string | null;
11727
+ chainId: number;
11728
+ address: string;
11729
+ decimals: number;
11730
+ symbol: string;
11731
+ icon: string;
11732
+ verified: boolean;
11733
+ isNative: boolean;
11734
+ isTest: boolean;
11735
+ type: "POINT" | "PRETGE" | "TOKEN";
11736
+ price?: number | null | undefined;
11737
+ updatedAt?: number | null | undefined;
11738
+ priceSource?: string | null | undefined;
11739
+ displaySymbol?: string | undefined;
11740
+ };
11741
+ amount: string | bigint;
11742
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11743
+ onChainCampaignId?: string | undefined;
11744
+ }[];
11745
+ } | undefined;
11746
+ } & {
11747
+ campaigns: {
11748
+ id: string;
11749
+ computeChainId: number;
11750
+ distributionChainId: number;
11751
+ campaignId: string;
11752
+ type: string;
11753
+ subType?: number | null | undefined;
11754
+ amount: string;
11755
+ startTimestamp: string | number | bigint;
11756
+ endTimestamp: string | number | bigint;
11757
+ creatorAddress: string;
11758
+ apr?: number | undefined;
11759
+ dailyRewards?: number | undefined;
11760
+ creator?: {
11761
+ address: string;
11762
+ tags?: string[] | undefined;
11763
+ creatorId?: string | null | undefined;
11764
+ } | undefined;
11765
+ params: unknown;
11766
+ description?: string | undefined;
11767
+ chain: {
11768
+ id: number;
11769
+ name: string;
11770
+ icon: string;
11771
+ liveCampaigns: number;
11772
+ endOfDisputePeriod: number;
11773
+ explorers?: {
11774
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11775
+ url: string;
11776
+ chainId: number;
11777
+ }[] | undefined;
11778
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11779
+ };
11780
+ rewardTokenId?: string | undefined;
11781
+ rewardToken: {
11782
+ id: string;
11783
+ name: string | null;
11784
+ chainId: number;
11785
+ address: string;
11786
+ decimals: number;
11787
+ symbol: string;
11788
+ icon: string;
11789
+ verified: boolean;
11790
+ isNative: boolean;
11791
+ isTest: boolean;
11792
+ type: "POINT" | "PRETGE" | "TOKEN";
11793
+ price?: number | null | undefined;
11794
+ updatedAt?: number | null | undefined;
11795
+ priceSource?: string | null | undefined;
11796
+ displaySymbol?: string | undefined;
11797
+ };
11798
+ opportunityId?: string | undefined;
11799
+ distributionChain?: {
11800
+ id: number;
11801
+ name: string;
11802
+ icon: string;
11803
+ liveCampaigns: number;
11804
+ endOfDisputePeriod: number;
11805
+ explorers?: {
11806
+ type: "BLOCKSCOUT" | "ETHERSCAN";
11807
+ url: string;
11808
+ chainId: number;
11809
+ }[] | undefined;
11810
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11811
+ } | undefined;
11812
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11813
+ campaignStatus: {
11814
+ campaignId: string;
11815
+ computedUntil: string | number;
11816
+ processingStarted: string | number;
11817
+ status: string;
11818
+ preComputeProcessingStarted: string | number;
11819
+ preComputeStatus: string;
11820
+ delay?: number | undefined;
11821
+ error?: string | undefined;
11822
+ details?: unknown;
11823
+ };
11824
+ createdAt: string;
11825
+ rootCampaignId?: string | null | undefined;
11826
+ parentCampaignId?: string | null | undefined;
11827
+ childCampaignIds?: string[] | undefined;
11828
+ dailyRewardsBreakdown?: {
11829
+ campaignId: string;
11830
+ value: number;
11831
+ timestamp: string | bigint;
11832
+ token: {
11833
+ id: string;
11834
+ name: string | null;
11835
+ chainId: number;
11836
+ address: string;
11837
+ decimals: number;
11838
+ symbol: string;
11839
+ icon: string;
11840
+ verified: boolean;
11841
+ isNative: boolean;
11842
+ isTest: boolean;
11843
+ type: "POINT" | "PRETGE" | "TOKEN";
11844
+ price?: number | null | undefined;
11845
+ updatedAt?: number | null | undefined;
11846
+ priceSource?: string | null | undefined;
11847
+ displaySymbol?: string | undefined;
11848
+ };
11849
+ amount: string | bigint;
11850
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11851
+ onChainCampaignId?: string | undefined;
11852
+ }[] | undefined;
11853
+ pauseCompute?: string | null | undefined;
11854
+ hasOverrides?: boolean | undefined;
11855
+ isPrivate: boolean;
11856
+ campaignEncodingHash?: string | undefined;
11857
+ }[];
11858
+ });
11001
11859
  404: {
11002
11860
  name: string;
11003
11861
  message: string;
@@ -11039,29 +11897,51 @@ declare const app: Elysia<"", {
11039
11897
  headers: unknown;
11040
11898
  response: {
11041
11899
  200: {
11900
+ id: string;
11901
+ type: string;
11902
+ identifier: string;
11903
+ chainId: number;
11904
+ name: string;
11905
+ description: string;
11906
+ howToSteps: string[];
11907
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11042
11908
  action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11043
- activePrograms: {
11044
- id: string;
11045
- name: string;
11046
- slug?: string | null | undefined;
11047
- description?: string | undefined;
11048
- icon?: string | undefined;
11049
- }[];
11909
+ tags: string[];
11910
+ protocols?: string[] | undefined;
11911
+ mainProtocol?: string | undefined;
11912
+ depositUrl?: string | undefined;
11913
+ explorerAddress?: string | undefined;
11914
+ hidden?: boolean | undefined;
11915
+ tvl: number;
11050
11916
  apr: number;
11051
- aprRecord?: {
11052
- id?: string | undefined;
11053
- timestamp: string | bigint;
11054
- cumulated: number;
11055
- opportunityId?: string | undefined;
11056
- breakdowns: {
11057
- identifier: string;
11058
- type: string;
11059
- value: number;
11060
- timestamp: string | bigint;
11061
- distributionType?: string | undefined;
11062
- }[];
11063
- } | undefined;
11064
- campaigns: any[];
11917
+ dailyRewards: number;
11918
+ liveCampaigns: number;
11919
+ lastCampaignCreatedAt: number;
11920
+ earliestCampaignStart?: string | bigint | undefined;
11921
+ latestCampaignStart?: string | bigint | undefined;
11922
+ earliestCampaignEnd?: string | bigint | undefined;
11923
+ latestCampaignEnd?: string | bigint | undefined;
11924
+ nativeApr?: number | undefined;
11925
+ maxApr?: number | null | undefined;
11926
+ liveCampaignsForCreator?: number | undefined;
11927
+ distributionType?: string | undefined;
11928
+ tokens: {
11929
+ id: string;
11930
+ name: string | null;
11931
+ chainId: number;
11932
+ address: string;
11933
+ decimals: number;
11934
+ symbol: string;
11935
+ icon: string;
11936
+ verified: boolean;
11937
+ isNative: boolean;
11938
+ isTest: boolean;
11939
+ type: "POINT" | "PRETGE" | "TOKEN";
11940
+ price?: number | null | undefined;
11941
+ updatedAt?: number | null | undefined;
11942
+ priceSource?: string | null | undefined;
11943
+ displaySymbol?: string | undefined;
11944
+ }[];
11065
11945
  chain: {
11066
11946
  id: number;
11067
11947
  name: string;
@@ -11075,32 +11955,44 @@ declare const app: Elysia<"", {
11075
11955
  }[] | undefined;
11076
11956
  lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11077
11957
  };
11078
- chainId: number;
11079
- dailyRewards: number;
11080
- depositUrl?: string | undefined;
11081
- description: string;
11082
- distributionType?: string | undefined;
11083
- explorerAddress?: string | undefined;
11084
- hidden?: boolean | undefined;
11085
- howToSteps: string[];
11086
- id: string;
11087
- identifier: string;
11088
- lastCampaignCreatedAt: number;
11089
- liveCampaigns: number;
11090
- liveCampaignsForCreator?: number | undefined;
11091
- mainProtocol?: string | undefined;
11092
- maxApr?: number | null | undefined;
11093
- name: string;
11094
- nativeApr?: number | undefined;
11958
+ activePrograms: {
11959
+ id: string;
11960
+ name: string;
11961
+ slug?: string | null | undefined;
11962
+ description?: string | undefined;
11963
+ icon?: string | undefined;
11964
+ }[];
11965
+ protocol?: {
11966
+ id: string;
11967
+ name: string;
11968
+ icon: string;
11969
+ tags: string[];
11970
+ description: string;
11971
+ url: string;
11972
+ dailyRewards?: number | undefined;
11973
+ numberOfLiveCampaigns?: number | undefined;
11974
+ opportunityLiveTags?: string[] | undefined;
11975
+ banner: string | null;
11976
+ opportunityBannerLight: string | null;
11977
+ opportunityBannerDark: string | null;
11978
+ } | null | undefined;
11979
+ aprRecord?: {
11980
+ cumulated: number;
11981
+ timestamp: string | bigint;
11982
+ breakdowns: {
11983
+ identifier: string;
11984
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
11985
+ value: number;
11986
+ timestamp: string | bigint;
11987
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11988
+ }[];
11989
+ } | undefined;
11095
11990
  nativeAprRecord?: {
11096
- id?: string | undefined;
11097
11991
  title: string;
11098
11992
  description?: string | undefined;
11099
- timestamp: string | number | bigint;
11100
11993
  value: number;
11101
- amount?: string | number | bigint | undefined;
11102
- rewardTokenId?: string | undefined;
11103
- opportunityId?: string | undefined;
11994
+ timestamp: string | bigint;
11995
+ amount?: bigint | undefined;
11104
11996
  rewardToken?: {
11105
11997
  id: string;
11106
11998
  name: string | null;
@@ -11119,21 +12011,15 @@ declare const app: Elysia<"", {
11119
12011
  displaySymbol?: string | undefined;
11120
12012
  } | undefined;
11121
12013
  } | undefined;
11122
- protocol?: {
11123
- id: string;
11124
- name: string;
11125
- icon: string;
11126
- tags: string[];
11127
- description: string;
11128
- url: string;
11129
- dailyRewards?: number | undefined;
11130
- numberOfLiveCampaigns?: number | undefined;
11131
- opportunityLiveTags?: string[] | undefined;
11132
- banner: string | null;
11133
- opportunityBannerLight: string | null;
11134
- opportunityBannerDark: string | null;
11135
- } | null | undefined;
11136
- protocols?: string[] | undefined;
12014
+ tvlRecord?: {
12015
+ total: number;
12016
+ timestamp: string | bigint;
12017
+ breakdowns: {
12018
+ identifier: string;
12019
+ type: "PROTOCOL" | "TOKEN";
12020
+ value: number;
12021
+ }[];
12022
+ } | undefined;
11137
12023
  rewardsRecord?: {
11138
12024
  total: number;
11139
12025
  timestamp: string | bigint;
@@ -11159,13 +12045,322 @@ declare const app: Elysia<"", {
11159
12045
  displaySymbol?: string | undefined;
11160
12046
  };
11161
12047
  amount: string | bigint;
11162
- distributionType?: string | undefined;
12048
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11163
12049
  onChainCampaignId?: string | undefined;
11164
12050
  }[];
11165
12051
  } | undefined;
11166
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11167
- tags: string[];
11168
- tokens: {
12052
+ } & {
12053
+ campaigns: {
12054
+ id: string;
12055
+ computeChainId: number;
12056
+ distributionChainId: number;
12057
+ campaignId: string;
12058
+ type: string;
12059
+ subType?: number | null | undefined;
12060
+ amount: string;
12061
+ startTimestamp: string | number | bigint;
12062
+ endTimestamp: string | number | bigint;
12063
+ creatorAddress: string;
12064
+ apr?: number | undefined;
12065
+ dailyRewards?: number | undefined;
12066
+ creator?: {
12067
+ address: string;
12068
+ tags?: string[] | undefined;
12069
+ creatorId?: string | null | undefined;
12070
+ } | undefined;
12071
+ params: unknown;
12072
+ description?: string | undefined;
12073
+ chain: {
12074
+ id: number;
12075
+ name: string;
12076
+ icon: string;
12077
+ liveCampaigns: number;
12078
+ endOfDisputePeriod: number;
12079
+ explorers?: {
12080
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12081
+ url: string;
12082
+ chainId: number;
12083
+ }[] | undefined;
12084
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
12085
+ };
12086
+ rewardTokenId?: string | undefined;
12087
+ rewardToken: {
12088
+ id: string;
12089
+ name: string | null;
12090
+ chainId: number;
12091
+ address: string;
12092
+ decimals: number;
12093
+ symbol: string;
12094
+ icon: string;
12095
+ verified: boolean;
12096
+ isNative: boolean;
12097
+ isTest: boolean;
12098
+ type: "POINT" | "PRETGE" | "TOKEN";
12099
+ price?: number | null | undefined;
12100
+ updatedAt?: number | null | undefined;
12101
+ priceSource?: string | null | undefined;
12102
+ displaySymbol?: string | undefined;
12103
+ };
12104
+ opportunityId?: string | undefined;
12105
+ distributionChain?: {
12106
+ id: number;
12107
+ name: string;
12108
+ icon: string;
12109
+ liveCampaigns: number;
12110
+ endOfDisputePeriod: number;
12111
+ explorers?: {
12112
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12113
+ url: string;
12114
+ chainId: number;
12115
+ }[] | undefined;
12116
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
12117
+ } | undefined;
12118
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12119
+ campaignStatus: {
12120
+ campaignId: string;
12121
+ computedUntil: string | number;
12122
+ processingStarted: string | number;
12123
+ status: string;
12124
+ preComputeProcessingStarted: string | number;
12125
+ preComputeStatus: string;
12126
+ delay?: number | undefined;
12127
+ error?: string | undefined;
12128
+ details?: unknown;
12129
+ };
12130
+ createdAt: string;
12131
+ rootCampaignId?: string | null | undefined;
12132
+ parentCampaignId?: string | null | undefined;
12133
+ childCampaignIds?: string[] | undefined;
12134
+ dailyRewardsBreakdown?: {
12135
+ campaignId: string;
12136
+ value: number;
12137
+ timestamp: string | bigint;
12138
+ token: {
12139
+ id: string;
12140
+ name: string | null;
12141
+ chainId: number;
12142
+ address: string;
12143
+ decimals: number;
12144
+ symbol: string;
12145
+ icon: string;
12146
+ verified: boolean;
12147
+ isNative: boolean;
12148
+ isTest: boolean;
12149
+ type: "POINT" | "PRETGE" | "TOKEN";
12150
+ price?: number | null | undefined;
12151
+ updatedAt?: number | null | undefined;
12152
+ priceSource?: string | null | undefined;
12153
+ displaySymbol?: string | undefined;
12154
+ };
12155
+ amount: string | bigint;
12156
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12157
+ onChainCampaignId?: string | undefined;
12158
+ }[] | undefined;
12159
+ pauseCompute?: string | null | undefined;
12160
+ hasOverrides?: boolean | undefined;
12161
+ isPrivate: boolean;
12162
+ campaignEncodingHash?: string | undefined;
12163
+ }[];
12164
+ };
12165
+ 404: {
12166
+ name: string;
12167
+ message: string;
12168
+ };
12169
+ 422: {
12170
+ type: "validation";
12171
+ on: string;
12172
+ summary?: string | undefined;
12173
+ message?: string | undefined;
12174
+ found?: unknown;
12175
+ property?: string | undefined;
12176
+ expected?: string | undefined;
12177
+ };
12178
+ 500: {
12179
+ code: string;
12180
+ httpCode: number;
12181
+ info: string;
12182
+ };
12183
+ };
12184
+ };
12185
+ };
12186
+ };
12187
+ };
12188
+ } & {
12189
+ opportunities: {
12190
+ get: {
12191
+ body: unknown;
12192
+ params: {};
12193
+ query: {
12194
+ page?: number | undefined;
12195
+ items?: number | undefined;
12196
+ name?: string | undefined;
12197
+ search?: string | undefined;
12198
+ campaignId?: string | undefined;
12199
+ creatorSlug?: string | undefined;
12200
+ chainId?: string | undefined;
12201
+ action?: string | undefined;
12202
+ tokenTypes?: ("POINT" | "PRETGE" | "TOKEN")[] | undefined;
12203
+ point?: boolean | undefined;
12204
+ type?: string | undefined;
12205
+ creatorAddress?: string | undefined;
12206
+ tags?: string | undefined;
12207
+ test?: boolean | undefined;
12208
+ minimumTvl?: number | undefined;
12209
+ maximumTvl?: number | undefined;
12210
+ minimumApr?: number | undefined;
12211
+ maximumApr?: number | undefined;
12212
+ minimumDailyRewards?: number | undefined;
12213
+ maximumDailyRewards?: number | undefined;
12214
+ status?: string | undefined;
12215
+ identifier?: string | undefined;
12216
+ campaigns?: boolean | undefined;
12217
+ tokens?: string | undefined;
12218
+ stablecoin?: boolean | undefined;
12219
+ rewardTokenSymbol?: string | undefined;
12220
+ sort?: string | undefined;
12221
+ order?: string | undefined;
12222
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
12223
+ mainProtocolId?: string | undefined;
12224
+ programSlugs?: string | undefined;
12225
+ chainName?: string | undefined;
12226
+ excludeSubCampaigns?: boolean | undefined;
12227
+ explorerAddress?: string | undefined;
12228
+ withInvalids?: boolean | undefined;
12229
+ };
12230
+ headers: unknown;
12231
+ response: {
12232
+ 200: (({
12233
+ id: string;
12234
+ type: string;
12235
+ identifier: string;
12236
+ chainId: number;
12237
+ name: string;
12238
+ description: string;
12239
+ howToSteps: string[];
12240
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
12241
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
12242
+ tags: string[];
12243
+ protocols?: string[] | undefined;
12244
+ mainProtocol?: string | undefined;
12245
+ depositUrl?: string | undefined;
12246
+ explorerAddress?: string | undefined;
12247
+ hidden?: boolean | undefined;
12248
+ tvl: number;
12249
+ apr: number;
12250
+ dailyRewards: number;
12251
+ liveCampaigns: number;
12252
+ lastCampaignCreatedAt: number;
12253
+ earliestCampaignStart?: string | bigint | undefined;
12254
+ latestCampaignStart?: string | bigint | undefined;
12255
+ earliestCampaignEnd?: string | bigint | undefined;
12256
+ latestCampaignEnd?: string | bigint | undefined;
12257
+ nativeApr?: number | undefined;
12258
+ maxApr?: number | null | undefined;
12259
+ liveCampaignsForCreator?: number | undefined;
12260
+ distributionType?: string | undefined;
12261
+ tokens: {
12262
+ id: string;
12263
+ name: string | null;
12264
+ chainId: number;
12265
+ address: string;
12266
+ decimals: number;
12267
+ symbol: string;
12268
+ icon: string;
12269
+ verified: boolean;
12270
+ isNative: boolean;
12271
+ isTest: boolean;
12272
+ type: "POINT" | "PRETGE" | "TOKEN";
12273
+ price?: number | null | undefined;
12274
+ updatedAt?: number | null | undefined;
12275
+ priceSource?: string | null | undefined;
12276
+ displaySymbol?: string | undefined;
12277
+ }[];
12278
+ chain: {
12279
+ id: number;
12280
+ name: string;
12281
+ icon: string;
12282
+ liveCampaigns: number;
12283
+ endOfDisputePeriod: number;
12284
+ explorers?: {
12285
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12286
+ url: string;
12287
+ chainId: number;
12288
+ }[] | undefined;
12289
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
12290
+ };
12291
+ activePrograms: {
12292
+ id: string;
12293
+ name: string;
12294
+ slug?: string | null | undefined;
12295
+ description?: string | undefined;
12296
+ icon?: string | undefined;
12297
+ }[];
12298
+ protocol?: {
12299
+ id: string;
12300
+ name: string;
12301
+ icon: string;
12302
+ tags: string[];
12303
+ description: string;
12304
+ url: string;
12305
+ dailyRewards?: number | undefined;
12306
+ numberOfLiveCampaigns?: number | undefined;
12307
+ opportunityLiveTags?: string[] | undefined;
12308
+ banner: string | null;
12309
+ opportunityBannerLight: string | null;
12310
+ opportunityBannerDark: string | null;
12311
+ } | null | undefined;
12312
+ aprRecord?: {
12313
+ cumulated: number;
12314
+ timestamp: string | bigint;
12315
+ breakdowns: {
12316
+ identifier: string;
12317
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
12318
+ value: number;
12319
+ timestamp: string | bigint;
12320
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12321
+ }[];
12322
+ } | undefined;
12323
+ nativeAprRecord?: {
12324
+ title: string;
12325
+ description?: string | undefined;
12326
+ value: number;
12327
+ timestamp: string | bigint;
12328
+ amount?: bigint | undefined;
12329
+ rewardToken?: {
12330
+ id: string;
12331
+ name: string | null;
12332
+ chainId: number;
12333
+ address: string;
12334
+ decimals: number;
12335
+ symbol: string;
12336
+ icon: string;
12337
+ verified: boolean;
12338
+ isNative: boolean;
12339
+ isTest: boolean;
12340
+ type: "POINT" | "PRETGE" | "TOKEN";
12341
+ price?: number | null | undefined;
12342
+ updatedAt?: number | null | undefined;
12343
+ priceSource?: string | null | undefined;
12344
+ displaySymbol?: string | undefined;
12345
+ } | undefined;
12346
+ } | undefined;
12347
+ tvlRecord?: {
12348
+ total: number;
12349
+ timestamp: string | bigint;
12350
+ breakdowns: {
12351
+ identifier: string;
12352
+ type: "PROTOCOL" | "TOKEN";
12353
+ value: number;
12354
+ }[];
12355
+ } | undefined;
12356
+ rewardsRecord?: {
12357
+ total: number;
12358
+ timestamp: string | bigint;
12359
+ breakdowns: {
12360
+ campaignId: string;
12361
+ value: number;
12362
+ timestamp: string | bigint;
12363
+ token: {
11169
12364
  id: string;
11170
12365
  name: string | null;
11171
12366
  chainId: number;
@@ -11181,85 +12376,125 @@ declare const app: Elysia<"", {
11181
12376
  updatedAt?: number | null | undefined;
11182
12377
  priceSource?: string | null | undefined;
11183
12378
  displaySymbol?: string | undefined;
11184
- }[];
11185
- tvl: number;
11186
- tvlRecord?: {
11187
- id?: string | undefined;
11188
- timestamp: string | number | bigint;
11189
- total: number;
11190
- opportunityId?: string | undefined;
11191
- breakdowns?: any[] | undefined;
11192
- } | undefined;
11193
- type: string;
11194
- };
11195
- 404: {
12379
+ };
12380
+ amount: string | bigint;
12381
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12382
+ onChainCampaignId?: string | undefined;
12383
+ }[];
12384
+ } | undefined;
12385
+ } & {
12386
+ campaigns?: {
12387
+ id: string;
12388
+ computeChainId: number;
12389
+ distributionChainId: number;
12390
+ campaignId: string;
12391
+ type: string;
12392
+ subType?: number | null | undefined;
12393
+ amount: string;
12394
+ startTimestamp: string | number | bigint;
12395
+ endTimestamp: string | number | bigint;
12396
+ creatorAddress: string;
12397
+ apr?: number | undefined;
12398
+ dailyRewards?: number | undefined;
12399
+ creator?: {
12400
+ address: string;
12401
+ tags?: string[] | undefined;
12402
+ creatorId?: string | null | undefined;
12403
+ } | undefined;
12404
+ params: unknown;
12405
+ description?: string | undefined;
12406
+ chain: {
12407
+ id: number;
11196
12408
  name: string;
11197
- message: string;
12409
+ icon: string;
12410
+ liveCampaigns: number;
12411
+ endOfDisputePeriod: number;
12412
+ explorers?: {
12413
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12414
+ url: string;
12415
+ chainId: number;
12416
+ }[] | undefined;
12417
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11198
12418
  };
11199
- 422: {
11200
- type: "validation";
11201
- on: string;
11202
- summary?: string | undefined;
11203
- message?: string | undefined;
11204
- found?: unknown;
11205
- property?: string | undefined;
11206
- expected?: string | undefined;
12419
+ rewardTokenId?: string | undefined;
12420
+ rewardToken: {
12421
+ id: string;
12422
+ name: string | null;
12423
+ chainId: number;
12424
+ address: string;
12425
+ decimals: number;
12426
+ symbol: string;
12427
+ icon: string;
12428
+ verified: boolean;
12429
+ isNative: boolean;
12430
+ isTest: boolean;
12431
+ type: "POINT" | "PRETGE" | "TOKEN";
12432
+ price?: number | null | undefined;
12433
+ updatedAt?: number | null | undefined;
12434
+ priceSource?: string | null | undefined;
12435
+ displaySymbol?: string | undefined;
11207
12436
  };
11208
- 500: {
11209
- code: string;
11210
- httpCode: number;
11211
- info: string;
12437
+ opportunityId?: string | undefined;
12438
+ distributionChain?: {
12439
+ id: number;
12440
+ name: string;
12441
+ icon: string;
12442
+ liveCampaigns: number;
12443
+ endOfDisputePeriod: number;
12444
+ explorers?: {
12445
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12446
+ url: string;
12447
+ chainId: number;
12448
+ }[] | undefined;
12449
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
12450
+ } | undefined;
12451
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12452
+ campaignStatus: {
12453
+ campaignId: string;
12454
+ computedUntil: string | number;
12455
+ processingStarted: string | number;
12456
+ status: string;
12457
+ preComputeProcessingStarted: string | number;
12458
+ preComputeStatus: string;
12459
+ delay?: number | undefined;
12460
+ error?: string | undefined;
12461
+ details?: unknown;
11212
12462
  };
11213
- };
11214
- };
11215
- };
11216
- };
11217
- };
11218
- } & {
11219
- opportunities: {
11220
- get: {
11221
- body: unknown;
11222
- params: {};
11223
- query: {
11224
- page?: number | undefined;
11225
- items?: number | undefined;
11226
- name?: string | undefined;
11227
- search?: string | undefined;
11228
- campaignId?: string | undefined;
11229
- creatorSlug?: string | undefined;
11230
- chainId?: string | undefined;
11231
- action?: string | undefined;
11232
- tokenTypes?: ("POINT" | "PRETGE" | "TOKEN")[] | undefined;
11233
- point?: boolean | undefined;
11234
- type?: string | undefined;
11235
- creatorAddress?: string | undefined;
11236
- tags?: string | undefined;
11237
- test?: boolean | undefined;
11238
- minimumTvl?: number | undefined;
11239
- maximumTvl?: number | undefined;
11240
- minimumApr?: number | undefined;
11241
- maximumApr?: number | undefined;
11242
- minimumDailyRewards?: number | undefined;
11243
- maximumDailyRewards?: number | undefined;
11244
- status?: string | undefined;
11245
- identifier?: string | undefined;
11246
- campaigns?: boolean | undefined;
11247
- tokens?: string | undefined;
11248
- stablecoin?: boolean | undefined;
11249
- rewardTokenSymbol?: string | undefined;
11250
- sort?: string | undefined;
11251
- order?: string | undefined;
11252
- distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
11253
- mainProtocolId?: string | undefined;
11254
- programSlugs?: string | undefined;
11255
- chainName?: string | undefined;
11256
- excludeSubCampaigns?: boolean | undefined;
11257
- explorerAddress?: string | undefined;
11258
- withInvalids?: boolean | undefined;
11259
- };
11260
- headers: unknown;
11261
- response: {
11262
- 200: ({
12463
+ createdAt: string;
12464
+ rootCampaignId?: string | null | undefined;
12465
+ parentCampaignId?: string | null | undefined;
12466
+ childCampaignIds?: string[] | undefined;
12467
+ dailyRewardsBreakdown?: {
12468
+ campaignId: string;
12469
+ value: number;
12470
+ timestamp: string | bigint;
12471
+ token: {
12472
+ id: string;
12473
+ name: string | null;
12474
+ chainId: number;
12475
+ address: string;
12476
+ decimals: number;
12477
+ symbol: string;
12478
+ icon: string;
12479
+ verified: boolean;
12480
+ isNative: boolean;
12481
+ isTest: boolean;
12482
+ type: "POINT" | "PRETGE" | "TOKEN";
12483
+ price?: number | null | undefined;
12484
+ updatedAt?: number | null | undefined;
12485
+ priceSource?: string | null | undefined;
12486
+ displaySymbol?: string | undefined;
12487
+ };
12488
+ amount: string | bigint;
12489
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12490
+ onChainCampaignId?: string | undefined;
12491
+ }[] | undefined;
12492
+ pauseCompute?: string | null | undefined;
12493
+ hasOverrides?: boolean | undefined;
12494
+ isPrivate: boolean;
12495
+ campaignEncodingHash?: string | undefined;
12496
+ }[] | undefined;
12497
+ }) | ({
11263
12498
  id: string;
11264
12499
  type: string;
11265
12500
  identifier: string;
@@ -11280,6 +12515,10 @@ declare const app: Elysia<"", {
11280
12515
  dailyRewards: number;
11281
12516
  liveCampaigns: number;
11282
12517
  lastCampaignCreatedAt: number;
12518
+ earliestCampaignStart?: string | bigint | undefined;
12519
+ latestCampaignStart?: string | bigint | undefined;
12520
+ earliestCampaignEnd?: string | bigint | undefined;
12521
+ latestCampaignEnd?: string | bigint | undefined;
11283
12522
  nativeApr?: number | undefined;
11284
12523
  maxApr?: number | null | undefined;
11285
12524
  liveCampaignsForCreator?: number | undefined;
@@ -11336,27 +12575,22 @@ declare const app: Elysia<"", {
11336
12575
  opportunityBannerDark: string | null;
11337
12576
  } | null | undefined;
11338
12577
  aprRecord?: {
11339
- id?: string | undefined;
11340
- timestamp: string | bigint;
11341
12578
  cumulated: number;
11342
- opportunityId?: string | undefined;
12579
+ timestamp: string | bigint;
11343
12580
  breakdowns: {
11344
12581
  identifier: string;
11345
- type: string;
12582
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
11346
12583
  value: number;
11347
12584
  timestamp: string | bigint;
11348
- distributionType?: string | undefined;
12585
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11349
12586
  }[];
11350
12587
  } | undefined;
11351
12588
  nativeAprRecord?: {
11352
- id?: string | undefined;
11353
12589
  title: string;
11354
12590
  description?: string | undefined;
11355
- timestamp: string | number | bigint;
11356
12591
  value: number;
11357
- amount?: string | number | bigint | undefined;
11358
- rewardTokenId?: string | undefined;
11359
- opportunityId?: string | undefined;
12592
+ timestamp: string | bigint;
12593
+ amount?: bigint | undefined;
11360
12594
  rewardToken?: {
11361
12595
  id: string;
11362
12596
  name: string | null;
@@ -11376,11 +12610,13 @@ declare const app: Elysia<"", {
11376
12610
  } | undefined;
11377
12611
  } | undefined;
11378
12612
  tvlRecord?: {
11379
- id?: string | undefined;
11380
- timestamp: string | number | bigint;
11381
12613
  total: number;
11382
- opportunityId?: string | undefined;
11383
- breakdowns?: any[] | undefined;
12614
+ timestamp: string | bigint;
12615
+ breakdowns: {
12616
+ identifier: string;
12617
+ type: "PROTOCOL" | "TOKEN";
12618
+ value: number;
12619
+ }[];
11384
12620
  } | undefined;
11385
12621
  rewardsRecord?: {
11386
12622
  total: number;
@@ -11407,75 +12643,46 @@ declare const app: Elysia<"", {
11407
12643
  displaySymbol?: string | undefined;
11408
12644
  };
11409
12645
  amount: string | bigint;
11410
- distributionType?: string | undefined;
12646
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11411
12647
  onChainCampaignId?: string | undefined;
11412
12648
  }[];
11413
12649
  } | undefined;
11414
- campaigns?: any[] | undefined;
11415
- } | {
11416
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11417
- activePrograms: {
12650
+ } & {
12651
+ campaigns: {
11418
12652
  id: string;
11419
- name: string;
11420
- slug?: string | null | undefined;
11421
- description?: string | undefined;
11422
- icon?: string | undefined;
11423
- }[];
11424
- apr: number;
11425
- aprRecord?: {
11426
- id?: string | undefined;
11427
- timestamp: string | bigint;
11428
- cumulated: number;
11429
- opportunityId?: string | undefined;
11430
- breakdowns: {
11431
- identifier: string;
11432
- type: string;
11433
- value: number;
11434
- timestamp: string | bigint;
11435
- distributionType?: string | undefined;
11436
- }[];
11437
- } | undefined;
11438
- campaigns: any[];
11439
- chain: {
11440
- id: number;
11441
- name: string;
11442
- icon: string;
11443
- liveCampaigns: number;
11444
- endOfDisputePeriod: number;
11445
- explorers?: {
11446
- type: "BLOCKSCOUT" | "ETHERSCAN";
11447
- url: string;
11448
- chainId: number;
11449
- }[] | undefined;
11450
- lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11451
- };
11452
- chainId: number;
11453
- dailyRewards: number;
11454
- depositUrl?: string | undefined;
11455
- description: string;
11456
- distributionType?: string | undefined;
11457
- explorerAddress?: string | undefined;
11458
- hidden?: boolean | undefined;
11459
- howToSteps: string[];
11460
- id: string;
11461
- identifier: string;
11462
- lastCampaignCreatedAt: number;
11463
- liveCampaigns: number;
11464
- liveCampaignsForCreator?: number | undefined;
11465
- mainProtocol?: string | undefined;
11466
- maxApr?: number | null | undefined;
11467
- name: string;
11468
- nativeApr?: number | undefined;
11469
- nativeAprRecord?: {
11470
- id?: string | undefined;
11471
- title: string;
12653
+ computeChainId: number;
12654
+ distributionChainId: number;
12655
+ campaignId: string;
12656
+ type: string;
12657
+ subType?: number | null | undefined;
12658
+ amount: string;
12659
+ startTimestamp: string | number | bigint;
12660
+ endTimestamp: string | number | bigint;
12661
+ creatorAddress: string;
12662
+ apr?: number | undefined;
12663
+ dailyRewards?: number | undefined;
12664
+ creator?: {
12665
+ address: string;
12666
+ tags?: string[] | undefined;
12667
+ creatorId?: string | null | undefined;
12668
+ } | undefined;
12669
+ params: unknown;
11472
12670
  description?: string | undefined;
11473
- timestamp: string | number | bigint;
11474
- value: number;
11475
- amount?: string | number | bigint | undefined;
12671
+ chain: {
12672
+ id: number;
12673
+ name: string;
12674
+ icon: string;
12675
+ liveCampaigns: number;
12676
+ endOfDisputePeriod: number;
12677
+ explorers?: {
12678
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12679
+ url: string;
12680
+ chainId: number;
12681
+ }[] | undefined;
12682
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
12683
+ };
11476
12684
  rewardTokenId?: string | undefined;
11477
- opportunityId?: string | undefined;
11478
- rewardToken?: {
12685
+ rewardToken: {
11479
12686
  id: string;
11480
12687
  name: string | null;
11481
12688
  chainId: number;
@@ -11491,27 +12698,38 @@ declare const app: Elysia<"", {
11491
12698
  updatedAt?: number | null | undefined;
11492
12699
  priceSource?: string | null | undefined;
11493
12700
  displaySymbol?: string | undefined;
12701
+ };
12702
+ opportunityId?: string | undefined;
12703
+ distributionChain?: {
12704
+ id: number;
12705
+ name: string;
12706
+ icon: string;
12707
+ liveCampaigns: number;
12708
+ endOfDisputePeriod: number;
12709
+ explorers?: {
12710
+ type: "BLOCKSCOUT" | "ETHERSCAN";
12711
+ url: string;
12712
+ chainId: number;
12713
+ }[] | undefined;
12714
+ lastClaimsOnchainFetchTimestamp?: string | null | undefined;
11494
12715
  } | undefined;
11495
- } | undefined;
11496
- protocol?: {
11497
- id: string;
11498
- name: string;
11499
- icon: string;
11500
- tags: string[];
11501
- description: string;
11502
- url: string;
11503
- dailyRewards?: number | undefined;
11504
- numberOfLiveCampaigns?: number | undefined;
11505
- opportunityLiveTags?: string[] | undefined;
11506
- banner: string | null;
11507
- opportunityBannerLight: string | null;
11508
- opportunityBannerDark: string | null;
11509
- } | null | undefined;
11510
- protocols?: string[] | undefined;
11511
- rewardsRecord?: {
11512
- total: number;
11513
- timestamp: string | bigint;
11514
- breakdowns: {
12716
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
12717
+ campaignStatus: {
12718
+ campaignId: string;
12719
+ computedUntil: string | number;
12720
+ processingStarted: string | number;
12721
+ status: string;
12722
+ preComputeProcessingStarted: string | number;
12723
+ preComputeStatus: string;
12724
+ delay?: number | undefined;
12725
+ error?: string | undefined;
12726
+ details?: unknown;
12727
+ };
12728
+ createdAt: string;
12729
+ rootCampaignId?: string | null | undefined;
12730
+ parentCampaignId?: string | null | undefined;
12731
+ childCampaignIds?: string[] | undefined;
12732
+ dailyRewardsBreakdown?: {
11515
12733
  campaignId: string;
11516
12734
  value: number;
11517
12735
  timestamp: string | bigint;
@@ -11533,39 +12751,15 @@ declare const app: Elysia<"", {
11533
12751
  displaySymbol?: string | undefined;
11534
12752
  };
11535
12753
  amount: string | bigint;
11536
- distributionType?: string | undefined;
12754
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
11537
12755
  onChainCampaignId?: string | undefined;
11538
- }[];
11539
- } | undefined;
11540
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11541
- tags: string[];
11542
- tokens: {
11543
- id: string;
11544
- name: string | null;
11545
- chainId: number;
11546
- address: string;
11547
- decimals: number;
11548
- symbol: string;
11549
- icon: string;
11550
- verified: boolean;
11551
- isNative: boolean;
11552
- isTest: boolean;
11553
- type: "POINT" | "PRETGE" | "TOKEN";
11554
- price?: number | null | undefined;
11555
- updatedAt?: number | null | undefined;
11556
- priceSource?: string | null | undefined;
11557
- displaySymbol?: string | undefined;
12756
+ }[] | undefined;
12757
+ pauseCompute?: string | null | undefined;
12758
+ hasOverrides?: boolean | undefined;
12759
+ isPrivate: boolean;
12760
+ campaignEncodingHash?: string | undefined;
11558
12761
  }[];
11559
- tvl: number;
11560
- tvlRecord?: {
11561
- id?: string | undefined;
11562
- timestamp: string | number | bigint;
11563
- total: number;
11564
- opportunityId?: string | undefined;
11565
- breakdowns?: any[] | undefined;
11566
- } | undefined;
11567
- type: string;
11568
- } | null)[];
12762
+ }) | null)[];
11569
12763
  422: {
11570
12764
  type: "validation";
11571
12765
  on: string;
@@ -12275,6 +13469,10 @@ declare const app: Elysia<"", {
12275
13469
  lastCampaignCreatedAt: Date;
12276
13470
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12277
13471
  liveCampaigns: number;
13472
+ earliestCampaignStart: bigint | null;
13473
+ latestCampaignStart: bigint | null;
13474
+ earliestCampaignEnd: bigint | null;
13475
+ latestCampaignEnd: bigint | null;
12278
13476
  hidden: boolean;
12279
13477
  });
12280
13478
  422: {
@@ -12368,6 +13566,10 @@ declare const app: Elysia<"", {
12368
13566
  lastCampaignCreatedAt: Date;
12369
13567
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12370
13568
  liveCampaigns: number;
13569
+ earliestCampaignStart: bigint | null;
13570
+ latestCampaignStart: bigint | null;
13571
+ earliestCampaignEnd: bigint | null;
13572
+ latestCampaignEnd: bigint | null;
12371
13573
  hidden: boolean;
12372
13574
  };
12373
13575
  422: {
@@ -12420,6 +13622,10 @@ declare const app: Elysia<"", {
12420
13622
  lastCampaignCreatedAt: Date;
12421
13623
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12422
13624
  liveCampaigns: number;
13625
+ earliestCampaignStart: bigint | null;
13626
+ latestCampaignStart: bigint | null;
13627
+ earliestCampaignEnd: bigint | null;
13628
+ latestCampaignEnd: bigint | null;
12423
13629
  hidden: boolean;
12424
13630
  };
12425
13631
  422: {
@@ -12486,6 +13692,10 @@ declare const app: Elysia<"", {
12486
13692
  lastCampaignCreatedAt: Date;
12487
13693
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12488
13694
  liveCampaigns: number;
13695
+ earliestCampaignStart: bigint | null;
13696
+ latestCampaignStart: bigint | null;
13697
+ earliestCampaignEnd: bigint | null;
13698
+ latestCampaignEnd: bigint | null;
12489
13699
  hidden: boolean;
12490
13700
  };
12491
13701
  422: {
@@ -12738,6 +13948,10 @@ declare const app: Elysia<"", {
12738
13948
  lastCampaignCreatedAt: Date;
12739
13949
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12740
13950
  liveCampaigns: number;
13951
+ earliestCampaignStart: bigint | null;
13952
+ latestCampaignStart: bigint | null;
13953
+ earliestCampaignEnd: bigint | null;
13954
+ latestCampaignEnd: bigint | null;
12741
13955
  hidden: boolean;
12742
13956
  });
12743
13957
  422: {
@@ -12788,6 +14002,10 @@ declare const app: Elysia<"", {
12788
14002
  lastCampaignCreatedAt: Date;
12789
14003
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12790
14004
  liveCampaigns: number;
14005
+ earliestCampaignStart: bigint | null;
14006
+ latestCampaignStart: bigint | null;
14007
+ earliestCampaignEnd: bigint | null;
14008
+ latestCampaignEnd: bigint | null;
12791
14009
  hidden: boolean;
12792
14010
  };
12793
14011
  422: {
@@ -12838,6 +14056,10 @@ declare const app: Elysia<"", {
12838
14056
  lastCampaignCreatedAt: Date;
12839
14057
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
12840
14058
  liveCampaigns: number;
14059
+ earliestCampaignStart: bigint | null;
14060
+ latestCampaignStart: bigint | null;
14061
+ earliestCampaignEnd: bigint | null;
14062
+ latestCampaignEnd: bigint | null;
12841
14063
  hidden: boolean;
12842
14064
  };
12843
14065
  422: {
@@ -13315,6 +14537,10 @@ declare const app: Elysia<"", {
13315
14537
  lastCampaignCreatedAt: Date;
13316
14538
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
13317
14539
  liveCampaigns: number;
14540
+ earliestCampaignStart: bigint | null;
14541
+ latestCampaignStart: bigint | null;
14542
+ earliestCampaignEnd: bigint | null;
14543
+ latestCampaignEnd: bigint | null;
13318
14544
  hidden: boolean;
13319
14545
  });
13320
14546
  tvl: {
@@ -13590,6 +14816,10 @@ declare const app: Elysia<"", {
13590
14816
  lastCampaignCreatedAt: Date;
13591
14817
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
13592
14818
  liveCampaigns: number;
14819
+ earliestCampaignStart: bigint | null;
14820
+ latestCampaignStart: bigint | null;
14821
+ earliestCampaignEnd: bigint | null;
14822
+ latestCampaignEnd: bigint | null;
13593
14823
  hidden: boolean;
13594
14824
  });
13595
14825
  tvl: {
@@ -13866,6 +15096,10 @@ declare const app: Elysia<"", {
13866
15096
  lastCampaignCreatedAt: Date;
13867
15097
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
13868
15098
  liveCampaigns: number;
15099
+ earliestCampaignStart: bigint | null;
15100
+ latestCampaignStart: bigint | null;
15101
+ earliestCampaignEnd: bigint | null;
15102
+ latestCampaignEnd: bigint | null;
13869
15103
  hidden: boolean;
13870
15104
  });
13871
15105
  tvl: {
@@ -14373,6 +15607,10 @@ declare const app: Elysia<"", {
14373
15607
  dailyRewards: number;
14374
15608
  liveCampaigns: number;
14375
15609
  lastCampaignCreatedAt: number;
15610
+ earliestCampaignStart?: string | bigint | undefined;
15611
+ latestCampaignStart?: string | bigint | undefined;
15612
+ earliestCampaignEnd?: string | bigint | undefined;
15613
+ latestCampaignEnd?: string | bigint | undefined;
14376
15614
  nativeApr?: number | undefined;
14377
15615
  maxApr?: number | null | undefined;
14378
15616
  liveCampaignsForCreator?: number | undefined;
@@ -14429,27 +15667,22 @@ declare const app: Elysia<"", {
14429
15667
  opportunityBannerDark: string | null;
14430
15668
  } | null | undefined;
14431
15669
  aprRecord?: {
14432
- id?: string | undefined;
14433
15670
  timestamp: string | bigint;
14434
15671
  cumulated: number;
14435
- opportunityId?: string | undefined;
14436
15672
  breakdowns: {
14437
15673
  identifier: string;
14438
- type: string;
15674
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
14439
15675
  value: number;
14440
15676
  timestamp: string | bigint;
14441
- distributionType?: string | undefined;
15677
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14442
15678
  }[];
14443
15679
  } | undefined;
14444
15680
  nativeAprRecord?: {
14445
- id?: string | undefined;
14446
15681
  title: string;
14447
15682
  description?: string | undefined;
14448
- timestamp: string | number | bigint;
15683
+ timestamp: string | bigint;
14449
15684
  value: number;
14450
- amount?: string | number | bigint | undefined;
14451
- rewardTokenId?: string | undefined;
14452
- opportunityId?: string | undefined;
15685
+ amount?: bigint | undefined;
14453
15686
  rewardToken?: {
14454
15687
  id: string;
14455
15688
  name: string | null;
@@ -14469,11 +15702,13 @@ declare const app: Elysia<"", {
14469
15702
  } | undefined;
14470
15703
  } | undefined;
14471
15704
  tvlRecord?: {
14472
- id?: string | undefined;
14473
- timestamp: string | number | bigint;
15705
+ timestamp: string | bigint;
14474
15706
  total: number;
14475
- opportunityId?: string | undefined;
14476
- breakdowns?: any[] | undefined;
15707
+ breakdowns: {
15708
+ identifier: string;
15709
+ type: "PROTOCOL" | "TOKEN";
15710
+ value: number;
15711
+ }[];
14477
15712
  } | undefined;
14478
15713
  rewardsRecord?: {
14479
15714
  total: number;
@@ -14500,7 +15735,7 @@ declare const app: Elysia<"", {
14500
15735
  displaySymbol?: string | undefined;
14501
15736
  };
14502
15737
  amount: string | bigint;
14503
- distributionType?: string | undefined;
15738
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14504
15739
  onChainCampaignId?: string | undefined;
14505
15740
  }[];
14506
15741
  } | undefined;
@@ -14559,6 +15794,10 @@ declare const app: Elysia<"", {
14559
15794
  dailyRewards: number;
14560
15795
  liveCampaigns: number;
14561
15796
  lastCampaignCreatedAt: number;
15797
+ earliestCampaignStart?: string | bigint | undefined;
15798
+ latestCampaignStart?: string | bigint | undefined;
15799
+ earliestCampaignEnd?: string | bigint | undefined;
15800
+ latestCampaignEnd?: string | bigint | undefined;
14562
15801
  nativeApr?: number | undefined;
14563
15802
  maxApr?: number | null | undefined;
14564
15803
  liveCampaignsForCreator?: number | undefined;
@@ -14615,27 +15854,22 @@ declare const app: Elysia<"", {
14615
15854
  opportunityBannerDark: string | null;
14616
15855
  } | null | undefined;
14617
15856
  aprRecord?: {
14618
- id?: string | undefined;
14619
15857
  timestamp: string | bigint;
14620
15858
  cumulated: number;
14621
- opportunityId?: string | undefined;
14622
15859
  breakdowns: {
14623
15860
  identifier: string;
14624
- type: string;
15861
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
14625
15862
  value: number;
14626
15863
  timestamp: string | bigint;
14627
- distributionType?: string | undefined;
15864
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14628
15865
  }[];
14629
15866
  } | undefined;
14630
15867
  nativeAprRecord?: {
14631
- id?: string | undefined;
14632
15868
  title: string;
14633
15869
  description?: string | undefined;
14634
- timestamp: string | number | bigint;
15870
+ timestamp: string | bigint;
14635
15871
  value: number;
14636
- amount?: string | number | bigint | undefined;
14637
- rewardTokenId?: string | undefined;
14638
- opportunityId?: string | undefined;
15872
+ amount?: bigint | undefined;
14639
15873
  rewardToken?: {
14640
15874
  id: string;
14641
15875
  name: string | null;
@@ -14655,11 +15889,13 @@ declare const app: Elysia<"", {
14655
15889
  } | undefined;
14656
15890
  } | undefined;
14657
15891
  tvlRecord?: {
14658
- id?: string | undefined;
14659
- timestamp: string | number | bigint;
15892
+ timestamp: string | bigint;
14660
15893
  total: number;
14661
- opportunityId?: string | undefined;
14662
- breakdowns?: any[] | undefined;
15894
+ breakdowns: {
15895
+ identifier: string;
15896
+ type: "PROTOCOL" | "TOKEN";
15897
+ value: number;
15898
+ }[];
14663
15899
  } | undefined;
14664
15900
  rewardsRecord?: {
14665
15901
  total: number;
@@ -14686,7 +15922,7 @@ declare const app: Elysia<"", {
14686
15922
  displaySymbol?: string | undefined;
14687
15923
  };
14688
15924
  amount: string | bigint;
14689
- distributionType?: string | undefined;
15925
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14690
15926
  onChainCampaignId?: string | undefined;
14691
15927
  }[];
14692
15928
  } | undefined;
@@ -14765,6 +16001,10 @@ declare const app: Elysia<"", {
14765
16001
  dailyRewards: number;
14766
16002
  liveCampaigns: number;
14767
16003
  lastCampaignCreatedAt: number;
16004
+ earliestCampaignStart?: string | bigint | undefined;
16005
+ latestCampaignStart?: string | bigint | undefined;
16006
+ earliestCampaignEnd?: string | bigint | undefined;
16007
+ latestCampaignEnd?: string | bigint | undefined;
14768
16008
  nativeApr?: number | undefined;
14769
16009
  maxApr?: number | null | undefined;
14770
16010
  liveCampaignsForCreator?: number | undefined;
@@ -14821,27 +16061,22 @@ declare const app: Elysia<"", {
14821
16061
  opportunityBannerDark: string | null;
14822
16062
  } | null | undefined;
14823
16063
  aprRecord?: {
14824
- id?: string | undefined;
14825
16064
  timestamp: string | bigint;
14826
16065
  cumulated: number;
14827
- opportunityId?: string | undefined;
14828
16066
  breakdowns: {
14829
16067
  identifier: string;
14830
- type: string;
16068
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
14831
16069
  value: number;
14832
16070
  timestamp: string | bigint;
14833
- distributionType?: string | undefined;
16071
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14834
16072
  }[];
14835
16073
  } | undefined;
14836
16074
  nativeAprRecord?: {
14837
- id?: string | undefined;
14838
16075
  title: string;
14839
16076
  description?: string | undefined;
14840
- timestamp: string | number | bigint;
16077
+ timestamp: string | bigint;
14841
16078
  value: number;
14842
- amount?: string | number | bigint | undefined;
14843
- rewardTokenId?: string | undefined;
14844
- opportunityId?: string | undefined;
16079
+ amount?: bigint | undefined;
14845
16080
  rewardToken?: {
14846
16081
  id: string;
14847
16082
  name: string | null;
@@ -14861,11 +16096,13 @@ declare const app: Elysia<"", {
14861
16096
  } | undefined;
14862
16097
  } | undefined;
14863
16098
  tvlRecord?: {
14864
- id?: string | undefined;
14865
- timestamp: string | number | bigint;
16099
+ timestamp: string | bigint;
14866
16100
  total: number;
14867
- opportunityId?: string | undefined;
14868
- breakdowns?: any[] | undefined;
16101
+ breakdowns: {
16102
+ identifier: string;
16103
+ type: "PROTOCOL" | "TOKEN";
16104
+ value: number;
16105
+ }[];
14869
16106
  } | undefined;
14870
16107
  rewardsRecord?: {
14871
16108
  total: number;
@@ -14892,7 +16129,7 @@ declare const app: Elysia<"", {
14892
16129
  displaySymbol?: string | undefined;
14893
16130
  };
14894
16131
  amount: string | bigint;
14895
- distributionType?: string | undefined;
16132
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
14896
16133
  onChainCampaignId?: string | undefined;
14897
16134
  }[];
14898
16135
  } | undefined;
@@ -14960,6 +16197,10 @@ declare const app: Elysia<"", {
14960
16197
  dailyRewards: number;
14961
16198
  liveCampaigns: number;
14962
16199
  lastCampaignCreatedAt: number;
16200
+ earliestCampaignStart?: string | bigint | undefined;
16201
+ latestCampaignStart?: string | bigint | undefined;
16202
+ earliestCampaignEnd?: string | bigint | undefined;
16203
+ latestCampaignEnd?: string | bigint | undefined;
14963
16204
  nativeApr?: number | undefined;
14964
16205
  maxApr?: number | null | undefined;
14965
16206
  liveCampaignsForCreator?: number | undefined;
@@ -15016,27 +16257,22 @@ declare const app: Elysia<"", {
15016
16257
  opportunityBannerDark: string | null;
15017
16258
  } | null | undefined;
15018
16259
  aprRecord?: {
15019
- id?: string | undefined;
15020
16260
  timestamp: string | bigint;
15021
16261
  cumulated: number;
15022
- opportunityId?: string | undefined;
15023
16262
  breakdowns: {
15024
16263
  identifier: string;
15025
- type: string;
16264
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
15026
16265
  value: number;
15027
16266
  timestamp: string | bigint;
15028
- distributionType?: string | undefined;
16267
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
15029
16268
  }[];
15030
16269
  } | undefined;
15031
16270
  nativeAprRecord?: {
15032
- id?: string | undefined;
15033
16271
  title: string;
15034
16272
  description?: string | undefined;
15035
- timestamp: string | number | bigint;
16273
+ timestamp: string | bigint;
15036
16274
  value: number;
15037
- amount?: string | number | bigint | undefined;
15038
- rewardTokenId?: string | undefined;
15039
- opportunityId?: string | undefined;
16275
+ amount?: bigint | undefined;
15040
16276
  rewardToken?: {
15041
16277
  id: string;
15042
16278
  name: string | null;
@@ -15056,11 +16292,13 @@ declare const app: Elysia<"", {
15056
16292
  } | undefined;
15057
16293
  } | undefined;
15058
16294
  tvlRecord?: {
15059
- id?: string | undefined;
15060
- timestamp: string | number | bigint;
16295
+ timestamp: string | bigint;
15061
16296
  total: number;
15062
- opportunityId?: string | undefined;
15063
- breakdowns?: any[] | undefined;
16297
+ breakdowns: {
16298
+ identifier: string;
16299
+ type: "PROTOCOL" | "TOKEN";
16300
+ value: number;
16301
+ }[];
15064
16302
  } | undefined;
15065
16303
  rewardsRecord?: {
15066
16304
  total: number;
@@ -15087,7 +16325,7 @@ declare const app: Elysia<"", {
15087
16325
  displaySymbol?: string | undefined;
15088
16326
  };
15089
16327
  amount: string | bigint;
15090
- distributionType?: string | undefined;
16328
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
15091
16329
  onChainCampaignId?: string | undefined;
15092
16330
  }[];
15093
16331
  } | undefined;
@@ -17252,6 +18490,10 @@ declare const app: Elysia<"", {
17252
18490
  dailyRewards: number;
17253
18491
  liveCampaigns: number;
17254
18492
  lastCampaignCreatedAt: number;
18493
+ earliestCampaignStart?: string | bigint | undefined;
18494
+ latestCampaignStart?: string | bigint | undefined;
18495
+ earliestCampaignEnd?: string | bigint | undefined;
18496
+ latestCampaignEnd?: string | bigint | undefined;
17255
18497
  nativeApr?: number | undefined;
17256
18498
  maxApr?: number | null | undefined;
17257
18499
  liveCampaignsForCreator?: number | undefined;
@@ -17308,27 +18550,22 @@ declare const app: Elysia<"", {
17308
18550
  opportunityBannerDark: string | null;
17309
18551
  } | null | undefined;
17310
18552
  aprRecord?: {
17311
- id?: string | undefined;
17312
18553
  timestamp: string | bigint;
17313
18554
  cumulated: number;
17314
- opportunityId?: string | undefined;
17315
18555
  breakdowns: {
17316
18556
  identifier: string;
17317
- type: string;
18557
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
17318
18558
  value: number;
17319
18559
  timestamp: string | bigint;
17320
- distributionType?: string | undefined;
18560
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
17321
18561
  }[];
17322
18562
  } | undefined;
17323
18563
  nativeAprRecord?: {
17324
- id?: string | undefined;
17325
18564
  title: string;
17326
18565
  description?: string | undefined;
17327
- timestamp: string | number | bigint;
18566
+ timestamp: string | bigint;
17328
18567
  value: number;
17329
- amount?: string | number | bigint | undefined;
17330
- rewardTokenId?: string | undefined;
17331
- opportunityId?: string | undefined;
18568
+ amount?: bigint | undefined;
17332
18569
  rewardToken?: {
17333
18570
  id: string;
17334
18571
  name: string | null;
@@ -17348,11 +18585,13 @@ declare const app: Elysia<"", {
17348
18585
  } | undefined;
17349
18586
  } | undefined;
17350
18587
  tvlRecord?: {
17351
- id?: string | undefined;
17352
- timestamp: string | number | bigint;
18588
+ timestamp: string | bigint;
17353
18589
  total: number;
17354
- opportunityId?: string | undefined;
17355
- breakdowns?: any[] | undefined;
18590
+ breakdowns: {
18591
+ identifier: string;
18592
+ type: "PROTOCOL" | "TOKEN";
18593
+ value: number;
18594
+ }[];
17356
18595
  } | undefined;
17357
18596
  rewardsRecord?: {
17358
18597
  total: number;
@@ -17379,7 +18618,7 @@ declare const app: Elysia<"", {
17379
18618
  displaySymbol?: string | undefined;
17380
18619
  };
17381
18620
  amount: string | bigint;
17382
- distributionType?: string | undefined;
18621
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
17383
18622
  onChainCampaignId?: string | undefined;
17384
18623
  }[];
17385
18624
  } | undefined;
@@ -17461,6 +18700,10 @@ declare const app: Elysia<"", {
17461
18700
  dailyRewards: number;
17462
18701
  liveCampaigns: number;
17463
18702
  lastCampaignCreatedAt: number;
18703
+ earliestCampaignStart?: string | bigint | undefined;
18704
+ latestCampaignStart?: string | bigint | undefined;
18705
+ earliestCampaignEnd?: string | bigint | undefined;
18706
+ latestCampaignEnd?: string | bigint | undefined;
17464
18707
  nativeApr?: number | undefined;
17465
18708
  maxApr?: number | null | undefined;
17466
18709
  liveCampaignsForCreator?: number | undefined;
@@ -17517,27 +18760,22 @@ declare const app: Elysia<"", {
17517
18760
  opportunityBannerDark: string | null;
17518
18761
  } | null | undefined;
17519
18762
  aprRecord?: {
17520
- id?: string | undefined;
17521
18763
  timestamp: string | bigint;
17522
18764
  cumulated: number;
17523
- opportunityId?: string | undefined;
17524
18765
  breakdowns: {
17525
18766
  identifier: string;
17526
- type: string;
18767
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
17527
18768
  value: number;
17528
18769
  timestamp: string | bigint;
17529
- distributionType?: string | undefined;
18770
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
17530
18771
  }[];
17531
18772
  } | undefined;
17532
18773
  nativeAprRecord?: {
17533
- id?: string | undefined;
17534
18774
  title: string;
17535
18775
  description?: string | undefined;
17536
- timestamp: string | number | bigint;
18776
+ timestamp: string | bigint;
17537
18777
  value: number;
17538
- amount?: string | number | bigint | undefined;
17539
- rewardTokenId?: string | undefined;
17540
- opportunityId?: string | undefined;
18778
+ amount?: bigint | undefined;
17541
18779
  rewardToken?: {
17542
18780
  id: string;
17543
18781
  name: string | null;
@@ -17557,11 +18795,13 @@ declare const app: Elysia<"", {
17557
18795
  } | undefined;
17558
18796
  } | undefined;
17559
18797
  tvlRecord?: {
17560
- id?: string | undefined;
17561
- timestamp: string | number | bigint;
18798
+ timestamp: string | bigint;
17562
18799
  total: number;
17563
- opportunityId?: string | undefined;
17564
- breakdowns?: any[] | undefined;
18800
+ breakdowns: {
18801
+ identifier: string;
18802
+ type: "PROTOCOL" | "TOKEN";
18803
+ value: number;
18804
+ }[];
17565
18805
  } | undefined;
17566
18806
  rewardsRecord?: {
17567
18807
  total: number;
@@ -17588,7 +18828,7 @@ declare const app: Elysia<"", {
17588
18828
  displaySymbol?: string | undefined;
17589
18829
  };
17590
18830
  amount: string | bigint;
17591
- distributionType?: string | undefined;
18831
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
17592
18832
  onChainCampaignId?: string | undefined;
17593
18833
  }[];
17594
18834
  } | undefined;
@@ -18669,6 +19909,7 @@ declare const app: Elysia<"", {
18669
19909
  pending: string;
18670
19910
  campaignId: string;
18671
19911
  campaignStatus?: {
19912
+ campaignId: string;
18672
19913
  computedUntil: string | number;
18673
19914
  processingStarted: string | number;
18674
19915
  status: string;
@@ -18676,7 +19917,7 @@ declare const app: Elysia<"", {
18676
19917
  preComputeStatus: string;
18677
19918
  delay?: number | undefined;
18678
19919
  error?: string | undefined;
18679
- details?: any;
19920
+ details?: unknown;
18680
19921
  } | undefined;
18681
19922
  }[];
18682
19923
  claimed: string | bigint;
@@ -19049,6 +20290,10 @@ declare const app: Elysia<"", {
19049
20290
  lastCampaignCreatedAt: Date;
19050
20291
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
19051
20292
  liveCampaigns: number;
20293
+ earliestCampaignStart: bigint | null;
20294
+ latestCampaignStart: bigint | null;
20295
+ earliestCampaignEnd: bigint | null;
20296
+ latestCampaignEnd: bigint | null;
19052
20297
  hidden: boolean;
19053
20298
  };
19054
20299
  }[];
@@ -19177,6 +20422,10 @@ declare const app: Elysia<"", {
19177
20422
  lastCampaignCreatedAt: Date;
19178
20423
  manualOverrides: import("@package/databases").OpportunityManualOverride[];
19179
20424
  liveCampaigns: number;
20425
+ earliestCampaignStart: bigint | null;
20426
+ latestCampaignStart: bigint | null;
20427
+ earliestCampaignEnd: bigint | null;
20428
+ latestCampaignEnd: bigint | null;
19180
20429
  hidden: boolean;
19181
20430
  };
19182
20431
  }[];
@@ -19206,6 +20455,10 @@ declare const app: Elysia<"", {
19206
20455
  dailyRewards: number;
19207
20456
  liveCampaigns: number;
19208
20457
  lastCampaignCreatedAt: number;
20458
+ earliestCampaignStart?: string | bigint | undefined;
20459
+ latestCampaignStart?: string | bigint | undefined;
20460
+ earliestCampaignEnd?: string | bigint | undefined;
20461
+ latestCampaignEnd?: string | bigint | undefined;
19209
20462
  nativeApr?: number | undefined;
19210
20463
  maxApr?: number | null | undefined;
19211
20464
  liveCampaignsForCreator?: number | undefined;
@@ -19262,27 +20515,22 @@ declare const app: Elysia<"", {
19262
20515
  opportunityBannerDark: string | null;
19263
20516
  } | null | undefined;
19264
20517
  aprRecord?: {
19265
- id?: string | undefined;
19266
20518
  timestamp: string | bigint;
19267
20519
  cumulated: number;
19268
- opportunityId?: string | undefined;
19269
20520
  breakdowns: {
19270
20521
  identifier: string;
19271
- type: string;
20522
+ type: "CAMPAIGN" | "PROTOCOL" | "TOKEN";
19272
20523
  value: number;
19273
20524
  timestamp: string | bigint;
19274
- distributionType?: string | undefined;
20525
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
19275
20526
  }[];
19276
20527
  } | undefined;
19277
20528
  nativeAprRecord?: {
19278
- id?: string | undefined;
19279
20529
  title: string;
19280
20530
  description?: string | undefined;
19281
- timestamp: string | number | bigint;
20531
+ timestamp: string | bigint;
19282
20532
  value: number;
19283
- amount?: string | number | bigint | undefined;
19284
- rewardTokenId?: string | undefined;
19285
- opportunityId?: string | undefined;
20533
+ amount?: bigint | undefined;
19286
20534
  rewardToken?: {
19287
20535
  id: string;
19288
20536
  name: string | null;
@@ -19302,11 +20550,13 @@ declare const app: Elysia<"", {
19302
20550
  } | undefined;
19303
20551
  } | undefined;
19304
20552
  tvlRecord?: {
19305
- id?: string | undefined;
19306
- timestamp: string | number | bigint;
20553
+ timestamp: string | bigint;
19307
20554
  total: number;
19308
- opportunityId?: string | undefined;
19309
- breakdowns?: any[] | undefined;
20555
+ breakdowns: {
20556
+ identifier: string;
20557
+ type: "PROTOCOL" | "TOKEN";
20558
+ value: number;
20559
+ }[];
19310
20560
  } | undefined;
19311
20561
  rewardsRecord?: {
19312
20562
  total: number;
@@ -19333,7 +20583,7 @@ declare const app: Elysia<"", {
19333
20583
  displaySymbol?: string | undefined;
19334
20584
  };
19335
20585
  amount: string | bigint;
19336
- distributionType?: string | undefined;
20586
+ distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | undefined;
19337
20587
  onChainCampaignId?: string | undefined;
19338
20588
  }[];
19339
20589
  } | undefined;