pub trait UtilFuncs {
// Required methods
fn get_current_chain_height<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_rpc_properties<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_native_currency_id(&self) -> CurrencyId;
fn get_account_id(&self) -> &AccountId;
fn is_this_vault(&self, vault_id: &VaultId) -> bool;
fn get_foreign_assets_metadata<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<(u32, AssetMetadata)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_foreign_asset_metadata<'life0, 'async_trait>(
&'life0 self,
id: u32
) -> Pin<Box<dyn Future<Output = Result<AssetMetadata, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_lend_tokens<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<(CurrencyId, CurrencyId)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn get_current_chain_height<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_chain_height<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Gets the current height of the parachain
fn get_rpc_properties<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Map<String, Value>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
sourcefn get_native_currency_id(&self) -> CurrencyId
fn get_native_currency_id(&self) -> CurrencyId
Gets the ID of the native currency.
sourcefn get_account_id(&self) -> &AccountId
fn get_account_id(&self) -> &AccountId
Get the address of the configured signer.