Trait runtime::RedeemPallet

source ·
pub trait RedeemPallet {
    // Required methods
    fn request_redeem<'life0, 'life1, 'async_trait>(
        &'life0 self,
        amount: u128,
        btc_address: BtcAddress,
        vault_id: &'life1 VaultId
    ) -> Pin<Box<dyn Future<Output = Result<H256, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn execute_redeem<'life0, 'life1, 'async_trait>(
        &'life0 self,
        redeem_id: H256,
        raw_proof: &'life1 RawTransactionProof
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel_redeem<'life0, 'async_trait>(
        &'life0 self,
        redeem_id: H256,
        reimburse: bool
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_redeem_request<'life0, 'async_trait>(
        &'life0 self,
        redeem_id: H256
    ) -> Pin<Box<dyn Future<Output = Result<InterBtcRedeemRequest, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_vault_redeem_requests<'life0, 'async_trait>(
        &'life0 self,
        account_id: AccountId
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(H256, InterBtcRedeemRequest)>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_redeem_period<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<BlockNumber, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn request_redeem<'life0, 'life1, 'async_trait>( &'life0 self, amount: u128, btc_address: BtcAddress, vault_id: &'life1 VaultId ) -> Pin<Box<dyn Future<Output = Result<H256, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Request a new redeem

source

fn execute_redeem<'life0, 'life1, 'async_trait>( &'life0 self, redeem_id: H256, raw_proof: &'life1 RawTransactionProof ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute a redeem request by providing a Bitcoin transaction inclusion proof

source

fn cancel_redeem<'life0, 'async_trait>( &'life0 self, redeem_id: H256, reimburse: bool ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Cancel an ongoing redeem request

source

fn get_redeem_request<'life0, 'async_trait>( &'life0 self, redeem_id: H256 ) -> Pin<Box<dyn Future<Output = Result<InterBtcRedeemRequest, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_vault_redeem_requests<'life0, 'async_trait>( &'life0 self, account_id: AccountId ) -> Pin<Box<dyn Future<Output = Result<Vec<(H256, InterBtcRedeemRequest)>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Get all redeem requests requested of the given vault

source

fn get_redeem_period<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<BlockNumber, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§