pub trait TicketRedeemActions {
// Required methods
fn redeem_tickets<'life0, 'async_trait>(
&'life0 self,
selector: TicketSelector,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingAction>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn redeem_ticket<'life0, 'async_trait>(
&'life0 self,
ack: AcknowledgedTicket,
) -> Pin<Box<dyn Future<Output = Result<PendingAction>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Gathers all the ticket-redemption-related on-chain calls.
Required Methods§
Sourcefn redeem_tickets<'life0, 'async_trait>(
&'life0 self,
selector: TicketSelector,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingAction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn redeem_tickets<'life0, 'async_trait>(
&'life0 self,
selector: TicketSelector,
) -> Pin<Box<dyn Future<Output = Result<Vec<PendingAction>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Redeems all tickets based on the given TicketSelector.
Sourcefn redeem_ticket<'life0, 'async_trait>(
&'life0 self,
ack: AcknowledgedTicket,
) -> Pin<Box<dyn Future<Output = Result<PendingAction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn redeem_ticket<'life0, 'async_trait>(
&'life0 self,
ack: AcknowledgedTicket,
) -> Pin<Box<dyn Future<Output = Result<PendingAction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Tries to redeem the given ticket. If the ticket is not redeemable, returns an error. Otherwise, the transaction hash of the on-chain redemption is returned.