@merkl/api 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/eden/index.d.ts +45 -45
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/tokenTypeToProtocolAndAction.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/metadata.d.ts +2 -1
- package/dist/src/index.d.ts +284 -284
- package/dist/src/libs/computeFee.d.ts +228 -228
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +23 -23
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +7 -7
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +6 -6
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +2 -2
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +3 -3
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +3 -3
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +4 -4
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +4 -4
- package/dist/src/modules/v4/campaignStatus/campaignStatus.controller.d.ts +7 -7
- package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +21 -21
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +19 -18
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.d.ts +2 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.repository.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.service.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +9 -8
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +3 -3
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/BadgerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ClammPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/ERC20PositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/liquidity/implementations/EulerPositionFetcher.d.ts +2 -2
- package/dist/src/modules/v4/node/node.repository.d.ts +3 -3
- package/dist/src/modules/v4/node/node.service.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +23 -23
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +38 -38
- package/dist/src/modules/v4/priceSource/priceSource.controller.d.ts +5 -5
- package/dist/src/modules/v4/priceSource/priceSource.repository.d.ts +12 -12
- package/dist/src/modules/v4/priceSource/priceSource.service.d.ts +12 -12
- package/dist/src/modules/v4/program/program.controller.d.ts +2 -2
- package/dist/src/modules/v4/program/program.repository.d.ts +2 -2
- package/dist/src/modules/v4/program/program.service.d.ts +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +248 -248
- package/dist/src/modules/v4/programPayload/subPayloads/aave.d.ts +35 -1
- package/dist/src/modules/v4/programPayload/subPayloads/aave.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +5 -5
- package/dist/src/modules/v4/reward/reward.service.d.ts +14 -14
- package/dist/src/modules/v4/router.d.ts +36 -36
- package/dist/src/modules/v4/token/token.controller.d.ts +10 -9
- package/dist/src/modules/v4/token/token.repository.d.ts +5 -5
- package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +4 -4
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +2 -2
- package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
- package/dist/src/utils/parseDistributionType.d.ts +2 -1
- package/dist/src/utils/queries/allCampaigns.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TokenType } from "@package/databases/api";
|
|
1
2
|
import Elysia from "elysia";
|
|
2
3
|
// ─── Tokens Controller ───────────────────────────────────────────────────────
|
|
3
4
|
export declare const TokenController: Elysia<"/tokens", {
|
|
@@ -40,7 +41,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
40
41
|
isTest: boolean;
|
|
41
42
|
name: string | null;
|
|
42
43
|
symbol: string;
|
|
43
|
-
type:
|
|
44
|
+
type: TokenType;
|
|
44
45
|
verified: boolean;
|
|
45
46
|
} | undefined;
|
|
46
47
|
422: {
|
|
@@ -86,7 +87,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
86
87
|
isTest: boolean;
|
|
87
88
|
name: string | null;
|
|
88
89
|
symbol: string;
|
|
89
|
-
type:
|
|
90
|
+
type: TokenType;
|
|
90
91
|
verified: boolean;
|
|
91
92
|
} | undefined;
|
|
92
93
|
422: {
|
|
@@ -126,7 +127,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
126
127
|
icon: string;
|
|
127
128
|
verified: boolean;
|
|
128
129
|
isTest: boolean;
|
|
129
|
-
type:
|
|
130
|
+
type: TokenType;
|
|
130
131
|
isNative: boolean;
|
|
131
132
|
price: number | null;
|
|
132
133
|
updatedAt: number | null;
|
|
@@ -172,7 +173,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
172
173
|
icon: string;
|
|
173
174
|
verified: boolean;
|
|
174
175
|
isTest: boolean;
|
|
175
|
-
type:
|
|
176
|
+
type: TokenType;
|
|
176
177
|
isNative: boolean;
|
|
177
178
|
price: number | null;
|
|
178
179
|
updatedAt: number | null;
|
|
@@ -218,7 +219,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
218
219
|
isTest: boolean;
|
|
219
220
|
name: string | null;
|
|
220
221
|
symbol: string;
|
|
221
|
-
type:
|
|
222
|
+
type: TokenType;
|
|
222
223
|
verified: boolean;
|
|
223
224
|
} & {
|
|
224
225
|
price?: number | null | undefined;
|
|
@@ -273,7 +274,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
273
274
|
isTest: boolean;
|
|
274
275
|
name: string | null;
|
|
275
276
|
symbol: string;
|
|
276
|
-
type:
|
|
277
|
+
type: TokenType;
|
|
277
278
|
verified: boolean;
|
|
278
279
|
} & {
|
|
279
280
|
price?: number | null | undefined;
|
|
@@ -356,7 +357,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
356
357
|
icon: string;
|
|
357
358
|
verified: boolean;
|
|
358
359
|
isTest: boolean;
|
|
359
|
-
type:
|
|
360
|
+
type: TokenType;
|
|
360
361
|
isNative: boolean;
|
|
361
362
|
price: number | null;
|
|
362
363
|
updatedAt: number | null;
|
|
@@ -403,7 +404,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
403
404
|
icon: string;
|
|
404
405
|
verified: boolean;
|
|
405
406
|
isTest: boolean;
|
|
406
|
-
type:
|
|
407
|
+
type: TokenType;
|
|
407
408
|
isNative: boolean;
|
|
408
409
|
price: number | null;
|
|
409
410
|
updatedAt: number | null;
|
|
@@ -477,7 +478,7 @@ export declare const TokenController: Elysia<"/tokens", {
|
|
|
477
478
|
icon: string;
|
|
478
479
|
verified: boolean;
|
|
479
480
|
isTest: boolean;
|
|
480
|
-
type:
|
|
481
|
+
type: TokenType;
|
|
481
482
|
isNative: boolean;
|
|
482
483
|
price: number | null;
|
|
483
484
|
updatedAt: number | null;
|
|
@@ -40,7 +40,7 @@ export declare abstract class TokenRepository {
|
|
|
40
40
|
icon: string;
|
|
41
41
|
verified: boolean;
|
|
42
42
|
isTest: boolean;
|
|
43
|
-
type:
|
|
43
|
+
type: TokenType;
|
|
44
44
|
isNative: boolean;
|
|
45
45
|
price: number | null;
|
|
46
46
|
updatedAt: number | null;
|
|
@@ -57,7 +57,7 @@ export declare abstract class TokenRepository {
|
|
|
57
57
|
icon: string;
|
|
58
58
|
verified: boolean;
|
|
59
59
|
isTest: boolean;
|
|
60
|
-
type:
|
|
60
|
+
type: TokenType;
|
|
61
61
|
isNative: boolean;
|
|
62
62
|
price: number | null;
|
|
63
63
|
updatedAt: number | null;
|
|
@@ -74,7 +74,7 @@ export declare abstract class TokenRepository {
|
|
|
74
74
|
icon: string;
|
|
75
75
|
verified: boolean;
|
|
76
76
|
isTest: boolean;
|
|
77
|
-
type:
|
|
77
|
+
type: TokenType;
|
|
78
78
|
isNative: boolean;
|
|
79
79
|
price: number | null;
|
|
80
80
|
updatedAt: number | null;
|
|
@@ -96,7 +96,7 @@ export declare abstract class TokenRepository {
|
|
|
96
96
|
icon: string;
|
|
97
97
|
verified: boolean;
|
|
98
98
|
isTest: boolean;
|
|
99
|
-
type:
|
|
99
|
+
type: TokenType;
|
|
100
100
|
isNative: boolean;
|
|
101
101
|
price: number | null;
|
|
102
102
|
updatedAt: number | null;
|
|
@@ -142,7 +142,7 @@ export declare abstract class TokenRepository {
|
|
|
142
142
|
icon: string;
|
|
143
143
|
verified: boolean;
|
|
144
144
|
isTest: boolean;
|
|
145
|
-
type:
|
|
145
|
+
type: TokenType;
|
|
146
146
|
isNative: boolean;
|
|
147
147
|
price: number | null;
|
|
148
148
|
updatedAt: number | null;
|
|
@@ -180,7 +180,7 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
|
180
180
|
campaignId: string;
|
|
181
181
|
campaignStatus: {
|
|
182
182
|
computedUntil: number;
|
|
183
|
-
details: import("@prisma/client/runtime/
|
|
183
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
184
184
|
error: string;
|
|
185
185
|
processingStarted: number;
|
|
186
186
|
status: import("@package/databases").RunStatus;
|
|
@@ -203,7 +203,7 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
|
203
203
|
id: string;
|
|
204
204
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
205
205
|
opportunityId: string;
|
|
206
|
-
params: import("@prisma/client/runtime/
|
|
206
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
207
207
|
program: ({
|
|
208
208
|
description: string;
|
|
209
209
|
icon: string;
|
|
@@ -458,7 +458,7 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
|
458
458
|
campaignId: string;
|
|
459
459
|
campaignStatus: {
|
|
460
460
|
computedUntil: number;
|
|
461
|
-
details: import("@prisma/client/runtime/
|
|
461
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
462
462
|
error: string;
|
|
463
463
|
processingStarted: number;
|
|
464
464
|
status: import("@package/databases").RunStatus;
|
|
@@ -481,7 +481,7 @@ export declare const UniswapController: Elysia<"uniswap", {
|
|
|
481
481
|
id: string;
|
|
482
482
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
483
483
|
opportunityId: string;
|
|
484
|
-
params: import("@prisma/client/runtime/
|
|
484
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
485
485
|
program: ({
|
|
486
486
|
description: string;
|
|
487
487
|
icon: string;
|
|
@@ -8,7 +8,7 @@ export declare abstract class UniswapRepository {
|
|
|
8
8
|
recipient: string;
|
|
9
9
|
nodesSourceId: string;
|
|
10
10
|
creationBlockNumber: number;
|
|
11
|
-
metadata: import("@prisma/client/runtime/
|
|
11
|
+
metadata: import("@prisma/client/runtime/library").JsonValue;
|
|
12
12
|
}[]>;
|
|
13
13
|
}
|
|
14
14
|
export declare abstract class EkuboRepository {
|
|
@@ -19,6 +19,6 @@ export declare abstract class EkuboRepository {
|
|
|
19
19
|
recipient: string;
|
|
20
20
|
nodesSourceId: string;
|
|
21
21
|
creationBlockNumber: number;
|
|
22
|
-
metadata: import("@prisma/client/runtime/
|
|
22
|
+
metadata: import("@prisma/client/runtime/library").JsonValue;
|
|
23
23
|
}[]>;
|
|
24
24
|
}
|
|
@@ -151,7 +151,7 @@ export declare abstract class UniswapService {
|
|
|
151
151
|
campaignId: string;
|
|
152
152
|
campaignStatus: {
|
|
153
153
|
computedUntil: number;
|
|
154
|
-
details: import("@prisma/client/runtime/
|
|
154
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
155
155
|
error: string;
|
|
156
156
|
processingStarted: number;
|
|
157
157
|
status: import("@package/databases").RunStatus;
|
|
@@ -174,7 +174,7 @@ export declare abstract class UniswapService {
|
|
|
174
174
|
id: string;
|
|
175
175
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
176
176
|
opportunityId: string;
|
|
177
|
-
params: import("@prisma/client/runtime/
|
|
177
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
178
178
|
program: ({
|
|
179
179
|
description: string;
|
|
180
180
|
icon: string;
|
|
@@ -233,7 +233,7 @@ export declare const UserController: Elysia<"/users", {
|
|
|
233
233
|
campaignStatus: {
|
|
234
234
|
status: import("@package/databases").RunStatus;
|
|
235
235
|
error: string;
|
|
236
|
-
details: string | number | boolean | import("@prisma/client/runtime/
|
|
236
|
+
details: string | number | boolean | import("@prisma/client/runtime/library").JsonArray | import("@prisma/client/runtime/library").JsonObject;
|
|
237
237
|
delay: number;
|
|
238
238
|
computedUntil: number;
|
|
239
239
|
processingStarted: number;
|
|
@@ -345,7 +345,7 @@ export declare const UserController: Elysia<"/users", {
|
|
|
345
345
|
campaignStatus: {
|
|
346
346
|
status: import("@package/databases").RunStatus;
|
|
347
347
|
error: string;
|
|
348
|
-
details: string | number | boolean | import("@prisma/client/runtime/
|
|
348
|
+
details: string | number | boolean | import("@prisma/client/runtime/library").JsonArray | import("@prisma/client/runtime/library").JsonObject;
|
|
349
349
|
delay: number;
|
|
350
350
|
computedUntil: number;
|
|
351
351
|
processingStarted: number;
|
|
@@ -553,7 +553,7 @@ export declare const UserController: Elysia<"/users", {
|
|
|
553
553
|
campaignId: string;
|
|
554
554
|
campaignStatus: {
|
|
555
555
|
computedUntil: number;
|
|
556
|
-
details: import("@prisma/client/runtime/
|
|
556
|
+
details: import("@prisma/client/runtime/library").JsonValue;
|
|
557
557
|
error: string;
|
|
558
558
|
processingStarted: number;
|
|
559
559
|
status: import("@package/databases").RunStatus;
|
|
@@ -576,7 +576,7 @@ export declare const UserController: Elysia<"/users", {
|
|
|
576
576
|
id: string;
|
|
577
577
|
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
578
578
|
opportunityId: string;
|
|
579
|
-
params: import("@prisma/client/runtime/
|
|
579
|
+
params: import("@prisma/client/runtime/library").JsonValue;
|
|
580
580
|
program: ({
|
|
581
581
|
description: string;
|
|
582
582
|
icon: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DistributionType } from "@package/databases/api";
|
|
1
2
|
export declare const parseDistributionType: (params: import("@package/sdk").BaseCampaignParameters | import("@package/sdk").CLAMMCampaignParameters | import("@package/sdk").ERC20_SNAPSHOTCampaignParameters | import("@package/sdk").MorphoCampaignParameters<import("@package/sdk").MorphoSubCampaignType> | ((import("@package/sdk").BaseCampaignParameters & ({
|
|
2
3
|
poolId: string;
|
|
3
4
|
poolManager: string;
|
|
@@ -35,4 +36,4 @@ export declare const parseDistributionType: (params: import("@package/sdk").Base
|
|
|
35
36
|
underlyingToken: string;
|
|
36
37
|
symbolUnderlyingToken: string;
|
|
37
38
|
decimalsUnderlyingToken: number;
|
|
38
|
-
})) =>
|
|
39
|
+
})) => DistributionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ALL_CAMPAIGNS_FOR_CHAIN_AFTER: (chainId: number, after: number) => import("@prisma/client/runtime/
|
|
1
|
+
export declare const ALL_CAMPAIGNS_FOR_CHAIN_AFTER: (chainId: number, after: number) => import("@prisma/client/runtime/library").Sql;
|
package/package.json
CHANGED