cfx_rpc_cfx_types/
chain_meta.rs

1use parity_version::conflux_client_version;
2
3#[derive(Debug, Copy, Clone, Default)]
4pub struct ChainStaticMeta;
5
6impl ChainStaticMeta {
7    const CHAIN_NAME: &'static str = "ConfluxNetwork";
8    const PROTOCOL_VERSION: u64 = 65;
9
10    pub fn chain_name() -> String { Self::CHAIN_NAME.to_string() }
11
12    pub fn protocol_version() -> u64 { Self::PROTOCOL_VERSION }
13
14    pub fn client_version() -> String { conflux_client_version!() }
15}