From bb49b23b8fc77bbc9b8eb326ff1e79abed789fd1 Mon Sep 17 00:00:00 2001 From: Niclas Blomberg Date: Mon, 19 Feb 2024 11:38:40 +0100 Subject: [PATCH] feat: add holesky --- src/env.rs | 2 ++ src/phoenix/inclusion_monitor/loki_client/slot.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/env.rs b/src/env.rs index b684ca8..56c002b 100644 --- a/src/env.rs +++ b/src/env.rs @@ -44,6 +44,7 @@ impl<'de> Deserialize<'de> for Env { pub enum Network { Mainnet, Goerli, + Holesky, } impl fmt::Display for Network { @@ -51,6 +52,7 @@ impl fmt::Display for Network { let str = match &self { Network::Mainnet => "mainnet", Network::Goerli => "goerli", + Network::Holesky => "holesky", }; write!(f, "{}", str) } diff --git a/src/phoenix/inclusion_monitor/loki_client/slot.rs b/src/phoenix/inclusion_monitor/loki_client/slot.rs index abd014a..4553225 100644 --- a/src/phoenix/inclusion_monitor/loki_client/slot.rs +++ b/src/phoenix/inclusion_monitor/loki_client/slot.rs @@ -11,6 +11,7 @@ lazy_static! { match APP_CONFIG.network { Network::Mainnet => "2020-12-01T12:00:23Z".parse().unwrap(), Network::Goerli => "2021-03-23T14:00:00Z".parse().unwrap(), + Network::Holesky => "2023-09-28T12:00:00Z".parse().unwrap(), } }; }