@strkfarm/sdk 1.0.29 → 1.0.31

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/index.d.ts CHANGED
@@ -281,7 +281,7 @@ interface SwapInfo {
281
281
  }
282
282
  declare class AvnuWrapper {
283
283
  getQuotes(fromToken: string, toToken: string, amountWei: string, taker: string, retry?: number): Promise<Quote>;
284
- getSwapInfo(quote: Quote, taker: string, integratorFeeBps: number, integratorFeeRecipient: string, minAmount: string): Promise<SwapInfo>;
284
+ getSwapInfo(quote: Quote, taker: string, integratorFeeBps: number, integratorFeeRecipient: string, minAmount?: string): Promise<SwapInfo>;
285
285
  }
286
286
 
287
287
  declare const logger: {
@@ -547,6 +547,10 @@ declare class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAm
547
547
  isErrorPoolsAPI: boolean;
548
548
  isError: boolean;
549
549
  }>;
550
+ getVesuPools(retry?: number): Promise<{
551
+ pools: any[];
552
+ isErrorPoolsAPI: boolean;
553
+ }>;
550
554
  /**
551
555
  * Calculates the weighted average APY across all pools based on USD value.
552
556
  * @returns {Promise<number>} The weighted average APY across all pools
@@ -591,6 +595,7 @@ declare class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAm
591
595
  */
592
596
  getRebalanceCall(pools: Awaited<ReturnType<typeof this.getRebalancedPositions>>['changes'], isOverWeightAdjustment: boolean): Promise<starknet.Call | null>;
593
597
  getInvestmentFlows(pools: PoolInfoFull[]): Promise<IInvestmentFlow[]>;
598
+ harvest(acc: Account): Promise<starknet.Call[]>;
594
599
  }
595
600
  /**
596
601
  * Represents the Vesu Rebalance Strategies.
@@ -663,7 +668,10 @@ declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount>
663
668
  getHarvestRewardShares(fromBlock: number, toBlock: number): Promise<Web3Number>;
664
669
  balanceOf(user: ContractAddr, blockIdentifier?: BlockIdentifier): Promise<Web3Number>;
665
670
  getUserTVL(user: ContractAddr, blockIdentifier?: BlockIdentifier): Promise<DualTokenInfo>;
666
- private _getTVL;
671
+ _getTVL(blockIdentifier?: BlockIdentifier): Promise<{
672
+ amount0: Web3Number;
673
+ amount1: Web3Number;
674
+ }>;
667
675
  totalSupply(blockIdentifier?: BlockIdentifier): Promise<Web3Number>;
668
676
  assertValidDepositTokens(poolKey: EkuboPoolKey): void;
669
677
  getTVL(blockIdentifier?: BlockIdentifier): Promise<DualTokenInfo>;