Monero
Functions | Variables
anonymous_namespace{simplewallet.cpp} Namespace Reference

Functions

std::string input_line (const std::string &prompt)
 
epee::wipeable_string input_secure_line (const std::string &prompt)
 
boost::optional< tools::password_containerpassword_prompter (const char *prompt, bool verify)
 
boost::optional< tools::password_containerdefault_password_prompter (bool verify)
 
std::string interpret_rpc_response (bool ok, const std::string &status)
 
tools::scoped_message_writer success_msg_writer (bool color=false)
 
tools::scoped_message_writer message_writer (epee::console_colors color=epee::console_color_default, bool bright=false)
 
tools::scoped_message_writer fail_msg_writer ()
 
bool parse_bool (const std::string &s, bool &result)
 
template<typename F >
bool parse_bool_and_use (const std::string &s, F func)
 
bool parse_refresh_type (const std::string &s, tools::wallet2::RefreshType &refresh_type)
 
std::string get_refresh_type_name (tools::wallet2::RefreshType type)
 
std::string get_version_string (uint32_t version)
 
std::string oa_prompter (const std::string &url, const std::vector< std::string > &addresses, bool dnssec_valid)
 
bool parse_subaddress_indices (const std::string &arg, std::set< uint32_t > &subaddr_indices)
 
boost::optional< std::pair< uint32_t, uint32_t > > parse_subaddress_lookahead (const std::string &str)
 
void handle_transfer_exception (const std::exception_ptr &e, bool trusted_daemon)
 
bool check_file_overwrite (const std::string &filename)
 
void print_secret_key (const crypto::secret_key &k)
 

Variables

const std::array< const char *const, 5 > allowed_priority_strings = {{"default", "unimportant", "normal", "elevated", "priority"}}
 
const auto arg_wallet_file = wallet_args::arg_wallet_file()
 
const command_line::arg_descriptor< std::string > arg_generate_new_wallet = {"generate-new-wallet", sw::tr("Generate new wallet and save it to <arg>"), ""}
 
const command_line::arg_descriptor< std::string > arg_generate_from_device = {"generate-from-device", sw::tr("Generate new wallet from device and save it to <arg>"), ""}
 
const command_line::arg_descriptor< std::string > arg_generate_from_view_key = {"generate-from-view-key", sw::tr("Generate incoming-only wallet from view key"), ""}
 
const command_line::arg_descriptor< std::string > arg_generate_from_spend_key = {"generate-from-spend-key", sw::tr("Generate deterministic wallet from spend key"), ""}
 
const command_line::arg_descriptor< std::string > arg_generate_from_keys = {"generate-from-keys", sw::tr("Generate wallet from private keys"), ""}
 
const command_line::arg_descriptor< std::string > arg_generate_from_multisig_keys = {"generate-from-multisig-keys", sw::tr("Generate a master wallet from multisig wallet keys"), ""}
 
const auto arg_generate_from_json = wallet_args::arg_generate_from_json()
 
const command_line::arg_descriptor< std::string > arg_mnemonic_language = {"mnemonic-language", sw::tr("Language for mnemonic"), ""}
 
const command_line::arg_descriptor< std::string > arg_electrum_seed = {"electrum-seed", sw::tr("Specify Electrum seed for wallet recovery/creation"), ""}
 
const command_line::arg_descriptor< boolarg_restore_deterministic_wallet = {"restore-deterministic-wallet", sw::tr("Recover wallet using Electrum-style mnemonic seed"), false}
 
const command_line::arg_descriptor< boolarg_restore_multisig_wallet = {"restore-multisig-wallet", sw::tr("Recover multisig wallet using Electrum-style mnemonic seed"), false}
 
const command_line::arg_descriptor< boolarg_non_deterministic = {"non-deterministic", sw::tr("Generate non-deterministic view and spend keys"), false}
 
const command_line::arg_descriptor< boolarg_allow_mismatched_daemon_version = {"allow-mismatched-daemon-version", sw::tr("Allow communicating with a daemon that uses a different RPC version"), false}
 
const command_line::arg_descriptor< uint64_t > arg_restore_height = {"restore-height", sw::tr("Restore from specific blockchain height"), 0}
 
const command_line::arg_descriptor< boolarg_do_not_relay = {"do-not-relay", sw::tr("The newly created transaction will not be relayed to the monero network"), false}
 
const command_line::arg_descriptor< boolarg_create_address_file = {"create-address-file", sw::tr("Create an address file for new wallets"), false}
 
const command_line::arg_descriptor< std::string > arg_subaddress_lookahead = {"subaddress-lookahead", tools::wallet2::tr("Set subaddress lookahead sizes to <major>:<minor>"), ""}
 
const command_line::arg_descriptor< boolarg_use_english_language_names = {"use-english-language-names", sw::tr("Display English language names"), false}
 
const command_line::arg_descriptor< std::vector< std::string > > arg_command = {"command", ""}
 
struct {
   const char *   anonymous_namespace{simplewallet.cpp}::name
 
   tools::wallet2::RefreshType   anonymous_namespace{simplewallet.cpp}::refresh_type
 
refresh_type_names []
 

Function Documentation

◆ check_file_overwrite()

bool anonymous_namespace{simplewallet.cpp}::check_file_overwrite ( const std::string &  filename)

◆ default_password_prompter()

boost::optional<tools::password_container> anonymous_namespace{simplewallet.cpp}::default_password_prompter ( bool  verify)

◆ fail_msg_writer()

tools::scoped_message_writer anonymous_namespace{simplewallet.cpp}::fail_msg_writer ( )

◆ get_refresh_type_name()

std::string anonymous_namespace{simplewallet.cpp}::get_refresh_type_name ( tools::wallet2::RefreshType  type)

◆ get_version_string()

std::string anonymous_namespace{simplewallet.cpp}::get_version_string ( uint32_t  version)

◆ handle_transfer_exception()

void anonymous_namespace{simplewallet.cpp}::handle_transfer_exception ( const std::exception_ptr &  e,
bool  trusted_daemon 
)

◆ input_line()

std::string anonymous_namespace{simplewallet.cpp}::input_line ( const std::string &  prompt)

◆ input_secure_line()

epee::wipeable_string anonymous_namespace{simplewallet.cpp}::input_secure_line ( const std::string &  prompt)

◆ interpret_rpc_response()

std::string anonymous_namespace{simplewallet.cpp}::interpret_rpc_response ( bool  ok,
const std::string &  status 
)
inline

◆ message_writer()

tools::scoped_message_writer anonymous_namespace{simplewallet.cpp}::message_writer ( epee::console_colors  color = epee::console_color_default,
bool  bright = false 
)

◆ oa_prompter()

std::string anonymous_namespace{simplewallet.cpp}::oa_prompter ( const std::string &  url,
const std::vector< std::string > &  addresses,
bool  dnssec_valid 
)

◆ parse_bool()

bool anonymous_namespace{simplewallet.cpp}::parse_bool ( const std::string &  s,
bool result 
)

◆ parse_bool_and_use()

template<typename F >
bool anonymous_namespace{simplewallet.cpp}::parse_bool_and_use ( const std::string &  s,
F  func 
)

◆ parse_refresh_type()

bool anonymous_namespace{simplewallet.cpp}::parse_refresh_type ( const std::string &  s,
tools::wallet2::RefreshType refresh_type 
)

◆ parse_subaddress_indices()

bool anonymous_namespace{simplewallet.cpp}::parse_subaddress_indices ( const std::string &  arg,
std::set< uint32_t > &  subaddr_indices 
)

◆ parse_subaddress_lookahead()

boost::optional<std::pair<uint32_t, uint32_t> > anonymous_namespace{simplewallet.cpp}::parse_subaddress_lookahead ( const std::string &  str)

◆ password_prompter()

boost::optional<tools::password_container> anonymous_namespace{simplewallet.cpp}::password_prompter ( const char *  prompt,
bool  verify 
)

◆ print_secret_key()

void anonymous_namespace{simplewallet.cpp}::print_secret_key ( const crypto::secret_key k)

◆ success_msg_writer()

tools::scoped_message_writer anonymous_namespace{simplewallet.cpp}::success_msg_writer ( bool  color = false)

Variable Documentation

◆ allowed_priority_strings

const std::array<const char* const, 5> anonymous_namespace{simplewallet.cpp}::allowed_priority_strings = {{"default", "unimportant", "normal", "elevated", "priority"}}

◆ arg_allow_mismatched_daemon_version

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_allow_mismatched_daemon_version = {"allow-mismatched-daemon-version", sw::tr("Allow communicating with a daemon that uses a different RPC version"), false}

◆ arg_command

const command_line::arg_descriptor< std::vector<std::string> > anonymous_namespace{simplewallet.cpp}::arg_command = {"command", ""}

◆ arg_create_address_file

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_create_address_file = {"create-address-file", sw::tr("Create an address file for new wallets"), false}

◆ arg_do_not_relay

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_do_not_relay = {"do-not-relay", sw::tr("The newly created transaction will not be relayed to the monero network"), false}

◆ arg_electrum_seed

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_electrum_seed = {"electrum-seed", sw::tr("Specify Electrum seed for wallet recovery/creation"), ""}

◆ arg_generate_from_device

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_from_device = {"generate-from-device", sw::tr("Generate new wallet from device and save it to <arg>"), ""}

◆ arg_generate_from_json

const auto anonymous_namespace{simplewallet.cpp}::arg_generate_from_json = wallet_args::arg_generate_from_json()

◆ arg_generate_from_keys

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_from_keys = {"generate-from-keys", sw::tr("Generate wallet from private keys"), ""}

◆ arg_generate_from_multisig_keys

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_from_multisig_keys = {"generate-from-multisig-keys", sw::tr("Generate a master wallet from multisig wallet keys"), ""}

◆ arg_generate_from_spend_key

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_from_spend_key = {"generate-from-spend-key", sw::tr("Generate deterministic wallet from spend key"), ""}

◆ arg_generate_from_view_key

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_from_view_key = {"generate-from-view-key", sw::tr("Generate incoming-only wallet from view key"), ""}

◆ arg_generate_new_wallet

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_generate_new_wallet = {"generate-new-wallet", sw::tr("Generate new wallet and save it to <arg>"), ""}

◆ arg_mnemonic_language

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_mnemonic_language = {"mnemonic-language", sw::tr("Language for mnemonic"), ""}

◆ arg_non_deterministic

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_non_deterministic = {"non-deterministic", sw::tr("Generate non-deterministic view and spend keys"), false}

◆ arg_restore_deterministic_wallet

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_restore_deterministic_wallet = {"restore-deterministic-wallet", sw::tr("Recover wallet using Electrum-style mnemonic seed"), false}

◆ arg_restore_height

const command_line::arg_descriptor<uint64_t> anonymous_namespace{simplewallet.cpp}::arg_restore_height = {"restore-height", sw::tr("Restore from specific blockchain height"), 0}

◆ arg_restore_multisig_wallet

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_restore_multisig_wallet = {"restore-multisig-wallet", sw::tr("Recover multisig wallet using Electrum-style mnemonic seed"), false}

◆ arg_subaddress_lookahead

const command_line::arg_descriptor<std::string> anonymous_namespace{simplewallet.cpp}::arg_subaddress_lookahead = {"subaddress-lookahead", tools::wallet2::tr("Set subaddress lookahead sizes to <major>:<minor>"), ""}

◆ arg_use_english_language_names

const command_line::arg_descriptor<bool> anonymous_namespace{simplewallet.cpp}::arg_use_english_language_names = {"use-english-language-names", sw::tr("Display English language names"), false}

◆ arg_wallet_file

const auto anonymous_namespace{simplewallet.cpp}::arg_wallet_file = wallet_args::arg_wallet_file()

◆ name

const char* anonymous_namespace{simplewallet.cpp}::name

◆ refresh_type

tools::wallet2::RefreshType anonymous_namespace{simplewallet.cpp}::refresh_type

◆ refresh_type_names

const { ... } anonymous_namespace{simplewallet.cpp}::refresh_type_names[]
Initial value:
=
{
{ "optimize-coinbase", tools::wallet2::RefreshOptimizeCoinbase },
{ "optimized-coinbase", tools::wallet2::RefreshOptimizeCoinbase },
}
Definition: wallet2.h:159
Definition: wallet2.h:162
Definition: wallet2.h:161