Skip to content

Commit

Permalink
chore: add arb sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-eiger committed May 27, 2024
1 parent 329fa90 commit 07e0cd8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub enum NetworkName {
Hardhat,
ArbitrumOne,
ArbitrumGoerli,
ArbitrumSepolia,
Avalanche,
Matic, // Previously Polygon
Celo,
Expand All @@ -34,6 +35,7 @@ impl NetworkName {
"hardhat" => NetworkName::Hardhat,
"arbitrum-one" => NetworkName::ArbitrumOne,
"arbitrum-goerli" => NetworkName::ArbitrumGoerli,
"arbitrum-sepolia" => NetworkName::ArbitrumSepolia,
"avalanche" => NetworkName::Avalanche,
"matic" => NetworkName::Matic,
"celo" => NetworkName::Celo,
Expand All @@ -53,6 +55,7 @@ impl fmt::Display for NetworkName {
NetworkName::Hardhat => "hardhat",
NetworkName::ArbitrumOne => "arbitrum-one",
NetworkName::ArbitrumGoerli => "arbitrum-goerli",
NetworkName::ArbitrumSepolia => "arbitrum-sepolia",
NetworkName::Avalanche => "avalanche",
NetworkName::Matic => "matic",
NetworkName::Celo => "celo",
Expand All @@ -65,7 +68,7 @@ impl fmt::Display for NetworkName {
}
}

/// Maintained static list of supported Networks, the intervals target ~5minutes
/// Maintained static list of supported Networks, the intervals target ~5 minutes
/// depending on the blockchain average block processing time
pub static NETWORKS: Lazy<Vec<Network>> = Lazy::new(|| {
vec![
Expand Down Expand Up @@ -94,11 +97,16 @@ pub static NETWORKS: Lazy<Vec<Network>> = Lazy::new(|| {
name: NetworkName::from_string("arbitrum-one"),
interval: 600,
},
// ArbitrumGoerli (Arbitrum Testnet): ~.6 seconds
// ArbitrumGoerli (Arbitrum Testnet): ~0.6 seconds
Network {
name: NetworkName::from_string("arbitrum-goerli"),
interval: 500,
},
// ArbitrumSepolia: ~4 seconds
Network {
name: NetworkName::from_string("arbitrum-sepolia"),
interval: 75,
},
// Avalanche: ~3-5 seconds
Network {
name: NetworkName::from_string("avalanche"),
Expand Down

0 comments on commit 07e0cd8

Please sign in to comment.