2021-02-16 13:48:20 -08:00
|
|
|
#![allow(clippy::integer_arithmetic)]
|
2020-04-01 19:45:37 -07:00
|
|
|
macro_rules! ACCOUNT_STRING {
|
|
|
|
() => {
|
2020-04-21 16:09:34 -07:00
|
|
|
r#", one of:
|
|
|
|
* a base58-encoded public key
|
|
|
|
* a path to a keypair file
|
|
|
|
* a hyphen; signals a JSON-encoded keypair on stdin
|
|
|
|
* the 'ASK' keyword; to recover a keypair via its seed phrase
|
|
|
|
* a hardware wallet keypair URL (i.e. usb://ledger)"#
|
2020-04-01 19:45:37 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! pubkey {
|
|
|
|
($arg:expr, $help:expr) => {
|
|
|
|
$arg.takes_value(true)
|
|
|
|
.validator(is_valid_pubkey)
|
|
|
|
.help(concat!($help, ACCOUNT_STRING!()))
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-07-12 23:10:10 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate const_format;
|
|
|
|
|
2020-04-14 12:10:25 -07:00
|
|
|
extern crate serde_derive;
|
|
|
|
|
2022-08-18 14:12:53 -07:00
|
|
|
pub mod address_lookup_table;
|
2020-05-14 11:24:14 -07:00
|
|
|
pub mod checks;
|
2021-07-28 08:43:32 -07:00
|
|
|
pub mod clap_app;
|
2019-10-04 15:13:21 -07:00
|
|
|
pub mod cli;
|
2019-10-04 19:54:09 -07:00
|
|
|
pub mod cluster_query;
|
2022-08-02 20:23:05 -07:00
|
|
|
pub mod compute_unit_price;
|
2020-09-23 13:36:34 -07:00
|
|
|
pub mod feature;
|
2020-09-30 20:17:29 -07:00
|
|
|
pub mod inflation;
|
2021-04-05 13:53:50 -07:00
|
|
|
pub mod memo;
|
2019-12-10 00:24:44 -08:00
|
|
|
pub mod nonce;
|
2020-12-21 13:02:53 -08:00
|
|
|
pub mod program;
|
2020-05-14 11:24:14 -07:00
|
|
|
pub mod spend_utils;
|
2019-09-29 21:18:15 -07:00
|
|
|
pub mod stake;
|
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;
|
2021-07-28 23:19:34 -07:00
|
|
|
pub mod wallet;
|