wallet_standard_base/
clusters.rs

1use core::{fmt, hash::Hash};
2
3pub trait Cluster: fmt::Debug + PartialEq + Eq + PartialOrd + Ord + Hash + Clone + Copy {
4    fn identifier(&self) -> &str;
5
6    fn chain(&self) -> &str;
7
8    fn endpoint(&self) -> &str;
9
10    fn chains(&self) -> &'static [&'static str];
11}
12
13pub trait ClusterEnabled {
14    fn mainnet(&self) -> bool {
15        true
16    }
17
18    fn testnet(&self) -> bool {
19        true
20    }
21
22    fn devnet(&self) -> bool {
23        true
24    }
25
26    fn localnet(&self) -> bool {
27        true
28    }
29}