c92a7e3e35
globally updated sqlx to 0.6.3 wip basic processing loop wip starting on modules all of the requesting logic, catching up, etc remaining work includes persisting the data wip persisting block data initial and extremely basic nyxd block scraper
17 lines
468 B
Rust
17 lines
468 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use crate::block_processor::types::ParsedTransactionResponse;
|
|
use crate::error::ScraperError;
|
|
use crate::storage::StorageTransaction;
|
|
use async_trait::async_trait;
|
|
|
|
#[async_trait]
|
|
pub trait TxModule {
|
|
async fn handle_tx(
|
|
&mut self,
|
|
tx: &ParsedTransactionResponse,
|
|
storage_tx: &mut StorageTransaction,
|
|
) -> Result<(), ScraperError>;
|
|
}
|