@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.
- package/dist/src/eden/index.d.ts +426 -435
- package/dist/src/index.d.ts +425 -434
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- 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 +425 -434
- 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
package/dist/src/index.d.ts
CHANGED
|
@@ -11106,14 +11106,8 @@ declare const app: Elysia<"", {
|
|
|
11106
11106
|
headers: unknown;
|
|
11107
11107
|
response: {
|
|
11108
11108
|
200: Record<string, {
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
name: string;
|
|
11112
|
-
campaign?: undefined;
|
|
11113
|
-
opportunity?: undefined;
|
|
11114
|
-
} | {
|
|
11115
|
-
message?: undefined;
|
|
11116
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11109
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
11110
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11117
11111
|
opportunity: ({
|
|
11118
11112
|
chainId: number;
|
|
11119
11113
|
type: string;
|
|
@@ -11344,7 +11338,6 @@ declare const app: Elysia<"", {
|
|
|
11344
11338
|
timestamp: bigint;
|
|
11345
11339
|
total: number;
|
|
11346
11340
|
} & {};
|
|
11347
|
-
name?: undefined;
|
|
11348
11341
|
}>;
|
|
11349
11342
|
422: {
|
|
11350
11343
|
type: "validation";
|
|
@@ -11379,247 +11372,246 @@ declare const app: Elysia<"", {
|
|
|
11379
11372
|
authorization: string;
|
|
11380
11373
|
};
|
|
11381
11374
|
response: {
|
|
11382
|
-
200:
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
opportunity?: undefined;
|
|
11388
|
-
} | {
|
|
11389
|
-
message?: undefined;
|
|
11390
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11391
|
-
opportunity: ({
|
|
11392
|
-
chainId: number;
|
|
11393
|
-
type: string;
|
|
11394
|
-
identifier: string;
|
|
11395
|
-
name?: string | undefined;
|
|
11396
|
-
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
11397
|
-
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
11398
|
-
description?: string | undefined;
|
|
11399
|
-
howToSteps?: string[] | undefined;
|
|
11400
|
-
tokens: {
|
|
11401
|
-
address: string;
|
|
11375
|
+
200: {
|
|
11376
|
+
campaigns: Record<string, {
|
|
11377
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
11378
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11379
|
+
opportunity: ({
|
|
11402
11380
|
chainId: number;
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
icon: string;
|
|
11414
|
-
id: string;
|
|
11415
|
-
name: string;
|
|
11416
|
-
slug: string | null;
|
|
11417
|
-
}[];
|
|
11418
|
-
AprRecords: ({
|
|
11419
|
-
AprBreakdown: {
|
|
11420
|
-
identifier: string;
|
|
11421
|
-
timestamp: bigint;
|
|
11422
|
-
type: import("@package/databases").AprType;
|
|
11423
|
-
value: number;
|
|
11381
|
+
type: string;
|
|
11382
|
+
identifier: string;
|
|
11383
|
+
name?: string | undefined;
|
|
11384
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
11385
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
11386
|
+
description?: string | undefined;
|
|
11387
|
+
howToSteps?: string[] | undefined;
|
|
11388
|
+
tokens: {
|
|
11389
|
+
address: string;
|
|
11390
|
+
chainId: number;
|
|
11424
11391
|
}[];
|
|
11392
|
+
protocols?: string[] | undefined;
|
|
11393
|
+
mainProtocol?: string | undefined;
|
|
11394
|
+
depositUrl?: string | undefined;
|
|
11395
|
+
explorerAddress?: string | undefined;
|
|
11396
|
+
tags?: string[] | undefined;
|
|
11425
11397
|
} & {
|
|
11426
11398
|
id: string;
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11432
|
-
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11399
|
+
}) | ({
|
|
11400
|
+
ActivePrograms: {
|
|
11401
|
+
icon: string;
|
|
11402
|
+
id: string;
|
|
11403
|
+
name: string;
|
|
11404
|
+
slug: string | null;
|
|
11405
|
+
}[];
|
|
11406
|
+
AprRecords: ({
|
|
11407
|
+
AprBreakdown: {
|
|
11408
|
+
identifier: string;
|
|
11409
|
+
timestamp: bigint;
|
|
11410
|
+
type: import("@package/databases").AprType;
|
|
11411
|
+
value: number;
|
|
11412
|
+
}[];
|
|
11413
|
+
} & {
|
|
11414
|
+
id: string;
|
|
11415
|
+
timestamp: bigint;
|
|
11416
|
+
cumulated: number;
|
|
11417
|
+
opportunityId: string;
|
|
11418
|
+
})[];
|
|
11419
|
+
Campaigns: {
|
|
11420
|
+
id: string;
|
|
11421
|
+
computeChainId: number;
|
|
11422
|
+
distributionChainId: number;
|
|
11423
|
+
campaignId: string;
|
|
11424
|
+
type: string;
|
|
11425
|
+
distributionType: import("@package/databases").DistributionType;
|
|
11426
|
+
subType: number | null;
|
|
11427
|
+
rewardTokenId: string;
|
|
11428
|
+
amount: string;
|
|
11429
|
+
opportunityId: string;
|
|
11430
|
+
startTimestamp: bigint;
|
|
11431
|
+
endTimestamp: bigint;
|
|
11432
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
11433
|
+
description: string | null;
|
|
11434
|
+
dailyRewards: number;
|
|
11435
|
+
apr: number;
|
|
11436
|
+
creatorAddress: string;
|
|
11437
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
11438
|
+
createdAt: Date;
|
|
11439
|
+
rootCampaignId: string | null;
|
|
11440
|
+
parentCampaignId: string | null;
|
|
11441
|
+
}[];
|
|
11442
|
+
Chain: {
|
|
11443
|
+
id: number;
|
|
11444
|
+
name: string;
|
|
11445
|
+
icon: string;
|
|
11446
|
+
liveCampaigns: number;
|
|
11447
|
+
endOfDisputePeriod: number;
|
|
11448
|
+
};
|
|
11449
|
+
DailyRewardsRecords: ({
|
|
11450
|
+
DailyRewardsBreakdown: ({
|
|
11451
|
+
Campaign: {
|
|
11452
|
+
CampaignStatus: {
|
|
11453
|
+
campaignId: string;
|
|
11454
|
+
computedUntil: bigint;
|
|
11455
|
+
processingStarted: bigint;
|
|
11456
|
+
status: import("@package/databases").RunStatus;
|
|
11457
|
+
preComputeStatus: import("@package/databases").RunStatus;
|
|
11458
|
+
preComputeProcessingStarted: bigint;
|
|
11459
|
+
error: string;
|
|
11460
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
11461
|
+
}[];
|
|
11462
|
+
RewardToken: {
|
|
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
|
+
amount: string;
|
|
11465
11480
|
campaignId: string;
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
preComputeStatus: import("@package/databases").RunStatus;
|
|
11470
|
-
preComputeProcessingStarted: bigint;
|
|
11471
|
-
error: string;
|
|
11472
|
-
details: import("@prisma/client/runtime/client").JsonValue;
|
|
11473
|
-
}[];
|
|
11474
|
-
RewardToken: {
|
|
11475
|
-
id: string;
|
|
11476
|
-
name: string | null;
|
|
11477
|
-
chainId: number;
|
|
11478
|
-
address: string;
|
|
11479
|
-
decimals: number;
|
|
11480
|
-
symbol: string;
|
|
11481
|
-
displaySymbol: string;
|
|
11482
|
-
icon: string;
|
|
11483
|
-
verified: boolean;
|
|
11484
|
-
isTest: boolean;
|
|
11485
|
-
type: import("@package/databases").TokenType;
|
|
11486
|
-
isNative: boolean;
|
|
11487
|
-
price: number | null;
|
|
11488
|
-
updatedAt: number | null;
|
|
11489
|
-
priceSource: string | null;
|
|
11481
|
+
distributionType: import("@package/databases").DistributionType;
|
|
11482
|
+
endTimestamp: bigint;
|
|
11483
|
+
startTimestamp: bigint;
|
|
11490
11484
|
};
|
|
11491
|
-
|
|
11485
|
+
} & {
|
|
11486
|
+
id: string;
|
|
11487
|
+
value: number;
|
|
11488
|
+
timestamp: bigint;
|
|
11492
11489
|
campaignId: string;
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
startTimestamp: bigint;
|
|
11496
|
-
};
|
|
11490
|
+
dailyRewardsRecordId: string;
|
|
11491
|
+
})[];
|
|
11497
11492
|
} & {
|
|
11498
11493
|
id: string;
|
|
11499
|
-
value: number;
|
|
11500
11494
|
timestamp: bigint;
|
|
11501
|
-
|
|
11502
|
-
|
|
11495
|
+
total: number;
|
|
11496
|
+
opportunityId: string;
|
|
11503
11497
|
})[];
|
|
11504
|
-
|
|
11505
|
-
id: string;
|
|
11506
|
-
timestamp: bigint;
|
|
11507
|
-
total: number;
|
|
11508
|
-
opportunityId: string;
|
|
11509
|
-
})[];
|
|
11510
|
-
MainProtocol: {
|
|
11511
|
-
id: string;
|
|
11512
|
-
tags: string[];
|
|
11513
|
-
name: string;
|
|
11514
|
-
description: string;
|
|
11515
|
-
url: string;
|
|
11516
|
-
icon: string;
|
|
11517
|
-
banner: string | null;
|
|
11518
|
-
opportunityBannerLight: string | null;
|
|
11519
|
-
opportunityBannerDark: string | null;
|
|
11520
|
-
} | null;
|
|
11521
|
-
NativeAprRecords: ({
|
|
11522
|
-
RewardToken: {
|
|
11498
|
+
MainProtocol: {
|
|
11523
11499
|
id: string;
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
symbol: string;
|
|
11529
|
-
displaySymbol: string;
|
|
11500
|
+
tags: string[];
|
|
11501
|
+
name: string;
|
|
11502
|
+
description: string;
|
|
11503
|
+
url: string;
|
|
11530
11504
|
icon: string;
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
isNative: boolean;
|
|
11535
|
-
price: number | null;
|
|
11536
|
-
updatedAt: number | null;
|
|
11537
|
-
priceSource: string | null;
|
|
11505
|
+
banner: string | null;
|
|
11506
|
+
opportunityBannerLight: string | null;
|
|
11507
|
+
opportunityBannerDark: string | null;
|
|
11538
11508
|
} | null;
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11509
|
+
NativeAprRecords: ({
|
|
11510
|
+
RewardToken: {
|
|
11511
|
+
id: string;
|
|
11512
|
+
name: string | null;
|
|
11513
|
+
chainId: number;
|
|
11514
|
+
address: string;
|
|
11515
|
+
decimals: number;
|
|
11516
|
+
symbol: string;
|
|
11517
|
+
displaySymbol: string;
|
|
11518
|
+
icon: string;
|
|
11519
|
+
verified: boolean;
|
|
11520
|
+
isTest: boolean;
|
|
11521
|
+
type: import("@package/databases").TokenType;
|
|
11522
|
+
isNative: boolean;
|
|
11523
|
+
price: number | null;
|
|
11524
|
+
updatedAt: number | null;
|
|
11525
|
+
priceSource: string | null;
|
|
11526
|
+
} | null;
|
|
11527
|
+
} & {
|
|
11528
|
+
id: string;
|
|
11529
|
+
title: string;
|
|
11530
|
+
description: string | null;
|
|
11531
|
+
timestamp: bigint;
|
|
11532
|
+
value: number;
|
|
11533
|
+
amount: bigint | null;
|
|
11534
|
+
rewardTokenId: string | null;
|
|
11535
|
+
opportunityId: string;
|
|
11536
|
+
})[];
|
|
11537
|
+
Protocols: {
|
|
11538
|
+
id: string;
|
|
11539
|
+
tags: string[];
|
|
11540
|
+
name: string;
|
|
11541
|
+
description: string;
|
|
11542
|
+
url: string;
|
|
11543
|
+
icon: string;
|
|
11544
|
+
banner: string | null;
|
|
11545
|
+
opportunityBannerLight: string | null;
|
|
11546
|
+
opportunityBannerDark: string | null;
|
|
11547
|
+
}[];
|
|
11548
|
+
Tokens: {
|
|
11549
|
+
id: string;
|
|
11550
|
+
name: string | null;
|
|
11551
|
+
chainId: number;
|
|
11552
|
+
address: string;
|
|
11553
|
+
decimals: number;
|
|
11554
|
+
symbol: string;
|
|
11555
|
+
displaySymbol: string;
|
|
11556
|
+
icon: string;
|
|
11557
|
+
verified: boolean;
|
|
11558
|
+
isTest: boolean;
|
|
11559
|
+
type: import("@package/databases").TokenType;
|
|
11560
|
+
isNative: boolean;
|
|
11561
|
+
price: number | null;
|
|
11562
|
+
updatedAt: number | null;
|
|
11563
|
+
priceSource: string | null;
|
|
11564
|
+
}[];
|
|
11565
|
+
TvlRecords: ({
|
|
11566
|
+
TvlBreakdown: {
|
|
11567
|
+
identifier: string;
|
|
11568
|
+
type: import("@package/databases").TvlType;
|
|
11569
|
+
value: number;
|
|
11570
|
+
}[];
|
|
11571
|
+
} & {
|
|
11572
|
+
id: string;
|
|
11573
|
+
timestamp: bigint;
|
|
11574
|
+
total: number;
|
|
11575
|
+
opportunityId: string;
|
|
11576
|
+
})[];
|
|
11577
|
+
} & {
|
|
11550
11578
|
id: string;
|
|
11551
|
-
|
|
11579
|
+
chainId: number;
|
|
11580
|
+
type: string;
|
|
11581
|
+
identifier: string;
|
|
11552
11582
|
name: string;
|
|
11553
11583
|
description: string;
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
isNative: boolean;
|
|
11573
|
-
price: number | null;
|
|
11574
|
-
updatedAt: number | null;
|
|
11575
|
-
priceSource: string | null;
|
|
11576
|
-
}[];
|
|
11577
|
-
TvlRecords: ({
|
|
11578
|
-
TvlBreakdown: {
|
|
11584
|
+
howToSteps: string[];
|
|
11585
|
+
depositUrl: string | null;
|
|
11586
|
+
explorerAddress: string | null;
|
|
11587
|
+
status: import("@package/databases").Status;
|
|
11588
|
+
action: import("@package/databases").OpportunityAction;
|
|
11589
|
+
mainProtocolId: string | null;
|
|
11590
|
+
tvl: number;
|
|
11591
|
+
apr: number;
|
|
11592
|
+
nativeApr: number | null;
|
|
11593
|
+
maxApr: number | null;
|
|
11594
|
+
dailyRewards: number;
|
|
11595
|
+
tags: string[];
|
|
11596
|
+
lastCampaignCreatedAt: Date;
|
|
11597
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
11598
|
+
liveCampaigns: number;
|
|
11599
|
+
});
|
|
11600
|
+
tvl: {
|
|
11601
|
+
breakdowns: ({
|
|
11579
11602
|
identifier: string;
|
|
11580
11603
|
type: import("@package/databases").TvlType;
|
|
11581
11604
|
value: number;
|
|
11582
|
-
}[];
|
|
11583
|
-
} & {
|
|
11584
|
-
id: string;
|
|
11605
|
+
} & {})[];
|
|
11585
11606
|
timestamp: bigint;
|
|
11586
11607
|
total: number;
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
name: string;
|
|
11595
|
-
description: string;
|
|
11596
|
-
howToSteps: string[];
|
|
11597
|
-
depositUrl: string | null;
|
|
11598
|
-
explorerAddress: string | null;
|
|
11599
|
-
status: import("@package/databases").Status;
|
|
11600
|
-
action: import("@package/databases").OpportunityAction;
|
|
11601
|
-
mainProtocolId: string | null;
|
|
11602
|
-
tvl: number;
|
|
11603
|
-
apr: number;
|
|
11604
|
-
nativeApr: number | null;
|
|
11605
|
-
maxApr: number | null;
|
|
11606
|
-
dailyRewards: number;
|
|
11607
|
-
tags: string[];
|
|
11608
|
-
lastCampaignCreatedAt: Date;
|
|
11609
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
11610
|
-
liveCampaigns: number;
|
|
11611
|
-
});
|
|
11612
|
-
tvl: {
|
|
11613
|
-
breakdowns: ({
|
|
11614
|
-
identifier: string;
|
|
11615
|
-
type: import("@package/databases").TvlType;
|
|
11616
|
-
value: number;
|
|
11617
|
-
} & {})[];
|
|
11618
|
-
timestamp: bigint;
|
|
11619
|
-
total: number;
|
|
11620
|
-
} & {};
|
|
11621
|
-
name?: undefined;
|
|
11622
|
-
}>;
|
|
11608
|
+
} & {};
|
|
11609
|
+
}>;
|
|
11610
|
+
errors: {
|
|
11611
|
+
campaignId: string;
|
|
11612
|
+
error: string;
|
|
11613
|
+
}[];
|
|
11614
|
+
};
|
|
11623
11615
|
422: {
|
|
11624
11616
|
type: "validation";
|
|
11625
11617
|
on: string;
|
|
@@ -11649,147 +11641,180 @@ declare const app: Elysia<"", {
|
|
|
11649
11641
|
authorization: string;
|
|
11650
11642
|
};
|
|
11651
11643
|
response: {
|
|
11652
|
-
200:
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
opportunity?: undefined;
|
|
11658
|
-
} | {
|
|
11659
|
-
message?: undefined;
|
|
11660
|
-
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11661
|
-
opportunity: ({
|
|
11662
|
-
chainId: number;
|
|
11663
|
-
type: string;
|
|
11664
|
-
identifier: string;
|
|
11665
|
-
name?: string | undefined;
|
|
11666
|
-
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
11667
|
-
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
11668
|
-
description?: string | undefined;
|
|
11669
|
-
howToSteps?: string[] | undefined;
|
|
11670
|
-
tokens: {
|
|
11671
|
-
address: string;
|
|
11644
|
+
200: {
|
|
11645
|
+
campaigns: Record<string, {
|
|
11646
|
+
config: import("@package/resources/schemas").ExtendedConfig<import("@package/resources/enums").CampaignType>;
|
|
11647
|
+
campaign: import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").INVALID> | import("@package/resources/schemas").EngineCampaign<import("@package/resources/enums").CampaignType>;
|
|
11648
|
+
opportunity: ({
|
|
11672
11649
|
chainId: number;
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
icon: string;
|
|
11684
|
-
id: string;
|
|
11685
|
-
name: string;
|
|
11686
|
-
slug: string | null;
|
|
11687
|
-
}[];
|
|
11688
|
-
AprRecords: ({
|
|
11689
|
-
AprBreakdown: {
|
|
11690
|
-
identifier: string;
|
|
11691
|
-
timestamp: bigint;
|
|
11692
|
-
type: import("@package/databases").AprType;
|
|
11693
|
-
value: number;
|
|
11650
|
+
type: string;
|
|
11651
|
+
identifier: string;
|
|
11652
|
+
name?: string | undefined;
|
|
11653
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
11654
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
11655
|
+
description?: string | undefined;
|
|
11656
|
+
howToSteps?: string[] | undefined;
|
|
11657
|
+
tokens: {
|
|
11658
|
+
address: string;
|
|
11659
|
+
chainId: number;
|
|
11694
11660
|
}[];
|
|
11661
|
+
protocols?: string[] | undefined;
|
|
11662
|
+
mainProtocol?: string | undefined;
|
|
11663
|
+
depositUrl?: string | undefined;
|
|
11664
|
+
explorerAddress?: string | undefined;
|
|
11665
|
+
tags?: string[] | undefined;
|
|
11695
11666
|
} & {
|
|
11696
11667
|
id: string;
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11668
|
+
}) | ({
|
|
11669
|
+
ActivePrograms: {
|
|
11670
|
+
icon: string;
|
|
11671
|
+
id: string;
|
|
11672
|
+
name: string;
|
|
11673
|
+
slug: string | null;
|
|
11674
|
+
}[];
|
|
11675
|
+
AprRecords: ({
|
|
11676
|
+
AprBreakdown: {
|
|
11677
|
+
identifier: string;
|
|
11678
|
+
timestamp: bigint;
|
|
11679
|
+
type: import("@package/databases").AprType;
|
|
11680
|
+
value: number;
|
|
11681
|
+
}[];
|
|
11682
|
+
} & {
|
|
11683
|
+
id: string;
|
|
11684
|
+
timestamp: bigint;
|
|
11685
|
+
cumulated: number;
|
|
11686
|
+
opportunityId: string;
|
|
11687
|
+
})[];
|
|
11688
|
+
Campaigns: {
|
|
11689
|
+
id: string;
|
|
11690
|
+
computeChainId: number;
|
|
11691
|
+
distributionChainId: number;
|
|
11692
|
+
campaignId: string;
|
|
11693
|
+
type: string;
|
|
11694
|
+
distributionType: import("@package/databases").DistributionType;
|
|
11695
|
+
subType: number | null;
|
|
11696
|
+
rewardTokenId: string;
|
|
11697
|
+
amount: string;
|
|
11698
|
+
opportunityId: string;
|
|
11699
|
+
startTimestamp: bigint;
|
|
11700
|
+
endTimestamp: bigint;
|
|
11701
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
11702
|
+
description: string | null;
|
|
11703
|
+
dailyRewards: number;
|
|
11704
|
+
apr: number;
|
|
11705
|
+
creatorAddress: string;
|
|
11706
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
11707
|
+
createdAt: Date;
|
|
11708
|
+
rootCampaignId: string | null;
|
|
11709
|
+
parentCampaignId: string | null;
|
|
11710
|
+
}[];
|
|
11711
|
+
Chain: {
|
|
11712
|
+
id: number;
|
|
11713
|
+
name: string;
|
|
11714
|
+
icon: string;
|
|
11715
|
+
liveCampaigns: number;
|
|
11716
|
+
endOfDisputePeriod: number;
|
|
11717
|
+
};
|
|
11718
|
+
DailyRewardsRecords: ({
|
|
11719
|
+
DailyRewardsBreakdown: ({
|
|
11720
|
+
Campaign: {
|
|
11721
|
+
CampaignStatus: {
|
|
11722
|
+
campaignId: string;
|
|
11723
|
+
computedUntil: bigint;
|
|
11724
|
+
processingStarted: bigint;
|
|
11725
|
+
status: import("@package/databases").RunStatus;
|
|
11726
|
+
preComputeStatus: import("@package/databases").RunStatus;
|
|
11727
|
+
preComputeProcessingStarted: bigint;
|
|
11728
|
+
error: string;
|
|
11729
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
11730
|
+
}[];
|
|
11731
|
+
RewardToken: {
|
|
11732
|
+
id: string;
|
|
11733
|
+
name: string | null;
|
|
11734
|
+
chainId: number;
|
|
11735
|
+
address: string;
|
|
11736
|
+
decimals: number;
|
|
11737
|
+
symbol: string;
|
|
11738
|
+
displaySymbol: string;
|
|
11739
|
+
icon: string;
|
|
11740
|
+
verified: boolean;
|
|
11741
|
+
isTest: boolean;
|
|
11742
|
+
type: import("@package/databases").TokenType;
|
|
11743
|
+
isNative: boolean;
|
|
11744
|
+
price: number | null;
|
|
11745
|
+
updatedAt: number | null;
|
|
11746
|
+
priceSource: string | null;
|
|
11747
|
+
};
|
|
11748
|
+
amount: string;
|
|
11735
11749
|
campaignId: string;
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
preComputeStatus: import("@package/databases").RunStatus;
|
|
11740
|
-
preComputeProcessingStarted: bigint;
|
|
11741
|
-
error: string;
|
|
11742
|
-
details: import("@prisma/client/runtime/client").JsonValue;
|
|
11743
|
-
}[];
|
|
11744
|
-
RewardToken: {
|
|
11745
|
-
id: string;
|
|
11746
|
-
name: string | null;
|
|
11747
|
-
chainId: number;
|
|
11748
|
-
address: string;
|
|
11749
|
-
decimals: number;
|
|
11750
|
-
symbol: string;
|
|
11751
|
-
displaySymbol: string;
|
|
11752
|
-
icon: string;
|
|
11753
|
-
verified: boolean;
|
|
11754
|
-
isTest: boolean;
|
|
11755
|
-
type: import("@package/databases").TokenType;
|
|
11756
|
-
isNative: boolean;
|
|
11757
|
-
price: number | null;
|
|
11758
|
-
updatedAt: number | null;
|
|
11759
|
-
priceSource: string | null;
|
|
11750
|
+
distributionType: import("@package/databases").DistributionType;
|
|
11751
|
+
endTimestamp: bigint;
|
|
11752
|
+
startTimestamp: bigint;
|
|
11760
11753
|
};
|
|
11761
|
-
|
|
11754
|
+
} & {
|
|
11755
|
+
id: string;
|
|
11756
|
+
value: number;
|
|
11757
|
+
timestamp: bigint;
|
|
11762
11758
|
campaignId: string;
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
startTimestamp: bigint;
|
|
11766
|
-
};
|
|
11759
|
+
dailyRewardsRecordId: string;
|
|
11760
|
+
})[];
|
|
11767
11761
|
} & {
|
|
11768
11762
|
id: string;
|
|
11769
|
-
value: number;
|
|
11770
11763
|
timestamp: bigint;
|
|
11771
|
-
|
|
11772
|
-
|
|
11764
|
+
total: number;
|
|
11765
|
+
opportunityId: string;
|
|
11773
11766
|
})[];
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11767
|
+
MainProtocol: {
|
|
11768
|
+
id: string;
|
|
11769
|
+
tags: string[];
|
|
11770
|
+
name: string;
|
|
11771
|
+
description: string;
|
|
11772
|
+
url: string;
|
|
11773
|
+
icon: string;
|
|
11774
|
+
banner: string | null;
|
|
11775
|
+
opportunityBannerLight: string | null;
|
|
11776
|
+
opportunityBannerDark: string | null;
|
|
11777
|
+
} | null;
|
|
11778
|
+
NativeAprRecords: ({
|
|
11779
|
+
RewardToken: {
|
|
11780
|
+
id: string;
|
|
11781
|
+
name: string | null;
|
|
11782
|
+
chainId: number;
|
|
11783
|
+
address: string;
|
|
11784
|
+
decimals: number;
|
|
11785
|
+
symbol: string;
|
|
11786
|
+
displaySymbol: string;
|
|
11787
|
+
icon: string;
|
|
11788
|
+
verified: boolean;
|
|
11789
|
+
isTest: boolean;
|
|
11790
|
+
type: import("@package/databases").TokenType;
|
|
11791
|
+
isNative: boolean;
|
|
11792
|
+
price: number | null;
|
|
11793
|
+
updatedAt: number | null;
|
|
11794
|
+
priceSource: string | null;
|
|
11795
|
+
} | null;
|
|
11796
|
+
} & {
|
|
11797
|
+
id: string;
|
|
11798
|
+
title: string;
|
|
11799
|
+
description: string | null;
|
|
11800
|
+
timestamp: bigint;
|
|
11801
|
+
value: number;
|
|
11802
|
+
amount: bigint | null;
|
|
11803
|
+
rewardTokenId: string | null;
|
|
11804
|
+
opportunityId: string;
|
|
11805
|
+
})[];
|
|
11806
|
+
Protocols: {
|
|
11807
|
+
id: string;
|
|
11808
|
+
tags: string[];
|
|
11809
|
+
name: string;
|
|
11810
|
+
description: string;
|
|
11811
|
+
url: string;
|
|
11812
|
+
icon: string;
|
|
11813
|
+
banner: string | null;
|
|
11814
|
+
opportunityBannerLight: string | null;
|
|
11815
|
+
opportunityBannerDark: string | null;
|
|
11816
|
+
}[];
|
|
11817
|
+
Tokens: {
|
|
11793
11818
|
id: string;
|
|
11794
11819
|
name: string | null;
|
|
11795
11820
|
chainId: number;
|
|
@@ -11805,91 +11830,57 @@ declare const app: Elysia<"", {
|
|
|
11805
11830
|
price: number | null;
|
|
11806
11831
|
updatedAt: number | null;
|
|
11807
11832
|
priceSource: string | null;
|
|
11808
|
-
}
|
|
11833
|
+
}[];
|
|
11834
|
+
TvlRecords: ({
|
|
11835
|
+
TvlBreakdown: {
|
|
11836
|
+
identifier: string;
|
|
11837
|
+
type: import("@package/databases").TvlType;
|
|
11838
|
+
value: number;
|
|
11839
|
+
}[];
|
|
11840
|
+
} & {
|
|
11841
|
+
id: string;
|
|
11842
|
+
timestamp: bigint;
|
|
11843
|
+
total: number;
|
|
11844
|
+
opportunityId: string;
|
|
11845
|
+
})[];
|
|
11809
11846
|
} & {
|
|
11810
11847
|
id: string;
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
value: number;
|
|
11815
|
-
amount: bigint | null;
|
|
11816
|
-
rewardTokenId: string | null;
|
|
11817
|
-
opportunityId: string;
|
|
11818
|
-
})[];
|
|
11819
|
-
Protocols: {
|
|
11820
|
-
id: string;
|
|
11821
|
-
tags: string[];
|
|
11848
|
+
chainId: number;
|
|
11849
|
+
type: string;
|
|
11850
|
+
identifier: string;
|
|
11822
11851
|
name: string;
|
|
11823
11852
|
description: string;
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
isNative: boolean;
|
|
11843
|
-
price: number | null;
|
|
11844
|
-
updatedAt: number | null;
|
|
11845
|
-
priceSource: string | null;
|
|
11846
|
-
}[];
|
|
11847
|
-
TvlRecords: ({
|
|
11848
|
-
TvlBreakdown: {
|
|
11853
|
+
howToSteps: string[];
|
|
11854
|
+
depositUrl: string | null;
|
|
11855
|
+
explorerAddress: string | null;
|
|
11856
|
+
status: import("@package/databases").Status;
|
|
11857
|
+
action: import("@package/databases").OpportunityAction;
|
|
11858
|
+
mainProtocolId: string | null;
|
|
11859
|
+
tvl: number;
|
|
11860
|
+
apr: number;
|
|
11861
|
+
nativeApr: number | null;
|
|
11862
|
+
maxApr: number | null;
|
|
11863
|
+
dailyRewards: number;
|
|
11864
|
+
tags: string[];
|
|
11865
|
+
lastCampaignCreatedAt: Date;
|
|
11866
|
+
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
11867
|
+
liveCampaigns: number;
|
|
11868
|
+
});
|
|
11869
|
+
tvl: {
|
|
11870
|
+
breakdowns: ({
|
|
11849
11871
|
identifier: string;
|
|
11850
11872
|
type: import("@package/databases").TvlType;
|
|
11851
11873
|
value: number;
|
|
11852
|
-
}[];
|
|
11853
|
-
} & {
|
|
11854
|
-
id: string;
|
|
11874
|
+
} & {})[];
|
|
11855
11875
|
timestamp: bigint;
|
|
11856
11876
|
total: number;
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
name: string;
|
|
11865
|
-
description: string;
|
|
11866
|
-
howToSteps: string[];
|
|
11867
|
-
depositUrl: string | null;
|
|
11868
|
-
explorerAddress: string | null;
|
|
11869
|
-
status: import("@package/databases").Status;
|
|
11870
|
-
action: import("@package/databases").OpportunityAction;
|
|
11871
|
-
mainProtocolId: string | null;
|
|
11872
|
-
tvl: number;
|
|
11873
|
-
apr: number;
|
|
11874
|
-
nativeApr: number | null;
|
|
11875
|
-
maxApr: number | null;
|
|
11876
|
-
dailyRewards: number;
|
|
11877
|
-
tags: string[];
|
|
11878
|
-
lastCampaignCreatedAt: Date;
|
|
11879
|
-
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
|
11880
|
-
liveCampaigns: number;
|
|
11881
|
-
});
|
|
11882
|
-
tvl: {
|
|
11883
|
-
breakdowns: ({
|
|
11884
|
-
identifier: string;
|
|
11885
|
-
type: import("@package/databases").TvlType;
|
|
11886
|
-
value: number;
|
|
11887
|
-
} & {})[];
|
|
11888
|
-
timestamp: bigint;
|
|
11889
|
-
total: number;
|
|
11890
|
-
} & {};
|
|
11891
|
-
name?: undefined;
|
|
11892
|
-
}>;
|
|
11877
|
+
} & {};
|
|
11878
|
+
}>;
|
|
11879
|
+
errors: {
|
|
11880
|
+
campaignId: string;
|
|
11881
|
+
error: string;
|
|
11882
|
+
}[];
|
|
11883
|
+
};
|
|
11893
11884
|
422: {
|
|
11894
11885
|
type: "validation";
|
|
11895
11886
|
on: string;
|