Skip to main content

TxRelayerTrait

Trait TxRelayerTrait 

Source
pub trait TxRelayerTrait: Send + Sync {
    // Required method
    fn submitter_address(&self) -> SubmitterId;

    // Provided methods
    fn select_next_nonce<'life0, 'async_trait>(
        &'life0 self,
        db_nonce_floor: Option<u64>,
    ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedNonce>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn send_transaction_with_nonce<'life0, 'async_trait>(
        &'life0 self,
        request: ContractCall,
        nonce: SubmittedNonce,
    ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn send_transaction_with_nonce_recording_attempts<'life0, 'async_trait>(
        &'life0 self,
        request: ContractCall,
        nonce: SubmittedNonce,
        recorder: Arc<dyn SignedAttemptRecorder>,
    ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn send_transaction<'life0, 'async_trait>(
        &'life0 self,
        request: ContractCall,
        db_nonce_floor: Option<u64>,
    ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn reconcile_pending_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _tx_hash: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = EyreResult<PendingTransactionStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn reconcile_pending_transactions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tx_hashes: &'life1 [String],
    ) -> Pin<Box<dyn Future<Output = EyreResult<PendingTransactionStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn submitter_address(&self) -> SubmitterId

Provided Methods§

Source

fn select_next_nonce<'life0, 'async_trait>( &'life0 self, db_nonce_floor: Option<u64>, ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedNonce>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_transaction_with_nonce<'life0, 'async_trait>( &'life0 self, request: ContractCall, nonce: SubmittedNonce, ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_transaction_with_nonce_recording_attempts<'life0, 'async_trait>( &'life0 self, request: ContractCall, nonce: SubmittedNonce, recorder: Arc<dyn SignedAttemptRecorder>, ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_transaction<'life0, 'async_trait>( &'life0 self, request: ContractCall, db_nonce_floor: Option<u64>, ) -> Pin<Box<dyn Future<Output = EyreResult<SubmittedTransaction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn reconcile_pending_transaction<'life0, 'life1, 'async_trait>( &'life0 self, _tx_hash: &'life1 str, ) -> Pin<Box<dyn Future<Output = EyreResult<PendingTransactionStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn reconcile_pending_transactions<'life0, 'life1, 'async_trait>( &'life0 self, tx_hashes: &'life1 [String], ) -> Pin<Box<dyn Future<Output = EyreResult<PendingTransactionStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§