pub trait VaultRegistryPallet {
Show 14 methods
// Required methods
fn get_vault<'life0, 'life1, 'async_trait>(
&'life0 self,
vault_id: &'life1 VaultId
) -> Pin<Box<dyn Future<Output = Result<InterBtcVault, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_vaults_by_account_id<'life0, 'life1, 'async_trait>(
&'life0 self,
account_id: &'life1 AccountId
) -> Pin<Box<dyn Future<Output = Result<Vec<VaultId>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_all_vaults<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<InterBtcVault>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_vault<'life0, 'life1, 'async_trait>(
&'life0 self,
vault_id: &'life1 VaultId,
collateral: u128
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn deposit_collateral<'life0, 'life1, 'async_trait>(
&'life0 self,
vault_id: &'life1 VaultId,
amount: u128
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn withdraw_collateral<'life0, 'life1, 'async_trait>(
&'life0 self,
vault_id: &'life1 VaultId,
amount: u128
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_public_key<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<BtcPublicKey>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_public_key<'life0, 'async_trait>(
&'life0 self,
public_key: BtcPublicKey
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_required_collateral_for_wrapped<'life0, 'async_trait>(
&'life0 self,
amount_btc: u128,
collateral_currency: CurrencyId
) -> Pin<Box<dyn Future<Output = Result<u128, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_required_collateral_for_vault<'life0, 'async_trait>(
&'life0 self,
vault_id: VaultId
) -> Pin<Box<dyn Future<Output = Result<u128, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_vault_total_collateral<'life0, 'async_trait>(
&'life0 self,
vault_id: VaultId
) -> Pin<Box<dyn Future<Output = Result<u128, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_collateralization_from_vault<'life0, 'async_trait>(
&'life0 self,
vault_id: VaultId,
only_issued: bool
) -> Pin<Box<dyn Future<Output = Result<u128, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_current_client_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 [u8],
code_hash: &'life2 H256
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn set_pending_client_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 [u8],
code_hash: &'life2 H256
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}