@strkfarm/sdk 1.1.16 → 1.1.19

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
@@ -416,6 +416,7 @@ declare class BaseStrategy<TVLInfo, ActionInfo> extends CacheClass {
416
416
  getTVL(): Promise<TVLInfo>;
417
417
  depositCall(amountInfo: ActionInfo, receiver: ContractAddr): Promise<Call[]>;
418
418
  withdrawCall(amountInfo: ActionInfo, receiver: ContractAddr, owner: ContractAddr): Promise<Call[]>;
419
+ getVaultPositions(): Promise<VaultPosition[]>;
419
420
  }
420
421
 
421
422
  interface PoolProps {
@@ -729,6 +730,7 @@ declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount>
729
730
  mag: number;
730
731
  sign: number;
731
732
  };
733
+ getVaultPositions(): Promise<VaultPosition[]>;
732
734
  getPoolKey(blockIdentifier?: BlockIdentifier): Promise<EkuboPoolKey>;
733
735
  getNewBounds(): Promise<EkuboBounds>;
734
736
  /**
@@ -1038,9 +1040,13 @@ interface VesuModifyDelegationCallParams {
1038
1040
  declare const VesuPools: {
1039
1041
  Genesis: ContractAddr;
1040
1042
  Re7xSTRK: ContractAddr;
1043
+ Re7xBTC: ContractAddr;
1044
+ };
1045
+ declare function getVesuSingletonAddress(vesuPool: ContractAddr): {
1046
+ addr: ContractAddr;
1047
+ isV2: boolean;
1041
1048
  };
1042
1049
  declare class VesuAdapter extends BaseAdapter {
1043
- VESU_SINGLETON: ContractAddr;
1044
1050
  VESU_MULTIPLY: ContractAddr;
1045
1051
  config: VesuAdapterConfig;
1046
1052
  networkConfig: IConfig | undefined;
@@ -1079,7 +1085,10 @@ declare class VesuAdapter extends BaseAdapter {
1079
1085
  getDefiSpringClaimCall: () => GenerateCallFn<VesuDefiSpringRewardsCallParams>;
1080
1086
  formatAmountTypeEnum(amountType: VesuAmountType): CairoCustomEnum;
1081
1087
  formatAmountDenominationEnum(denomination: VesuAmountDenomination): CairoCustomEnum;
1082
- getVesuSingletonContract(config: IConfig): Contract;
1088
+ getVesuSingletonContract(config: IConfig, poolId: ContractAddr): {
1089
+ contract: Contract;
1090
+ isV2: boolean;
1091
+ };
1083
1092
  getLTVConfig(config: IConfig): Promise<number>;
1084
1093
  getPositions(config: IConfig): Promise<VaultPosition[]>;
1085
1094
  getCollateralization(config: IConfig): Promise<Omit<VaultPosition, 'amount'>[]>;
@@ -1249,8 +1258,11 @@ declare const UniversalStrategies: IStrategyMetadata<UniversalStrategySettings>[
1249
1258
 
1250
1259
  declare class UniversalLstMultiplierStrategy extends UniversalStrategy<UniversalStrategySettings> {
1251
1260
  private quoteAmountToFetchPrice;
1252
- constructor(config: IConfig, pricer: PricerLST, metadata: IStrategyMetadata<UniversalStrategySettings>);
1261
+ constructor(config: IConfig, pricer: PricerBase, metadata: IStrategyMetadata<UniversalStrategySettings>);
1262
+ asset(): TokenInfo;
1263
+ getTag(): string;
1253
1264
  getVesuAdapters(): VesuAdapter[];
1265
+ protected getRewardsAUM(prevAum: Web3Number): Promise<Web3Number>;
1254
1266
  getLSTDexPrice(): Promise<number>;
1255
1267
  /**
1256
1268
  * Uses vesu's multiple call to create leverage on LST
@@ -1485,4 +1497,4 @@ declare class PasswordJsonCryptoUtil {
1485
1497
  decrypt(encryptedData: string, password: string): any;
1486
1498
  }
1487
1499
 
1488
- export { AUMTypes, type AccountInfo, type AdapterLeafType, type AllAccountsStore, type ApproveCallParams, AutoCompounderSTRK, type AvnuSwapCallParams, AvnuWrapper, BaseAdapter, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, type DecreaseLeverParams, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type EkuboQuote, EkuboQuoter, type EkuboRouteNode, type EkuboSplit, type FAQ, FatalError, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, HyperLSTStrategies, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, type IncreaseLeverParams, Initializable, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerLST, PricerRedis, Protocols, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, type RouteNode, SenseiStrategies, SenseiVault, type SenseiVaultSettings, type SingleActionAmount, type SingleTokenInfo, StandardMerkleTree, type StandardMerkleTreeData, Store, type StoreConfig, type Swap, type SwapInfo, TelegramNotif, type TokenAmount, type TokenInfo, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalLstMultiplierStrategy, type UniversalManageCall, UniversalStrategies, UniversalStrategy, type UniversalStrategySettings, type VaultPosition, VesuAdapter, type VesuAdapterConfig, type VesuAmount, VesuAmountDenomination, VesuAmountType, type VesuDefiSpringRewardsCallParams, type VesuModifyDelegationCallParams, type VesuModifyPositionCallParams, type VesuMultiplyCallParams, VesuPools, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getContractDetails, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, getTrovesEndpoint, highlightTextWithLinks, type i257, logger };
1500
+ export { AUMTypes, type AccountInfo, type AdapterLeafType, type AllAccountsStore, type ApproveCallParams, AutoCompounderSTRK, type AvnuSwapCallParams, AvnuWrapper, BaseAdapter, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, type DecreaseLeverParams, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type EkuboQuote, EkuboQuoter, type EkuboRouteNode, type EkuboSplit, type FAQ, FatalError, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, HyperLSTStrategies, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, type IncreaseLeverParams, Initializable, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerLST, PricerRedis, Protocols, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, type RouteNode, SenseiStrategies, SenseiVault, type SenseiVaultSettings, type SingleActionAmount, type SingleTokenInfo, StandardMerkleTree, type StandardMerkleTreeData, Store, type StoreConfig, type Swap, type SwapInfo, TelegramNotif, type TokenAmount, type TokenInfo, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalLstMultiplierStrategy, type UniversalManageCall, UniversalStrategies, UniversalStrategy, type UniversalStrategySettings, type VaultPosition, VesuAdapter, type VesuAdapterConfig, type VesuAmount, VesuAmountDenomination, VesuAmountType, type VesuDefiSpringRewardsCallParams, type VesuModifyDelegationCallParams, type VesuModifyPositionCallParams, type VesuMultiplyCallParams, VesuPools, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getContractDetails, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, getTrovesEndpoint, getVesuSingletonAddress, highlightTextWithLinks, type i257, logger };