@merkl/api 0.10.174 → 0.10.176

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/src/eden/index.d.ts +63 -63
  2. package/dist/src/index.d.ts +21 -21
  3. package/dist/src/index.js +0 -1
  4. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
  5. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +4 -0
  6. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/HoldStationProcessor.d.ts +29 -0
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/HoldStationProcessor.js +34 -0
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +2 -0
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +2 -0
  10. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -4
  11. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
  12. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
  13. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +10 -10
  14. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
  15. package/dist/src/modules/v4/opportunity/opportunity.repository.js +0 -1
  16. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +13 -13
  17. package/dist/src/modules/v4/position/implementations/ClammPositionFetcher.js +0 -2
  18. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
  19. package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
  20. package/dist/src/modules/v4/router.d.ts +21 -21
  21. package/dist/src/modules/v4/token/token.controller.d.ts +3 -3
  22. package/dist/src/modules/v4/token/token.repository.d.ts +1 -1
  23. package/dist/src/modules/v4/token/token.service.d.ts +6 -6
  24. package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
  25. package/dist/src/routes/v3/blacklist.d.ts +21 -21
  26. package/dist/src/routes/v3/campaigns.d.ts +21 -21
  27. package/dist/src/routes/v3/campaignsInfo.d.ts +21 -21
  28. package/dist/src/routes/v3/multiChainPositions.d.ts +21 -21
  29. package/dist/src/routes/v3/opportunity.d.ts +22 -22
  30. package/dist/src/routes/v3/positions.d.ts +21 -21
  31. package/dist/src/routes/v3/rewards.d.ts +21 -21
  32. package/dist/src/routes/v3/updates.d.ts +21 -21
  33. package/dist/src/routes/v3/userRewards.d.ts +21 -21
  34. package/dist/src/utils/decodeCalls.js +5 -1
  35. package/dist/src/utils/encodeCalls.js +13 -1
  36. package/dist/src/utils/generateCardName.js +1 -0
  37. package/dist/tsconfig.package.tsbuildinfo +1 -1
  38. 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;
128
127
  chainId: number;
129
128
  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;
145
144
  chainId: number;
146
145
  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;
231
230
  chainId: number;
232
231
  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;
248
247
  chainId: number;
249
248
  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;
291
290
  chainId: number;
292
291
  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
- page?: number | undefined;
345
344
  chainId?: string | undefined;
345
+ page?: number | 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;
392
391
  chainId: number;
393
392
  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;
409
408
  chainId: number;
410
409
  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
- page?: number | undefined;
459
458
  chainId?: string | undefined;
459
+ page?: number | 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
- page?: number | undefined;
490
489
  chainId?: string | undefined;
490
+ page?: number | 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;
519
518
  chainId: number;
520
519
  startTimestamp: string;
521
520
  endTimestamp: string;
522
521
  computeChainId: number;
523
522
  campaignId: string;
524
523
  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;
562
561
  chainId?: number | undefined;
563
562
  startTimestamp?: string | undefined;
564
563
  endTimestamp?: string | undefined;
565
564
  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;
586
585
  chainId: number;
587
586
  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;
633
632
  chainId?: number | undefined;
634
633
  startTimestamp?: string | undefined;
635
634
  endTimestamp?: string | undefined;
636
635
  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;
792
791
  chainId: number;
793
792
  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;
822
821
  chainId: number;
823
822
  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;
857
856
  chainId: number;
858
857
  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;
1522
1521
  chainId: number;
1523
1522
  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;
1543
1542
  chainId: number;
1544
1543
  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;
1636
1635
  chainId: number;
1637
1636
  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;
1657
1656
  chainId: number;
1658
1657
  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, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
1
+ import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, DefutureVaultInterface, 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];
@@ -80,6 +80,8 @@ export function decodeCall(calls, index, key, type) {
80
80
  return IonicInterface.decodeFunctionResult("underlying", returnData)[0];
81
81
  case tokenType.layerbank:
82
82
  return LayerBankInterface.decodeFunctionResult("underlying", returnData)[0];
83
+ case tokenType.holdstation:
84
+ return DefutureVaultInterface.decodeFunctionResult("asset", returnData)[0];
83
85
  case tokenType.euler_borrow:
84
86
  case tokenType.euler_lend:
85
87
  case tokenType.maha:
@@ -193,6 +195,8 @@ export function decodeCall(calls, index, key, type) {
193
195
  default:
194
196
  return SymetricAmbientStrategyInterface.decodeFunctionResult("getPositions", returnData);
195
197
  }
198
+ case "tvl":
199
+ return DefutureVaultInterface.decodeFunctionResult("tvl", returnData)[0];
196
200
  default:
197
201
  throw new Error(`Key not recognized for ${key}`);
198
202
  }
@@ -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, RswEthStrategyInterface, SturdyInterface, SymetricAmbientStrategyInterface, TorosInterface, UniswapV2PoolInterface, ZFStableLPINterface, ZFStableSwapThreePoolInterface, } from "@sdk";
2
+ import { AaveInterface, AuraInterface, AuraOperatorInterface, BalancerGaugeInterface, BalancerPoolInterface, BalancerVaultInterface, BeefyInterface, CompoundInterface, CurveInterface, DefutureVaultInterface, 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) {
@@ -104,6 +104,12 @@ export function createCall(target, key, type, metaData) {
104
104
  callData: RadiantInterface.encodeFunctionData("UNDERLYING_ASSET_ADDRESS"),
105
105
  target,
106
106
  };
107
+ case tokenType.holdstation:
108
+ return {
109
+ allowFailure: true,
110
+ callData: DefutureVaultInterface.encodeFunctionData("asset"),
111
+ target,
112
+ };
107
113
  case tokenType.aave_lending:
108
114
  case tokenType.aave_borrowing:
109
115
  case tokenType.ironclad_lending:
@@ -295,6 +301,12 @@ export function createCall(target, key, type, metaData) {
295
301
  target: target,
296
302
  };
297
303
  }
304
+ case "tvl":
305
+ return {
306
+ allowFailure: true,
307
+ callData: DefutureVaultInterface.encodeFunctionData("tvl"),
308
+ target: target,
309
+ };
298
310
  default:
299
311
  throw new Error(`Unknown key ${key}`);
300
312
  }
@@ -94,6 +94,7 @@ export function generateCardName(type, typeInfo, campaign, symbols = [""]) {
94
94
  return `Stake ${typeInfo.symbolToken0}/${typeInfo.symbolToken1} LP on ${typeInfo.protocol}`;
95
95
  case tokenType.tempest:
96
96
  case tokenType.tempestStaking:
97
+ case tokenType.holdstation:
97
98
  return `Hold vault token ${campaign.campaignParameters.symbolTargetToken} on ${typeInfo.protocol}`;
98
99
  default:
99
100
  return `Hold ${typeInfo.name} (${campaign.campaignParameters.symbolTargetToken})`;