use thiserror::Error; #[derive(Error, Debug)] pub enum MevBotError { #[error("Solana client error: {0}")] SolanaClientError(#[from] solana_client::client_error::ClientError), #[error("Reqwest error: {0}")] ReqwestError(#[from] reqwest::Error), #[error("JSON error: {0}")] JsonError(#[from] serde_json::Error), #[error("Decimal error: {0}")] DecimalError(#[from] rust_decimal::Error), #[error("Custom error: {0}")] Custom(String), } pub type Result = std::result::Result;