@merkl/api 1.5.24 → 1.5.25

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.
@@ -3227,72 +3227,225 @@ export declare const v4: Elysia<"/v4", {
3227
3227
  authorization: string;
3228
3228
  };
3229
3229
  response: {
3230
- 200: Omit<import("./campaign/campaign.model").CampaignWithParams<import("@package/resources/enums").CampaignType>, "manualOverrides"> & {
3231
- Opportunity: {
3230
+ 200: ({
3231
+ chainId: number;
3232
+ type: string;
3233
+ identifier: string;
3234
+ name?: string | undefined;
3235
+ status: "LIVE" | "NONE" | "PAST" | "SOON";
3236
+ action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
3237
+ description?: string | undefined;
3238
+ howToSteps?: string[] | undefined;
3239
+ tokens: {
3240
+ address: string;
3232
3241
  chainId: number;
3233
- type: string;
3234
- identifier: string;
3242
+ }[];
3243
+ protocols?: string[] | undefined;
3244
+ mainProtocol?: string | undefined;
3245
+ depositUrl?: string | undefined;
3246
+ explorerAddress?: string | undefined;
3247
+ tags?: string[] | undefined;
3248
+ } & {
3249
+ id: string;
3250
+ }) | ({
3251
+ ActivePrograms: {
3252
+ icon: string;
3253
+ id: string;
3235
3254
  name: string;
3236
- description: string;
3237
- howToSteps: string[];
3238
- status: import("@package/databases").Status;
3239
- action: import("@package/databases").OpportunityAction;
3240
- tvl: number;
3241
- apr: number;
3242
- maxApr: number | null;
3255
+ slug: string | null;
3256
+ }[];
3257
+ AprRecords: ({
3258
+ AprBreakdown: {
3259
+ identifier: string;
3260
+ timestamp: bigint;
3261
+ type: import("@package/databases").AprType;
3262
+ value: number;
3263
+ }[];
3264
+ } & {
3265
+ id: string;
3266
+ timestamp: bigint;
3267
+ cumulated: number;
3268
+ opportunityId: string;
3269
+ })[];
3270
+ Campaigns: {
3271
+ id: string;
3272
+ computeChainId: number;
3273
+ distributionChainId: number;
3274
+ campaignId: string;
3275
+ type: string;
3276
+ distributionType: import("@package/databases").DistributionType;
3277
+ subType: number | null;
3278
+ rewardTokenId: string;
3279
+ amount: string;
3280
+ opportunityId: string;
3281
+ startTimestamp: bigint;
3282
+ endTimestamp: bigint;
3283
+ params: import("@prisma/client/runtime/client").JsonValue;
3284
+ description: string | null;
3243
3285
  dailyRewards: number;
3244
- tags: string[];
3286
+ apr: number;
3287
+ creatorAddress: string;
3288
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
3289
+ createdAt: Date;
3290
+ rootCampaignId: string | null;
3291
+ parentCampaignId: string | null;
3292
+ }[];
3293
+ Chain: {
3294
+ id: number;
3295
+ name: string;
3296
+ icon: string;
3245
3297
  liveCampaigns: number;
3246
- tokens: ({
3247
- address: string;
3298
+ endOfDisputePeriod: number;
3299
+ };
3300
+ DailyRewardsRecords: ({
3301
+ DailyRewardsBreakdown: ({
3302
+ Campaign: {
3303
+ CampaignStatus: {
3304
+ campaignId: string;
3305
+ computedUntil: bigint;
3306
+ processingStarted: bigint;
3307
+ status: import("@package/databases").RunStatus;
3308
+ error: string;
3309
+ details: import("@prisma/client/runtime/client").JsonValue;
3310
+ }[];
3311
+ RewardToken: {
3312
+ id: string;
3313
+ name: string | null;
3314
+ chainId: number;
3315
+ address: string;
3316
+ decimals: number;
3317
+ symbol: string;
3318
+ displaySymbol: string;
3319
+ icon: string;
3320
+ verified: boolean;
3321
+ isTest: boolean;
3322
+ type: import("@package/databases").TokenType;
3323
+ isNative: boolean;
3324
+ price: number | null;
3325
+ updatedAt: number | null;
3326
+ priceSource: string | null;
3327
+ };
3328
+ amount: string;
3329
+ campaignId: string;
3330
+ distributionType: import("@package/databases").DistributionType;
3331
+ endTimestamp: bigint;
3332
+ startTimestamp: bigint;
3333
+ };
3334
+ } & {
3335
+ id: string;
3336
+ value: number;
3337
+ timestamp: bigint;
3338
+ campaignId: string;
3339
+ dailyRewardsRecordId: string;
3340
+ })[];
3341
+ } & {
3342
+ id: string;
3343
+ timestamp: bigint;
3344
+ total: number;
3345
+ opportunityId: string;
3346
+ })[];
3347
+ MainProtocol: {
3348
+ id: string;
3349
+ tags: string[];
3350
+ name: string;
3351
+ description: string;
3352
+ url: string;
3353
+ icon: string;
3354
+ banner: string | null;
3355
+ opportunityBannerLight: string | null;
3356
+ opportunityBannerDark: string | null;
3357
+ } | null;
3358
+ NativeAprRecords: ({
3359
+ RewardToken: {
3360
+ id: string;
3361
+ name: string | null;
3248
3362
  chainId: number;
3363
+ address: string;
3249
3364
  decimals: number;
3365
+ symbol: string;
3366
+ displaySymbol: string;
3250
3367
  icon: string;
3251
- id: string;
3252
- isNative: boolean;
3368
+ verified: boolean;
3253
3369
  isTest: boolean;
3254
- name: string | null;
3255
- symbol: string;
3256
3370
  type: import("@package/databases").TokenType;
3257
- verified: boolean;
3258
- } & {
3259
- price?: number | null | undefined;
3260
- updatedAt?: number | null | undefined;
3261
- priceSource?: string | null | undefined;
3262
- isTokenWrapper?: boolean | undefined;
3263
- tokenWrapperAddress?: string | undefined;
3264
- })[];
3265
- chain: {
3266
- id: number;
3267
- name: string;
3268
- icon: string;
3269
- liveCampaigns: number;
3270
- endOfDisputePeriod: number;
3271
- };
3272
- protocol: {
3273
- id: string;
3274
- tags: string[];
3275
- name: string;
3276
- description: string;
3277
- url: string;
3278
- icon: string;
3279
- banner: string | null;
3280
- opportunityBannerLight: string | null;
3281
- opportunityBannerDark: string | null;
3282
- } | undefined;
3283
- activePrograms: {
3284
- icon: string;
3285
- id: string;
3286
- name: string;
3287
- slug: string | null;
3371
+ isNative: boolean;
3372
+ price: number | null;
3373
+ updatedAt: number | null;
3374
+ priceSource: string | null;
3375
+ } | null;
3376
+ } & {
3377
+ id: string;
3378
+ title: string;
3379
+ description: string | null;
3380
+ timestamp: bigint;
3381
+ value: number;
3382
+ amount: bigint | null;
3383
+ rewardTokenId: string | null;
3384
+ opportunityId: string;
3385
+ })[];
3386
+ Protocols: {
3387
+ id: string;
3388
+ tags: string[];
3389
+ name: string;
3390
+ description: string;
3391
+ url: string;
3392
+ icon: string;
3393
+ banner: string | null;
3394
+ opportunityBannerLight: string | null;
3395
+ opportunityBannerDark: string | null;
3396
+ }[];
3397
+ Tokens: {
3398
+ id: string;
3399
+ name: string | null;
3400
+ chainId: number;
3401
+ address: string;
3402
+ decimals: number;
3403
+ symbol: string;
3404
+ displaySymbol: string;
3405
+ icon: string;
3406
+ verified: boolean;
3407
+ isTest: boolean;
3408
+ type: import("@package/databases").TokenType;
3409
+ isNative: boolean;
3410
+ price: number | null;
3411
+ updatedAt: number | null;
3412
+ priceSource: string | null;
3413
+ }[];
3414
+ TvlRecords: ({
3415
+ TvlBreakdown: {
3416
+ identifier: string;
3417
+ type: import("@package/databases").TvlType;
3418
+ value: number;
3288
3419
  }[];
3420
+ } & {
3289
3421
  id: string;
3290
- nativeApr: number | undefined;
3291
- depositUrl: string | undefined;
3292
- explorerAddress: string | undefined;
3293
- lastCampaignCreatedAt: number;
3294
- };
3295
- };
3422
+ timestamp: bigint;
3423
+ total: number;
3424
+ opportunityId: string;
3425
+ })[];
3426
+ } & {
3427
+ id: string;
3428
+ chainId: number;
3429
+ type: string;
3430
+ identifier: string;
3431
+ name: string;
3432
+ description: string;
3433
+ howToSteps: string[];
3434
+ depositUrl: string | null;
3435
+ explorerAddress: string | null;
3436
+ status: import("@package/databases").Status;
3437
+ action: import("@package/databases").OpportunityAction;
3438
+ mainProtocolId: string | null;
3439
+ tvl: number;
3440
+ apr: number;
3441
+ nativeApr: number | null;
3442
+ maxApr: number | null;
3443
+ dailyRewards: number;
3444
+ tags: string[];
3445
+ lastCampaignCreatedAt: Date;
3446
+ manualOverrides: import("@package/databases").OpportunityManualOverride[];
3447
+ liveCampaigns: number;
3448
+ });
3296
3449
  422: {
3297
3450
  type: "validation";
3298
3451
  on: string;
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "version": "1.5.24"
35
+ "version": "1.5.25"
36
36
  }