49c710e651
* removed explicit storage_tx within MsgModule, TxModule and BlockModule impls * created a NyxdWatcher that does not persist processed block info * removed unused imports
20 lines
478 B
Rust
20 lines
478 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 async_trait::async_trait;
|
|
use cosmrs::Any;
|
|
|
|
#[async_trait]
|
|
pub trait MsgModule {
|
|
fn type_url(&self) -> String;
|
|
|
|
async fn handle_msg(
|
|
&mut self,
|
|
index: usize,
|
|
msg: &Any,
|
|
tx: &ParsedTransactionResponse,
|
|
) -> Result<(), ScraperError>;
|
|
}
|