From bf8bb592f64d1b54e79d53bca7f294577701f6fd Mon Sep 17 00:00:00 2001 From: i0n Date: Thu, 7 Nov 2024 10:50:12 +0000 Subject: [PATCH] chore: add base --- src/networks.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/networks.rs b/src/networks.rs index 46de753..6ebcbcd 100644 --- a/src/networks.rs +++ b/src/networks.rs @@ -23,6 +23,7 @@ pub enum NetworkName { Celo, Optimism, Fantom, + Base, Unknown, } @@ -40,6 +41,7 @@ impl NetworkName { "matic" => NetworkName::Matic, "celo" => NetworkName::Celo, "optimism" => NetworkName::Optimism, + "base" => NetworkName::Base, "fantom" => NetworkName::Fantom, _ => NetworkName::Unknown, } @@ -61,6 +63,7 @@ impl fmt::Display for NetworkName { NetworkName::Celo => "celo", NetworkName::Optimism => "optimism", NetworkName::Fantom => "fantom", + NetworkName::Base => "base", NetworkName::Unknown => "unknown", }; @@ -132,5 +135,10 @@ pub static NETWORKS: Lazy> = Lazy::new(|| { name: NetworkName::from_string("fantom"), interval: 100, }, + // Base: ~2-3 seconds + Network { + name: NetworkName::from_string("base"), + interval: 100, + }, ] });