Struct abstract_sdk::Vault
source · pub struct Vault<'a, T: VaultInterface> { /* private fields */ }Implementations§
source§impl<'a, T: VaultInterface> Vault<'a, T>
impl<'a, T: VaultInterface> Vault<'a, T>
sourcepub fn query_total_value(&self) -> AbstractSdkResult<Uint128>
pub fn query_total_value(&self) -> AbstractSdkResult<Uint128>
Query the total value denominated in the base asset The provided address must implement the TotalValue Query
sourcepub fn asset(&self, asset: &AssetEntry) -> AbstractSdkResult<ProxyAsset>
pub fn asset(&self, asset: &AssetEntry) -> AbstractSdkResult<ProxyAsset>
RawQuery the proxy for a ProxyAsset
sourcepub fn balance_value(
&self,
asset_entry: &AssetEntry
) -> AbstractSdkResult<Uint128>
pub fn balance_value( &self, asset_entry: &AssetEntry ) -> AbstractSdkResult<Uint128>
Query the holding value denominated in the base asset The provided address must implement the HoldingValue Query
sourcepub fn asset_value(
&self,
asset_entry: &AssetEntry,
amount: Option<Uint128>
) -> AbstractSdkResult<Uint128>
pub fn asset_value( &self, asset_entry: &AssetEntry, amount: Option<Uint128> ) -> AbstractSdkResult<Uint128>
Query the token amount of a specific asset The asset must be registered in the proxy contract
sourcepub fn enabled_assets_list(
&self
) -> AbstractSdkResult<(Vec<AssetEntry>, AssetEntry)>
pub fn enabled_assets_list( &self ) -> AbstractSdkResult<(Vec<AssetEntry>, AssetEntry)>
List ProxyAssets raw
sourcepub fn proxy_assets_list(
&self
) -> AbstractSdkResult<Vec<(AssetEntry, ProxyAsset)>>
pub fn proxy_assets_list( &self ) -> AbstractSdkResult<Vec<(AssetEntry, ProxyAsset)>>
List ProxyAssets raw