Skip to content

Commit 2dae689

Browse files
committed
chore: add base
1 parent de18f91 commit 2dae689

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/networks.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub enum NetworkName {
2323
Celo,
2424
Optimism,
2525
Fantom,
26+
Base,
2627
Unknown,
2728
}
2829

@@ -40,6 +41,7 @@ impl NetworkName {
4041
"matic" => NetworkName::Matic,
4142
"celo" => NetworkName::Celo,
4243
"optimism" => NetworkName::Optimism,
44+
"base" => NetworkName::Base,
4345
"fantom" => NetworkName::Fantom,
4446
_ => NetworkName::Unknown,
4547
}
@@ -61,6 +63,7 @@ impl fmt::Display for NetworkName {
6163
NetworkName::Celo => "celo",
6264
NetworkName::Optimism => "optimism",
6365
NetworkName::Fantom => "fantom",
66+
NetworkName::Base => "base",
6467
NetworkName::Unknown => "unknown",
6568
};
6669

@@ -132,5 +135,10 @@ pub static NETWORKS: Lazy<Vec<Network>> = Lazy::new(|| {
132135
name: NetworkName::from_string("fantom"),
133136
interval: 100,
134137
},
138+
// Base: ~2-3 seconds
139+
Network {
140+
name: NetworkName::from_string("base"),
141+
interval: 100,
142+
},
135143
]
136144
});

0 commit comments

Comments
 (0)