referrerpolicy=no-referrer-when-downgrade
relay_utils

Trait TransactionTracker

Source
pub trait TransactionTracker: Send {
    type HeaderId: Clone + Debug + Send;

    // Required method
    fn wait<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = TrackedTransactionStatus<Self::HeaderId>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Transaction tracker.

Required Associated Types§

Source

type HeaderId: Clone + Debug + Send

Header id, used by the chain.

Required Methods§

Source

fn wait<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = TrackedTransactionStatus<Self::HeaderId>> + Send + 'async_trait>>
where Self: 'async_trait,

Wait until transaction is either finalized or invalidated/lost.

Implementors§

impl<C: Chain, E: Environment<C>> TransactionTracker for TransactionTracker<C, E>