@strkfarm/sdk 1.0.57 → 1.0.59

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
@@ -1029,6 +1029,7 @@ interface UniversalStrategySettings {
1029
1029
  manager: ContractAddr;
1030
1030
  vaultAllocator: ContractAddr;
1031
1031
  redeemRequestNFT: ContractAddr;
1032
+ aumOracle: ContractAddr;
1032
1033
  leafAdapters: LeafAdapterFn<any>[];
1033
1034
  adapters: {
1034
1035
  id: string;
@@ -1037,6 +1038,10 @@ interface UniversalStrategySettings {
1037
1038
  targetHealthFactor: number;
1038
1039
  minHealthFactor: number;
1039
1040
  }
1041
+ declare enum AUMTypes {
1042
+ FINALISED = "finalised",
1043
+ DEFISPRING = "defispring"
1044
+ }
1040
1045
  declare class UniversalStrategy<S extends UniversalStrategySettings> extends BaseStrategy<SingleTokenInfo, SingleActionAmount> {
1041
1046
  /** Contract address of the strategy */
1042
1047
  readonly address: ContractAddr;
@@ -1058,6 +1063,7 @@ declare class UniversalStrategy<S extends UniversalStrategySettings> extends Bas
1058
1063
  getAdapter(id: string): BaseAdapter;
1059
1064
  asset(): TokenInfo;
1060
1065
  depositCall(amountInfo: SingleActionAmount, receiver: ContractAddr): Promise<Call[]>;
1066
+ withdrawCall(amountInfo: SingleActionAmount, receiver: ContractAddr, owner: ContractAddr): Promise<Call[]>;
1061
1067
  /**
1062
1068
  * Calculates the Total Value Locked (TVL) for a specific user.
1063
1069
  * @param user - Address of the user
@@ -1089,6 +1095,7 @@ declare class UniversalStrategy<S extends UniversalStrategySettings> extends Bas
1089
1095
  amount: Web3Number;
1090
1096
  usdValue: number;
1091
1097
  }>;
1098
+ getUnusedBalance(): Promise<SingleTokenInfo>;
1092
1099
  getAUM(): Promise<{
1093
1100
  net: SingleTokenInfo;
1094
1101
  prevAum: Web3Number;
@@ -1278,4 +1285,4 @@ declare class PasswordJsonCryptoUtil {
1278
1285
  decrypt(encryptedData: string, password: string): any;
1279
1286
  }
1280
1287
 
1281
- export { type AccountInfo, type AdapterLeafType, type AllAccountsStore, type ApproveCallParams, AutoCompounderSTRK, AvnuWrapper, BaseAdapter, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type FAQ, FatalError, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, Protocols, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, SenseiStrategies, SenseiVault, type SenseiVaultSettings, type SingleActionAmount, type SingleTokenInfo, StandardMerkleTree, type StandardMerkleTreeData, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalStrategies, UniversalStrategy, type UniversalStrategySettings, type VaultPosition, VesuAdapter, type VesuAdapterConfig, type VesuAmount, VesuAmountDenomination, VesuAmountType, type VesuModifyPositionCallParams, VesuPools, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, getTrovesEndpoint, highlightTextWithLinks, type i257, logger };
1288
+ export { AUMTypes, type AccountInfo, type AdapterLeafType, type AllAccountsStore, type ApproveCallParams, AutoCompounderSTRK, AvnuWrapper, BaseAdapter, BaseStrategy, type CLVaultStrategySettings, CommonAdapter, type CommonAdapterConfig, ContractAddr, Deployer, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type FAQ, FatalError, type FlashloanCallParams, FlowChartColors, type GenerateCallFn, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LeafAdapterFn, type LeafData, type LendingToken, type ManageCall, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, Protocols, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, SenseiStrategies, SenseiVault, type SenseiVaultSettings, type SingleActionAmount, type SingleTokenInfo, StandardMerkleTree, type StandardMerkleTreeData, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, UNIVERSAL_ADAPTERS, UNIVERSAL_MANAGE_IDS, UniversalStrategies, UniversalStrategy, type UniversalStrategySettings, type VaultPosition, VesuAdapter, type VesuAdapterConfig, type VesuAmount, VesuAmountDenomination, VesuAmountType, type VesuModifyPositionCallParams, VesuPools, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, getTrovesEndpoint, highlightTextWithLinks, type i257, logger };