@merkl/api 1.4.85 → 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 +154 -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 +154 -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 +6 -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 +0 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +0 -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 +6 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +9 -0
- 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 +21 -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 +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 +5184 -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
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { ResourceAPI } from "../../../modules/v4/prisma";
|
2
|
-
// ─── Schemas ─────────────────────────────────────────────────────────────────
|
3
2
|
/**
|
4
3
|
* Token
|
5
4
|
* @description Data of an onchain asset
|
@@ -16,7 +15,6 @@ export type TokenUnique = {
|
|
16
15
|
chainId: number;
|
17
16
|
address: string;
|
18
17
|
};
|
19
|
-
// ─── Dtos ────────────────────────────────────────────────────────────────────
|
20
18
|
export declare const TokenResourceDto: import("@sinclair/typebox").TObject<{
|
21
19
|
id: import("@sinclair/typebox").TString;
|
22
20
|
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
@@ -85,7 +83,6 @@ export declare const UpdateTokenDto: import("@sinclair/typebox").TObject<{
|
|
85
83
|
}>>;
|
86
84
|
verified: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
87
85
|
icon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
88
|
-
// iconFile: t.Optional(t.File()),
|
89
86
|
displaySymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
90
87
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
91
88
|
}>;
|
@@ -136,7 +133,6 @@ export declare const NotionWebhookAddTokenDto: import("@sinclair/typebox").TObje
|
|
136
133
|
}>;
|
137
134
|
}>;
|
138
135
|
}>;
|
139
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
140
136
|
export type TokenModel = typeof TokenDto.static;
|
141
137
|
export type GetTokenQueryModel = typeof GetTokenQueryDto.static;
|
142
138
|
export type UpdateTokenModel = typeof UpdateTokenDto.static;
|
@@ -113,7 +113,7 @@ export declare abstract class TokenRepository {
|
|
113
113
|
price: number;
|
114
114
|
excludeAddresses?: string[];
|
115
115
|
priceSource?: string;
|
116
|
-
ifOlderThan?: number;
|
116
|
+
ifOlderThan?: number;
|
117
117
|
}): Promise<import("@package/databases").BatchPayload>;
|
118
118
|
/**
|
119
119
|
* Updates price of tokens that share the same address
|
@@ -126,7 +126,7 @@ export declare abstract class TokenRepository {
|
|
126
126
|
price: number;
|
127
127
|
chainId?: number;
|
128
128
|
priceSource?: string;
|
129
|
-
ifOlderThan?: number;
|
129
|
+
ifOlderThan?: number;
|
130
130
|
}): Promise<import("@package/databases").BatchPayload>;
|
131
131
|
static updateMissingIconsPerSymbol(symbol: string, icon: string): Promise<import("@package/databases").BatchPayload>;
|
132
132
|
static fetchIconFromCoingeckoTicker(coingeckoTicker: string): Promise<any>;
|
@@ -98,7 +98,7 @@ export declare abstract class TokenService {
|
|
98
98
|
price: number;
|
99
99
|
excludeAddresses?: string[];
|
100
100
|
priceSource?: string;
|
101
|
-
ifOlderThan?: number;
|
101
|
+
ifOlderThan?: number;
|
102
102
|
}): Promise<Prisma.BatchPayload>;
|
103
103
|
/**
|
104
104
|
* Updates price of tokens that share the same address
|
@@ -111,7 +111,7 @@ export declare abstract class TokenService {
|
|
111
111
|
price: number;
|
112
112
|
chainId?: number;
|
113
113
|
priceSource?: string;
|
114
|
-
ifOlderThan?: number;
|
114
|
+
ifOlderThan?: number;
|
115
115
|
}): Promise<Prisma.BatchPayload>;
|
116
116
|
/**
|
117
117
|
* Updates price of tokens that share the same symbol
|
@@ -13,6 +13,5 @@ export declare const TransactionParametersDto: import("@sinclair/typebox").TObje
|
|
13
13
|
maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
14
14
|
nonce: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
15
15
|
}>;
|
16
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
17
16
|
export type TransactionModel = typeof TransactionDto.static;
|
18
17
|
export type TransactionParametersModel = typeof TransactionParametersDto.static;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { UserUniqueModel } from "../user/user.model";
|
2
2
|
export declare abstract class TurtleService {
|
3
|
-
// ─── Get Turtle User data ─────────────────────────────────────────────────
|
4
3
|
static getUserData(params: UserUniqueModel): Promise<{
|
5
4
|
[key: string]: {
|
6
5
|
vaultSymbol: string;
|
@@ -9,7 +8,6 @@ export declare abstract class TurtleService {
|
|
9
8
|
turtle: number;
|
10
9
|
};
|
11
10
|
}>;
|
12
|
-
// ─── Get Total Turtle Distributed ─────────────────────────────────────────
|
13
11
|
static getTotalDistributed(): Promise<{
|
14
12
|
total: number;
|
15
13
|
breakdown: {
|
@@ -13,7 +13,6 @@ export type TvlRecord = ResourceAPI<"TVLRecord", "id" | "opportunityId", {
|
|
13
13
|
* @see {@link ResourceAPI}
|
14
14
|
*/
|
15
15
|
export type TvlBreakdown = ResourceAPI<"TVLBreakdown", "id" | "tvlRecordId">;
|
16
|
-
// ─── Dtos ────────────────────────────────────────────────────────────────────
|
17
16
|
export declare const TvlBreakdownResourceDto: import("@sinclair/typebox").TObject<{
|
18
17
|
identifier: import("@sinclair/typebox").TString;
|
19
18
|
type: import("@sinclair/typebox").TEnum<{
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import Elysia from "elysia";
|
2
|
-
// ─── Uniswap V4 Pools ──────────────────────────────────────────────
|
3
2
|
export declare const UniswapController: Elysia<"uniswap", {
|
4
3
|
decorator: {};
|
5
4
|
store: {};
|
@@ -111,10 +110,13 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
111
110
|
mainProtocolId?: string | undefined;
|
112
111
|
liveCampaignsForCreator?: number | undefined;
|
113
112
|
protocol?: ({
|
113
|
+
banner: string | null;
|
114
114
|
description: string;
|
115
115
|
icon: string;
|
116
116
|
id: string;
|
117
117
|
name: string;
|
118
|
+
opportunityBannerDark: string | null;
|
119
|
+
opportunityBannerLight: string | null;
|
118
120
|
tags: string[];
|
119
121
|
url: string;
|
120
122
|
} & {
|
@@ -414,10 +416,13 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
414
416
|
mainProtocolId?: string | undefined;
|
415
417
|
liveCampaignsForCreator?: number | undefined;
|
416
418
|
protocol?: ({
|
419
|
+
banner: string | null;
|
417
420
|
description: string;
|
418
421
|
icon: string;
|
419
422
|
id: string;
|
420
423
|
name: string;
|
424
|
+
opportunityBannerDark: string | null;
|
425
|
+
opportunityBannerLight: string | null;
|
421
426
|
tags: string[];
|
422
427
|
url: string;
|
423
428
|
} & {
|
@@ -1536,7 +1541,6 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
1536
1541
|
standaloneSchema: {};
|
1537
1542
|
response: {};
|
1538
1543
|
}>;
|
1539
|
-
// ─── Ekubo Pools ────────────────────────────────────────────────
|
1540
1544
|
export declare const EkuboController: Elysia<"ekubo", {
|
1541
1545
|
decorator: {};
|
1542
1546
|
store: {};
|
@@ -82,10 +82,13 @@ export declare abstract class UniswapService {
|
|
82
82
|
mainProtocolId?: string | undefined;
|
83
83
|
liveCampaignsForCreator?: number | undefined;
|
84
84
|
protocol?: ({
|
85
|
+
banner: string | null;
|
85
86
|
description: string;
|
86
87
|
icon: string;
|
87
88
|
id: string;
|
88
89
|
name: string;
|
90
|
+
opportunityBannerDark: string | null;
|
91
|
+
opportunityBannerLight: string | null;
|
89
92
|
tags: string[];
|
90
93
|
url: string;
|
91
94
|
} & {
|
@@ -265,6 +265,9 @@ export declare const UserController: Elysia<"/users", {
|
|
265
265
|
description: string;
|
266
266
|
url: string;
|
267
267
|
icon: string;
|
268
|
+
banner: string | null;
|
269
|
+
opportunityBannerLight: string | null;
|
270
|
+
opportunityBannerDark: string | null;
|
268
271
|
} | null;
|
269
272
|
Protocols: {
|
270
273
|
id: string;
|
@@ -273,6 +276,9 @@ export declare const UserController: Elysia<"/users", {
|
|
273
276
|
description: string;
|
274
277
|
url: string;
|
275
278
|
icon: string;
|
279
|
+
banner: string | null;
|
280
|
+
opportunityBannerLight: string | null;
|
281
|
+
opportunityBannerDark: string | null;
|
276
282
|
}[];
|
277
283
|
Tokens: {
|
278
284
|
id: string;
|
@@ -378,6 +384,9 @@ export declare const UserController: Elysia<"/users", {
|
|
378
384
|
description: string;
|
379
385
|
url: string;
|
380
386
|
icon: string;
|
387
|
+
banner: string | null;
|
388
|
+
opportunityBannerLight: string | null;
|
389
|
+
opportunityBannerDark: string | null;
|
381
390
|
} | null;
|
382
391
|
Protocols: {
|
383
392
|
id: string;
|
@@ -386,6 +395,9 @@ export declare const UserController: Elysia<"/users", {
|
|
386
395
|
description: string;
|
387
396
|
url: string;
|
388
397
|
icon: string;
|
398
|
+
banner: string | null;
|
399
|
+
opportunityBannerLight: string | null;
|
400
|
+
opportunityBannerDark: string | null;
|
389
401
|
}[];
|
390
402
|
Tokens: {
|
391
403
|
id: string;
|
@@ -488,10 +500,13 @@ export declare const UserController: Elysia<"/users", {
|
|
488
500
|
mainProtocolId?: string | undefined;
|
489
501
|
liveCampaignsForCreator?: number | undefined;
|
490
502
|
protocol?: ({
|
503
|
+
banner: string | null;
|
491
504
|
description: string;
|
492
505
|
icon: string;
|
493
506
|
id: string;
|
494
507
|
name: string;
|
508
|
+
opportunityBannerDark: string | null;
|
509
|
+
opportunityBannerLight: string | null;
|
495
510
|
tags: string[];
|
496
511
|
url: string;
|
497
512
|
} & {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { ResourceAPI } from "../../../modules/v4/prisma";
|
2
|
-
// ─── Schemas ─────────────────────────────────────────────────────────────────
|
3
2
|
/**
|
4
3
|
* User
|
5
4
|
* @description A user represented by its address
|
@@ -7,7 +6,6 @@ import type { ResourceAPI } from "../../../modules/v4/prisma";
|
|
7
6
|
*/
|
8
7
|
export type User = ResourceAPI<"User">;
|
9
8
|
export type Creator = ResourceAPI<"Creator">;
|
10
|
-
// ─── Dtos ────────────────────────────────────────────────────────────────────
|
11
9
|
export declare const UserRewardRouteDto: import("@sinclair/typebox").TObject<{
|
12
10
|
chainId: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
13
11
|
reloadChainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -97,7 +95,6 @@ export declare const UserTagsDto: import("@sinclair/typebox").TObject<{
|
|
97
95
|
add: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
98
96
|
remove: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
99
97
|
}>;
|
100
|
-
// ─── Static Types ────────────────────────────────────────────────────────────
|
101
98
|
export type UserUniqueModel = typeof UserUniqueDto.static;
|
102
99
|
export type UserModel = typeof UserDto.static;
|
103
100
|
export type OptionalChainIdModel = typeof GetRewardBreakdownsDto.static;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { GetManyUserModel, UserModel, UserTagModel } from "./user.model";
|
2
|
-
// ─── Users Services ──────────────────────────────────────────────────────────
|
3
2
|
export declare abstract class UserService {
|
4
3
|
static findUnique(address: string): Promise<{
|
5
4
|
address: string;
|
@@ -4,7 +4,6 @@ import { ConflictError } from "../errors/Conflict.error";
|
|
4
4
|
import { HttpError } from "../errors/HttpError";
|
5
5
|
import { NotFoundError } from "../errors/NotFound.error";
|
6
6
|
import { UnauthorizedError } from "../errors/Unauthorized.error";
|
7
|
-
// ─── Error Handler Plugin ────────────────────────────────────────────────────
|
8
7
|
export declare const ErrorHandler: (app: Elysia<"", {
|
9
8
|
decorator: {};
|
10
9
|
store: {};
|
@@ -2,7 +2,6 @@ export declare const generatePaginationDto: (defaultItems: number, maxItems: num
|
|
2
2
|
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
3
3
|
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
4
4
|
};
|
5
|
-
// pagination by offset; might have to change to cursor based for performance
|
6
5
|
export declare const generatePaginationQuery: (query: {
|
7
6
|
page?: number | undefined;
|
8
7
|
items?: number | undefined;
|
@@ -266,6 +266,10 @@ export declare const parseDistributionType: (params: {
|
|
266
266
|
underlyingToken: string;
|
267
267
|
decimalsUnderlyingToken: number;
|
268
268
|
symbolUnderlyingToken: string;
|
269
|
+
} | {
|
270
|
+
targetToken: string;
|
271
|
+
decimalsTargetToken: number;
|
272
|
+
symbolTargetToken: string;
|
269
273
|
} | {
|
270
274
|
collateralToken: string;
|
271
275
|
decimalsCollateralToken: number;
|
@@ -288,10 +292,6 @@ export declare const parseDistributionType: (params: {
|
|
288
292
|
decimalsQuoteToken: number;
|
289
293
|
symbolBaseToken: string;
|
290
294
|
symbolQuoteToken: string;
|
291
|
-
} | {
|
292
|
-
targetToken: string;
|
293
|
-
decimalsTargetToken: number;
|
294
|
-
symbolTargetToken: string;
|
295
295
|
} | {
|
296
296
|
targetToken: string;
|
297
297
|
decimalsTargetToken: number;
|
@@ -1179,6 +1179,10 @@ export declare const parseDistributionType: (params: {
|
|
1179
1179
|
underlyingToken: string;
|
1180
1180
|
decimalsUnderlyingToken: number;
|
1181
1181
|
symbolUnderlyingToken: string;
|
1182
|
+
} | {
|
1183
|
+
targetToken: string;
|
1184
|
+
decimalsTargetToken: number;
|
1185
|
+
symbolTargetToken: string;
|
1182
1186
|
} | {
|
1183
1187
|
collateralToken: string;
|
1184
1188
|
decimalsCollateralToken: number;
|
@@ -1201,10 +1205,6 @@ export declare const parseDistributionType: (params: {
|
|
1201
1205
|
decimalsQuoteToken: number;
|
1202
1206
|
symbolBaseToken: string;
|
1203
1207
|
symbolQuoteToken: string;
|
1204
|
-
} | {
|
1205
|
-
targetToken: string;
|
1206
|
-
decimalsTargetToken: number;
|
1207
|
-
symbolTargetToken: string;
|
1208
1208
|
} | {
|
1209
1209
|
targetToken: string;
|
1210
1210
|
decimalsTargetToken: number;
|
@@ -2088,6 +2088,10 @@ export declare const parseDistributionType: (params: {
|
|
2088
2088
|
underlyingToken: string;
|
2089
2089
|
decimalsUnderlyingToken: number;
|
2090
2090
|
symbolUnderlyingToken: string;
|
2091
|
+
} | {
|
2092
|
+
targetToken: string;
|
2093
|
+
decimalsTargetToken: number;
|
2094
|
+
symbolTargetToken: string;
|
2091
2095
|
} | {
|
2092
2096
|
collateralToken: string;
|
2093
2097
|
decimalsCollateralToken: number;
|
@@ -2110,10 +2114,6 @@ export declare const parseDistributionType: (params: {
|
|
2110
2114
|
decimalsQuoteToken: number;
|
2111
2115
|
symbolBaseToken: string;
|
2112
2116
|
symbolQuoteToken: string;
|
2113
|
-
} | {
|
2114
|
-
targetToken: string;
|
2115
|
-
decimalsTargetToken: number;
|
2116
|
-
symbolTargetToken: string;
|
2117
2117
|
} | {
|
2118
2118
|
targetToken: string;
|
2119
2119
|
decimalsTargetToken: number;
|
@@ -3000,6 +3000,10 @@ export declare const parseDistributionType: (params: {
|
|
3000
3000
|
underlyingToken: string;
|
3001
3001
|
decimalsUnderlyingToken: number;
|
3002
3002
|
symbolUnderlyingToken: string;
|
3003
|
+
} | {
|
3004
|
+
targetToken: string;
|
3005
|
+
decimalsTargetToken: number;
|
3006
|
+
symbolTargetToken: string;
|
3003
3007
|
} | {
|
3004
3008
|
collateralToken: string;
|
3005
3009
|
decimalsCollateralToken: number;
|
@@ -3022,10 +3026,6 @@ export declare const parseDistributionType: (params: {
|
|
3022
3026
|
decimalsQuoteToken: number;
|
3023
3027
|
symbolBaseToken: string;
|
3024
3028
|
symbolQuoteToken: string;
|
3025
|
-
} | {
|
3026
|
-
targetToken: string;
|
3027
|
-
decimalsTargetToken: number;
|
3028
|
-
symbolTargetToken: string;
|
3029
3029
|
} | {
|
3030
3030
|
targetToken: string;
|
3031
3031
|
decimalsTargetToken: number;
|
@@ -3912,6 +3912,10 @@ export declare const parseDistributionType: (params: {
|
|
3912
3912
|
underlyingToken: string;
|
3913
3913
|
decimalsUnderlyingToken: number;
|
3914
3914
|
symbolUnderlyingToken: string;
|
3915
|
+
} | {
|
3916
|
+
targetToken: string;
|
3917
|
+
decimalsTargetToken: number;
|
3918
|
+
symbolTargetToken: string;
|
3915
3919
|
} | {
|
3916
3920
|
collateralToken: string;
|
3917
3921
|
decimalsCollateralToken: number;
|
@@ -3934,10 +3938,6 @@ export declare const parseDistributionType: (params: {
|
|
3934
3938
|
decimalsQuoteToken: number;
|
3935
3939
|
symbolBaseToken: string;
|
3936
3940
|
symbolQuoteToken: string;
|
3937
|
-
} | {
|
3938
|
-
targetToken: string;
|
3939
|
-
decimalsTargetToken: number;
|
3940
|
-
symbolTargetToken: string;
|
3941
3941
|
} | {
|
3942
3942
|
targetToken: string;
|
3943
3943
|
decimalsTargetToken: number;
|
package/package.json
CHANGED