Skip to content

Commit

Permalink
chore: add base
Browse files Browse the repository at this point in the history
  • Loading branch information
i0n committed Nov 11, 2024
1 parent de18f91 commit bf8bb59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub enum NetworkName {
Celo,
Optimism,
Fantom,
Base,
Unknown,
}

Expand All @@ -40,6 +41,7 @@ impl NetworkName {
"matic" => NetworkName::Matic,
"celo" => NetworkName::Celo,
"optimism" => NetworkName::Optimism,
"base" => NetworkName::Base,
"fantom" => NetworkName::Fantom,
_ => NetworkName::Unknown,
}
Expand All @@ -61,6 +63,7 @@ impl fmt::Display for NetworkName {
NetworkName::Celo => "celo",
NetworkName::Optimism => "optimism",
NetworkName::Fantom => "fantom",
NetworkName::Base => "base",
NetworkName::Unknown => "unknown",
};

Expand Down Expand Up @@ -132,5 +135,10 @@ pub static NETWORKS: Lazy<Vec<Network>> = Lazy::new(|| {
name: NetworkName::from_string("fantom"),
interval: 100,
},
// Base: ~2-3 seconds
Network {
name: NetworkName::from_string("base"),
interval: 100,
},
]
});

0 comments on commit bf8bb59

Please sign in to comment.