mod commands;
mod config;
mod log;
mod oracle;
mod transaction;
use anyhow::Result;
use clap::Parser;
use config::Config;
fn main() -> Result<()> {
dotenvy::dotenv().ok();
let config = Config::try_parse()?;
log::NO_DECORATION
.set(config.no_decoration)
.expect("Failed to set NO_DECORATION");
log::DEBUG.set(config.debug).expect("Failed to set DEBUG");
transaction::SKIP_SIMULATION
.set(config.skip_simulation)
.expect("Failed to set SKIP_SIMULATION");
commands::handle(&config)
}