solana/install/src/defaults.rs

23 lines
767 B
Rust

pub const JSON_RPC_URL: &str = "http://api.devnet.solana.com";
lazy_static! {
pub static ref CONFIG_FILE: Option<String> = {
dirs_next::home_dir().map(|mut path| {
path.extend([".config", "solana", "install", "config.yml"]);
path.to_str().unwrap().to_string()
})
};
pub static ref USER_KEYPAIR: Option<String> = {
dirs_next::home_dir().map(|mut path| {
path.extend([".config", "solana", "id.json"]);
path.to_str().unwrap().to_string()
})
};
pub static ref DATA_DIR: Option<String> = {
dirs_next::home_dir().map(|mut path| {
path.extend([".local", "share", "solana", "install"]);
path.to_str().unwrap().to_string()
})
};
}