@merkl/api 1.4.85 → 1.4.87
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.d.ts +0 -9
- package/dist/src/eden/index.d.ts +187 -140
- package/dist/src/engine/deprecated/dynamicData/implementations/Hyperdrive.d.ts +0 -15
- package/dist/src/engine/deprecated/dynamicData/utils/getContractCreationBlock.d.ts +0 -1
- package/dist/src/engine/deprecated/dynamicData/utils/getFixedApr.d.ts +0 -3
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/GenericProcessor.d.ts +0 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/factoryFinder.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AaveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AnglesLiquid.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/AuraProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BEXRewardGaugeProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerGaugeProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerPoolProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/BalancerV3PoolProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/CompoundProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/FluidProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/GearboxProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HanjiVaultProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/HourglassProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/MetamorphoProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RadiantProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/RfxProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/Satlayer.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SpliceProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/StabilityProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/SturdySiloProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TemplateProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/TorosProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/WoofiProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveNPoolProcessor.d.ts +4 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/curveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/stakedCurveProcessor.d.ts +0 -1
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/xU308Processor.d.ts +0 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.d.ts +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/penpiePRT/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -2
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/StakingVaults/Equilibria/metadata.js.map +1 -1
- package/dist/src/engine/implementations/clamm/utils.d.ts +0 -1
- package/dist/src/engine/implementations/deprecated_clamm/metadata.d.ts +0 -1
- package/dist/src/engine/implementations/uniswapv4/tvl.d.ts +0 -1
- package/dist/src/engine/tvl/logStates.d.ts +0 -2
- package/dist/src/index.d.ts +187 -172
- package/dist/src/jobs/pendings.d.ts +0 -1
- package/dist/src/jobs/reward-breakdowns.d.ts +0 -1
- package/dist/src/jobs/reward-breakdowns.js.map +1 -1
- package/dist/src/jobs/rewards.d.ts +0 -1
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +0 -1
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +0 -10
- package/dist/src/libs/positions/index.d.ts +1 -2
- package/dist/src/libs/positions/prepareFetch.d.ts +1 -3
- package/dist/src/libs/positions/types.d.ts +0 -7
- package/dist/src/modules/v4/apr/apr.model.d.ts +0 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -7
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +15 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +0 -2
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +0 -3
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -3
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +15 -0
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +12 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.model.d.ts +0 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -2
- package/dist/src/modules/v4/campaignStatus/campaignStatus.model.d.ts +0 -3
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +2 -2
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.controller.d.ts +0 -1
- package/dist/src/modules/v4/carousel/carousel.controller.d.ts +18 -0
- package/dist/src/modules/v4/carousel/carousel.repository.d.ts +27 -0
- package/dist/src/modules/v4/carousel/carousel.service.d.ts +27 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +0 -1
- package/dist/src/modules/v4/chain/chain.model.d.ts +0 -3
- package/dist/src/modules/v4/claims/claims.controller.d.ts +0 -1
- package/dist/src/modules/v4/claims/claims.service.d.ts +0 -1
- package/dist/src/modules/v4/clamm/clamm.controller.d.ts +0 -2
- package/dist/src/modules/v4/clamm/clamm.service.d.ts +0 -1
- package/dist/src/modules/v4/computedValue/computedValue.formatter.d.ts +0 -1
- package/dist/src/modules/v4/computedValue/computedValue.model.d.ts +0 -3
- package/dist/src/modules/v4/config/config.controller.d.ts +3 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +3 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +3 -3
- package/dist/src/modules/v4/creator/creator.repository.d.ts +0 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +0 -1
- package/dist/src/modules/v4/enso/enso.service.d.ts +3 -0
- package/dist/src/modules/v4/euler/euler.controller.d.ts +0 -1
- package/dist/src/modules/v4/euler/euler.model.d.ts +0 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +0 -1
- package/dist/src/modules/v4/github/github.model.d.ts +0 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +3 -1
- package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +0 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +0 -1
- package/dist/src/modules/v4/node/node.model.d.ts +0 -1
- package/dist/src/modules/v4/node/node.service.d.ts +1 -3
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +24 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +9 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +6 -7
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +33 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +24 -9
- package/dist/src/modules/v4/payload/payload.controller.d.ts +9 -0
- package/dist/src/modules/v4/payload/payload.model.d.ts +2 -5
- package/dist/src/modules/v4/payload/payload.service.d.ts +12 -0
- package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +0 -1
- package/dist/src/modules/v4/priceSource/priceSource.model.d.ts +0 -2
- package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +0 -1
- package/dist/src/modules/v4/prisma/index.d.ts +2 -6
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +5789 -5790
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +2 -5
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -94
- package/dist/src/modules/v4/programPayload/subPayloads/aave.d.ts +0 -5
- package/dist/src/modules/v4/programPayload/subPayloads/bancor.d.ts +0 -26
- package/dist/src/modules/v4/programPayload/subPayloads/credix.d.ts +0 -8
- package/dist/src/modules/v4/programPayload/subPayloads/drip.d.ts +0 -5
- package/dist/src/modules/v4/programPayload/subPayloads/hypurrFi.d.ts +0 -3
- package/dist/src/modules/v4/programPayload/subPayloads/nibiru.d.ts +0 -18
- package/dist/src/modules/v4/programPayload/subPayloads/tac.d.ts +0 -59
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +15 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +3 -3
- package/dist/src/modules/v4/protocol/protocol.model.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +15 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +9 -1
- package/dist/src/modules/v4/referral/referral.controller.d.ts +0 -1
- package/dist/src/modules/v4/referral/referral.model.d.ts +0 -1
- package/dist/src/modules/v4/reward/reward.controller.d.ts +0 -108
- package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.model.d.ts +0 -4
- package/dist/src/modules/v4/reward/reward.model.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -1
- package/dist/src/modules/v4/reward/reward.repository.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +69 -0
- package/dist/src/modules/v4/router.d.ts +5217 -5202
- package/dist/src/modules/v4/token/token.controller.d.ts +0 -1
- package/dist/src/modules/v4/token/token.model.d.ts +0 -4
- package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
- package/dist/src/modules/v4/token/token.service.d.ts +2 -2
- package/dist/src/modules/v4/transaction/transaction.model.d.ts +0 -1
- package/dist/src/modules/v4/turtle/turtle.controller.d.ts +0 -1
- package/dist/src/modules/v4/turtle/turtle.service.d.ts +0 -2
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +0 -1
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +6 -2
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +0 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +15 -0
- package/dist/src/modules/v4/user/user.model.d.ts +0 -3
- package/dist/src/modules/v4/user/user.repository.d.ts +0 -1
- package/dist/src/modules/v4/user/user.service.d.ts +0 -1
- package/dist/src/plugins/errorHandler.d.ts +0 -1
- package/dist/src/routes/v3/blacklist.d.ts +0 -1
- package/dist/src/utils/bigintToString.d.ts +0 -3
- package/dist/src/utils/execute.d.ts +0 -1
- package/dist/src/utils/pagination.d.ts +0 -1
- package/dist/src/utils/parseDistributionType.d.ts +20 -20
- package/package.json +1 -1
@@ -8,7 +8,6 @@ import type { TvlRecord } from "../../../modules/v4/tvl/tvl.model";
|
|
8
8
|
import type { CreateOpportunityModel, FindManyOpportunityModel, FindOpportunityOptionsModel } from "./opportunity.model";
|
9
9
|
export declare abstract class OpportunityRepository {
|
10
10
|
#private;
|
11
|
-
// ─── Create ──────────────────────────────────────────────────────────
|
12
11
|
static create(newOpp: CreateOpportunityModel & {
|
13
12
|
id: string;
|
14
13
|
}, upsert?: boolean): Promise<{
|
@@ -19,6 +18,9 @@ export declare abstract class OpportunityRepository {
|
|
19
18
|
description: string;
|
20
19
|
url: string;
|
21
20
|
icon: string;
|
21
|
+
banner: string | null;
|
22
|
+
opportunityBannerLight: string | null;
|
23
|
+
opportunityBannerDark: string | null;
|
22
24
|
}[];
|
23
25
|
Tokens: {
|
24
26
|
id: string;
|
@@ -59,7 +61,6 @@ export declare abstract class OpportunityRepository {
|
|
59
61
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
60
62
|
liveCampaigns: number;
|
61
63
|
}>;
|
62
|
-
// ─── Find ────────────────────────────────────────────────────────────
|
63
64
|
static findUnique(id: string): Promise<({
|
64
65
|
ActivePrograms: {
|
65
66
|
icon: string;
|
@@ -182,6 +183,9 @@ export declare abstract class OpportunityRepository {
|
|
182
183
|
description: string;
|
183
184
|
url: string;
|
184
185
|
icon: string;
|
186
|
+
banner: string | null;
|
187
|
+
opportunityBannerLight: string | null;
|
188
|
+
opportunityBannerDark: string | null;
|
185
189
|
} | null;
|
186
190
|
Protocols: {
|
187
191
|
id: string;
|
@@ -190,6 +194,9 @@ export declare abstract class OpportunityRepository {
|
|
190
194
|
description: string;
|
191
195
|
url: string;
|
192
196
|
icon: string;
|
197
|
+
banner: string | null;
|
198
|
+
opportunityBannerLight: string | null;
|
199
|
+
opportunityBannerDark: string | null;
|
193
200
|
}[];
|
194
201
|
Tokens: {
|
195
202
|
id: string;
|
@@ -242,7 +249,6 @@ export declare abstract class OpportunityRepository {
|
|
242
249
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
243
250
|
liveCampaigns: number;
|
244
251
|
}) | null>;
|
245
|
-
// wrong return type if you include campaigns (RewardToken is missing from the return type)
|
246
252
|
static findUniqueOrThrow(id: string, query: FindOpportunityOptionsModel): Promise<{
|
247
253
|
ActivePrograms: {
|
248
254
|
icon: string;
|
@@ -347,6 +353,9 @@ export declare abstract class OpportunityRepository {
|
|
347
353
|
description: string;
|
348
354
|
url: string;
|
349
355
|
icon: string;
|
356
|
+
banner: string | null;
|
357
|
+
opportunityBannerLight: string | null;
|
358
|
+
opportunityBannerDark: string | null;
|
350
359
|
} | null;
|
351
360
|
Protocols: {
|
352
361
|
id: string;
|
@@ -355,6 +364,9 @@ export declare abstract class OpportunityRepository {
|
|
355
364
|
description: string;
|
356
365
|
url: string;
|
357
366
|
icon: string;
|
367
|
+
banner: string | null;
|
368
|
+
opportunityBannerLight: string | null;
|
369
|
+
opportunityBannerDark: string | null;
|
358
370
|
}[];
|
359
371
|
Tokens: {
|
360
372
|
id: string;
|
@@ -611,6 +623,9 @@ export declare abstract class OpportunityRepository {
|
|
611
623
|
description: string;
|
612
624
|
url: string;
|
613
625
|
icon: string;
|
626
|
+
banner: string | null;
|
627
|
+
opportunityBannerLight: string | null;
|
628
|
+
opportunityBannerDark: string | null;
|
614
629
|
} | null;
|
615
630
|
Protocols: {
|
616
631
|
id: string;
|
@@ -619,6 +634,9 @@ export declare abstract class OpportunityRepository {
|
|
619
634
|
description: string;
|
620
635
|
url: string;
|
621
636
|
icon: string;
|
637
|
+
banner: string | null;
|
638
|
+
opportunityBannerLight: string | null;
|
639
|
+
opportunityBannerDark: string | null;
|
622
640
|
}[];
|
623
641
|
Tokens: {
|
624
642
|
id: string;
|
@@ -782,6 +800,9 @@ export declare abstract class OpportunityRepository {
|
|
782
800
|
description: string;
|
783
801
|
url: string;
|
784
802
|
icon: string;
|
803
|
+
banner: string | null;
|
804
|
+
opportunityBannerLight: string | null;
|
805
|
+
opportunityBannerDark: string | null;
|
785
806
|
} | null;
|
786
807
|
Protocols: {
|
787
808
|
id: string;
|
@@ -790,6 +811,9 @@ export declare abstract class OpportunityRepository {
|
|
790
811
|
description: string;
|
791
812
|
url: string;
|
792
813
|
icon: string;
|
814
|
+
banner: string | null;
|
815
|
+
opportunityBannerLight: string | null;
|
816
|
+
opportunityBannerDark: string | null;
|
793
817
|
}[];
|
794
818
|
Tokens: {
|
795
819
|
id: string;
|
@@ -1056,6 +1080,9 @@ export declare abstract class OpportunityRepository {
|
|
1056
1080
|
description: string;
|
1057
1081
|
url: string;
|
1058
1082
|
icon: string;
|
1083
|
+
banner: string | null;
|
1084
|
+
opportunityBannerLight: string | null;
|
1085
|
+
opportunityBannerDark: string | null;
|
1059
1086
|
} | null;
|
1060
1087
|
Protocols: {
|
1061
1088
|
id: string;
|
@@ -1064,6 +1091,9 @@ export declare abstract class OpportunityRepository {
|
|
1064
1091
|
description: string;
|
1065
1092
|
url: string;
|
1066
1093
|
icon: string;
|
1094
|
+
banner: string | null;
|
1095
|
+
opportunityBannerLight: string | null;
|
1096
|
+
opportunityBannerDark: string | null;
|
1067
1097
|
}[];
|
1068
1098
|
Tokens: {
|
1069
1099
|
id: string;
|
@@ -1116,7 +1146,6 @@ export declare abstract class OpportunityRepository {
|
|
1116
1146
|
manualOverrides: import("@package/databases").OpportunityManualOverride[];
|
1117
1147
|
liveCampaigns: number;
|
1118
1148
|
})[]>;
|
1119
|
-
// ─── Update ──────────────────────────────────────────────────────────
|
1120
1149
|
/**
|
1121
1150
|
* Updates Apr, Tvl and DailyRewards records
|
1122
1151
|
* @param opportunityId
|
@@ -1206,7 +1235,6 @@ export declare abstract class OpportunityRepository {
|
|
1206
1235
|
liveCampaigns: number;
|
1207
1236
|
}>;
|
1208
1237
|
static updateMany(ids: string[], data: OpportunityUpdateArgs["data"]): Promise<Prisma.BatchPayload>;
|
1209
|
-
// ─── Aggregation ─────────────────────────────────────────────────────
|
1210
1238
|
static aggregateSum(field: keyof Prisma.OpportunitySumAggregateInputType, query: FindManyOpportunityModel): Promise<{
|
1211
1239
|
sum: string;
|
1212
1240
|
}>;
|
@@ -99,9 +99,6 @@ export declare abstract class OpportunityService {
|
|
99
99
|
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "elyx" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "levva" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "penpie" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "snap" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "steer" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
100
100
|
description: string;
|
101
101
|
howToSteps: string[];
|
102
|
-
// If creator has specified a deposit URL, use it
|
103
|
-
// Else if we have the specific logic to handle the deposit URL, use it
|
104
|
-
// Else if the protocol has a deposit URL, use it
|
105
102
|
depositUrl: string | undefined;
|
106
103
|
explorerAddress: string | undefined;
|
107
104
|
tags: string[];
|
@@ -113,6 +110,9 @@ export declare abstract class OpportunityService {
|
|
113
110
|
description: string;
|
114
111
|
url: string;
|
115
112
|
icon: string;
|
113
|
+
banner: string | null;
|
114
|
+
opportunityBannerLight: string | null;
|
115
|
+
opportunityBannerDark: string | null;
|
116
116
|
}[];
|
117
117
|
Tokens: {
|
118
118
|
id: string;
|
@@ -188,9 +188,6 @@ export declare abstract class OpportunityService {
|
|
188
188
|
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "elyx" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "levva" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "penpie" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "snap" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "steer" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
189
189
|
description: string;
|
190
190
|
howToSteps: string[];
|
191
|
-
// If creator has specified a deposit URL, use it
|
192
|
-
// Else if we have the specific logic to handle the deposit URL, use it
|
193
|
-
// Else if the protocol has a deposit URL, use it
|
194
191
|
depositUrl: string | undefined;
|
195
192
|
explorerAddress: string | undefined;
|
196
193
|
tags: string[];
|
@@ -202,6 +199,9 @@ export declare abstract class OpportunityService {
|
|
202
199
|
description: string;
|
203
200
|
url: string;
|
204
201
|
icon: string;
|
202
|
+
banner: string | null;
|
203
|
+
opportunityBannerLight: string | null;
|
204
|
+
opportunityBannerDark: string | null;
|
205
205
|
}[];
|
206
206
|
Tokens: {
|
207
207
|
id: string;
|
@@ -276,9 +276,6 @@ export declare abstract class OpportunityService {
|
|
276
276
|
mainProtocol: "aave" | "aerodrome" | "ajna" | "akron" | "ambient" | "angles" | "arrakis" | "arthswap" | "aura" | "avalon" | "badger" | "balancer" | "base-swap" | "beefy" | "beraborrow" | "beratrax" | "bunni" | "camelot" | "cian" | "compound" | "concrete" | "cross_curve" | "crust" | "curve" | "curveNPool" | "dlend" | "dolomite" | "dragonswap" | "eigenlayer" | "ekubo" | "elyx" | "enzyme" | "equalizer" | "equilibria" | "euler" | "fenix" | "filament" | "fluid" | "frax" | "fraxlend" | "gamma" | "gammaswap" | "gearbox" | "hanji" | "holdstation" | "horiza" | "hourglass" | "hybra-pair" | "hyperdrive" | "hypurrfi" | "ichi" | "iguana" | "ion" | "ionic" | "ironclad" | "izumi" | "katana" | "kim" | "koi" | "kyo" | "lagoon" | "layerbank" | "lendle" | "levva" | "lnd" | "maha" | "mangrove" | "maverick" | "mimswap" | "moonwell" | "morpho" | "neptune" | "oku" | "oxium" | "pancake-swap" | "pendle" | "penpie" | "pinto" | "poolside" | "puffer" | "punchswap" | "quickswap" | "ra" | "radiant" | "ramses" | "reactor_fusion" | "reserve" | "retro" | "rfx" | "sake" | "satlayer" | "satoshi" | "silo" | "snap" | "sonex" | "sonicmarket" | "spectra" | "splice" | "stability" | "stabull" | "steer" | "stryke" | "sturdy" | "summerfinance" | "superlend" | "supswap" | "sushi-swap" | "swap-x" | "swapr" | "syncswap" | "tako-tako" | "teller" | "tempest" | "termmax" | "thirdtrade" | "thruster" | "toros" | "trader-joe" | "uniswap" | "uranium" | "veda" | "velodrome" | "venus" | "vest" | "vicuna" | "voltage" | "woofi" | "xlend" | "yei" | "zero" | "zerolend" | "zk-swap" | "zkSwapThreePool" | undefined;
|
277
277
|
description: string;
|
278
278
|
howToSteps: string[];
|
279
|
-
// If creator has specified a deposit URL, use it
|
280
|
-
// Else if we have the specific logic to handle the deposit URL, use it
|
281
|
-
// Else if the protocol has a deposit URL, use it
|
282
279
|
depositUrl: string | undefined;
|
283
280
|
explorerAddress: string | undefined;
|
284
281
|
tags: string[];
|
@@ -290,6 +287,9 @@ export declare abstract class OpportunityService {
|
|
290
287
|
description: string;
|
291
288
|
url: string;
|
292
289
|
icon: string;
|
290
|
+
banner: string | null;
|
291
|
+
opportunityBannerLight: string | null;
|
292
|
+
opportunityBannerDark: string | null;
|
293
293
|
}[];
|
294
294
|
Tokens: {
|
295
295
|
id: string;
|
@@ -501,6 +501,9 @@ export declare abstract class OpportunityService {
|
|
501
501
|
dailyRewards?: number | undefined;
|
502
502
|
numberOfLiveCampaigns?: number | undefined;
|
503
503
|
opportunityLiveTags?: string[] | undefined;
|
504
|
+
banner: string | null;
|
505
|
+
opportunityBannerLight: string | null;
|
506
|
+
opportunityBannerDark: string | null;
|
504
507
|
} | null | undefined;
|
505
508
|
rewardsRecord?: {
|
506
509
|
total: number;
|
@@ -688,6 +691,9 @@ export declare abstract class OpportunityService {
|
|
688
691
|
description: string;
|
689
692
|
url: string;
|
690
693
|
icon: string;
|
694
|
+
banner: string | null;
|
695
|
+
opportunityBannerLight: string | null;
|
696
|
+
opportunityBannerDark: string | null;
|
691
697
|
} | undefined;
|
692
698
|
activePrograms: {
|
693
699
|
icon: string;
|
@@ -735,6 +741,9 @@ export declare abstract class OpportunityService {
|
|
735
741
|
description: string;
|
736
742
|
url: string;
|
737
743
|
icon: string;
|
744
|
+
banner: string | null;
|
745
|
+
opportunityBannerLight: string | null;
|
746
|
+
opportunityBannerDark: string | null;
|
738
747
|
} | undefined;
|
739
748
|
activePrograms: {
|
740
749
|
icon: string;
|
@@ -897,6 +906,9 @@ export declare abstract class OpportunityService {
|
|
897
906
|
description: string;
|
898
907
|
url: string;
|
899
908
|
icon: string;
|
909
|
+
banner: string | null;
|
910
|
+
opportunityBannerLight: string | null;
|
911
|
+
opportunityBannerDark: string | null;
|
900
912
|
} | undefined;
|
901
913
|
activePrograms: {
|
902
914
|
icon: string;
|
@@ -944,6 +956,9 @@ export declare abstract class OpportunityService {
|
|
944
956
|
description: string;
|
945
957
|
url: string;
|
946
958
|
icon: string;
|
959
|
+
banner: string | null;
|
960
|
+
opportunityBannerLight: string | null;
|
961
|
+
opportunityBannerDark: string | null;
|
947
962
|
} | undefined;
|
948
963
|
activePrograms: {
|
949
964
|
icon: string;
|
@@ -104,6 +104,9 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
104
104
|
description: string;
|
105
105
|
url: string;
|
106
106
|
icon: string;
|
107
|
+
banner: string | null;
|
108
|
+
opportunityBannerLight: string | null;
|
109
|
+
opportunityBannerDark: string | null;
|
107
110
|
}[];
|
108
111
|
Tokens: {
|
109
112
|
id: string;
|
@@ -238,6 +241,9 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
238
241
|
description: string;
|
239
242
|
url: string;
|
240
243
|
icon: string;
|
244
|
+
banner: string | null;
|
245
|
+
opportunityBannerLight: string | null;
|
246
|
+
opportunityBannerDark: string | null;
|
241
247
|
}[];
|
242
248
|
Tokens: {
|
243
249
|
id: string;
|
@@ -368,6 +374,9 @@ export declare const PayloadController: Elysia<"/payload", {
|
|
368
374
|
description: string;
|
369
375
|
url: string;
|
370
376
|
icon: string;
|
377
|
+
banner: string | null;
|
378
|
+
opportunityBannerLight: string | null;
|
379
|
+
opportunityBannerDark: string | null;
|
371
380
|
}[];
|
372
381
|
Tokens: {
|
373
382
|
id: string;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { CampaignType, ChainId, CompFork, CompoundSubCampaignType, ComputeCurveMethod, ComputeScoreMethod, Forwarder, HookType, MorphoSubCampaignType } from "@package/resources/enums";
|
2
2
|
import type { ComputeCurveParameters, ComputeScoreParameters, ForwarderConfig, Hook } from "@package/resources/schemas";
|
3
3
|
import type { LockerEventSchema } from "@package/sdk";
|
4
|
-
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
5
4
|
export declare const CampaignPayloadInputDto: import("@sinclair/typebox").TObject<{
|
6
5
|
campaign: import("@sinclair/typebox").TString;
|
7
6
|
program: import("@sinclair/typebox").TString;
|
@@ -80,7 +79,6 @@ export declare const SafeFileDto: import("@sinclair/typebox").TObject<{
|
|
80
79
|
}>>;
|
81
80
|
}>;
|
82
81
|
export declare const CampaignAmountsInputDto: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
83
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
84
82
|
export type CampaignPayloadInputModel = typeof CampaignPayloadInputDto.static;
|
85
83
|
export type ProgramPayloadInputModel = typeof ProgramPayloadInputDto.static;
|
86
84
|
export type CampaignAmountsInputModel = typeof CampaignAmountsInputDto.static;
|
@@ -262,11 +260,10 @@ export type partialConfigLocker = {
|
|
262
260
|
computeScoreParameters: ComputeScoreParameters<ComputeScoreMethod> | string;
|
263
261
|
curveParameters: ComputeCurveParameters<ComputeCurveMethod>;
|
264
262
|
hasSlots: boolean;
|
265
|
-
lockEvent: LockerEventSchema;
|
266
|
-
unlockEvent: LockerEventSchema;
|
263
|
+
lockEvent: LockerEventSchema;
|
264
|
+
unlockEvent: LockerEventSchema;
|
267
265
|
};
|
268
266
|
export type partialConfig = partialConfigERC20 | partialConfigMorpho | partialConfigCLAMM | partialConfigIonic | partialConfigCompoundV3 | partialConfigMultiLog | partialConfigLocker | partialConfigAirdrop | partialConfigERC20FixedAPR;
|
269
|
-
// ---- Template below ----
|
270
267
|
export declare const safeTemplate: {
|
271
268
|
version: string;
|
272
269
|
chainId: string;
|
@@ -61,6 +61,9 @@ export declare class PayloadService {
|
|
61
61
|
description: string;
|
62
62
|
url: string;
|
63
63
|
icon: string;
|
64
|
+
banner: string | null;
|
65
|
+
opportunityBannerLight: string | null;
|
66
|
+
opportunityBannerDark: string | null;
|
64
67
|
}[];
|
65
68
|
Tokens: {
|
66
69
|
id: string;
|
@@ -165,6 +168,9 @@ export declare class PayloadService {
|
|
165
168
|
description: string;
|
166
169
|
url: string;
|
167
170
|
icon: string;
|
171
|
+
banner: string | null;
|
172
|
+
opportunityBannerLight: string | null;
|
173
|
+
opportunityBannerDark: string | null;
|
168
174
|
}[];
|
169
175
|
Tokens: {
|
170
176
|
id: string;
|
@@ -266,6 +272,9 @@ export declare class PayloadService {
|
|
266
272
|
description: string;
|
267
273
|
url: string;
|
268
274
|
icon: string;
|
275
|
+
banner: string | null;
|
276
|
+
opportunityBannerLight: string | null;
|
277
|
+
opportunityBannerDark: string | null;
|
269
278
|
}[];
|
270
279
|
Tokens: {
|
271
280
|
id: string;
|
@@ -367,6 +376,9 @@ export declare class PayloadService {
|
|
367
376
|
description: string;
|
368
377
|
url: string;
|
369
378
|
icon: string;
|
379
|
+
banner: string | null;
|
380
|
+
opportunityBannerLight: string | null;
|
381
|
+
opportunityBannerDark: string | null;
|
370
382
|
}[];
|
371
383
|
Tokens: {
|
372
384
|
id: string;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
2
1
|
export declare const CreatePriceSourceDto: import("@sinclair/typebox").TObject<{
|
3
2
|
addressOrSymbol: import("@sinclair/typebox").TString;
|
4
3
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -38,7 +37,6 @@ export declare const UpdatePriceSourceDto: import("@sinclair/typebox").TObject<{
|
|
38
37
|
export declare const PriceSourceUniqueDto: import("@sinclair/typebox").TObject<{
|
39
38
|
addressOrSymbol: import("@sinclair/typebox").TString;
|
40
39
|
}>;
|
41
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
42
40
|
export type CreatePriceSourceModel = typeof CreatePriceSourceDto.static;
|
43
41
|
export type PriceSourceUniqueModel = typeof PriceSourceUniqueDto.static;
|
44
42
|
export type UpdatePriceSourceModel = typeof UpdatePriceSourceDto.static;
|
@@ -4,7 +4,6 @@ import type { CreatePriceSourceModel, UpdatePriceSourceModel } from "./priceSour
|
|
4
4
|
export declare class PriceSourceService {
|
5
5
|
/** Fetches a single price */
|
6
6
|
static fetchPrice(addressOrSymbol: string, allowedPriceDelay?: number): Promise<number | undefined>;
|
7
|
-
// ─── Price Sources ───────────────────────────────────────────────────
|
8
7
|
static findUnique(addressOrSymbol: string): Promise<{
|
9
8
|
id: number;
|
10
9
|
type: PriceSourceType;
|
@@ -18,9 +18,7 @@ type OptionalKeysAPI<Obj> = keyof {
|
|
18
18
|
* const user: User["modelAPI"] = {...}
|
19
19
|
* const userDbRaw: User["raw"] = {...}
|
20
20
|
*/
|
21
|
-
export type ResourceAPI<Schema extends keyof PrismaAPI, DbSpecificKeys extends keyof modelAPI<Schema> | undefined = undefined,
|
22
|
-
// biome-ignore lint/complexity/noBannedTypes: autocompletes incorrectly if 'any'
|
23
|
-
Override extends {} = {}> = {
|
21
|
+
export type ResourceAPI<Schema extends keyof PrismaAPI, DbSpecificKeys extends keyof modelAPI<Schema> | undefined = undefined, Override extends {} = {}> = {
|
24
22
|
model: {
|
25
23
|
[K in Exclude<keyof modelAPI<Schema> | keyof Override, DbSpecificKeys | OptionalKeysAPI<Override>>]: K extends keyof Override ? Override[K] : K extends DbSpecificKeys ? never : K extends keyof modelAPI<Schema> ? modelAPI<Schema>[K] : never;
|
26
24
|
} & {
|
@@ -41,9 +39,7 @@ type OperationsEngine<R extends keyof PrismaEngine> = PrismaEngine[R]["operation
|
|
41
39
|
type OptionalKeysEngine<Obj> = keyof {
|
42
40
|
[Key in keyof Obj as Omit<Obj, Key> extends Obj ? Key : never]: Obj[Key];
|
43
41
|
};
|
44
|
-
export type ResourceEngine<Schema extends keyof PrismaEngine, DbSpecificKeys extends keyof modelEngine<Schema> | undefined = undefined,
|
45
|
-
// biome-ignore lint/complexity/noBannedTypes: autocompletes incorrectly if 'any'
|
46
|
-
Override extends {} = {}> = {
|
42
|
+
export type ResourceEngine<Schema extends keyof PrismaEngine, DbSpecificKeys extends keyof modelEngine<Schema> | undefined = undefined, Override extends {} = {}> = {
|
47
43
|
model: {
|
48
44
|
[K in Exclude<keyof modelEngine<Schema> | keyof Override, DbSpecificKeys | OptionalKeysEngine<Override>>]: K extends keyof Override ? Override[K] : K extends DbSpecificKeys ? never : K extends keyof modelEngine<Schema> ? modelEngine<Schema>[K] : never;
|
49
45
|
} & {
|