2020-03-13 15:00:27 -07:00
|
|
|
pub const JSON_RPC_URL: &str = "http://devnet.solana.com";
|
2019-03-15 10:54:54 -07:00
|
|
|
|
|
|
|
lazy_static! {
|
|
|
|
pub static ref CONFIG_FILE: Option<String> = {
|
2019-03-20 16:12:50 -07:00
|
|
|
dirs::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::home_dir().map(|mut path| {
|
|
|
|
path.extend(&[".config", "solana", "id.json"]);
|
2019-03-15 10:54:54 -07:00
|
|
|
path.to_str().unwrap().to_string()
|
|
|
|
})
|
|
|
|
};
|
|
|
|
pub static ref DATA_DIR: Option<String> = {
|
2019-03-20 16:12:50 -07:00
|
|
|
dirs::home_dir().map(|mut path| {
|
|
|
|
path.extend(&[".local", "share", "solana", "install"]);
|
2019-03-15 10:54:54 -07:00
|
|
|
path.to_str().unwrap().to_string()
|
|
|
|
})
|
|
|
|
};
|
|
|
|
}
|