Define an array of all NetworkIds in serai_primitives

This commit is contained in:
Luke Parker
2023-10-12 23:59:21 -04:00
parent b7746aa71d
commit 6a4c57e86f
6 changed files with 20 additions and 14 deletions

View File

@@ -31,6 +31,9 @@ pub enum NetworkId {
Monero,
}
pub const NETWORKS: [NetworkId; 4] =
[NetworkId::Serai, NetworkId::Bitcoin, NetworkId::Ethereum, NetworkId::Monero];
/// The type used to identify coins.
#[derive(
Clone,