Trait NyxdScraperTransaction
Source pub trait NyxdScraperTransaction {
// Required methods
fn commit<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait;
fn persist_validators<'life0, 'life1, 'async_trait>(
&'life0 mut self,
validators: &'life1 Response,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn persist_block_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block: &'life1 Block,
total_gas: i64,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn persist_commits<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
commits: &'life1 Commit,
validators: &'life2 Response,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn persist_txs<'life0, 'life1, 'async_trait>(
&'life0 mut self,
txs: &'life1 [ParsedTransactionResponse],
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn persist_messages<'life0, 'life1, 'async_trait>(
&'life0 mut self,
txs: &'life1 [ParsedTransactionResponse],
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_last_processed<'life0, 'async_trait>(
&'life0 mut self,
height: i64,
) -> Pin<Box<dyn Future<Output = Result<(), NyxdScraperStorageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}