diff --git a/bin/mev/src/main.rs b/bin/mev/src/main.rs index 8f432685..4724ea2d 100644 --- a/bin/mev/src/main.rs +++ b/bin/mev/src/main.rs @@ -13,6 +13,7 @@ pub enum NetworkArg { Mainnet, Sepolia, Goerli, + Holesky, } // NOTE: define this mapping so only this crate needs the `clap` dependency while still being able @@ -23,6 +24,7 @@ impl From for Network { NetworkArg::Mainnet => Self::Mainnet, NetworkArg::Sepolia => Self::Sepolia, NetworkArg::Goerli => Self::Goerli, + NetworkArg::Holesky => Self::Holesky, } } } diff --git a/mev-rs/src/network.rs b/mev-rs/src/network.rs index bc5082da..42aba1ec 100644 --- a/mev-rs/src/network.rs +++ b/mev-rs/src/network.rs @@ -8,6 +8,7 @@ pub enum Network { Mainnet, Sepolia, Goerli, + Holesky, Custom(String), } @@ -17,6 +18,7 @@ impl std::fmt::Display for Network { Self::Mainnet => write!(f, "mainnet"), Self::Sepolia => write!(f, "sepolia"), Self::Goerli => write!(f, "goerli"), + Self::Holesky => write!(f, "holesky"), Self::Custom(config) => write!(f, "custom network with config at `{config}`"), } } @@ -30,6 +32,7 @@ impl TryFrom<&Network> for Context { Network::Mainnet => Ok(Context::for_mainnet()), Network::Sepolia => Ok(Context::for_sepolia()), Network::Goerli => Ok(Context::for_goerli()), + Network::Holesky => Ok(Context::for_holesky()), Network::Custom(config) => Context::try_from_file(config), } }