@merkl/api 1.6.0 → 1.6.1

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