@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.
- package/dist/src/eden/index.d.ts +428 -431
- package/dist/src/index.d.ts +430 -433
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +3 -0
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +3 -1
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.js.map +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +3 -0
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +3 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +412 -421
- package/dist/src/modules/v4/payload/payload.controller.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.service.d.ts +417 -426
- package/dist/src/modules/v4/payload/payload.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +430 -433
- package/dist/src/scripts/compare-engine-campaigns/campaign-loader.js.map +1 -1
- package/dist/src/scripts/compare-engine-campaigns/constants.d.ts +1 -0
- package/dist/src/scripts/compare-engine-campaigns/constants.js.map +1 -1
- package/dist/src/scripts/compare-engine-campaigns/diff-reporter.js.map +1 -1
- package/dist/src/scripts/compare-engine-campaigns/index.js.map +1 -1
- package/dist/src/scripts/compare-engine-campaigns/normalizer.d.ts +1 -1
- package/dist/src/scripts/compare-engine-campaigns/normalizer.js.map +1 -1
- package/dist/src/scripts/recompute-override.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +24 -24
- package/package.json +1 -1
|
@@ -55,14 +55,8 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
55
55
|
headers: unknown;
|
|
56
56
|
response: {
|
|
57
57
|
200: Record<string, {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
campaign?: undefined;
|
|
61
|
-
opportunity?: undefined;
|
|
62
|
-
tvl?: undefined;
|
|
63
|
-
} | {
|
|
64
|
-
message?: undefined;
|
|
65
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
58
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
59
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
66
60
|
opportunity: ({
|
|
67
61
|
chainId: number;
|
|
68
62
|
type: string;
|
|
@@ -293,7 +287,6 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
293
287
|
timestamp: bigint;
|
|
294
288
|
total: number;
|
|
295
289
|
} & {};
|
|
296
|
-
name?: undefined;
|
|
297
290
|
}>;
|
|
298
291
|
422: {
|
|
299
292
|
type: "validation";
|
|
@@ -328,147 +321,180 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
328
321
|
authorization: string;
|
|
329
322
|
};
|
|
330
323
|
response: {
|
|
331
|
-
200:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
tvl?: undefined;
|
|
337
|
-
} | {
|
|
338
|
-
message?: undefined;
|
|
339
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
340
|
-
opportunity: ({
|
|
341
|
-
chainId: number;
|
|
342
|
-
type: string;
|
|
343
|
-
identifier: string;
|
|
344
|
-
name?: string | undefined;
|
|
345
|
-
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
346
|
-
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
347
|
-
description?: string | undefined;
|
|
348
|
-
howToSteps?: string[] | undefined;
|
|
349
|
-
tokens: {
|
|
350
|
-
address: string;
|
|
324
|
+
200: {
|
|
325
|
+
campaigns: Record<string, {
|
|
326
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
327
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
328
|
+
opportunity: ({
|
|
351
329
|
chainId: number;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
icon: string;
|
|
363
|
-
id: string;
|
|
364
|
-
name: string;
|
|
365
|
-
slug: string | null;
|
|
366
|
-
}[];
|
|
367
|
-
AprRecords: ({
|
|
368
|
-
AprBreakdown: {
|
|
369
|
-
identifier: string;
|
|
370
|
-
timestamp: bigint;
|
|
371
|
-
type: import("@package/databases").AprType;
|
|
372
|
-
value: number;
|
|
330
|
+
type: string;
|
|
331
|
+
identifier: string;
|
|
332
|
+
name?: string | undefined;
|
|
333
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
334
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
335
|
+
description?: string | undefined;
|
|
336
|
+
howToSteps?: string[] | undefined;
|
|
337
|
+
tokens: {
|
|
338
|
+
address: string;
|
|
339
|
+
chainId: number;
|
|
373
340
|
}[];
|
|
341
|
+
protocols?: string[] | undefined;
|
|
342
|
+
mainProtocol?: string | undefined;
|
|
343
|
+
depositUrl?: string | undefined;
|
|
344
|
+
explorerAddress?: string | undefined;
|
|
345
|
+
tags?: string[] | undefined;
|
|
374
346
|
} & {
|
|
375
347
|
id: string;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
348
|
+
}) | ({
|
|
349
|
+
ActivePrograms: {
|
|
350
|
+
icon: string;
|
|
351
|
+
id: string;
|
|
352
|
+
name: string;
|
|
353
|
+
slug: string | null;
|
|
354
|
+
}[];
|
|
355
|
+
AprRecords: ({
|
|
356
|
+
AprBreakdown: {
|
|
357
|
+
identifier: string;
|
|
358
|
+
timestamp: bigint;
|
|
359
|
+
type: import("@package/databases").AprType;
|
|
360
|
+
value: number;
|
|
361
|
+
}[];
|
|
362
|
+
} & {
|
|
363
|
+
id: string;
|
|
364
|
+
timestamp: bigint;
|
|
365
|
+
cumulated: number;
|
|
366
|
+
opportunityId: string;
|
|
367
|
+
})[];
|
|
368
|
+
Campaigns: {
|
|
369
|
+
id: string;
|
|
370
|
+
computeChainId: number;
|
|
371
|
+
distributionChainId: number;
|
|
372
|
+
campaignId: string;
|
|
373
|
+
type: string;
|
|
374
|
+
distributionType: import("@package/databases").DistributionType;
|
|
375
|
+
subType: number | null;
|
|
376
|
+
rewardTokenId: string;
|
|
377
|
+
amount: string;
|
|
378
|
+
opportunityId: string;
|
|
379
|
+
startTimestamp: bigint;
|
|
380
|
+
endTimestamp: bigint;
|
|
381
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
382
|
+
description: string | null;
|
|
383
|
+
dailyRewards: number;
|
|
384
|
+
apr: number;
|
|
385
|
+
creatorAddress: string;
|
|
386
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
387
|
+
createdAt: Date;
|
|
388
|
+
rootCampaignId: string | null;
|
|
389
|
+
parentCampaignId: string | null;
|
|
390
|
+
}[];
|
|
391
|
+
Chain: {
|
|
392
|
+
id: number;
|
|
393
|
+
name: string;
|
|
394
|
+
icon: string;
|
|
395
|
+
liveCampaigns: number;
|
|
396
|
+
endOfDisputePeriod: number;
|
|
397
|
+
};
|
|
398
|
+
DailyRewardsRecords: ({
|
|
399
|
+
DailyRewardsBreakdown: ({
|
|
400
|
+
Campaign: {
|
|
401
|
+
CampaignStatus: {
|
|
402
|
+
campaignId: string;
|
|
403
|
+
computedUntil: bigint;
|
|
404
|
+
processingStarted: bigint;
|
|
405
|
+
status: import("@package/databases").RunStatus;
|
|
406
|
+
preComputeStatus: import("@package/databases").RunStatus;
|
|
407
|
+
preComputeProcessingStarted: bigint;
|
|
408
|
+
error: string;
|
|
409
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
410
|
+
}[];
|
|
411
|
+
RewardToken: {
|
|
412
|
+
id: string;
|
|
413
|
+
name: string | null;
|
|
414
|
+
chainId: number;
|
|
415
|
+
address: string;
|
|
416
|
+
decimals: number;
|
|
417
|
+
symbol: string;
|
|
418
|
+
displaySymbol: string;
|
|
419
|
+
icon: string;
|
|
420
|
+
verified: boolean;
|
|
421
|
+
isTest: boolean;
|
|
422
|
+
type: import("@package/databases").TokenType;
|
|
423
|
+
isNative: boolean;
|
|
424
|
+
price: number | null;
|
|
425
|
+
updatedAt: number | null;
|
|
426
|
+
priceSource: string | null;
|
|
427
|
+
};
|
|
428
|
+
amount: string;
|
|
414
429
|
campaignId: string;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
preComputeStatus: import("@package/databases").RunStatus;
|
|
419
|
-
preComputeProcessingStarted: bigint;
|
|
420
|
-
error: string;
|
|
421
|
-
details: import("@prisma/client/runtime/client").JsonValue;
|
|
422
|
-
}[];
|
|
423
|
-
RewardToken: {
|
|
424
|
-
id: string;
|
|
425
|
-
name: string | null;
|
|
426
|
-
chainId: number;
|
|
427
|
-
address: string;
|
|
428
|
-
decimals: number;
|
|
429
|
-
symbol: string;
|
|
430
|
-
displaySymbol: string;
|
|
431
|
-
icon: string;
|
|
432
|
-
verified: boolean;
|
|
433
|
-
isTest: boolean;
|
|
434
|
-
type: import("@package/databases").TokenType;
|
|
435
|
-
isNative: boolean;
|
|
436
|
-
price: number | null;
|
|
437
|
-
updatedAt: number | null;
|
|
438
|
-
priceSource: string | null;
|
|
430
|
+
distributionType: import("@package/databases").DistributionType;
|
|
431
|
+
endTimestamp: bigint;
|
|
432
|
+
startTimestamp: bigint;
|
|
439
433
|
};
|
|
440
|
-
|
|
434
|
+
} & {
|
|
435
|
+
id: string;
|
|
436
|
+
value: number;
|
|
437
|
+
timestamp: bigint;
|
|
441
438
|
campaignId: string;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
startTimestamp: bigint;
|
|
445
|
-
};
|
|
439
|
+
dailyRewardsRecordId: string;
|
|
440
|
+
})[];
|
|
446
441
|
} & {
|
|
447
442
|
id: string;
|
|
448
|
-
value: number;
|
|
449
443
|
timestamp: bigint;
|
|
450
|
-
|
|
451
|
-
|
|
444
|
+
total: number;
|
|
445
|
+
opportunityId: string;
|
|
452
446
|
})[];
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
447
|
+
MainProtocol: {
|
|
448
|
+
id: string;
|
|
449
|
+
tags: string[];
|
|
450
|
+
name: string;
|
|
451
|
+
description: string;
|
|
452
|
+
url: string;
|
|
453
|
+
icon: string;
|
|
454
|
+
banner: string | null;
|
|
455
|
+
opportunityBannerLight: string | null;
|
|
456
|
+
opportunityBannerDark: string | null;
|
|
457
|
+
} | null;
|
|
458
|
+
NativeAprRecords: ({
|
|
459
|
+
RewardToken: {
|
|
460
|
+
id: string;
|
|
461
|
+
name: string | null;
|
|
462
|
+
chainId: number;
|
|
463
|
+
address: string;
|
|
464
|
+
decimals: number;
|
|
465
|
+
symbol: string;
|
|
466
|
+
displaySymbol: string;
|
|
467
|
+
icon: string;
|
|
468
|
+
verified: boolean;
|
|
469
|
+
isTest: boolean;
|
|
470
|
+
type: import("@package/databases").TokenType;
|
|
471
|
+
isNative: boolean;
|
|
472
|
+
price: number | null;
|
|
473
|
+
updatedAt: number | null;
|
|
474
|
+
priceSource: string | null;
|
|
475
|
+
} | null;
|
|
476
|
+
} & {
|
|
477
|
+
id: string;
|
|
478
|
+
title: string;
|
|
479
|
+
description: string | null;
|
|
480
|
+
timestamp: bigint;
|
|
481
|
+
value: number;
|
|
482
|
+
amount: bigint | null;
|
|
483
|
+
rewardTokenId: string | null;
|
|
484
|
+
opportunityId: string;
|
|
485
|
+
})[];
|
|
486
|
+
Protocols: {
|
|
487
|
+
id: string;
|
|
488
|
+
tags: string[];
|
|
489
|
+
name: string;
|
|
490
|
+
description: string;
|
|
491
|
+
url: string;
|
|
492
|
+
icon: string;
|
|
493
|
+
banner: string | null;
|
|
494
|
+
opportunityBannerLight: string | null;
|
|
495
|
+
opportunityBannerDark: string | null;
|
|
496
|
+
}[];
|
|
497
|
+
Tokens: {
|
|
472
498
|
id: string;
|
|
473
499
|
name: string | null;
|
|
474
500
|
chainId: number;
|
|
@@ -484,91 +510,57 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
484
510
|
price: number | null;
|
|
485
511
|
updatedAt: number | null;
|
|
486
512
|
priceSource: string | null;
|
|
487
|
-
}
|
|
513
|
+
}[];
|
|
514
|
+
TvlRecords: ({
|
|
515
|
+
TvlBreakdown: {
|
|
516
|
+
identifier: string;
|
|
517
|
+
type: import("@package/databases").TvlType;
|
|
518
|
+
value: number;
|
|
519
|
+
}[];
|
|
520
|
+
} & {
|
|
521
|
+
id: string;
|
|
522
|
+
timestamp: bigint;
|
|
523
|
+
total: number;
|
|
524
|
+
opportunityId: string;
|
|
525
|
+
})[];
|
|
488
526
|
} & {
|
|
489
527
|
id: string;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
value: number;
|
|
494
|
-
amount: bigint | null;
|
|
495
|
-
rewardTokenId: string | null;
|
|
496
|
-
opportunityId: string;
|
|
497
|
-
})[];
|
|
498
|
-
Protocols: {
|
|
499
|
-
id: string;
|
|
500
|
-
tags: string[];
|
|
528
|
+
chainId: number;
|
|
529
|
+
type: string;
|
|
530
|
+
identifier: string;
|
|
501
531
|
name: string;
|
|
502
532
|
description: string;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
isNative: boolean;
|
|
522
|
-
price: number | null;
|
|
523
|
-
updatedAt: number | null;
|
|
524
|
-
priceSource: string | null;
|
|
525
|
-
}[];
|
|
526
|
-
TvlRecords: ({
|
|
527
|
-
TvlBreakdown: {
|
|
533
|
+
howToSteps: string[];
|
|
534
|
+
depositUrl: string | null;
|
|
535
|
+
explorerAddress: string | null;
|
|
536
|
+
status: import("@package/databases").Status;
|
|
537
|
+
action: import("@package/databases").OpportunityAction;
|
|
538
|
+
mainProtocolId: string | null;
|
|
539
|
+
tvl: number;
|
|
540
|
+
apr: number;
|
|
541
|
+
nativeApr: number | null;
|
|
542
|
+
maxApr: number | null;
|
|
543
|
+
dailyRewards: number;
|
|
544
|
+
tags: string[];
|
|
545
|
+
lastCampaignCreatedAt: Date;
|
|
546
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
547
|
+
liveCampaigns: number;
|
|
548
|
+
});
|
|
549
|
+
tvl: {
|
|
550
|
+
breakdowns: ({
|
|
528
551
|
identifier: string;
|
|
529
552
|
type: import("@package/databases").TvlType;
|
|
530
553
|
value: number;
|
|
531
|
-
}[];
|
|
532
|
-
} & {
|
|
533
|
-
id: string;
|
|
554
|
+
} & {})[];
|
|
534
555
|
timestamp: bigint;
|
|
535
556
|
total: number;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
name: string;
|
|
544
|
-
description: string;
|
|
545
|
-
howToSteps: string[];
|
|
546
|
-
depositUrl: string | null;
|
|
547
|
-
explorerAddress: string | null;
|
|
548
|
-
status: import("@package/databases").Status;
|
|
549
|
-
action: import("@package/databases").OpportunityAction;
|
|
550
|
-
mainProtocolId: string | null;
|
|
551
|
-
tvl: number;
|
|
552
|
-
apr: number;
|
|
553
|
-
nativeApr: number | null;
|
|
554
|
-
maxApr: number | null;
|
|
555
|
-
dailyRewards: number;
|
|
556
|
-
tags: string[];
|
|
557
|
-
lastCampaignCreatedAt: Date;
|
|
558
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
559
|
-
liveCampaigns: number;
|
|
560
|
-
});
|
|
561
|
-
tvl: {
|
|
562
|
-
breakdowns: ({
|
|
563
|
-
identifier: string;
|
|
564
|
-
type: import("@package/databases").TvlType;
|
|
565
|
-
value: number;
|
|
566
|
-
} & {})[];
|
|
567
|
-
timestamp: bigint;
|
|
568
|
-
total: number;
|
|
569
|
-
} & {};
|
|
570
|
-
name?: undefined;
|
|
571
|
-
}>;
|
|
557
|
+
} & {};
|
|
558
|
+
}>;
|
|
559
|
+
errors: {
|
|
560
|
+
campaignId: string;
|
|
561
|
+
error: string;
|
|
562
|
+
}[];
|
|
563
|
+
};
|
|
572
564
|
422: {
|
|
573
565
|
type: "validation";
|
|
574
566
|
on: string;
|
|
@@ -598,147 +590,180 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
598
590
|
authorization: string;
|
|
599
591
|
};
|
|
600
592
|
response: {
|
|
601
|
-
200:
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
tvl?: undefined;
|
|
607
|
-
} | {
|
|
608
|
-
message?: undefined;
|
|
609
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
610
|
-
opportunity: ({
|
|
611
|
-
chainId: number;
|
|
612
|
-
type: string;
|
|
613
|
-
identifier: string;
|
|
614
|
-
name?: string | undefined;
|
|
615
|
-
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
616
|
-
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
617
|
-
description?: string | undefined;
|
|
618
|
-
howToSteps?: string[] | undefined;
|
|
619
|
-
tokens: {
|
|
620
|
-
address: string;
|
|
593
|
+
200: {
|
|
594
|
+
campaigns: Record<string, {
|
|
595
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
596
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
597
|
+
opportunity: ({
|
|
621
598
|
chainId: number;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
icon: string;
|
|
633
|
-
id: string;
|
|
634
|
-
name: string;
|
|
635
|
-
slug: string | null;
|
|
636
|
-
}[];
|
|
637
|
-
AprRecords: ({
|
|
638
|
-
AprBreakdown: {
|
|
639
|
-
identifier: string;
|
|
640
|
-
timestamp: bigint;
|
|
641
|
-
type: import("@package/databases").AprType;
|
|
642
|
-
value: number;
|
|
599
|
+
type: string;
|
|
600
|
+
identifier: string;
|
|
601
|
+
name?: string | undefined;
|
|
602
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
603
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
604
|
+
description?: string | undefined;
|
|
605
|
+
howToSteps?: string[] | undefined;
|
|
606
|
+
tokens: {
|
|
607
|
+
address: string;
|
|
608
|
+
chainId: number;
|
|
643
609
|
}[];
|
|
610
|
+
protocols?: string[] | undefined;
|
|
611
|
+
mainProtocol?: string | undefined;
|
|
612
|
+
depositUrl?: string | undefined;
|
|
613
|
+
explorerAddress?: string | undefined;
|
|
614
|
+
tags?: string[] | undefined;
|
|
644
615
|
} & {
|
|
645
616
|
id: string;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
617
|
+
}) | ({
|
|
618
|
+
ActivePrograms: {
|
|
619
|
+
icon: string;
|
|
620
|
+
id: string;
|
|
621
|
+
name: string;
|
|
622
|
+
slug: string | null;
|
|
623
|
+
}[];
|
|
624
|
+
AprRecords: ({
|
|
625
|
+
AprBreakdown: {
|
|
626
|
+
identifier: string;
|
|
627
|
+
timestamp: bigint;
|
|
628
|
+
type: import("@package/databases").AprType;
|
|
629
|
+
value: number;
|
|
630
|
+
}[];
|
|
631
|
+
} & {
|
|
632
|
+
id: string;
|
|
633
|
+
timestamp: bigint;
|
|
634
|
+
cumulated: number;
|
|
635
|
+
opportunityId: string;
|
|
636
|
+
})[];
|
|
637
|
+
Campaigns: {
|
|
638
|
+
id: string;
|
|
639
|
+
computeChainId: number;
|
|
640
|
+
distributionChainId: number;
|
|
641
|
+
campaignId: string;
|
|
642
|
+
type: string;
|
|
643
|
+
distributionType: import("@package/databases").DistributionType;
|
|
644
|
+
subType: number | null;
|
|
645
|
+
rewardTokenId: string;
|
|
646
|
+
amount: string;
|
|
647
|
+
opportunityId: string;
|
|
648
|
+
startTimestamp: bigint;
|
|
649
|
+
endTimestamp: bigint;
|
|
650
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
651
|
+
description: string | null;
|
|
652
|
+
dailyRewards: number;
|
|
653
|
+
apr: number;
|
|
654
|
+
creatorAddress: string;
|
|
655
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
656
|
+
createdAt: Date;
|
|
657
|
+
rootCampaignId: string | null;
|
|
658
|
+
parentCampaignId: string | null;
|
|
659
|
+
}[];
|
|
660
|
+
Chain: {
|
|
661
|
+
id: number;
|
|
662
|
+
name: string;
|
|
663
|
+
icon: string;
|
|
664
|
+
liveCampaigns: number;
|
|
665
|
+
endOfDisputePeriod: number;
|
|
666
|
+
};
|
|
667
|
+
DailyRewardsRecords: ({
|
|
668
|
+
DailyRewardsBreakdown: ({
|
|
669
|
+
Campaign: {
|
|
670
|
+
CampaignStatus: {
|
|
671
|
+
campaignId: string;
|
|
672
|
+
computedUntil: bigint;
|
|
673
|
+
processingStarted: bigint;
|
|
674
|
+
status: import("@package/databases").RunStatus;
|
|
675
|
+
preComputeStatus: import("@package/databases").RunStatus;
|
|
676
|
+
preComputeProcessingStarted: bigint;
|
|
677
|
+
error: string;
|
|
678
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
679
|
+
}[];
|
|
680
|
+
RewardToken: {
|
|
681
|
+
id: string;
|
|
682
|
+
name: string | null;
|
|
683
|
+
chainId: number;
|
|
684
|
+
address: string;
|
|
685
|
+
decimals: number;
|
|
686
|
+
symbol: string;
|
|
687
|
+
displaySymbol: string;
|
|
688
|
+
icon: string;
|
|
689
|
+
verified: boolean;
|
|
690
|
+
isTest: boolean;
|
|
691
|
+
type: import("@package/databases").TokenType;
|
|
692
|
+
isNative: boolean;
|
|
693
|
+
price: number | null;
|
|
694
|
+
updatedAt: number | null;
|
|
695
|
+
priceSource: string | null;
|
|
696
|
+
};
|
|
697
|
+
amount: string;
|
|
684
698
|
campaignId: string;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
preComputeStatus: import("@package/databases").RunStatus;
|
|
689
|
-
preComputeProcessingStarted: bigint;
|
|
690
|
-
error: string;
|
|
691
|
-
details: import("@prisma/client/runtime/client").JsonValue;
|
|
692
|
-
}[];
|
|
693
|
-
RewardToken: {
|
|
694
|
-
id: string;
|
|
695
|
-
name: string | null;
|
|
696
|
-
chainId: number;
|
|
697
|
-
address: string;
|
|
698
|
-
decimals: number;
|
|
699
|
-
symbol: string;
|
|
700
|
-
displaySymbol: string;
|
|
701
|
-
icon: string;
|
|
702
|
-
verified: boolean;
|
|
703
|
-
isTest: boolean;
|
|
704
|
-
type: import("@package/databases").TokenType;
|
|
705
|
-
isNative: boolean;
|
|
706
|
-
price: number | null;
|
|
707
|
-
updatedAt: number | null;
|
|
708
|
-
priceSource: string | null;
|
|
699
|
+
distributionType: import("@package/databases").DistributionType;
|
|
700
|
+
endTimestamp: bigint;
|
|
701
|
+
startTimestamp: bigint;
|
|
709
702
|
};
|
|
710
|
-
|
|
703
|
+
} & {
|
|
704
|
+
id: string;
|
|
705
|
+
value: number;
|
|
706
|
+
timestamp: bigint;
|
|
711
707
|
campaignId: string;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
startTimestamp: bigint;
|
|
715
|
-
};
|
|
708
|
+
dailyRewardsRecordId: string;
|
|
709
|
+
})[];
|
|
716
710
|
} & {
|
|
717
711
|
id: string;
|
|
718
|
-
value: number;
|
|
719
712
|
timestamp: bigint;
|
|
720
|
-
|
|
721
|
-
|
|
713
|
+
total: number;
|
|
714
|
+
opportunityId: string;
|
|
722
715
|
})[];
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
716
|
+
MainProtocol: {
|
|
717
|
+
id: string;
|
|
718
|
+
tags: string[];
|
|
719
|
+
name: string;
|
|
720
|
+
description: string;
|
|
721
|
+
url: string;
|
|
722
|
+
icon: string;
|
|
723
|
+
banner: string | null;
|
|
724
|
+
opportunityBannerLight: string | null;
|
|
725
|
+
opportunityBannerDark: string | null;
|
|
726
|
+
} | null;
|
|
727
|
+
NativeAprRecords: ({
|
|
728
|
+
RewardToken: {
|
|
729
|
+
id: string;
|
|
730
|
+
name: string | null;
|
|
731
|
+
chainId: number;
|
|
732
|
+
address: string;
|
|
733
|
+
decimals: number;
|
|
734
|
+
symbol: string;
|
|
735
|
+
displaySymbol: string;
|
|
736
|
+
icon: string;
|
|
737
|
+
verified: boolean;
|
|
738
|
+
isTest: boolean;
|
|
739
|
+
type: import("@package/databases").TokenType;
|
|
740
|
+
isNative: boolean;
|
|
741
|
+
price: number | null;
|
|
742
|
+
updatedAt: number | null;
|
|
743
|
+
priceSource: string | null;
|
|
744
|
+
} | null;
|
|
745
|
+
} & {
|
|
746
|
+
id: string;
|
|
747
|
+
title: string;
|
|
748
|
+
description: string | null;
|
|
749
|
+
timestamp: bigint;
|
|
750
|
+
value: number;
|
|
751
|
+
amount: bigint | null;
|
|
752
|
+
rewardTokenId: string | null;
|
|
753
|
+
opportunityId: string;
|
|
754
|
+
})[];
|
|
755
|
+
Protocols: {
|
|
756
|
+
id: string;
|
|
757
|
+
tags: string[];
|
|
758
|
+
name: string;
|
|
759
|
+
description: string;
|
|
760
|
+
url: string;
|
|
761
|
+
icon: string;
|
|
762
|
+
banner: string | null;
|
|
763
|
+
opportunityBannerLight: string | null;
|
|
764
|
+
opportunityBannerDark: string | null;
|
|
765
|
+
}[];
|
|
766
|
+
Tokens: {
|
|
742
767
|
id: string;
|
|
743
768
|
name: string | null;
|
|
744
769
|
chainId: number;
|
|
@@ -754,91 +779,57 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
|
754
779
|
price: number | null;
|
|
755
780
|
updatedAt: number | null;
|
|
756
781
|
priceSource: string | null;
|
|
757
|
-
}
|
|
782
|
+
}[];
|
|
783
|
+
TvlRecords: ({
|
|
784
|
+
TvlBreakdown: {
|
|
785
|
+
identifier: string;
|
|
786
|
+
type: import("@package/databases").TvlType;
|
|
787
|
+
value: number;
|
|
788
|
+
}[];
|
|
789
|
+
} & {
|
|
790
|
+
id: string;
|
|
791
|
+
timestamp: bigint;
|
|
792
|
+
total: number;
|
|
793
|
+
opportunityId: string;
|
|
794
|
+
})[];
|
|
758
795
|
} & {
|
|
759
796
|
id: string;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
value: number;
|
|
764
|
-
amount: bigint | null;
|
|
765
|
-
rewardTokenId: string | null;
|
|
766
|
-
opportunityId: string;
|
|
767
|
-
})[];
|
|
768
|
-
Protocols: {
|
|
769
|
-
id: string;
|
|
770
|
-
tags: string[];
|
|
797
|
+
chainId: number;
|
|
798
|
+
type: string;
|
|
799
|
+
identifier: string;
|
|
771
800
|
name: string;
|
|
772
801
|
description: string;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
isNative: boolean;
|
|
792
|
-
price: number | null;
|
|
793
|
-
updatedAt: number | null;
|
|
794
|
-
priceSource: string | null;
|
|
795
|
-
}[];
|
|
796
|
-
TvlRecords: ({
|
|
797
|
-
TvlBreakdown: {
|
|
802
|
+
howToSteps: string[];
|
|
803
|
+
depositUrl: string | null;
|
|
804
|
+
explorerAddress: string | null;
|
|
805
|
+
status: import("@package/databases").Status;
|
|
806
|
+
action: import("@package/databases").OpportunityAction;
|
|
807
|
+
mainProtocolId: string | null;
|
|
808
|
+
tvl: number;
|
|
809
|
+
apr: number;
|
|
810
|
+
nativeApr: number | null;
|
|
811
|
+
maxApr: number | null;
|
|
812
|
+
dailyRewards: number;
|
|
813
|
+
tags: string[];
|
|
814
|
+
lastCampaignCreatedAt: Date;
|
|
815
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
816
|
+
liveCampaigns: number;
|
|
817
|
+
});
|
|
818
|
+
tvl: {
|
|
819
|
+
breakdowns: ({
|
|
798
820
|
identifier: string;
|
|
799
821
|
type: import("@package/databases").TvlType;
|
|
800
822
|
value: number;
|
|
801
|
-
}[];
|
|
802
|
-
} & {
|
|
803
|
-
id: string;
|
|
823
|
+
} & {})[];
|
|
804
824
|
timestamp: bigint;
|
|
805
825
|
total: number;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
name: string;
|
|
814
|
-
description: string;
|
|
815
|
-
howToSteps: string[];
|
|
816
|
-
depositUrl: string | null;
|
|
817
|
-
explorerAddress: string | null;
|
|
818
|
-
status: import("@package/databases").Status;
|
|
819
|
-
action: import("@package/databases").OpportunityAction;
|
|
820
|
-
mainProtocolId: string | null;
|
|
821
|
-
tvl: number;
|
|
822
|
-
apr: number;
|
|
823
|
-
nativeApr: number | null;
|
|
824
|
-
maxApr: number | null;
|
|
825
|
-
dailyRewards: number;
|
|
826
|
-
tags: string[];
|
|
827
|
-
lastCampaignCreatedAt: Date;
|
|
828
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
829
|
-
liveCampaigns: number;
|
|
830
|
-
});
|
|
831
|
-
tvl: {
|
|
832
|
-
breakdowns: ({
|
|
833
|
-
identifier: string;
|
|
834
|
-
type: import("@package/databases").TvlType;
|
|
835
|
-
value: number;
|
|
836
|
-
} & {})[];
|
|
837
|
-
timestamp: bigint;
|
|
838
|
-
total: number;
|
|
839
|
-
} & {};
|
|
840
|
-
name?: undefined;
|
|
841
|
-
}>;
|
|
826
|
+
} & {};
|
|
827
|
+
}>;
|
|
828
|
+
errors: {
|
|
829
|
+
campaignId: string;
|
|
830
|
+
error: string;
|
|
831
|
+
}[];
|
|
832
|
+
};
|
|
842
833
|
422: {
|
|
843
834
|
type: "validation";
|
|
844
835
|
on: string;
|