[][src]Trait muta_protocol::traits::MemPoolAdapter

pub trait MemPoolAdapter: Send + Sync {
    fn pull_txs<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx_hashes: Vec<Hash>
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<SignedTransaction>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn broadcast_tx<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx: SignedTransaction
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn check_signature<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx: SignedTransaction
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn check_transaction<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx: SignedTransaction
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn check_storage_exist<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx_hash: Hash
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_latest_epoch_id<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn pull_txs<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context,
    tx_hashes: Vec<Hash>
) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<SignedTransaction>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn broadcast_tx<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context,
    tx: SignedTransaction
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn check_signature<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context,
    tx: SignedTransaction
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn check_transaction<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context,
    tx: SignedTransaction
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn check_storage_exist<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context,
    tx_hash: Hash
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn get_latest_epoch_id<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context
) -> Pin<Box<dyn Future<Output = ProtocolResult<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...