@merkl/api 1.4.84 → 1.4.86
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 +460 -228
- 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 +471 -260
- 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 +130 -3
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +6 -3
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +7 -3
- package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -3
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +274 -9
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +74 -2
- 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 +131 -86
- package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +205 -3
- package/dist/src/modules/v4/creator/creator.model.js.map +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +0 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +3 -124
- package/dist/src/modules/v4/creator/creator.service.js.map +1 -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 +6 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +71 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +0 -7
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +33 -5
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +161 -12
- package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
- 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 +12 -1
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +0 -3
- 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 +5501 -5290
- 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
@@ -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
|
} & {
|