@merkl/api 1.5.16 → 1.5.18
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/cache/index.js.map +1 -1
- package/dist/src/cache/redis.js.map +1 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eden/index.d.ts +7893 -6946
- package/dist/src/engine/deprecated/dynamicData/implementations/Badger.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Clamm.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Compound.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/CompoundV3.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Dolomite.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/ERC721.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/ERCMultiToken.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Radiant.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Silo.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/implementations/Vest.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchA51Strategies.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/fetchLogs.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getCompV2ForksVaults.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.js.map +1 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getEulerV2Vaults.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/EulerLendProcessor.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/UniswapProcessor.js.map +1 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/subtypesPrices.js.map +1 -1
- package/dist/src/engine/implementations/Ambient/tvl.js.map +1 -1
- package/dist/src/engine/implementations/EigenLayer/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Ekubo/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Encompassing/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/detect.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/euler/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/ipor/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/tvl.js.map +1 -1
- package/dist/src/engine/implementations/JsonAirdrop/metadata.js.map +1 -1
- package/dist/src/engine/implementations/MultiLog/metadata.js.map +1 -1
- package/dist/src/engine/implementations/MultiLog/tvl.js.map +1 -1
- package/dist/src/engine/implementations/Radiant/metadata.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/Equilibria/tvl.js.map +1 -1
- package/dist/src/engine/implementations/StakingVaults/SummerFinance/tvl.js.map +1 -1
- package/dist/src/engine/implementations/SymbioticVault/metadata.js.map +1 -1
- package/dist/src/engine/implementations/TermFinance/metadata.js.map +1 -1
- package/dist/src/engine/implementations/clamm/tvl.abstract.js.map +1 -1
- package/dist/src/engine/implementations/clamm/utils.js.map +1 -1
- package/dist/src/engine/implementations/deprecated_clamm/metadata.js.map +1 -1
- package/dist/src/engine/implementations/morphoCollateral/tvl.js.map +1 -1
- package/dist/src/engine/implementations/morphoSingleToken/tvl.js.map +1 -1
- package/dist/src/engine/implementations/uniswapv4/tvl.js.map +1 -1
- package/dist/src/index.d.ts +1188 -241
- package/dist/src/index.js.map +1 -1
- package/dist/src/jobs/delete-rewards.js.map +1 -1
- package/dist/src/jobs/pendings.js.map +1 -1
- package/dist/src/jobs/prices.js.map +1 -1
- package/dist/src/jobs/reward-breakdowns.js.map +1 -1
- package/dist/src/jobs/rewards.js.map +1 -1
- package/dist/src/jobs/update-analytics.js.map +1 -1
- package/dist/src/jobs/update-dynamic-data.js.map +1 -1
- package/dist/src/jobs/update-rpc-calls-cache.js.map +1 -1
- package/dist/src/jobs/update-v3-caches.js.map +1 -1
- package/dist/src/libs/computeFee.d.ts +759 -759
- package/dist/src/libs/deprecated-merklv3/index.js.map +1 -1
- package/dist/src/libs/getTokensList.js.map +1 -1
- package/dist/src/libs/positions/clamm/index.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.js.map +1 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.js.map +1 -1
- package/dist/src/libs/tokens/balances.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +132 -25
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +393 -75
- package/dist/src/modules/v4/campaign/campaign.test.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.js.map +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +1 -1
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.js.map +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.d.ts +8 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.service.js.map +1 -1
- package/dist/src/modules/v4/carousel/carousel.service.js.map +1 -1
- package/dist/src/modules/v4/clamm/clamm.service.js.map +1 -1
- package/dist/src/modules/v4/coingecko/coingecko.service.js.map +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.formatter.js.map +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.d.ts +140 -42
- package/dist/src/modules/v4/config/config.controller.js.map +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
- package/dist/src/modules/v4/github/github.repository.js.map +1 -1
- package/dist/src/modules/v4/github/github.service.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +262 -50
- package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.converter.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +143 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +393 -75
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.controller.d.ts +393 -75
- package/dist/src/modules/v4/payload/payload.model.d.ts +0 -62
- package/dist/src/modules/v4/payload/payload.model.js.map +1 -1
- package/dist/src/modules/v4/payload/payload.service.d.ts +524 -100
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/OnChainCallService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/coinGeckoService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/defillamaService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/dexScreenerService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/erc4626Service.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceFetchers/implementations/indexCoopService.js.map +1 -1
- package/dist/src/modules/v4/priceSource/priceSource.service.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +0 -62
- package/dist/src/modules/v4/programPayload/programPayload.model.js.map +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.service.d.ts +2 -3
- package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.service.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +1188 -241
- package/dist/src/modules/v4/token/token.service.js.map +1 -1
- package/dist/src/modules/v4/tvl/tvl.service.js.map +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.js.map +1 -1
- package/dist/src/modules/v4/user/user.service.js.map +1 -1
- package/dist/src/plugins/errorHandler.js.map +1 -1
- package/dist/src/routes/v3/lostyield.js.map +1 -1
- package/dist/src/routes/v3/overview.js.map +1 -1
- package/dist/src/routes/v3/poolInfo.js.map +1 -1
- package/dist/src/routes/v3/twt/participants.js.map +1 -1
- package/dist/src/scripts/fill-unknown-tokens.js.map +1 -1
- package/dist/src/scripts/reparse-opportunities.js.map +1 -1
- package/dist/src/types/logging.d.ts +111 -0
- package/dist/src/types/logging.js.map +1 -0
- package/dist/src/utils/execute.js.map +1 -1
- package/dist/src/utils/lastBlockBefore.js.map +1 -1
- package/dist/src/utils/parseDistributionType.d.ts +255 -255
- package/dist/src/utils/pricer.js.map +1 -1
- package/dist/src/utils/prices/priceService.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/airflow/airflow.service.d.ts +0 -3
- package/dist/src/modules/v4/airflow/airflow.service.js.map +0 -1
- package/dist/src/utils/logger.d.ts +0 -309
- package/dist/src/utils/logger.js.map +0 -1
|
@@ -20,40 +20,134 @@ export declare class PayloadService {
|
|
|
20
20
|
payload: string;
|
|
21
21
|
};
|
|
22
22
|
campaign: import("@package/resources/schemas").EngineCampaign<CampaignType> | undefined;
|
|
23
|
-
opportunity: {
|
|
24
|
-
id: string;
|
|
23
|
+
opportunity: ({
|
|
25
24
|
chainId: number;
|
|
26
25
|
type: string;
|
|
27
26
|
identifier: string;
|
|
28
|
-
name
|
|
29
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
30
|
-
action:
|
|
31
|
-
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
29
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
howToSteps?: string[] | undefined;
|
|
32
|
+
tokens: {
|
|
32
33
|
address: string;
|
|
33
34
|
chainId: number;
|
|
34
|
-
|
|
35
|
+
}[];
|
|
36
|
+
protocols?: string[] | undefined;
|
|
37
|
+
mainProtocol?: string | undefined;
|
|
38
|
+
depositUrl?: string | undefined;
|
|
39
|
+
explorerAddress?: string | undefined;
|
|
40
|
+
tags?: string[] | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
id: string;
|
|
43
|
+
}) | ({
|
|
44
|
+
ActivePrograms: {
|
|
35
45
|
icon: string;
|
|
36
46
|
id: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
name: string;
|
|
48
|
+
slug: string | null;
|
|
49
|
+
}[];
|
|
50
|
+
AprRecords: ({
|
|
51
|
+
AprBreakdown: {
|
|
52
|
+
identifier: string;
|
|
53
|
+
timestamp: bigint;
|
|
54
|
+
type: import("@package/databases").AprType;
|
|
55
|
+
value: number;
|
|
56
|
+
}[];
|
|
43
57
|
} & {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
tokenWrapperAddress?: string | undefined;
|
|
58
|
+
id: string;
|
|
59
|
+
timestamp: bigint;
|
|
60
|
+
cumulated: number;
|
|
61
|
+
opportunityId: string;
|
|
49
62
|
})[];
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
Campaigns: {
|
|
64
|
+
id: string;
|
|
65
|
+
computeChainId: number;
|
|
66
|
+
distributionChainId: number;
|
|
67
|
+
campaignId: string;
|
|
68
|
+
type: string;
|
|
69
|
+
distributionType: import("@package/databases").DistributionType;
|
|
70
|
+
subType: number | null;
|
|
71
|
+
rewardTokenId: string;
|
|
72
|
+
amount: string;
|
|
73
|
+
opportunityId: string;
|
|
74
|
+
startTimestamp: bigint;
|
|
75
|
+
endTimestamp: bigint;
|
|
76
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
77
|
+
description: string | null;
|
|
78
|
+
dailyRewards: number;
|
|
79
|
+
apr: number;
|
|
80
|
+
creatorAddress: string;
|
|
81
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
82
|
+
createdAt: Date;
|
|
83
|
+
rootCampaignId: string | null;
|
|
84
|
+
parentCampaignId: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
Chain: {
|
|
87
|
+
id: number;
|
|
88
|
+
name: string;
|
|
89
|
+
icon: string;
|
|
90
|
+
liveCampaigns: number;
|
|
91
|
+
endOfDisputePeriod: number;
|
|
92
|
+
};
|
|
93
|
+
DailyRewardsRecords: ({
|
|
94
|
+
DailyRewardsBreakdown: ({
|
|
95
|
+
Campaign: {
|
|
96
|
+
CampaignStatus: {
|
|
97
|
+
campaignId: string;
|
|
98
|
+
computedUntil: bigint;
|
|
99
|
+
processingStarted: bigint;
|
|
100
|
+
status: import("@package/databases").RunStatus;
|
|
101
|
+
error: string;
|
|
102
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
103
|
+
}[];
|
|
104
|
+
RewardToken: {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string | null;
|
|
107
|
+
chainId: number;
|
|
108
|
+
address: string;
|
|
109
|
+
decimals: number;
|
|
110
|
+
symbol: string;
|
|
111
|
+
displaySymbol: string;
|
|
112
|
+
icon: string;
|
|
113
|
+
verified: boolean;
|
|
114
|
+
isTest: boolean;
|
|
115
|
+
type: import("@package/databases").TokenType;
|
|
116
|
+
isNative: boolean;
|
|
117
|
+
price: number | null;
|
|
118
|
+
updatedAt: number | null;
|
|
119
|
+
priceSource: string | null;
|
|
120
|
+
};
|
|
121
|
+
amount: string;
|
|
122
|
+
campaignId: string;
|
|
123
|
+
distributionType: import("@package/databases").DistributionType;
|
|
124
|
+
endTimestamp: bigint;
|
|
125
|
+
startTimestamp: bigint;
|
|
126
|
+
};
|
|
127
|
+
} & {
|
|
128
|
+
id: string;
|
|
129
|
+
value: number;
|
|
130
|
+
timestamp: bigint;
|
|
131
|
+
campaignId: string;
|
|
132
|
+
dailyRewardsRecordId: string;
|
|
133
|
+
})[];
|
|
134
|
+
} & {
|
|
135
|
+
id: string;
|
|
136
|
+
timestamp: bigint;
|
|
137
|
+
total: number;
|
|
138
|
+
opportunityId: string;
|
|
139
|
+
})[];
|
|
140
|
+
MainProtocol: {
|
|
141
|
+
id: string;
|
|
142
|
+
tags: string[];
|
|
143
|
+
name: string;
|
|
144
|
+
description: string;
|
|
145
|
+
url: string;
|
|
146
|
+
icon: string;
|
|
147
|
+
banner: string | null;
|
|
148
|
+
opportunityBannerLight: string | null;
|
|
149
|
+
opportunityBannerDark: string | null;
|
|
150
|
+
} | null;
|
|
57
151
|
Protocols: {
|
|
58
152
|
id: string;
|
|
59
153
|
tags: string[];
|
|
@@ -82,6 +176,18 @@ export declare class PayloadService {
|
|
|
82
176
|
updatedAt: number | null;
|
|
83
177
|
priceSource: string | null;
|
|
84
178
|
}[];
|
|
179
|
+
TvlRecords: ({
|
|
180
|
+
TvlBreakdown: {
|
|
181
|
+
identifier: string;
|
|
182
|
+
type: import("@package/databases").TvlType;
|
|
183
|
+
value: number;
|
|
184
|
+
}[];
|
|
185
|
+
} & {
|
|
186
|
+
id: string;
|
|
187
|
+
timestamp: bigint;
|
|
188
|
+
total: number;
|
|
189
|
+
opportunityId: string;
|
|
190
|
+
})[];
|
|
85
191
|
} & {
|
|
86
192
|
id: string;
|
|
87
193
|
chainId: number;
|
|
@@ -127,40 +233,134 @@ export declare class PayloadService {
|
|
|
127
233
|
} | {
|
|
128
234
|
message?: undefined;
|
|
129
235
|
campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
|
|
130
|
-
opportunity: {
|
|
131
|
-
id: string;
|
|
236
|
+
opportunity: ({
|
|
132
237
|
chainId: number;
|
|
133
238
|
type: string;
|
|
134
239
|
identifier: string;
|
|
135
|
-
name
|
|
136
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
137
|
-
action:
|
|
138
|
-
|
|
240
|
+
name?: string | undefined;
|
|
241
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
242
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
243
|
+
description?: string | undefined;
|
|
244
|
+
howToSteps?: string[] | undefined;
|
|
245
|
+
tokens: {
|
|
139
246
|
address: string;
|
|
140
247
|
chainId: number;
|
|
141
|
-
|
|
248
|
+
}[];
|
|
249
|
+
protocols?: string[] | undefined;
|
|
250
|
+
mainProtocol?: string | undefined;
|
|
251
|
+
depositUrl?: string | undefined;
|
|
252
|
+
explorerAddress?: string | undefined;
|
|
253
|
+
tags?: string[] | undefined;
|
|
254
|
+
} & {
|
|
255
|
+
id: string;
|
|
256
|
+
}) | ({
|
|
257
|
+
ActivePrograms: {
|
|
142
258
|
icon: string;
|
|
143
259
|
id: string;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
260
|
+
name: string;
|
|
261
|
+
slug: string | null;
|
|
262
|
+
}[];
|
|
263
|
+
AprRecords: ({
|
|
264
|
+
AprBreakdown: {
|
|
265
|
+
identifier: string;
|
|
266
|
+
timestamp: bigint;
|
|
267
|
+
type: import("@package/databases").AprType;
|
|
268
|
+
value: number;
|
|
269
|
+
}[];
|
|
150
270
|
} & {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
tokenWrapperAddress?: string | undefined;
|
|
271
|
+
id: string;
|
|
272
|
+
timestamp: bigint;
|
|
273
|
+
cumulated: number;
|
|
274
|
+
opportunityId: string;
|
|
156
275
|
})[];
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
276
|
+
Campaigns: {
|
|
277
|
+
id: string;
|
|
278
|
+
computeChainId: number;
|
|
279
|
+
distributionChainId: number;
|
|
280
|
+
campaignId: string;
|
|
281
|
+
type: string;
|
|
282
|
+
distributionType: import("@package/databases").DistributionType;
|
|
283
|
+
subType: number | null;
|
|
284
|
+
rewardTokenId: string;
|
|
285
|
+
amount: string;
|
|
286
|
+
opportunityId: string;
|
|
287
|
+
startTimestamp: bigint;
|
|
288
|
+
endTimestamp: bigint;
|
|
289
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
290
|
+
description: string | null;
|
|
291
|
+
dailyRewards: number;
|
|
292
|
+
apr: number;
|
|
293
|
+
creatorAddress: string;
|
|
294
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
295
|
+
createdAt: Date;
|
|
296
|
+
rootCampaignId: string | null;
|
|
297
|
+
parentCampaignId: string | null;
|
|
298
|
+
}[];
|
|
299
|
+
Chain: {
|
|
300
|
+
id: number;
|
|
301
|
+
name: string;
|
|
302
|
+
icon: string;
|
|
303
|
+
liveCampaigns: number;
|
|
304
|
+
endOfDisputePeriod: number;
|
|
305
|
+
};
|
|
306
|
+
DailyRewardsRecords: ({
|
|
307
|
+
DailyRewardsBreakdown: ({
|
|
308
|
+
Campaign: {
|
|
309
|
+
CampaignStatus: {
|
|
310
|
+
campaignId: string;
|
|
311
|
+
computedUntil: bigint;
|
|
312
|
+
processingStarted: bigint;
|
|
313
|
+
status: import("@package/databases").RunStatus;
|
|
314
|
+
error: string;
|
|
315
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
316
|
+
}[];
|
|
317
|
+
RewardToken: {
|
|
318
|
+
id: string;
|
|
319
|
+
name: string | null;
|
|
320
|
+
chainId: number;
|
|
321
|
+
address: string;
|
|
322
|
+
decimals: number;
|
|
323
|
+
symbol: string;
|
|
324
|
+
displaySymbol: string;
|
|
325
|
+
icon: string;
|
|
326
|
+
verified: boolean;
|
|
327
|
+
isTest: boolean;
|
|
328
|
+
type: import("@package/databases").TokenType;
|
|
329
|
+
isNative: boolean;
|
|
330
|
+
price: number | null;
|
|
331
|
+
updatedAt: number | null;
|
|
332
|
+
priceSource: string | null;
|
|
333
|
+
};
|
|
334
|
+
amount: string;
|
|
335
|
+
campaignId: string;
|
|
336
|
+
distributionType: import("@package/databases").DistributionType;
|
|
337
|
+
endTimestamp: bigint;
|
|
338
|
+
startTimestamp: bigint;
|
|
339
|
+
};
|
|
340
|
+
} & {
|
|
341
|
+
id: string;
|
|
342
|
+
value: number;
|
|
343
|
+
timestamp: bigint;
|
|
344
|
+
campaignId: string;
|
|
345
|
+
dailyRewardsRecordId: string;
|
|
346
|
+
})[];
|
|
347
|
+
} & {
|
|
348
|
+
id: string;
|
|
349
|
+
timestamp: bigint;
|
|
350
|
+
total: number;
|
|
351
|
+
opportunityId: string;
|
|
352
|
+
})[];
|
|
353
|
+
MainProtocol: {
|
|
354
|
+
id: string;
|
|
355
|
+
tags: string[];
|
|
356
|
+
name: string;
|
|
357
|
+
description: string;
|
|
358
|
+
url: string;
|
|
359
|
+
icon: string;
|
|
360
|
+
banner: string | null;
|
|
361
|
+
opportunityBannerLight: string | null;
|
|
362
|
+
opportunityBannerDark: string | null;
|
|
363
|
+
} | null;
|
|
164
364
|
Protocols: {
|
|
165
365
|
id: string;
|
|
166
366
|
tags: string[];
|
|
@@ -189,6 +389,18 @@ export declare class PayloadService {
|
|
|
189
389
|
updatedAt: number | null;
|
|
190
390
|
priceSource: string | null;
|
|
191
391
|
}[];
|
|
392
|
+
TvlRecords: ({
|
|
393
|
+
TvlBreakdown: {
|
|
394
|
+
identifier: string;
|
|
395
|
+
type: import("@package/databases").TvlType;
|
|
396
|
+
value: number;
|
|
397
|
+
}[];
|
|
398
|
+
} & {
|
|
399
|
+
id: string;
|
|
400
|
+
timestamp: bigint;
|
|
401
|
+
total: number;
|
|
402
|
+
opportunityId: string;
|
|
403
|
+
})[];
|
|
192
404
|
} & {
|
|
193
405
|
id: string;
|
|
194
406
|
chainId: number;
|
|
@@ -231,40 +443,134 @@ export declare class PayloadService {
|
|
|
231
443
|
} | {
|
|
232
444
|
message?: undefined;
|
|
233
445
|
campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
|
|
234
|
-
opportunity: {
|
|
235
|
-
id: string;
|
|
446
|
+
opportunity: ({
|
|
236
447
|
chainId: number;
|
|
237
448
|
type: string;
|
|
238
449
|
identifier: string;
|
|
239
|
-
name
|
|
240
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
241
|
-
action:
|
|
242
|
-
|
|
450
|
+
name?: string | undefined;
|
|
451
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
452
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
453
|
+
description?: string | undefined;
|
|
454
|
+
howToSteps?: string[] | undefined;
|
|
455
|
+
tokens: {
|
|
243
456
|
address: string;
|
|
244
457
|
chainId: number;
|
|
245
|
-
|
|
458
|
+
}[];
|
|
459
|
+
protocols?: string[] | undefined;
|
|
460
|
+
mainProtocol?: string | undefined;
|
|
461
|
+
depositUrl?: string | undefined;
|
|
462
|
+
explorerAddress?: string | undefined;
|
|
463
|
+
tags?: string[] | undefined;
|
|
464
|
+
} & {
|
|
465
|
+
id: string;
|
|
466
|
+
}) | ({
|
|
467
|
+
ActivePrograms: {
|
|
246
468
|
icon: string;
|
|
247
469
|
id: string;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
470
|
+
name: string;
|
|
471
|
+
slug: string | null;
|
|
472
|
+
}[];
|
|
473
|
+
AprRecords: ({
|
|
474
|
+
AprBreakdown: {
|
|
475
|
+
identifier: string;
|
|
476
|
+
timestamp: bigint;
|
|
477
|
+
type: import("@package/databases").AprType;
|
|
478
|
+
value: number;
|
|
479
|
+
}[];
|
|
254
480
|
} & {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
tokenWrapperAddress?: string | undefined;
|
|
481
|
+
id: string;
|
|
482
|
+
timestamp: bigint;
|
|
483
|
+
cumulated: number;
|
|
484
|
+
opportunityId: string;
|
|
260
485
|
})[];
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
486
|
+
Campaigns: {
|
|
487
|
+
id: string;
|
|
488
|
+
computeChainId: number;
|
|
489
|
+
distributionChainId: number;
|
|
490
|
+
campaignId: string;
|
|
491
|
+
type: string;
|
|
492
|
+
distributionType: import("@package/databases").DistributionType;
|
|
493
|
+
subType: number | null;
|
|
494
|
+
rewardTokenId: string;
|
|
495
|
+
amount: string;
|
|
496
|
+
opportunityId: string;
|
|
497
|
+
startTimestamp: bigint;
|
|
498
|
+
endTimestamp: bigint;
|
|
499
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
500
|
+
description: string | null;
|
|
501
|
+
dailyRewards: number;
|
|
502
|
+
apr: number;
|
|
503
|
+
creatorAddress: string;
|
|
504
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
505
|
+
createdAt: Date;
|
|
506
|
+
rootCampaignId: string | null;
|
|
507
|
+
parentCampaignId: string | null;
|
|
508
|
+
}[];
|
|
509
|
+
Chain: {
|
|
510
|
+
id: number;
|
|
511
|
+
name: string;
|
|
512
|
+
icon: string;
|
|
513
|
+
liveCampaigns: number;
|
|
514
|
+
endOfDisputePeriod: number;
|
|
515
|
+
};
|
|
516
|
+
DailyRewardsRecords: ({
|
|
517
|
+
DailyRewardsBreakdown: ({
|
|
518
|
+
Campaign: {
|
|
519
|
+
CampaignStatus: {
|
|
520
|
+
campaignId: string;
|
|
521
|
+
computedUntil: bigint;
|
|
522
|
+
processingStarted: bigint;
|
|
523
|
+
status: import("@package/databases").RunStatus;
|
|
524
|
+
error: string;
|
|
525
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
526
|
+
}[];
|
|
527
|
+
RewardToken: {
|
|
528
|
+
id: string;
|
|
529
|
+
name: string | null;
|
|
530
|
+
chainId: number;
|
|
531
|
+
address: string;
|
|
532
|
+
decimals: number;
|
|
533
|
+
symbol: string;
|
|
534
|
+
displaySymbol: string;
|
|
535
|
+
icon: string;
|
|
536
|
+
verified: boolean;
|
|
537
|
+
isTest: boolean;
|
|
538
|
+
type: import("@package/databases").TokenType;
|
|
539
|
+
isNative: boolean;
|
|
540
|
+
price: number | null;
|
|
541
|
+
updatedAt: number | null;
|
|
542
|
+
priceSource: string | null;
|
|
543
|
+
};
|
|
544
|
+
amount: string;
|
|
545
|
+
campaignId: string;
|
|
546
|
+
distributionType: import("@package/databases").DistributionType;
|
|
547
|
+
endTimestamp: bigint;
|
|
548
|
+
startTimestamp: bigint;
|
|
549
|
+
};
|
|
550
|
+
} & {
|
|
551
|
+
id: string;
|
|
552
|
+
value: number;
|
|
553
|
+
timestamp: bigint;
|
|
554
|
+
campaignId: string;
|
|
555
|
+
dailyRewardsRecordId: string;
|
|
556
|
+
})[];
|
|
557
|
+
} & {
|
|
558
|
+
id: string;
|
|
559
|
+
timestamp: bigint;
|
|
560
|
+
total: number;
|
|
561
|
+
opportunityId: string;
|
|
562
|
+
})[];
|
|
563
|
+
MainProtocol: {
|
|
564
|
+
id: string;
|
|
565
|
+
tags: string[];
|
|
566
|
+
name: string;
|
|
567
|
+
description: string;
|
|
568
|
+
url: string;
|
|
569
|
+
icon: string;
|
|
570
|
+
banner: string | null;
|
|
571
|
+
opportunityBannerLight: string | null;
|
|
572
|
+
opportunityBannerDark: string | null;
|
|
573
|
+
} | null;
|
|
268
574
|
Protocols: {
|
|
269
575
|
id: string;
|
|
270
576
|
tags: string[];
|
|
@@ -293,6 +599,18 @@ export declare class PayloadService {
|
|
|
293
599
|
updatedAt: number | null;
|
|
294
600
|
priceSource: string | null;
|
|
295
601
|
}[];
|
|
602
|
+
TvlRecords: ({
|
|
603
|
+
TvlBreakdown: {
|
|
604
|
+
identifier: string;
|
|
605
|
+
type: import("@package/databases").TvlType;
|
|
606
|
+
value: number;
|
|
607
|
+
}[];
|
|
608
|
+
} & {
|
|
609
|
+
id: string;
|
|
610
|
+
timestamp: bigint;
|
|
611
|
+
total: number;
|
|
612
|
+
opportunityId: string;
|
|
613
|
+
})[];
|
|
296
614
|
} & {
|
|
297
615
|
id: string;
|
|
298
616
|
chainId: number;
|
|
@@ -335,40 +653,134 @@ export declare class PayloadService {
|
|
|
335
653
|
} | {
|
|
336
654
|
message?: undefined;
|
|
337
655
|
campaign: import("@package/resources/schemas").EngineCampaign<CampaignType>;
|
|
338
|
-
opportunity: {
|
|
339
|
-
id: string;
|
|
656
|
+
opportunity: ({
|
|
340
657
|
chainId: number;
|
|
341
658
|
type: string;
|
|
342
659
|
identifier: string;
|
|
343
|
-
name
|
|
344
|
-
status: "LIVE" | "PAST" | "SOON";
|
|
345
|
-
action:
|
|
346
|
-
|
|
660
|
+
name?: string | undefined;
|
|
661
|
+
status: "LIVE" | "NONE" | "PAST" | "SOON";
|
|
662
|
+
action: "BORROW" | "DROP" | "HOLD" | "INVALID" | "LEND" | "LONG" | "POOL" | "SHORT" | "STAKE" | "SWAP";
|
|
663
|
+
description?: string | undefined;
|
|
664
|
+
howToSteps?: string[] | undefined;
|
|
665
|
+
tokens: {
|
|
347
666
|
address: string;
|
|
348
667
|
chainId: number;
|
|
349
|
-
|
|
668
|
+
}[];
|
|
669
|
+
protocols?: string[] | undefined;
|
|
670
|
+
mainProtocol?: string | undefined;
|
|
671
|
+
depositUrl?: string | undefined;
|
|
672
|
+
explorerAddress?: string | undefined;
|
|
673
|
+
tags?: string[] | undefined;
|
|
674
|
+
} & {
|
|
675
|
+
id: string;
|
|
676
|
+
}) | ({
|
|
677
|
+
ActivePrograms: {
|
|
350
678
|
icon: string;
|
|
351
679
|
id: string;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
680
|
+
name: string;
|
|
681
|
+
slug: string | null;
|
|
682
|
+
}[];
|
|
683
|
+
AprRecords: ({
|
|
684
|
+
AprBreakdown: {
|
|
685
|
+
identifier: string;
|
|
686
|
+
timestamp: bigint;
|
|
687
|
+
type: import("@package/databases").AprType;
|
|
688
|
+
value: number;
|
|
689
|
+
}[];
|
|
358
690
|
} & {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
tokenWrapperAddress?: string | undefined;
|
|
691
|
+
id: string;
|
|
692
|
+
timestamp: bigint;
|
|
693
|
+
cumulated: number;
|
|
694
|
+
opportunityId: string;
|
|
364
695
|
})[];
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
696
|
+
Campaigns: {
|
|
697
|
+
id: string;
|
|
698
|
+
computeChainId: number;
|
|
699
|
+
distributionChainId: number;
|
|
700
|
+
campaignId: string;
|
|
701
|
+
type: string;
|
|
702
|
+
distributionType: import("@package/databases").DistributionType;
|
|
703
|
+
subType: number | null;
|
|
704
|
+
rewardTokenId: string;
|
|
705
|
+
amount: string;
|
|
706
|
+
opportunityId: string;
|
|
707
|
+
startTimestamp: bigint;
|
|
708
|
+
endTimestamp: bigint;
|
|
709
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
710
|
+
description: string | null;
|
|
711
|
+
dailyRewards: number;
|
|
712
|
+
apr: number;
|
|
713
|
+
creatorAddress: string;
|
|
714
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
715
|
+
createdAt: Date;
|
|
716
|
+
rootCampaignId: string | null;
|
|
717
|
+
parentCampaignId: string | null;
|
|
718
|
+
}[];
|
|
719
|
+
Chain: {
|
|
720
|
+
id: number;
|
|
721
|
+
name: string;
|
|
722
|
+
icon: string;
|
|
723
|
+
liveCampaigns: number;
|
|
724
|
+
endOfDisputePeriod: number;
|
|
725
|
+
};
|
|
726
|
+
DailyRewardsRecords: ({
|
|
727
|
+
DailyRewardsBreakdown: ({
|
|
728
|
+
Campaign: {
|
|
729
|
+
CampaignStatus: {
|
|
730
|
+
campaignId: string;
|
|
731
|
+
computedUntil: bigint;
|
|
732
|
+
processingStarted: bigint;
|
|
733
|
+
status: import("@package/databases").RunStatus;
|
|
734
|
+
error: string;
|
|
735
|
+
details: import("@prisma/client/runtime/client").JsonValue;
|
|
736
|
+
}[];
|
|
737
|
+
RewardToken: {
|
|
738
|
+
id: string;
|
|
739
|
+
name: string | null;
|
|
740
|
+
chainId: number;
|
|
741
|
+
address: string;
|
|
742
|
+
decimals: number;
|
|
743
|
+
symbol: string;
|
|
744
|
+
displaySymbol: string;
|
|
745
|
+
icon: string;
|
|
746
|
+
verified: boolean;
|
|
747
|
+
isTest: boolean;
|
|
748
|
+
type: import("@package/databases").TokenType;
|
|
749
|
+
isNative: boolean;
|
|
750
|
+
price: number | null;
|
|
751
|
+
updatedAt: number | null;
|
|
752
|
+
priceSource: string | null;
|
|
753
|
+
};
|
|
754
|
+
amount: string;
|
|
755
|
+
campaignId: string;
|
|
756
|
+
distributionType: import("@package/databases").DistributionType;
|
|
757
|
+
endTimestamp: bigint;
|
|
758
|
+
startTimestamp: bigint;
|
|
759
|
+
};
|
|
760
|
+
} & {
|
|
761
|
+
id: string;
|
|
762
|
+
value: number;
|
|
763
|
+
timestamp: bigint;
|
|
764
|
+
campaignId: string;
|
|
765
|
+
dailyRewardsRecordId: string;
|
|
766
|
+
})[];
|
|
767
|
+
} & {
|
|
768
|
+
id: string;
|
|
769
|
+
timestamp: bigint;
|
|
770
|
+
total: number;
|
|
771
|
+
opportunityId: string;
|
|
772
|
+
})[];
|
|
773
|
+
MainProtocol: {
|
|
774
|
+
id: string;
|
|
775
|
+
tags: string[];
|
|
776
|
+
name: string;
|
|
777
|
+
description: string;
|
|
778
|
+
url: string;
|
|
779
|
+
icon: string;
|
|
780
|
+
banner: string | null;
|
|
781
|
+
opportunityBannerLight: string | null;
|
|
782
|
+
opportunityBannerDark: string | null;
|
|
783
|
+
} | null;
|
|
372
784
|
Protocols: {
|
|
373
785
|
id: string;
|
|
374
786
|
tags: string[];
|
|
@@ -397,6 +809,18 @@ export declare class PayloadService {
|
|
|
397
809
|
updatedAt: number | null;
|
|
398
810
|
priceSource: string | null;
|
|
399
811
|
}[];
|
|
812
|
+
TvlRecords: ({
|
|
813
|
+
TvlBreakdown: {
|
|
814
|
+
identifier: string;
|
|
815
|
+
type: import("@package/databases").TvlType;
|
|
816
|
+
value: number;
|
|
817
|
+
}[];
|
|
818
|
+
} & {
|
|
819
|
+
id: string;
|
|
820
|
+
timestamp: bigint;
|
|
821
|
+
total: number;
|
|
822
|
+
opportunityId: string;
|
|
823
|
+
})[];
|
|
400
824
|
} & {
|
|
401
825
|
id: string;
|
|
402
826
|
chainId: number;
|