@strkfarm/sdk 1.0.36 → 1.0.38

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
@@ -73,7 +73,7 @@ declare enum Network {
73
73
  interface IConfig {
74
74
  provider: RpcProvider;
75
75
  network: Network;
76
- stage: 'production' | 'staging';
76
+ stage: "production" | "staging";
77
77
  heartbeatUrl?: string;
78
78
  }
79
79
  interface IProtocol {
@@ -85,6 +85,10 @@ declare enum FlowChartColors {
85
85
  Blue = "#35484f",
86
86
  Purple = "#6e53dc"
87
87
  }
88
+ interface FAQ {
89
+ question: string | React.ReactNode;
90
+ answer: string | React.ReactNode;
91
+ }
88
92
  /**
89
93
  * @property risk.riskFactor.factor - The risk factors that are considered for the strategy.
90
94
  * @property risk.riskFactor.factor - The value of the risk factor from 0 to 10, 0 being the lowest and 10 being the highest.
@@ -93,7 +97,7 @@ interface IStrategyMetadata<T> {
93
97
  name: string;
94
98
  description: string | React.ReactNode;
95
99
  address: ContractAddr;
96
- type: 'ERC4626' | 'ERC721' | 'Other';
100
+ type: "ERC4626" | "ERC721" | "Other";
97
101
  depositTokens: TokenInfo[];
98
102
  protocols: IProtocol[];
99
103
  auditUrl?: string;
@@ -105,6 +109,7 @@ interface IStrategyMetadata<T> {
105
109
  };
106
110
  apyMethodology?: string;
107
111
  additionalInfo: T;
112
+ faqs: FAQ[];
108
113
  }
109
114
  interface IInvestmentFlow {
110
115
  id?: string;
@@ -594,7 +599,7 @@ declare class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAm
594
599
  * @param pools - Array of pool information including IDs, weights, amounts, APYs and utilization
595
600
  * @returns Populated contract call for rebalance
596
601
  */
597
- getRebalanceCall(pools: Awaited<ReturnType<typeof this.getRebalancedPositions>>['changes'], isOverWeightAdjustment: boolean): Promise<starknet.Call | null>;
602
+ getRebalanceCall(pools: Awaited<ReturnType<typeof this.getRebalancedPositions>>["changes"], isOverWeightAdjustment: boolean): Promise<starknet.Call | null>;
598
603
  getInvestmentFlows(pools: PoolInfoFull[]): Promise<IInvestmentFlow[]>;
599
604
  harvest(acc: Account): Promise<starknet.Call[]>;
600
605
  /**
@@ -862,4 +867,4 @@ declare class PasswordJsonCryptoUtil {
862
867
  decrypt(encryptedData: string, password: string): any;
863
868
  }
864
869
 
865
- export { type AccountInfo, type AllAccountsStore, AutoCompounderSTRK, AvnuWrapper, BaseStrategy, type CLVaultStrategySettings, ContractAddr, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, FatalError, FlowChartColors, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LendingToken, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, type SingleActionAmount, type SingleTokenInfo, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, logger };
870
+ export { type AccountInfo, type AllAccountsStore, AutoCompounderSTRK, AvnuWrapper, BaseStrategy, type CLVaultStrategySettings, ContractAddr, type DualActionAmount, type DualTokenInfo, ERC20, type EkuboBounds, EkuboCLVault, EkuboCLVaultStrategies, type EkuboPoolKey, type FAQ, FatalError, FlowChartColors, Global, type IConfig, type IInvestmentFlow, ILending, type ILendingMetadata, type ILendingPosition, type IProtocol, type IStrategyMetadata, Initializable, type LendingToken, MarginType, Network, PasswordJsonCryptoUtil, Pragma, type PriceInfo, Pricer, PricerFromApi, PricerRedis, type RequiredFields, type RequiredKeys, type RequiredStoreConfig, type RiskFactor, RiskType, type Route, type SingleActionAmount, type SingleTokenInfo, Store, type StoreConfig, type SwapInfo, TelegramNotif, type TokenInfo, VesuRebalance, type VesuRebalanceSettings, VesuRebalanceStrategies, Web3Number, ZkLend, assert, getAPIUsingHeadlessBrowser, getDefaultStoreConfig, getMainnetConfig, getNoRiskTags, getRiskColor, getRiskExplaination, logger };