Struct abstract_sdk::apis::vault::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) -> StdResult<Uint128>
pub fn query_total_value(&self) -> StdResult<Uint128>
Query the total value denominated in the base asset The provided address must implement the TotalValue Query
sourcepub fn asset(&self, asset: &AssetEntry) -> StdResult<ProxyAsset>
pub fn asset(&self, asset: &AssetEntry) -> StdResult<ProxyAsset>
RawQuery the proxy for a ProxyAsset
sourcepub fn balance_value(&self, asset_entry: &AssetEntry) -> StdResult<Uint128>
pub fn balance_value(&self, asset_entry: &AssetEntry) -> StdResult<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>
) -> StdResult<Uint128>
pub fn asset_value(
&self,
asset_entry: &AssetEntry,
amount: Option<Uint128>
) -> StdResult<Uint128>
Query the token amount of a specific asset The asset must be registered in the proxy contract
sourcepub fn enabled_assets_list(&self) -> StdResult<(Vec<AssetEntry>, AssetEntry)>
pub fn enabled_assets_list(&self) -> StdResult<(Vec<AssetEntry>, AssetEntry)>
List ProxyAssets raw
sourcepub fn proxy_assets_list(&self) -> StdResult<Vec<(AssetEntry, ProxyAsset)>>
pub fn proxy_assets_list(&self) -> StdResult<Vec<(AssetEntry, ProxyAsset)>>
List ProxyAssets raw