@merkl/api 0.10.172 → 0.10.174
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/backgroundJobs/index.js +1 -1
- package/dist/src/eden/index.d.ts +63 -63
- package/dist/src/entities/opportunity.js +1 -0
- package/dist/src/index.d.ts +21 -21
- package/dist/src/index.js +3 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TempestVaultProcessor.js +5 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +3 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -4
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +10 -10
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +13 -13
- package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
- package/dist/src/modules/v4/router.d.ts +21 -21
- package/dist/src/modules/v4/token/token.controller.d.ts +3 -3
- package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
- package/dist/src/modules/v4/token/token.service.d.ts +6 -6
- package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
- package/dist/src/modules/v4/user/user.controller.js +1 -0
- package/dist/src/routes/v3/blacklist.d.ts +21 -21
- package/dist/src/routes/v3/campaigns.d.ts +21 -21
- package/dist/src/routes/v3/campaignsInfo.d.ts +21 -21
- package/dist/src/routes/v3/multiChainPositions.d.ts +21 -21
- package/dist/src/routes/v3/opportunity.d.ts +22 -22
- package/dist/src/routes/v3/positions.d.ts +21 -21
- package/dist/src/routes/v3/rewards.d.ts +21 -21
- package/dist/src/routes/v3/updates.d.ts +21 -21
- package/dist/src/routes/v3/userRewards.d.ts +21 -21
- package/dist/src/utils/decodeCalls.js +15 -3
- package/dist/src/utils/encodeCalls.js +31 -11
- package/dist/src/utils/generateCardName.js +3 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -2
@@ -124,9 +124,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
124
124
|
symbol: string;
|
125
125
|
name: string | null;
|
126
126
|
id: string;
|
127
|
+
icon: string;
|
127
128
|
chainId: number;
|
128
129
|
address: string;
|
129
|
-
icon: string;
|
130
130
|
decimals: number;
|
131
131
|
displaySymbol: string;
|
132
132
|
verified: boolean;
|
@@ -141,9 +141,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
141
141
|
symbol: string;
|
142
142
|
name: string | null;
|
143
143
|
id: string;
|
144
|
+
icon: string;
|
144
145
|
chainId: number;
|
145
146
|
address: string;
|
146
|
-
icon: string;
|
147
147
|
decimals: number;
|
148
148
|
verified: boolean;
|
149
149
|
isTest: boolean;
|
@@ -227,9 +227,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
227
227
|
symbol: string;
|
228
228
|
name: string | null;
|
229
229
|
id: string;
|
230
|
+
icon: string;
|
230
231
|
chainId: number;
|
231
232
|
address: string;
|
232
|
-
icon: string;
|
233
233
|
decimals: number;
|
234
234
|
displaySymbol: string;
|
235
235
|
verified: boolean;
|
@@ -244,9 +244,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
244
244
|
symbol: string;
|
245
245
|
name: string | null;
|
246
246
|
id: string;
|
247
|
+
icon: string;
|
247
248
|
chainId: number;
|
248
249
|
address: string;
|
249
|
-
icon: string;
|
250
250
|
decimals: number;
|
251
251
|
verified: boolean;
|
252
252
|
isTest: boolean;
|
@@ -287,9 +287,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
287
287
|
symbol: string;
|
288
288
|
name: string | null;
|
289
289
|
id: string;
|
290
|
+
icon: string;
|
290
291
|
chainId: number;
|
291
292
|
address: string;
|
292
|
-
icon: string;
|
293
293
|
decimals: number;
|
294
294
|
verified: boolean;
|
295
295
|
isTest: boolean;
|
@@ -341,8 +341,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
341
341
|
status?: string | undefined;
|
342
342
|
items?: number | undefined;
|
343
343
|
tags?: string | undefined;
|
344
|
-
chainId?: string | undefined;
|
345
344
|
page?: number | undefined;
|
345
|
+
chainId?: string | undefined;
|
346
346
|
action?: string | undefined;
|
347
347
|
mainProtocolId?: string | undefined;
|
348
348
|
order?: undefined;
|
@@ -388,9 +388,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
388
388
|
symbol: string;
|
389
389
|
name: string | null;
|
390
390
|
id: string;
|
391
|
+
icon: string;
|
391
392
|
chainId: number;
|
392
393
|
address: string;
|
393
|
-
icon: string;
|
394
394
|
decimals: number;
|
395
395
|
displaySymbol: string;
|
396
396
|
verified: boolean;
|
@@ -405,9 +405,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
405
405
|
symbol: string;
|
406
406
|
name: string | null;
|
407
407
|
id: string;
|
408
|
+
icon: string;
|
408
409
|
chainId: number;
|
409
410
|
address: string;
|
410
|
-
icon: string;
|
411
411
|
decimals: number;
|
412
412
|
verified: boolean;
|
413
413
|
isTest: boolean;
|
@@ -455,8 +455,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
455
455
|
status?: string | undefined;
|
456
456
|
items?: number | undefined;
|
457
457
|
tags?: string | undefined;
|
458
|
-
chainId?: string | undefined;
|
459
458
|
page?: number | undefined;
|
459
|
+
chainId?: string | undefined;
|
460
460
|
action?: string | undefined;
|
461
461
|
mainProtocolId?: string | undefined;
|
462
462
|
order?: undefined;
|
@@ -486,8 +486,8 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
486
486
|
status?: string | undefined;
|
487
487
|
items?: number | undefined;
|
488
488
|
tags?: string | undefined;
|
489
|
-
chainId?: string | undefined;
|
490
489
|
page?: number | undefined;
|
490
|
+
chainId?: string | undefined;
|
491
491
|
action?: string | undefined;
|
492
492
|
mainProtocolId?: string | undefined;
|
493
493
|
order?: undefined;
|
@@ -515,13 +515,13 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
515
515
|
subType?: number | undefined;
|
516
516
|
type: number;
|
517
517
|
params: string;
|
518
|
+
creator: string;
|
518
519
|
chainId: number;
|
519
520
|
startTimestamp: string;
|
520
521
|
endTimestamp: string;
|
521
522
|
computeChainId: number;
|
522
523
|
campaignId: string;
|
523
524
|
amount: string;
|
524
|
-
creator: string;
|
525
525
|
rewardTokenAddress: string;
|
526
526
|
opportunityIdentifier: string;
|
527
527
|
};
|
@@ -558,11 +558,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
558
558
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
559
559
|
items?: number | undefined;
|
560
560
|
subType?: number | undefined;
|
561
|
+
page?: number | undefined;
|
561
562
|
chainId?: number | undefined;
|
562
563
|
startTimestamp?: string | undefined;
|
563
564
|
endTimestamp?: string | undefined;
|
564
565
|
tokenAddress?: string | undefined;
|
565
|
-
page?: number | undefined;
|
566
566
|
mainParameter?: string | undefined;
|
567
567
|
campaignId?: string | undefined;
|
568
568
|
opportunityId?: string | undefined;
|
@@ -582,9 +582,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
582
582
|
symbol: string;
|
583
583
|
name: string | null;
|
584
584
|
id: string;
|
585
|
+
icon: string;
|
585
586
|
chainId: number;
|
586
587
|
address: string;
|
587
|
-
icon: string;
|
588
588
|
decimals: number;
|
589
589
|
verified: boolean;
|
590
590
|
isTest: boolean;
|
@@ -629,11 +629,11 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
629
629
|
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
630
630
|
items?: number | undefined;
|
631
631
|
subType?: number | undefined;
|
632
|
+
page?: number | undefined;
|
632
633
|
chainId?: number | undefined;
|
633
634
|
startTimestamp?: string | undefined;
|
634
635
|
endTimestamp?: string | undefined;
|
635
636
|
tokenAddress?: string | undefined;
|
636
|
-
page?: number | undefined;
|
637
637
|
mainParameter?: string | undefined;
|
638
638
|
campaignId?: string | undefined;
|
639
639
|
opportunityId?: string | undefined;
|
@@ -788,9 +788,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
788
788
|
symbol: string;
|
789
789
|
name: string | null;
|
790
790
|
id: string;
|
791
|
+
icon: string;
|
791
792
|
chainId: number;
|
792
793
|
address: string;
|
793
|
-
icon: string;
|
794
794
|
decimals: number;
|
795
795
|
verified: boolean;
|
796
796
|
isTest: boolean;
|
@@ -818,9 +818,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
818
818
|
symbol: string;
|
819
819
|
name: string | null;
|
820
820
|
id: string;
|
821
|
+
icon: string;
|
821
822
|
chainId: number;
|
822
823
|
address: string;
|
823
|
-
icon: string;
|
824
824
|
decimals: number;
|
825
825
|
verified: boolean;
|
826
826
|
isTest: boolean;
|
@@ -853,9 +853,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
853
853
|
symbol: string;
|
854
854
|
name: string | null;
|
855
855
|
id: string;
|
856
|
+
icon: string;
|
856
857
|
chainId: number;
|
857
858
|
address: string;
|
858
|
-
icon: string;
|
859
859
|
decimals: number;
|
860
860
|
displaySymbol: string;
|
861
861
|
verified: boolean;
|
@@ -1518,9 +1518,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1518
1518
|
symbol: string;
|
1519
1519
|
name: string | null;
|
1520
1520
|
id: string;
|
1521
|
+
icon: string;
|
1521
1522
|
chainId: number;
|
1522
1523
|
address: string;
|
1523
|
-
icon: string;
|
1524
1524
|
decimals: number;
|
1525
1525
|
displaySymbol: string;
|
1526
1526
|
verified: boolean;
|
@@ -1539,9 +1539,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1539
1539
|
symbol: string;
|
1540
1540
|
name: string | null;
|
1541
1541
|
id: string;
|
1542
|
+
icon: string;
|
1542
1543
|
chainId: number;
|
1543
1544
|
address: string;
|
1544
|
-
icon: string;
|
1545
1545
|
decimals: number;
|
1546
1546
|
displaySymbol: string;
|
1547
1547
|
verified: boolean;
|
@@ -1632,9 +1632,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1632
1632
|
symbol: string;
|
1633
1633
|
name: string | null;
|
1634
1634
|
id: string;
|
1635
|
+
icon: string;
|
1635
1636
|
chainId: number;
|
1636
1637
|
address: string;
|
1637
|
-
icon: string;
|
1638
1638
|
decimals: number;
|
1639
1639
|
displaySymbol: string;
|
1640
1640
|
verified: boolean;
|
@@ -1653,9 +1653,9 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1653
1653
|
symbol: string;
|
1654
1654
|
name: string | null;
|
1655
1655
|
id: string;
|
1656
|
+
icon: string;
|
1656
1657
|
chainId: number;
|
1657
1658
|
address: string;
|
1658
|
-
icon: string;
|
1659
1659
|
decimals: number;
|
1660
1660
|
displaySymbol: string;
|
1661
1661
|
verified: boolean;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
1
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
2
2
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
3
3
|
export function decodeCall(calls, index, key, type) {
|
4
4
|
const returnData = calls[index];
|
@@ -178,9 +178,21 @@ export function decodeCall(calls, index, key, type) {
|
|
178
178
|
case "minter":
|
179
179
|
return ZFStableLPINterface.decodeFunctionResult("minter", returnData)[0];
|
180
180
|
case "getTokenAddresses":
|
181
|
-
|
181
|
+
switch (type) {
|
182
|
+
case tokenType.tempestStaking: {
|
183
|
+
return RswEthStrategyInterface.decodeFunctionResult("getTokenAddresses", returnData)[0];
|
184
|
+
}
|
185
|
+
default:
|
186
|
+
return SymetricAmbientStrategyInterface.decodeFunctionResult("getTokenAddresses", returnData)[0];
|
187
|
+
}
|
182
188
|
case "getPositions":
|
183
|
-
|
189
|
+
switch (type) {
|
190
|
+
case tokenType.tempestStaking: {
|
191
|
+
return RswEthStrategyInterface.decodeFunctionResult("getPositions", returnData);
|
192
|
+
}
|
193
|
+
default:
|
194
|
+
return SymetricAmbientStrategyInterface.decodeFunctionResult("getPositions", returnData);
|
195
|
+
}
|
184
196
|
default:
|
185
197
|
throw new Error(`Key not recognized for ${key}`);
|
186
198
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { tokenType } from "../libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType";
|
2
|
-
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
2
|
+
import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, ERC20Interface, EnzymeInterface, EulerInterface, FactoryInterface, FluidInterface, FraxlendInterface, GearboxVaultInterface, IonicInterface, LayerBankInterface, MaverickBPLensInterface, MetamorphoInterface, MoonwellInterface, OneInchStakingInterface, PendleInterface, PendleYTInterface, RadiantInterface, RfxDatastoreInterface, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
|
3
3
|
import { fluidInterface } from "src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1";
|
4
4
|
export function createCall(target, key, type, metaData) {
|
5
5
|
switch (key) {
|
@@ -264,17 +264,37 @@ export function createCall(target, key, type, metaData) {
|
|
264
264
|
target: target,
|
265
265
|
};
|
266
266
|
case "getTokenAddresses":
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
267
|
+
switch (type) {
|
268
|
+
case tokenType.tempestStaking: {
|
269
|
+
return {
|
270
|
+
allowFailure: true,
|
271
|
+
callData: RswEthStrategyInterface.encodeFunctionData("getTokenAddresses"),
|
272
|
+
target: target,
|
273
|
+
};
|
274
|
+
}
|
275
|
+
default:
|
276
|
+
return {
|
277
|
+
allowFailure: true,
|
278
|
+
callData: SymetricAmbientStrategyInterface.encodeFunctionData("getTokenAddresses"),
|
279
|
+
target: target,
|
280
|
+
};
|
281
|
+
}
|
272
282
|
case "getPositions":
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
283
|
+
switch (type) {
|
284
|
+
case tokenType.tempestStaking: {
|
285
|
+
return {
|
286
|
+
allowFailure: true,
|
287
|
+
callData: RswEthStrategyInterface.encodeFunctionData("getPositions"),
|
288
|
+
target: target,
|
289
|
+
};
|
290
|
+
}
|
291
|
+
default:
|
292
|
+
return {
|
293
|
+
allowFailure: true,
|
294
|
+
callData: SymetricAmbientStrategyInterface.encodeFunctionData("getPositions"),
|
295
|
+
target: target,
|
296
|
+
};
|
297
|
+
}
|
278
298
|
default:
|
279
299
|
throw new Error(`Unknown key ${key}`);
|
280
300
|
}
|
@@ -92,6 +92,9 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
|
|
92
92
|
return `Hold (or stake) ${campaign.campaignParameters.symbolTargetToken} ${typeInfo.symbolToken0}-${typeInfo.symbolToken1}-${typeInfo.symbolToken2} on ${typeInfo.protocol}`;
|
93
93
|
case tokenType.maha:
|
94
94
|
return `Stake ${typeInfo.symbolToken0}/${typeInfo.symbolToken1} LP on ${typeInfo.protocol}`;
|
95
|
+
case tokenType.tempest:
|
96
|
+
case tokenType.tempestStaking:
|
97
|
+
return `Hold vault token ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
|
95
98
|
default:
|
96
99
|
return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;
|
97
100
|
}
|