quantus_cli/config/
mod.rs1use serde::{Deserialize, Serialize};
10
11pub const COMPATIBLE_RUNTIME_VERSIONS: &[u32] = &[108];
13
14pub fn is_runtime_compatible(spec_version: u32) -> bool {
16 COMPATIBLE_RUNTIME_VERSIONS.contains(&spec_version)
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
21pub struct Config {
22 pub node_url: String,
24
25 pub default_wallet: Option<String>,
27
28 pub log_level: String,
30
31 pub version: String,
33}
34
35impl Default for Config {
36 fn default() -> Self {
37 Self {
38 node_url: "ws://127.0.0.1:9944".to_string(),
39 default_wallet: None,
40 log_level: "info".to_string(),
41 version: "1.0.0".to_string(),
42 }
43 }
44}