openzeppelin_relayer::domain::price_calculator

Trait PriceCalculatorTrait

Source
pub trait PriceCalculatorTrait: Send + Sync {
    // Required methods
    fn get_transaction_price_params<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tx_data: &'life1 EvmTransactionData,
        relayer: &'life2 RelayerRepoModel,
    ) -> Pin<Box<dyn Future<Output = Result<PriceParams, TransactionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn calculate_bumped_gas_price<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tx: &'life1 TransactionRepoModel,
        relayer: &'life2 RelayerRepoModel,
    ) -> Pin<Box<dyn Future<Output = Result<PriceParams, TransactionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn get_transaction_price_params<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tx_data: &'life1 EvmTransactionData, relayer: &'life2 RelayerRepoModel, ) -> Pin<Box<dyn Future<Output = Result<PriceParams, TransactionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn calculate_bumped_gas_price<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tx: &'life1 TransactionRepoModel, relayer: &'life2 RelayerRepoModel, ) -> Pin<Box<dyn Future<Output = Result<PriceParams, TransactionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§