mevlog 0.9.2

EVM transactions monitoring and querying CLI/TUI powered by Revm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use eyre::Result;
use mevlog::misc::db_actions::{db_file_exists, download_db_file, remove_db_files};

#[derive(Debug, clap::Parser)]
pub struct UpdateDBArgs {}

impl UpdateDBArgs {
    pub async fn run(&self) -> Result<()> {
        if db_file_exists() {
            remove_db_files().await?;
        }
        download_db_file().await?;
        Ok(())
    }
}