Trait runtime::IssuePallet
source · pub trait IssuePallet {
// Required methods
fn request_issue<'life0, 'life1, 'async_trait>(
&'life0 self,
amount: u128,
vault_id: &'life1 VaultId
) -> Pin<Box<dyn Future<Output = Result<RequestIssueEvent, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn execute_issue<'life0, 'life1, 'async_trait>(
&'life0 self,
issue_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_issue<'life0, 'async_trait>(
&'life0 self,
issue_id: H256
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_issue_request<'life0, 'async_trait>(
&'life0 self,
issue_id: H256
) -> Pin<Box<dyn Future<Output = Result<InterBtcIssueRequest, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_vault_issue_requests<'life0, 'async_trait>(
&'life0 self,
account_id: AccountId
) -> Pin<Box<dyn Future<Output = Result<Vec<(H256, InterBtcIssueRequest)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_issue_period<'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_all_active_issues<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<(H256, InterBtcIssueRequest)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn request_issue<'life0, 'life1, 'async_trait>(
&'life0 self,
amount: u128,
vault_id: &'life1 VaultId
) -> Pin<Box<dyn Future<Output = Result<RequestIssueEvent, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_issue<'life0, 'life1, 'async_trait>( &'life0 self, amount: u128, vault_id: &'life1 VaultId ) -> Pin<Box<dyn Future<Output = Result<RequestIssueEvent, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Request a new issue
sourcefn execute_issue<'life0, 'life1, 'async_trait>(
&'life0 self,
issue_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 execute_issue<'life0, 'life1, 'async_trait>( &'life0 self, issue_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 issue request by providing a Bitcoin transaction inclusion proof
sourcefn cancel_issue<'life0, 'async_trait>(
&'life0 self,
issue_id: H256
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_issue<'life0, 'async_trait>( &'life0 self, issue_id: H256 ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Cancel an ongoing issue request