//! Score a single Solana mint.
//!
//! Delegates to the `score` binary.
//!
//! Usage:
//! ```bash
//! cargo run --example score_mint -- <MINT_ADDRESS>
//! # Or directly:
//! cargo run --bin score -- --mint <MINT_ADDRESS>
//! ```

fn main() -> anyhow::Result<()> {
    let tst = std::env::args()
        .nth(1)
        .unwrap_or_else(|| "HdvZF538TerjMWc1cmtWVKUaGkS8d77sGH5QaDCCpump".to_string());

    let start = std::time::Instant::now();

    let _s = std::process::Command::new("cargo")
        .args(["run", "--bin", "score", "--", "--mint", &tst])
        .status()?;

    let elapsed = start.elapsed();
    eprintln!("Scoring TST completed in {:.3}s", elapsed.as_secs_f64());

    let bucky = std::env::args()
        .nth(1)
        .unwrap_or_else(|| "BrqRRdSD9cgNGAuXy2rHsGLwZdeUKio2cdMrVDCX4yvU".to_string());

    let start = std::time::Instant::now();

    let _s = std::process::Command::new("cargo")
        .args(["run", "--bin", "score", "--", "--mint", &bucky])
        .status()?;

    let elapsed = start.elapsed();
    eprintln!("Scoring Bucky completed in {:.3}s", elapsed.as_secs_f64());

    Ok(())
}
