@merkl/api 1.5.55 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/src/eden/index.d.ts +428 -431
  2. package/dist/src/index.d.ts +430 -433
  3. package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
  4. package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +3 -0
  5. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +3 -1
  6. package/dist/src/modules/v4/campaignStatus/campaignStatus.service.js.map +1 -1
  7. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +3 -0
  8. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +3 -1
  9. package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
  10. package/dist/src/modules/v4/payload/payload.controller.d.ts +412 -421
  11. package/dist/src/modules/v4/payload/payload.controller.js.map +1 -1
  12. package/dist/src/modules/v4/payload/payload.service.d.ts +417 -426
  13. package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
  14. package/dist/src/modules/v4/router.d.ts +430 -433
  15. package/dist/src/scripts/compare-engine-campaigns/campaign-loader.js.map +1 -1
  16. package/dist/src/scripts/compare-engine-campaigns/constants.d.ts +1 -0
  17. package/dist/src/scripts/compare-engine-campaigns/constants.js.map +1 -1
  18. package/dist/src/scripts/compare-engine-campaigns/diff-reporter.js.map +1 -1
  19. package/dist/src/scripts/compare-engine-campaigns/index.js.map +1 -1
  20. package/dist/src/scripts/compare-engine-campaigns/normalizer.d.ts +1 -1
  21. package/dist/src/scripts/compare-engine-campaigns/normalizer.js.map +1 -1
  22. package/dist/src/scripts/recompute-override.js.map +1 -1
  23. package/dist/src/utils/getAPR.d.ts +24 -24
  24. package/package.json +1 -1
@@ -1919,6 +1919,9 @@ declare const eden: {
1919
1919
  };
1920
1920
  query?: Record<string, unknown> | undefined;
1921
1921
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1922
+ 200: {
1923
+ success: boolean;
1924
+ };
1922
1925
  422: {
1923
1926
  type: "validation";
1924
1927
  on: string;
@@ -5499,6 +5502,9 @@ declare const eden: {
5499
5502
  };
5500
5503
  query?: Record<string, unknown> | undefined;
5501
5504
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5505
+ 200: {
5506
+ success: boolean;
5507
+ };
5502
5508
  422: {
5503
5509
  type: "validation";
5504
5510
  on: string;
@@ -10721,14 +10727,8 @@ declare const eden: {
10721
10727
  query?: Record<string, unknown> | undefined;
10722
10728
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
10723
10729
  200: Record<string, {
10724
- tvl?: undefined;
10725
- message: string;
10726
- name: string;
10727
- campaign?: undefined;
10728
- opportunity?: undefined;
10729
- } | {
10730
- message?: undefined;
10731
- campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
10730
+ config: import("@package/resources/schemas").ExtendedConfig<CampaignType>;
10731
+ campaign: import("@package/resources/schemas").EngineCampaign<CampaignType.INVALID> | import("@package/resources/schemas").EngineCampaign<CampaignType>;
10732
10732
  opportunity: ({
10733
10733
  chainId: number;
10734
10734
  type: string;
@@ -10959,7 +10959,6 @@ declare const eden: {
10959
10959
  timestamp: bigint;
10960
10960
  total: number;
10961
10961
  } & {};
10962
- name?: undefined;
10963
10962
  }>;
10964
10963
  422: {
10965
10964
  type: "validation";
@@ -11011,247 +11010,246 @@ declare const eden: {
11011
11010
  };
11012
11011
  query?: Record<string, unknown> | undefined;
11013
11012
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11014
- 200: Record<string, {
11015
- tvl?: undefined;
11016
- message: string;
11017
- name: string;
11018
- campaign?: undefined;
11019
- opportunity?: undefined;
11020
- } | {
11021
- message?: undefined;
11022
- campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
11023
- opportunity: ({
11024
- chainId: number;
11025
- type: string;
11026
- identifier: string;
11027
- name?: string | undefined;
11028
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11029
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11030
- description?: string | undefined;
11031
- howToSteps?: string[] | undefined;
11032
- tokens: {
11033
- address: string;
11013
+ 200: {
11014
+ campaigns: Record<string, {
11015
+ config: import("@package/resources/schemas").ExtendedConfig<CampaignType>;
11016
+ campaign: import("@package/resources/schemas").EngineCampaign<CampaignType.INVALID> | import("@package/resources/schemas").EngineCampaign<CampaignType>;
11017
+ opportunity: ({
11034
11018
  chainId: number;
11035
- }[];
11036
- protocols?: string[] | undefined;
11037
- mainProtocol?: string | undefined;
11038
- depositUrl?: string | undefined;
11039
- explorerAddress?: string | undefined;
11040
- tags?: string[] | undefined;
11041
- } & {
11042
- id: string;
11043
- }) | ({
11044
- ActivePrograms: {
11045
- icon: string;
11046
- id: string;
11047
- name: string;
11048
- slug: string | null;
11049
- }[];
11050
- AprRecords: ({
11051
- AprBreakdown: {
11052
- identifier: string;
11053
- timestamp: bigint;
11054
- type: import("@package/databases").AprType;
11055
- value: number;
11019
+ type: string;
11020
+ identifier: string;
11021
+ name?: string | undefined;
11022
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11023
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11024
+ description?: string | undefined;
11025
+ howToSteps?: string[] | undefined;
11026
+ tokens: {
11027
+ address: string;
11028
+ chainId: number;
11056
11029
  }[];
11030
+ protocols?: string[] | undefined;
11031
+ mainProtocol?: string | undefined;
11032
+ depositUrl?: string | undefined;
11033
+ explorerAddress?: string | undefined;
11034
+ tags?: string[] | undefined;
11057
11035
  } & {
11058
11036
  id: string;
11059
- timestamp: bigint;
11060
- cumulated: number;
11061
- opportunityId: string;
11062
- })[];
11063
- Campaigns: {
11064
- id: string;
11065
- computeChainId: number;
11066
- distributionChainId: number;
11067
- campaignId: string;
11068
- type: string;
11069
- distributionType: import("@package/databases").DistributionType;
11070
- subType: number | null;
11071
- rewardTokenId: string;
11072
- amount: string;
11073
- opportunityId: string;
11074
- startTimestamp: bigint;
11075
- endTimestamp: bigint;
11076
- params: import("@prisma/client/runtime/client").JsonValue;
11077
- description: string | null;
11078
- dailyRewards: number;
11079
- apr: number;
11080
- creatorAddress: string;
11081
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11082
- createdAt: Date;
11083
- rootCampaignId: string | null;
11084
- parentCampaignId: string | null;
11085
- }[];
11086
- Chain: {
11087
- id: number;
11088
- name: string;
11089
- icon: string;
11090
- liveCampaigns: number;
11091
- endOfDisputePeriod: number;
11092
- };
11093
- DailyRewardsRecords: ({
11094
- DailyRewardsBreakdown: ({
11095
- Campaign: {
11096
- CampaignStatus: {
11037
+ }) | ({
11038
+ ActivePrograms: {
11039
+ icon: string;
11040
+ id: string;
11041
+ name: string;
11042
+ slug: string | null;
11043
+ }[];
11044
+ AprRecords: ({
11045
+ AprBreakdown: {
11046
+ identifier: string;
11047
+ timestamp: bigint;
11048
+ type: import("@package/databases").AprType;
11049
+ value: number;
11050
+ }[];
11051
+ } & {
11052
+ id: string;
11053
+ timestamp: bigint;
11054
+ cumulated: number;
11055
+ opportunityId: string;
11056
+ })[];
11057
+ Campaigns: {
11058
+ id: string;
11059
+ computeChainId: number;
11060
+ distributionChainId: number;
11061
+ campaignId: string;
11062
+ type: string;
11063
+ distributionType: import("@package/databases").DistributionType;
11064
+ subType: number | null;
11065
+ rewardTokenId: string;
11066
+ amount: string;
11067
+ opportunityId: string;
11068
+ startTimestamp: bigint;
11069
+ endTimestamp: bigint;
11070
+ params: import("@prisma/client/runtime/client").JsonValue;
11071
+ description: string | null;
11072
+ dailyRewards: number;
11073
+ apr: number;
11074
+ creatorAddress: string;
11075
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11076
+ createdAt: Date;
11077
+ rootCampaignId: string | null;
11078
+ parentCampaignId: string | null;
11079
+ }[];
11080
+ Chain: {
11081
+ id: number;
11082
+ name: string;
11083
+ icon: string;
11084
+ liveCampaigns: number;
11085
+ endOfDisputePeriod: number;
11086
+ };
11087
+ DailyRewardsRecords: ({
11088
+ DailyRewardsBreakdown: ({
11089
+ Campaign: {
11090
+ CampaignStatus: {
11091
+ campaignId: string;
11092
+ computedUntil: bigint;
11093
+ processingStarted: bigint;
11094
+ status: import("@package/databases").RunStatus;
11095
+ preComputeStatus: import("@package/databases").RunStatus;
11096
+ preComputeProcessingStarted: bigint;
11097
+ error: string;
11098
+ details: import("@prisma/client/runtime/client").JsonValue;
11099
+ }[];
11100
+ RewardToken: {
11101
+ id: string;
11102
+ name: string | null;
11103
+ chainId: number;
11104
+ address: string;
11105
+ decimals: number;
11106
+ symbol: string;
11107
+ displaySymbol: string;
11108
+ icon: string;
11109
+ verified: boolean;
11110
+ isTest: boolean;
11111
+ type: import("@package/databases").TokenType;
11112
+ isNative: boolean;
11113
+ price: number | null;
11114
+ updatedAt: number | null;
11115
+ priceSource: string | null;
11116
+ };
11117
+ amount: string;
11097
11118
  campaignId: string;
11098
- computedUntil: bigint;
11099
- processingStarted: bigint;
11100
- status: import("@package/databases").RunStatus;
11101
- preComputeStatus: import("@package/databases").RunStatus;
11102
- preComputeProcessingStarted: bigint;
11103
- error: string;
11104
- details: import("@prisma/client/runtime/client").JsonValue;
11105
- }[];
11106
- RewardToken: {
11107
- id: string;
11108
- name: string | null;
11109
- chainId: number;
11110
- address: string;
11111
- decimals: number;
11112
- symbol: string;
11113
- displaySymbol: string;
11114
- icon: string;
11115
- verified: boolean;
11116
- isTest: boolean;
11117
- type: import("@package/databases").TokenType;
11118
- isNative: boolean;
11119
- price: number | null;
11120
- updatedAt: number | null;
11121
- priceSource: string | null;
11119
+ distributionType: import("@package/databases").DistributionType;
11120
+ endTimestamp: bigint;
11121
+ startTimestamp: bigint;
11122
11122
  };
11123
- amount: string;
11123
+ } & {
11124
+ id: string;
11125
+ value: number;
11126
+ timestamp: bigint;
11124
11127
  campaignId: string;
11125
- distributionType: import("@package/databases").DistributionType;
11126
- endTimestamp: bigint;
11127
- startTimestamp: bigint;
11128
- };
11128
+ dailyRewardsRecordId: string;
11129
+ })[];
11129
11130
  } & {
11130
11131
  id: string;
11131
- value: number;
11132
11132
  timestamp: bigint;
11133
- campaignId: string;
11134
- dailyRewardsRecordId: string;
11133
+ total: number;
11134
+ opportunityId: string;
11135
11135
  })[];
11136
- } & {
11137
- id: string;
11138
- timestamp: bigint;
11139
- total: number;
11140
- opportunityId: string;
11141
- })[];
11142
- MainProtocol: {
11143
- id: string;
11144
- tags: string[];
11145
- name: string;
11146
- description: string;
11147
- url: string;
11148
- icon: string;
11149
- banner: string | null;
11150
- opportunityBannerLight: string | null;
11151
- opportunityBannerDark: string | null;
11152
- } | null;
11153
- NativeAprRecords: ({
11154
- RewardToken: {
11136
+ MainProtocol: {
11155
11137
  id: string;
11156
- name: string | null;
11157
- chainId: number;
11158
- address: string;
11159
- decimals: number;
11160
- symbol: string;
11161
- displaySymbol: string;
11138
+ tags: string[];
11139
+ name: string;
11140
+ description: string;
11141
+ url: string;
11162
11142
  icon: string;
11163
- verified: boolean;
11164
- isTest: boolean;
11165
- type: import("@package/databases").TokenType;
11143
+ banner: string | null;
11144
+ opportunityBannerLight: string | null;
11145
+ opportunityBannerDark: string | null;
11146
+ } | null;
11147
+ NativeAprRecords: ({
11148
+ RewardToken: {
11149
+ id: string;
11150
+ name: string | null;
11151
+ chainId: number;
11152
+ address: string;
11153
+ decimals: number;
11154
+ symbol: string;
11155
+ displaySymbol: string;
11156
+ icon: string;
11157
+ verified: boolean;
11158
+ isTest: boolean;
11159
+ type: import("@package/databases").TokenType;
11160
+ isNative: boolean;
11161
+ price: number | null;
11162
+ updatedAt: number | null;
11163
+ priceSource: string | null;
11164
+ } | null;
11165
+ } & {
11166
+ id: string;
11167
+ title: string;
11168
+ description: string | null;
11169
+ timestamp: bigint;
11170
+ value: number;
11171
+ amount: bigint | null;
11172
+ rewardTokenId: string | null;
11173
+ opportunityId: string;
11174
+ })[];
11175
+ Protocols: {
11176
+ id: string;
11177
+ tags: string[];
11178
+ name: string;
11179
+ description: string;
11180
+ url: string;
11181
+ icon: string;
11182
+ banner: string | null;
11183
+ opportunityBannerLight: string | null;
11184
+ opportunityBannerDark: string | null;
11185
+ }[];
11186
+ Tokens: {
11187
+ id: string;
11188
+ name: string | null;
11189
+ chainId: number;
11190
+ address: string;
11191
+ decimals: number;
11192
+ symbol: string;
11193
+ displaySymbol: string;
11194
+ icon: string;
11195
+ verified: boolean;
11196
+ isTest: boolean;
11197
+ type: import("@package/databases").TokenType;
11166
11198
  isNative: boolean;
11167
11199
  price: number | null;
11168
11200
  updatedAt: number | null;
11169
11201
  priceSource: string | null;
11170
- } | null;
11202
+ }[];
11203
+ TvlRecords: ({
11204
+ TvlBreakdown: {
11205
+ identifier: string;
11206
+ type: import("@package/databases").TvlType;
11207
+ value: number;
11208
+ }[];
11209
+ } & {
11210
+ id: string;
11211
+ timestamp: bigint;
11212
+ total: number;
11213
+ opportunityId: string;
11214
+ })[];
11171
11215
  } & {
11172
11216
  id: string;
11173
- title: string;
11174
- description: string | null;
11175
- timestamp: bigint;
11176
- value: number;
11177
- amount: bigint | null;
11178
- rewardTokenId: string | null;
11179
- opportunityId: string;
11180
- })[];
11181
- Protocols: {
11182
- id: string;
11183
- tags: string[];
11217
+ chainId: number;
11218
+ type: string;
11219
+ identifier: string;
11184
11220
  name: string;
11185
11221
  description: string;
11186
- url: string;
11187
- icon: string;
11188
- banner: string | null;
11189
- opportunityBannerLight: string | null;
11190
- opportunityBannerDark: string | null;
11191
- }[];
11192
- Tokens: {
11193
- id: string;
11194
- name: string | null;
11195
- chainId: number;
11196
- address: string;
11197
- decimals: number;
11198
- symbol: string;
11199
- displaySymbol: string;
11200
- icon: string;
11201
- verified: boolean;
11202
- isTest: boolean;
11203
- type: import("@package/databases").TokenType;
11204
- isNative: boolean;
11205
- price: number | null;
11206
- updatedAt: number | null;
11207
- priceSource: string | null;
11208
- }[];
11209
- TvlRecords: ({
11210
- TvlBreakdown: {
11222
+ howToSteps: string[];
11223
+ depositUrl: string | null;
11224
+ explorerAddress: string | null;
11225
+ status: import("@package/databases").Status;
11226
+ action: import("@package/databases").OpportunityAction;
11227
+ mainProtocolId: string | null;
11228
+ tvl: number;
11229
+ apr: number;
11230
+ nativeApr: number | null;
11231
+ maxApr: number | null;
11232
+ dailyRewards: number;
11233
+ tags: string[];
11234
+ lastCampaignCreatedAt: Date;
11235
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11236
+ liveCampaigns: number;
11237
+ });
11238
+ tvl: {
11239
+ breakdowns: ({
11211
11240
  identifier: string;
11212
11241
  type: import("@package/databases").TvlType;
11213
11242
  value: number;
11214
- }[];
11215
- } & {
11216
- id: string;
11243
+ } & {})[];
11217
11244
  timestamp: bigint;
11218
11245
  total: number;
11219
- opportunityId: string;
11220
- })[];
11221
- } & {
11222
- id: string;
11223
- chainId: number;
11224
- type: string;
11225
- identifier: string;
11226
- name: string;
11227
- description: string;
11228
- howToSteps: string[];
11229
- depositUrl: string | null;
11230
- explorerAddress: string | null;
11231
- status: import("@package/databases").Status;
11232
- action: import("@package/databases").OpportunityAction;
11233
- mainProtocolId: string | null;
11234
- tvl: number;
11235
- apr: number;
11236
- nativeApr: number | null;
11237
- maxApr: number | null;
11238
- dailyRewards: number;
11239
- tags: string[];
11240
- lastCampaignCreatedAt: Date;
11241
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11242
- liveCampaigns: number;
11243
- });
11244
- tvl: {
11245
- breakdowns: ({
11246
- identifier: string;
11247
- type: import("@package/databases").TvlType;
11248
- value: number;
11249
- } & {})[];
11250
- timestamp: bigint;
11251
- total: number;
11252
- } & {};
11253
- name?: undefined;
11254
- }>;
11246
+ } & {};
11247
+ }>;
11248
+ errors: {
11249
+ campaignId: string;
11250
+ error: string;
11251
+ }[];
11252
+ };
11255
11253
  422: {
11256
11254
  type: "validation";
11257
11255
  on: string;
@@ -11281,147 +11279,180 @@ declare const eden: {
11281
11279
  };
11282
11280
  query?: Record<string, unknown> | undefined;
11283
11281
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
11284
- 200: Record<string, {
11285
- tvl?: undefined;
11286
- message: string;
11287
- name: string;
11288
- campaign?: undefined;
11289
- opportunity?: undefined;
11290
- } | {
11291
- message?: undefined;
11292
- campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
11293
- opportunity: ({
11294
- chainId: number;
11295
- type: string;
11296
- identifier: string;
11297
- name?: string | undefined;
11298
- status: "LIVE" | "NONE" | "PAST" | "SOON";
11299
- action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11300
- description?: string | undefined;
11301
- howToSteps?: string[] | undefined;
11302
- tokens: {
11303
- address: string;
11282
+ 200: {
11283
+ campaigns: Record<string, {
11284
+ config: import("@package/resources/schemas").ExtendedConfig<CampaignType>;
11285
+ campaign: import("@package/resources/schemas").EngineCampaign<CampaignType.INVALID> | import("@package/resources/schemas").EngineCampaign<CampaignType>;
11286
+ opportunity: ({
11304
11287
  chainId: number;
11305
- }[];
11306
- protocols?: string[] | undefined;
11307
- mainProtocol?: string | undefined;
11308
- depositUrl?: string | undefined;
11309
- explorerAddress?: string | undefined;
11310
- tags?: string[] | undefined;
11311
- } & {
11312
- id: string;
11313
- }) | ({
11314
- ActivePrograms: {
11315
- icon: string;
11316
- id: string;
11317
- name: string;
11318
- slug: string | null;
11319
- }[];
11320
- AprRecords: ({
11321
- AprBreakdown: {
11322
- identifier: string;
11323
- timestamp: bigint;
11324
- type: import("@package/databases").AprType;
11325
- value: number;
11288
+ type: string;
11289
+ identifier: string;
11290
+ name?: string | undefined;
11291
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
11292
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
11293
+ description?: string | undefined;
11294
+ howToSteps?: string[] | undefined;
11295
+ tokens: {
11296
+ address: string;
11297
+ chainId: number;
11326
11298
  }[];
11299
+ protocols?: string[] | undefined;
11300
+ mainProtocol?: string | undefined;
11301
+ depositUrl?: string | undefined;
11302
+ explorerAddress?: string | undefined;
11303
+ tags?: string[] | undefined;
11327
11304
  } & {
11328
11305
  id: string;
11329
- timestamp: bigint;
11330
- cumulated: number;
11331
- opportunityId: string;
11332
- })[];
11333
- Campaigns: {
11334
- id: string;
11335
- computeChainId: number;
11336
- distributionChainId: number;
11337
- campaignId: string;
11338
- type: string;
11339
- distributionType: import("@package/databases").DistributionType;
11340
- subType: number | null;
11341
- rewardTokenId: string;
11342
- amount: string;
11343
- opportunityId: string;
11344
- startTimestamp: bigint;
11345
- endTimestamp: bigint;
11346
- params: import("@prisma/client/runtime/client").JsonValue;
11347
- description: string | null;
11348
- dailyRewards: number;
11349
- apr: number;
11350
- creatorAddress: string;
11351
- manualOverrides: import("@package/databases").CampaignManualOverride[];
11352
- createdAt: Date;
11353
- rootCampaignId: string | null;
11354
- parentCampaignId: string | null;
11355
- }[];
11356
- Chain: {
11357
- id: number;
11358
- name: string;
11359
- icon: string;
11360
- liveCampaigns: number;
11361
- endOfDisputePeriod: number;
11362
- };
11363
- DailyRewardsRecords: ({
11364
- DailyRewardsBreakdown: ({
11365
- Campaign: {
11366
- CampaignStatus: {
11367
- campaignId: string;
11368
- computedUntil: bigint;
11369
- processingStarted: bigint;
11370
- status: import("@package/databases").RunStatus;
11371
- preComputeStatus: import("@package/databases").RunStatus;
11372
- preComputeProcessingStarted: bigint;
11373
- error: string;
11374
- details: import("@prisma/client/runtime/client").JsonValue;
11375
- }[];
11376
- RewardToken: {
11377
- id: string;
11378
- name: string | null;
11379
- chainId: number;
11380
- address: string;
11381
- decimals: number;
11382
- symbol: string;
11383
- displaySymbol: string;
11384
- icon: string;
11385
- verified: boolean;
11386
- isTest: boolean;
11387
- type: import("@package/databases").TokenType;
11388
- isNative: boolean;
11389
- price: number | null;
11390
- updatedAt: number | null;
11391
- priceSource: string | null;
11306
+ }) | ({
11307
+ ActivePrograms: {
11308
+ icon: string;
11309
+ id: string;
11310
+ name: string;
11311
+ slug: string | null;
11312
+ }[];
11313
+ AprRecords: ({
11314
+ AprBreakdown: {
11315
+ identifier: string;
11316
+ timestamp: bigint;
11317
+ type: import("@package/databases").AprType;
11318
+ value: number;
11319
+ }[];
11320
+ } & {
11321
+ id: string;
11322
+ timestamp: bigint;
11323
+ cumulated: number;
11324
+ opportunityId: string;
11325
+ })[];
11326
+ Campaigns: {
11327
+ id: string;
11328
+ computeChainId: number;
11329
+ distributionChainId: number;
11330
+ campaignId: string;
11331
+ type: string;
11332
+ distributionType: import("@package/databases").DistributionType;
11333
+ subType: number | null;
11334
+ rewardTokenId: string;
11335
+ amount: string;
11336
+ opportunityId: string;
11337
+ startTimestamp: bigint;
11338
+ endTimestamp: bigint;
11339
+ params: import("@prisma/client/runtime/client").JsonValue;
11340
+ description: string | null;
11341
+ dailyRewards: number;
11342
+ apr: number;
11343
+ creatorAddress: string;
11344
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
11345
+ createdAt: Date;
11346
+ rootCampaignId: string | null;
11347
+ parentCampaignId: string | null;
11348
+ }[];
11349
+ Chain: {
11350
+ id: number;
11351
+ name: string;
11352
+ icon: string;
11353
+ liveCampaigns: number;
11354
+ endOfDisputePeriod: number;
11355
+ };
11356
+ DailyRewardsRecords: ({
11357
+ DailyRewardsBreakdown: ({
11358
+ Campaign: {
11359
+ CampaignStatus: {
11360
+ campaignId: string;
11361
+ computedUntil: bigint;
11362
+ processingStarted: bigint;
11363
+ status: import("@package/databases").RunStatus;
11364
+ preComputeStatus: import("@package/databases").RunStatus;
11365
+ preComputeProcessingStarted: bigint;
11366
+ error: string;
11367
+ details: import("@prisma/client/runtime/client").JsonValue;
11368
+ }[];
11369
+ RewardToken: {
11370
+ id: string;
11371
+ name: string | null;
11372
+ chainId: number;
11373
+ address: string;
11374
+ decimals: number;
11375
+ symbol: string;
11376
+ displaySymbol: string;
11377
+ icon: string;
11378
+ verified: boolean;
11379
+ isTest: boolean;
11380
+ type: import("@package/databases").TokenType;
11381
+ isNative: boolean;
11382
+ price: number | null;
11383
+ updatedAt: number | null;
11384
+ priceSource: string | null;
11385
+ };
11386
+ amount: string;
11387
+ campaignId: string;
11388
+ distributionType: import("@package/databases").DistributionType;
11389
+ endTimestamp: bigint;
11390
+ startTimestamp: bigint;
11392
11391
  };
11393
- amount: string;
11392
+ } & {
11393
+ id: string;
11394
+ value: number;
11395
+ timestamp: bigint;
11394
11396
  campaignId: string;
11395
- distributionType: import("@package/databases").DistributionType;
11396
- endTimestamp: bigint;
11397
- startTimestamp: bigint;
11398
- };
11397
+ dailyRewardsRecordId: string;
11398
+ })[];
11399
11399
  } & {
11400
11400
  id: string;
11401
- value: number;
11402
11401
  timestamp: bigint;
11403
- campaignId: string;
11404
- dailyRewardsRecordId: string;
11402
+ total: number;
11403
+ opportunityId: string;
11405
11404
  })[];
11406
- } & {
11407
- id: string;
11408
- timestamp: bigint;
11409
- total: number;
11410
- opportunityId: string;
11411
- })[];
11412
- MainProtocol: {
11413
- id: string;
11414
- tags: string[];
11415
- name: string;
11416
- description: string;
11417
- url: string;
11418
- icon: string;
11419
- banner: string | null;
11420
- opportunityBannerLight: string | null;
11421
- opportunityBannerDark: string | null;
11422
- } | null;
11423
- NativeAprRecords: ({
11424
- RewardToken: {
11405
+ MainProtocol: {
11406
+ id: string;
11407
+ tags: string[];
11408
+ name: string;
11409
+ description: string;
11410
+ url: string;
11411
+ icon: string;
11412
+ banner: string | null;
11413
+ opportunityBannerLight: string | null;
11414
+ opportunityBannerDark: string | null;
11415
+ } | null;
11416
+ NativeAprRecords: ({
11417
+ RewardToken: {
11418
+ id: string;
11419
+ name: string | null;
11420
+ chainId: number;
11421
+ address: string;
11422
+ decimals: number;
11423
+ symbol: string;
11424
+ displaySymbol: string;
11425
+ icon: string;
11426
+ verified: boolean;
11427
+ isTest: boolean;
11428
+ type: import("@package/databases").TokenType;
11429
+ isNative: boolean;
11430
+ price: number | null;
11431
+ updatedAt: number | null;
11432
+ priceSource: string | null;
11433
+ } | null;
11434
+ } & {
11435
+ id: string;
11436
+ title: string;
11437
+ description: string | null;
11438
+ timestamp: bigint;
11439
+ value: number;
11440
+ amount: bigint | null;
11441
+ rewardTokenId: string | null;
11442
+ opportunityId: string;
11443
+ })[];
11444
+ Protocols: {
11445
+ id: string;
11446
+ tags: string[];
11447
+ name: string;
11448
+ description: string;
11449
+ url: string;
11450
+ icon: string;
11451
+ banner: string | null;
11452
+ opportunityBannerLight: string | null;
11453
+ opportunityBannerDark: string | null;
11454
+ }[];
11455
+ Tokens: {
11425
11456
  id: string;
11426
11457
  name: string | null;
11427
11458
  chainId: number;
@@ -11437,91 +11468,57 @@ declare const eden: {
11437
11468
  price: number | null;
11438
11469
  updatedAt: number | null;
11439
11470
  priceSource: string | null;
11440
- } | null;
11471
+ }[];
11472
+ TvlRecords: ({
11473
+ TvlBreakdown: {
11474
+ identifier: string;
11475
+ type: import("@package/databases").TvlType;
11476
+ value: number;
11477
+ }[];
11478
+ } & {
11479
+ id: string;
11480
+ timestamp: bigint;
11481
+ total: number;
11482
+ opportunityId: string;
11483
+ })[];
11441
11484
  } & {
11442
11485
  id: string;
11443
- title: string;
11444
- description: string | null;
11445
- timestamp: bigint;
11446
- value: number;
11447
- amount: bigint | null;
11448
- rewardTokenId: string | null;
11449
- opportunityId: string;
11450
- })[];
11451
- Protocols: {
11452
- id: string;
11453
- tags: string[];
11486
+ chainId: number;
11487
+ type: string;
11488
+ identifier: string;
11454
11489
  name: string;
11455
11490
  description: string;
11456
- url: string;
11457
- icon: string;
11458
- banner: string | null;
11459
- opportunityBannerLight: string | null;
11460
- opportunityBannerDark: string | null;
11461
- }[];
11462
- Tokens: {
11463
- id: string;
11464
- name: string | null;
11465
- chainId: number;
11466
- address: string;
11467
- decimals: number;
11468
- symbol: string;
11469
- displaySymbol: string;
11470
- icon: string;
11471
- verified: boolean;
11472
- isTest: boolean;
11473
- type: import("@package/databases").TokenType;
11474
- isNative: boolean;
11475
- price: number | null;
11476
- updatedAt: number | null;
11477
- priceSource: string | null;
11478
- }[];
11479
- TvlRecords: ({
11480
- TvlBreakdown: {
11491
+ howToSteps: string[];
11492
+ depositUrl: string | null;
11493
+ explorerAddress: string | null;
11494
+ status: import("@package/databases").Status;
11495
+ action: import("@package/databases").OpportunityAction;
11496
+ mainProtocolId: string | null;
11497
+ tvl: number;
11498
+ apr: number;
11499
+ nativeApr: number | null;
11500
+ maxApr: number | null;
11501
+ dailyRewards: number;
11502
+ tags: string[];
11503
+ lastCampaignCreatedAt: Date;
11504
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
11505
+ liveCampaigns: number;
11506
+ });
11507
+ tvl: {
11508
+ breakdowns: ({
11481
11509
  identifier: string;
11482
11510
  type: import("@package/databases").TvlType;
11483
11511
  value: number;
11484
- }[];
11485
- } & {
11486
- id: string;
11512
+ } & {})[];
11487
11513
  timestamp: bigint;
11488
11514
  total: number;
11489
- opportunityId: string;
11490
- })[];
11491
- } & {
11492
- id: string;
11493
- chainId: number;
11494
- type: string;
11495
- identifier: string;
11496
- name: string;
11497
- description: string;
11498
- howToSteps: string[];
11499
- depositUrl: string | null;
11500
- explorerAddress: string | null;
11501
- status: import("@package/databases").Status;
11502
- action: import("@package/databases").OpportunityAction;
11503
- mainProtocolId: string | null;
11504
- tvl: number;
11505
- apr: number;
11506
- nativeApr: number | null;
11507
- maxApr: number | null;
11508
- dailyRewards: number;
11509
- tags: string[];
11510
- lastCampaignCreatedAt: Date;
11511
- manualOverrides: import("@package/databases").OpportunityManualOverride[];
11512
- liveCampaigns: number;
11513
- });
11514
- tvl: {
11515
- breakdowns: ({
11516
- identifier: string;
11517
- type: import("@package/databases").TvlType;
11518
- value: number;
11519
- } & {})[];
11520
- timestamp: bigint;
11521
- total: number;
11522
- } & {};
11523
- name?: undefined;
11524
- }>;
11515
+ } & {};
11516
+ }>;
11517
+ errors: {
11518
+ campaignId: string;
11519
+ error: string;
11520
+ }[];
11521
+ };
11525
11522
  422: {
11526
11523
  type: "validation";
11527
11524
  on: string;