// Copyright 2023 - Nym Technologies SA // SPDX-License-Identifier: Apache-2.0 use crate::block_processor::types::ParsedTransactionResponse; use crate::error::ScraperError; use async_trait::async_trait; #[async_trait] pub trait TxModule { async fn handle_tx(&mut self, tx: &ParsedTransactionResponse) -> Result<(), ScraperError>; }