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