@merkl/api 0.16.6 → 0.16.8
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/backgroundJobs/jobs/campaignsCacheUpdater.js +3 -1
- package/dist/src/backgroundJobs/jobs/priceUpdater.js +1 -1
- package/dist/src/eden/index.d.ts +182 -177
- package/dist/src/index.d.ts +38 -37
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerV3PoolProcessor.js +9 -1
- package/dist/src/libs/getTokensList.d.ts +0 -10
- package/dist/src/libs/getTokensList.js +1 -21
- package/dist/src/libs/merklChainData.js +4 -24
- package/dist/src/libs/tokens/balances.js +2 -2
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -2
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +16 -16
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +2 -2
- package/dist/src/modules/v4/boost/boost.service.js +6 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +3 -3
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +15 -15
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
- package/dist/src/modules/v4/claims/claims.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +8 -11
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js +0 -8
- package/dist/src/modules/v4/liquidity/implementations/AjnaPositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/liquidity/implementations/DolomitePositionFetcher.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +5 -5
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +87 -87
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +5 -5
- package/dist/src/modules/v4/reward/reward.controller.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.model.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.model.js +1 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +7 -7
- package/dist/src/modules/v4/router.d.ts +32 -31
- package/dist/src/modules/v4/router.js +20 -20
- package/dist/src/modules/v4/status/status.controller.d.ts +12 -12
- package/dist/src/modules/v4/status/status.repository.d.ts +12 -12
- package/dist/src/modules/v4/status/status.service.d.ts +12 -12
- package/dist/src/modules/v4/token/token.controller.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.d.ts +1 -0
- package/dist/src/modules/v4/token/token.model.js +1 -0
- package/dist/src/modules/v4/token/token.service.d.ts +13 -0
- package/dist/src/modules/v4/token/token.service.js +6 -17
- package/dist/src/modules/v4/user/user.controller.d.ts +3 -3
- package/dist/src/routes/v3/lostyield.js +6 -3
- package/dist/src/routes/v3/opportunity.d.ts +1 -1
- package/dist/src/routes/v3/rewards.d.ts +1 -1
- package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
- package/dist/src/routes/v3/router.d.ts +4 -4
- package/dist/src/routes/v3/userRewards.d.ts +1 -1
- package/dist/src/utils/generateCardName.js +0 -4
- package/dist/src/utils/prices/priceService.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/dynamicData/index.d.ts +0 -3
- package/dist/src/modules/v4/dynamicData/index.js +0 -3
- package/dist/src/modules/v4/index.d.ts +0 -4
- package/dist/src/modules/v4/index.js +0 -4
- package/dist/src/modules/v4/liquidity/index.d.ts +0 -2
- package/dist/src/modules/v4/liquidity/index.js +0 -2
@@ -34,7 +34,7 @@ export declare abstract class OpportunityService {
|
|
34
34
|
name: string;
|
35
35
|
status: "SOON";
|
36
36
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
37
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
37
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
38
38
|
depositUrl: any;
|
39
39
|
tags: string[];
|
40
40
|
}>;
|
@@ -59,7 +59,7 @@ export declare abstract class OpportunityService {
|
|
59
59
|
} & {
|
60
60
|
price?: number | null | undefined;
|
61
61
|
})[];
|
62
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
62
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
63
63
|
depositUrl: any;
|
64
64
|
tags: string[];
|
65
65
|
}>;
|
@@ -83,7 +83,7 @@ export declare abstract class OpportunityService {
|
|
83
83
|
verified: boolean;
|
84
84
|
isTest: boolean;
|
85
85
|
}[];
|
86
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
86
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
87
87
|
depositUrl: string | undefined;
|
88
88
|
tags: string[];
|
89
89
|
}>;
|
@@ -111,7 +111,7 @@ export declare abstract class OpportunityService {
|
|
111
111
|
} & {
|
112
112
|
price?: number | null | undefined;
|
113
113
|
})[];
|
114
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
114
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
115
115
|
depositUrl: any;
|
116
116
|
tags: string[];
|
117
117
|
}>;
|
@@ -131,6 +131,7 @@ export declare abstract class OpportunityService {
|
|
131
131
|
tags: string[];
|
132
132
|
icon: string;
|
133
133
|
} | null | undefined;
|
134
|
+
depositUrl?: string | undefined;
|
134
135
|
aprRecord?: {
|
135
136
|
timestamp: string | bigint;
|
136
137
|
cumulated: number;
|
@@ -142,7 +143,6 @@ export declare abstract class OpportunityService {
|
|
142
143
|
aprRecordId: string;
|
143
144
|
}[];
|
144
145
|
} | undefined;
|
145
|
-
depositUrl?: string | undefined;
|
146
146
|
tvlRecord?: {
|
147
147
|
total: number;
|
148
148
|
timestamp: string | bigint;
|
@@ -211,10 +211,10 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
211
211
|
post: {
|
212
212
|
body: {
|
213
213
|
pending: string;
|
214
|
-
recipient: string;
|
215
214
|
distributionChainId: number;
|
216
215
|
amount: string;
|
217
216
|
root: string;
|
217
|
+
recipient: string;
|
218
218
|
claimed: string;
|
219
219
|
proofs: string[];
|
220
220
|
rewardToken: string;
|
@@ -245,8 +245,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
245
245
|
protocolId?: string | undefined;
|
246
246
|
reason: string;
|
247
247
|
pending: string;
|
248
|
-
recipient: string;
|
249
248
|
amount: string;
|
249
|
+
recipient: string;
|
250
250
|
claimed: string;
|
251
251
|
}[];
|
252
252
|
}[];
|
@@ -270,8 +270,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
270
270
|
body: {
|
271
271
|
token: string;
|
272
272
|
chainId: number;
|
273
|
-
recipient: string;
|
274
273
|
root: string;
|
274
|
+
recipient: string;
|
275
275
|
}[];
|
276
276
|
params: {};
|
277
277
|
query: unknown;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { t } from "elysia";
|
2
|
-
import { TokenResourceDto } from "../token";
|
2
|
+
import { TokenResourceDto } from "../token/token.model";
|
3
3
|
// ─── DTOs ────────────────────────────────────────────────────────────────────
|
4
4
|
export const DailyRewardsBreakdownRecordResourceDto = t.Object({
|
5
5
|
id: t.Number(),
|
@@ -19,6 +19,7 @@ export declare abstract class RewardRepository {
|
|
19
19
|
};
|
20
20
|
Breakdown: ({
|
21
21
|
Campaign: {
|
22
|
+
campaignId: string;
|
22
23
|
Opportunity: {
|
23
24
|
Chain: {
|
24
25
|
name: string;
|
@@ -69,7 +70,6 @@ export declare abstract class RewardRepository {
|
|
69
70
|
apr: number;
|
70
71
|
dailyRewards: number;
|
71
72
|
};
|
72
|
-
campaignId: string;
|
73
73
|
};
|
74
74
|
} & {
|
75
75
|
reason: string;
|
@@ -84,10 +84,10 @@ export declare abstract class RewardRepository {
|
|
84
84
|
} & {
|
85
85
|
pending: string;
|
86
86
|
id: string;
|
87
|
-
recipient: string;
|
88
87
|
rewardTokenId: string;
|
89
88
|
amount: string;
|
90
89
|
root: string;
|
90
|
+
recipient: string;
|
91
91
|
claimed: string;
|
92
92
|
proofs: string[];
|
93
93
|
})[]>;
|
@@ -109,10 +109,10 @@ export declare abstract class RewardRepository {
|
|
109
109
|
} & {
|
110
110
|
pending: string;
|
111
111
|
id: string;
|
112
|
-
recipient: string;
|
113
112
|
rewardTokenId: string;
|
114
113
|
amount: string;
|
115
114
|
root: string;
|
115
|
+
recipient: string;
|
116
116
|
claimed: string;
|
117
117
|
proofs: string[];
|
118
118
|
}) | null>;
|
@@ -149,8 +149,8 @@ export declare abstract class RewardService {
|
|
149
149
|
claimed: bigint;
|
150
150
|
amount: bigint;
|
151
151
|
pending: bigint;
|
152
|
-
recipient: string;
|
153
152
|
root: string;
|
153
|
+
recipient: string;
|
154
154
|
proofs: string[];
|
155
155
|
}[];
|
156
156
|
static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("database/api/.generated/runtime/library").GetBatchResult | undefined>;
|
@@ -170,6 +170,7 @@ export declare abstract class RewardService {
|
|
170
170
|
};
|
171
171
|
Breakdown: ({
|
172
172
|
Campaign: {
|
173
|
+
campaignId: string;
|
173
174
|
Opportunity: {
|
174
175
|
Chain: {
|
175
176
|
name: string;
|
@@ -220,7 +221,6 @@ export declare abstract class RewardService {
|
|
220
221
|
apr: number;
|
221
222
|
dailyRewards: number;
|
222
223
|
};
|
223
|
-
campaignId: string;
|
224
224
|
};
|
225
225
|
} & {
|
226
226
|
reason: string;
|
@@ -235,10 +235,10 @@ export declare abstract class RewardService {
|
|
235
235
|
} & {
|
236
236
|
pending: string;
|
237
237
|
id: string;
|
238
|
-
recipient: string;
|
239
238
|
rewardTokenId: string;
|
240
239
|
amount: string;
|
241
240
|
root: string;
|
241
|
+
recipient: string;
|
242
242
|
claimed: string;
|
243
243
|
proofs: string[];
|
244
244
|
})[]>;
|
@@ -338,8 +338,8 @@ export declare abstract class RewardService {
|
|
338
338
|
claimed: bigint;
|
339
339
|
amount: bigint;
|
340
340
|
pending: bigint;
|
341
|
-
recipient: string;
|
342
341
|
root: string;
|
342
|
+
recipient: string;
|
343
343
|
proofs: string[];
|
344
344
|
}, "breakdowns"> & {
|
345
345
|
breakdowns: {
|
@@ -429,8 +429,8 @@ export declare abstract class RewardService {
|
|
429
429
|
claimed: bigint;
|
430
430
|
amount: bigint;
|
431
431
|
pending: bigint;
|
432
|
-
recipient: string;
|
433
432
|
root: string;
|
433
|
+
recipient: string;
|
434
434
|
proofs: string[];
|
435
435
|
}, "breakdowns"> & {
|
436
436
|
breakdowns: {
|
@@ -459,6 +459,7 @@ export declare abstract class RewardService {
|
|
459
459
|
};
|
460
460
|
Breakdown: ({
|
461
461
|
Campaign: {
|
462
|
+
campaignId: string;
|
462
463
|
Opportunity: {
|
463
464
|
Chain: {
|
464
465
|
name: string;
|
@@ -509,7 +510,6 @@ export declare abstract class RewardService {
|
|
509
510
|
apr: number;
|
510
511
|
dailyRewards: number;
|
511
512
|
};
|
512
|
-
campaignId: string;
|
513
513
|
};
|
514
514
|
} & {
|
515
515
|
reason: string;
|
@@ -524,10 +524,10 @@ export declare abstract class RewardService {
|
|
524
524
|
} & {
|
525
525
|
pending: string;
|
526
526
|
id: string;
|
527
|
-
recipient: string;
|
528
527
|
rewardTokenId: string;
|
529
528
|
amount: string;
|
530
529
|
root: string;
|
530
|
+
recipient: string;
|
531
531
|
claimed: string;
|
532
532
|
proofs: string[];
|
533
533
|
})[]>;
|
@@ -106,7 +106,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
106
106
|
} & {
|
107
107
|
price?: number | null | undefined;
|
108
108
|
})[];
|
109
|
-
mainProtocol: "morpho" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "
|
109
|
+
mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
|
110
110
|
depositUrl: any;
|
111
111
|
tags: string[];
|
112
112
|
};
|
@@ -283,6 +283,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
283
283
|
tags: string[];
|
284
284
|
icon: string;
|
285
285
|
} | null | undefined;
|
286
|
+
depositUrl?: string | undefined;
|
286
287
|
aprRecord?: {
|
287
288
|
timestamp: string | bigint;
|
288
289
|
cumulated: number;
|
@@ -294,7 +295,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
294
295
|
aprRecordId: string;
|
295
296
|
}[];
|
296
297
|
} | undefined;
|
297
|
-
depositUrl?: string | undefined;
|
298
298
|
tvlRecord?: {
|
299
299
|
total: number;
|
300
300
|
timestamp: string | bigint;
|
@@ -387,11 +387,11 @@ export declare const v4: Elysia<"/v4", false, {
|
|
387
387
|
startTimestamp?: string | undefined;
|
388
388
|
endTimestamp?: string | undefined;
|
389
389
|
tokenAddress?: string | undefined;
|
390
|
-
mainParameter?: string | undefined;
|
391
390
|
campaignId?: string | undefined;
|
392
391
|
opportunityId?: string | undefined;
|
393
392
|
creatorAddress?: string | undefined;
|
394
393
|
creatorId?: string | undefined;
|
394
|
+
mainParameter?: string | undefined;
|
395
395
|
test?: boolean | undefined;
|
396
396
|
creatorTag?: string | undefined;
|
397
397
|
tokenSymbol?: string | undefined;
|
@@ -407,6 +407,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
407
407
|
tags: string[];
|
408
408
|
icon: string;
|
409
409
|
} | null | undefined;
|
410
|
+
depositUrl?: string | undefined;
|
410
411
|
aprRecord?: {
|
411
412
|
timestamp: string | bigint;
|
412
413
|
cumulated: number;
|
@@ -418,7 +419,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
418
419
|
aprRecordId: string;
|
419
420
|
}[];
|
420
421
|
} | undefined;
|
421
|
-
depositUrl?: string | undefined;
|
422
422
|
tvlRecord?: {
|
423
423
|
total: number;
|
424
424
|
timestamp: string | bigint;
|
@@ -571,6 +571,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
571
571
|
tags: string[];
|
572
572
|
icon: string;
|
573
573
|
} | null | undefined;
|
574
|
+
depositUrl?: string | undefined;
|
574
575
|
aprRecord?: {
|
575
576
|
timestamp: string | bigint;
|
576
577
|
cumulated: number;
|
@@ -582,7 +583,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
582
583
|
aprRecordId: string;
|
583
584
|
}[];
|
584
585
|
} | undefined;
|
585
|
-
depositUrl?: string | undefined;
|
586
586
|
tvlRecord?: {
|
587
587
|
total: number;
|
588
588
|
timestamp: string | bigint;
|
@@ -964,11 +964,11 @@ export declare const v4: Elysia<"/v4", false, {
|
|
964
964
|
startTimestamp?: string | undefined;
|
965
965
|
endTimestamp?: string | undefined;
|
966
966
|
tokenAddress?: string | undefined;
|
967
|
-
mainParameter?: string | undefined;
|
968
967
|
campaignId?: string | undefined;
|
969
968
|
opportunityId?: string | undefined;
|
970
969
|
creatorAddress?: string | undefined;
|
971
970
|
creatorId?: string | undefined;
|
971
|
+
mainParameter?: string | undefined;
|
972
972
|
test?: boolean | undefined;
|
973
973
|
creatorTag?: string | undefined;
|
974
974
|
tokenSymbol?: string | undefined;
|
@@ -1043,11 +1043,11 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1043
1043
|
startTimestamp?: string | undefined;
|
1044
1044
|
endTimestamp?: string | undefined;
|
1045
1045
|
tokenAddress?: string | undefined;
|
1046
|
-
mainParameter?: string | undefined;
|
1047
1046
|
campaignId?: string | undefined;
|
1048
1047
|
opportunityId?: string | undefined;
|
1049
1048
|
creatorAddress?: string | undefined;
|
1050
1049
|
creatorId?: string | undefined;
|
1050
|
+
mainParameter?: string | undefined;
|
1051
1051
|
test?: boolean | undefined;
|
1052
1052
|
creatorTag?: string | undefined;
|
1053
1053
|
tokenSymbol?: string | undefined;
|
@@ -1071,10 +1071,10 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1071
1071
|
response: {
|
1072
1072
|
200: {
|
1073
1073
|
endTimestamp: bigint;
|
1074
|
+
campaignId: string;
|
1074
1075
|
CampaignStatus: {
|
1075
1076
|
computedUntil: bigint;
|
1076
1077
|
}[];
|
1077
|
-
campaignId: string;
|
1078
1078
|
}[];
|
1079
1079
|
};
|
1080
1080
|
};
|
@@ -1398,6 +1398,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1398
1398
|
params: {};
|
1399
1399
|
query: {
|
1400
1400
|
tokenAddress?: string | undefined;
|
1401
|
+
verified?: boolean | undefined;
|
1401
1402
|
additionalTokenAddresses?: string[] | undefined;
|
1402
1403
|
chainId: number;
|
1403
1404
|
userAddress: string;
|
@@ -1748,10 +1749,10 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1748
1749
|
post: {
|
1749
1750
|
body: {
|
1750
1751
|
pending: string;
|
1751
|
-
recipient: string;
|
1752
1752
|
distributionChainId: number;
|
1753
1753
|
amount: string;
|
1754
1754
|
root: string;
|
1755
|
+
recipient: string;
|
1755
1756
|
claimed: string;
|
1756
1757
|
proofs: string[];
|
1757
1758
|
rewardToken: string;
|
@@ -1782,8 +1783,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1782
1783
|
protocolId?: string | undefined;
|
1783
1784
|
reason: string;
|
1784
1785
|
pending: string;
|
1785
|
-
recipient: string;
|
1786
1786
|
amount: string;
|
1787
|
+
recipient: string;
|
1787
1788
|
claimed: string;
|
1788
1789
|
}[];
|
1789
1790
|
}[];
|
@@ -1807,8 +1808,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1807
1808
|
body: {
|
1808
1809
|
token: string;
|
1809
1810
|
chainId: number;
|
1810
|
-
recipient: string;
|
1811
1811
|
root: string;
|
1812
|
+
recipient: string;
|
1812
1813
|
}[];
|
1813
1814
|
params: {};
|
1814
1815
|
query: unknown;
|
@@ -2438,8 +2439,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2438
2439
|
claimed: bigint;
|
2439
2440
|
amount: bigint;
|
2440
2441
|
pending: bigint;
|
2441
|
-
recipient: string;
|
2442
2442
|
root: string;
|
2443
|
+
recipient: string;
|
2443
2444
|
proofs: string[];
|
2444
2445
|
}, "breakdowns"> & {
|
2445
2446
|
breakdowns: {
|
@@ -2551,8 +2552,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2551
2552
|
claimed: bigint;
|
2552
2553
|
amount: bigint;
|
2553
2554
|
pending: bigint;
|
2554
|
-
recipient: string;
|
2555
2555
|
root: string;
|
2556
|
+
recipient: string;
|
2556
2557
|
proofs: string[];
|
2557
2558
|
}, "breakdowns"> & {
|
2558
2559
|
breakdowns: {
|
@@ -2804,13 +2805,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
2804
2805
|
id: string;
|
2805
2806
|
timestamp: number;
|
2806
2807
|
chainId: number;
|
2808
|
+
datetime: Date;
|
2809
|
+
recipient: string;
|
2807
2810
|
fromTokenId: string;
|
2808
2811
|
toTokenId: string;
|
2809
2812
|
multisig: string;
|
2810
|
-
recipient: string;
|
2811
2813
|
amountIn: string;
|
2812
2814
|
amountOut: string;
|
2813
|
-
datetime: Date;
|
2814
2815
|
}[];
|
2815
2816
|
};
|
2816
2817
|
};
|
@@ -3025,13 +3026,13 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3025
3026
|
chainId?: number | undefined;
|
3026
3027
|
startTimestamp?: string | undefined;
|
3027
3028
|
endTimestamp?: string | undefined;
|
3028
|
-
campaignStatus?: {} | undefined;
|
3029
3029
|
distributionChainId?: number | undefined;
|
3030
3030
|
campaignId?: string | undefined;
|
3031
3031
|
rewardTokenId?: string | undefined;
|
3032
3032
|
amount?: string | undefined;
|
3033
3033
|
opportunityId?: string | undefined;
|
3034
3034
|
creatorAddress?: string | undefined;
|
3035
|
+
campaignStatus?: {} | undefined;
|
3035
3036
|
rewardToken?: {} | undefined;
|
3036
3037
|
rewardTokenAddress?: string | undefined;
|
3037
3038
|
distributionChain?: {} | undefined;
|
@@ -3066,11 +3067,11 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3066
3067
|
startTimestamp?: string | undefined;
|
3067
3068
|
endTimestamp?: string | undefined;
|
3068
3069
|
tokenAddress?: string | undefined;
|
3069
|
-
mainParameter?: string | undefined;
|
3070
3070
|
campaignId?: string | undefined;
|
3071
3071
|
opportunityId?: string | undefined;
|
3072
3072
|
creatorAddress?: string | undefined;
|
3073
3073
|
creatorId?: string | undefined;
|
3074
|
+
mainParameter?: string | undefined;
|
3074
3075
|
test?: boolean | undefined;
|
3075
3076
|
creatorTag?: string | undefined;
|
3076
3077
|
tokenSymbol?: string | undefined;
|
@@ -3205,18 +3206,6 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3205
3206
|
computedUntil: bigint;
|
3206
3207
|
startTimestamp: bigint;
|
3207
3208
|
endTimestamp: bigint;
|
3208
|
-
CampaignStatus: {
|
3209
|
-
error: string;
|
3210
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
3211
|
-
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
3212
|
-
campaignId: string;
|
3213
|
-
computedUntil: bigint;
|
3214
|
-
processingStarted: bigint;
|
3215
|
-
}[];
|
3216
|
-
Opportunity: {
|
3217
|
-
name: string;
|
3218
|
-
id: string;
|
3219
|
-
};
|
3220
3209
|
computeChainId: number;
|
3221
3210
|
distributionChainId: number;
|
3222
3211
|
campaignId: string;
|
@@ -3225,6 +3214,18 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3225
3214
|
address: string;
|
3226
3215
|
isTest: boolean;
|
3227
3216
|
};
|
3217
|
+
Opportunity: {
|
3218
|
+
name: string;
|
3219
|
+
id: string;
|
3220
|
+
};
|
3221
|
+
CampaignStatus: {
|
3222
|
+
error: string;
|
3223
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
3224
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
3225
|
+
campaignId: string;
|
3226
|
+
computedUntil: bigint;
|
3227
|
+
processingStarted: bigint;
|
3228
|
+
}[];
|
3228
3229
|
}[];
|
3229
3230
|
};
|
3230
3231
|
};
|
@@ -3273,7 +3274,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3273
3274
|
};
|
3274
3275
|
headers: unknown;
|
3275
3276
|
response: {
|
3276
|
-
200: import("./liquidity").PositionT[];
|
3277
|
+
200: import("./liquidity/liquidity.model").PositionT[];
|
3277
3278
|
};
|
3278
3279
|
};
|
3279
3280
|
};
|
@@ -3731,8 +3732,8 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3731
3732
|
body: {
|
3732
3733
|
reason: string;
|
3733
3734
|
value: number;
|
3734
|
-
address: string;
|
3735
3735
|
campaignId: string;
|
3736
|
+
address: string;
|
3736
3737
|
field: string;
|
3737
3738
|
}[];
|
3738
3739
|
params: {};
|
@@ -1,12 +1,24 @@
|
|
1
|
-
import { AccountingController } from "./accounting";
|
2
|
-
import { BlacklistController } from "./blacklist";
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { AccountingController } from "./accounting/accounting.controller";
|
2
|
+
import { BlacklistController } from "./blacklist/blacklist.controller";
|
3
|
+
import { BoostController } from "./boost/boost.controller";
|
4
|
+
import { CampaignController } from "./campaign/campaign.controller";
|
5
|
+
import { ChainController } from "./chain/chain.controller";
|
6
|
+
import { ClaimController } from "./claims/claims.controller";
|
7
|
+
import { ComputedValueController } from "./computedValue/computedValue.controller";
|
8
|
+
import { CreatorController } from "./creator/creator.controller";
|
9
|
+
import { DynamicDataController } from "./dynamicData/dynamicData.controller";
|
10
|
+
import { ExplorerController } from "./explorer/explorer.controller";
|
11
|
+
import { InteractionController } from "./interaction/interaction.controller";
|
12
|
+
import { LiquidityController } from "./liquidity/liquidity.controller";
|
13
|
+
import { MerklRootController } from "./merklRoot/merklRoot.controller";
|
5
14
|
import { OpportunityController } from "./opportunity";
|
6
|
-
import { PriceController } from "./price";
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
15
|
+
import { PriceController } from "./price/price.controller";
|
16
|
+
import { ProgramPayloadController } from "./programPayload/programPayload.controller";
|
17
|
+
import { ProtocolController } from "./protocol/protocol.controller";
|
18
|
+
import { RewardController } from "./reward/reward.controller";
|
19
|
+
import { StatusController } from "./status/status.controller";
|
20
|
+
import { TokenController } from "./token/token.controller";
|
21
|
+
import { UserController } from "./user/user.controller";
|
10
22
|
import { ErrorHandler } from "../../plugins/error-handling.plugin";
|
11
23
|
import bigintToString from "../../utils/bigintToString";
|
12
24
|
import { opentelemetry } from "@elysiajs/opentelemetry";
|
@@ -15,18 +27,6 @@ import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
|
|
15
27
|
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-node";
|
16
28
|
import { PrismaInstrumentation } from "@prisma/instrumentation";
|
17
29
|
import Elysia from "elysia";
|
18
|
-
import { BoostController } from "./boost";
|
19
|
-
import { ClaimController } from "./claims";
|
20
|
-
import { ComputedValueController } from "./computedValue";
|
21
|
-
import { CreatorController } from "./creator";
|
22
|
-
import { DynamicDataController } from "./dynamicData";
|
23
|
-
import { ExplorerController } from "./explorer/explorer.controller";
|
24
|
-
import { InteractionController } from "./interaction/interaction.controller";
|
25
|
-
import { LiquidityController } from "./liquidity/liquidity.controller";
|
26
|
-
import { MerklRootController } from "./merklRoot";
|
27
|
-
import { ProgramPayloadController } from "./programPayload";
|
28
|
-
import { StatusController } from "./status";
|
29
|
-
import { UserController } from "./user";
|
30
30
|
// ─── V4 Router ───────────────────────────────────────────────────────────────
|
31
31
|
export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
|
32
32
|
// ─── OpenTelemetry ───────────────────────────────────────────────────
|
@@ -131,18 +131,6 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
|
|
131
131
|
computedUntil: bigint;
|
132
132
|
startTimestamp: bigint;
|
133
133
|
endTimestamp: bigint;
|
134
|
-
CampaignStatus: {
|
135
|
-
error: string;
|
136
|
-
details: import("database/api/.generated/runtime/library").JsonValue;
|
137
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
138
|
-
campaignId: string;
|
139
|
-
computedUntil: bigint;
|
140
|
-
processingStarted: bigint;
|
141
|
-
}[];
|
142
|
-
Opportunity: {
|
143
|
-
name: string;
|
144
|
-
id: string;
|
145
|
-
};
|
146
134
|
computeChainId: number;
|
147
135
|
distributionChainId: number;
|
148
136
|
campaignId: string;
|
@@ -151,6 +139,18 @@ export declare const StatusController: Elysia<"/campaign-status", false, {
|
|
151
139
|
address: string;
|
152
140
|
isTest: boolean;
|
153
141
|
};
|
142
|
+
Opportunity: {
|
143
|
+
name: string;
|
144
|
+
id: string;
|
145
|
+
};
|
146
|
+
CampaignStatus: {
|
147
|
+
error: string;
|
148
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
149
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
150
|
+
campaignId: string;
|
151
|
+
computedUntil: bigint;
|
152
|
+
processingStarted: bigint;
|
153
|
+
}[];
|
154
154
|
}[];
|
155
155
|
};
|
156
156
|
};
|
@@ -70,18 +70,6 @@ export declare class StatusRepository {
|
|
70
70
|
static findManyDelay(query: DelayModel): Promise<{
|
71
71
|
startTimestamp: bigint;
|
72
72
|
endTimestamp: bigint;
|
73
|
-
CampaignStatus: {
|
74
|
-
error: string;
|
75
|
-
details: Prisma.JsonValue;
|
76
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
77
|
-
campaignId: string;
|
78
|
-
computedUntil: bigint;
|
79
|
-
processingStarted: bigint;
|
80
|
-
}[];
|
81
|
-
Opportunity: {
|
82
|
-
name: string;
|
83
|
-
id: string;
|
84
|
-
};
|
85
73
|
computeChainId: number;
|
86
74
|
distributionChainId: number;
|
87
75
|
campaignId: string;
|
@@ -90,5 +78,17 @@ export declare class StatusRepository {
|
|
90
78
|
address: string;
|
91
79
|
isTest: boolean;
|
92
80
|
};
|
81
|
+
Opportunity: {
|
82
|
+
name: string;
|
83
|
+
id: string;
|
84
|
+
};
|
85
|
+
CampaignStatus: {
|
86
|
+
error: string;
|
87
|
+
details: Prisma.JsonValue;
|
88
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
89
|
+
campaignId: string;
|
90
|
+
computedUntil: bigint;
|
91
|
+
processingStarted: bigint;
|
92
|
+
}[];
|
93
93
|
}[]>;
|
94
94
|
}
|