2020-04-01 19:45:37 -07:00
|
|
|
macro_rules! ACCOUNT_STRING {
|
|
|
|
() => {
|
|
|
|
r#"Can be:
|
|
|
|
* a bs58 pubkey string
|
|
|
|
* path to keypair file
|
|
|
|
* '-' to take json-encoded keypair string from stdin
|
|
|
|
* 'ASK' to ask for a passphrase
|
|
|
|
* path to hardware wallet (usb://..)"#
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
macro_rules! pubkey {
|
|
|
|
($arg:expr, $help:expr) => {
|
|
|
|
$arg.takes_value(true)
|
|
|
|
.validator(is_valid_pubkey)
|
|
|
|
.help(concat!($help, ACCOUNT_STRING!()))
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-04-14 12:10:25 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
2019-10-04 15:13:21 -07:00
|
|
|
pub mod cli;
|
2020-04-14 12:10:25 -07:00
|
|
|
pub mod cli_output;
|
2019-10-04 19:54:09 -07:00
|
|
|
pub mod cluster_query;
|
2019-08-08 10:13:06 -07:00
|
|
|
pub mod display;
|
2019-12-10 00:24:44 -08:00
|
|
|
pub mod nonce;
|
2020-01-26 00:27:24 -08:00
|
|
|
pub mod offline;
|
2019-09-29 21:18:15 -07:00
|
|
|
pub mod stake;
|
2019-10-04 14:18:19 -07:00
|
|
|
pub mod storage;
|
2020-04-09 18:05:56 -07:00
|
|
|
pub mod test_utils;
|
2019-09-03 10:38:12 -07:00
|
|
|
pub mod validator_info;
|
2019-09-18 09:29:57 -07:00
|
|
|
pub mod vote;
|