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