TARAXA
tools.cpp File Reference
#include "cli/tools.hpp"
#include <pwd.h>
#include <boost/algorithm/string.hpp>
#include "cli/config.hpp"
#include "cli/configs.hpp"
#include "common/jsoncpp.hpp"

Namespaces

 taraxa
 
 taraxa::cli
 
 taraxa::cli::tools
 

Functions

int taraxa::cli::tools::getChainIdFromString (std::string &chain_str)
 
Json::Value taraxa::cli::tools::getConfig (Config::ChainIdType chain_id)
 
Json::Value taraxa::cli::tools::getGenesis (Config::ChainIdType chain_id)
 
Json::Value taraxa::cli::tools::overrideConfig (Json::Value &conf, std::string &data_dir, const vector< string > &boot_nodes, const vector< string > &log_channels, const vector< string > &log_configurations, const vector< string > &boot_nodes_append, const vector< string > &log_channels_append)
 
void taraxa::cli::tools::generateWallet (const string &wallet)
 
Json::Value taraxa::cli::tools::overrideWallet (Json::Value &wallet, const std::string &node_key, const std::string &vrf_key)
 
void taraxa::cli::tools::generateAccount (const dev::KeyPair &account)
 
void taraxa::cli::tools::generateAccount ()
 
void taraxa::cli::tools::generateAccountFromKey (const string &key)
 
void taraxa::cli::tools::generateVrf (const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk)
 
void taraxa::cli::tools::generateVrf ()
 
void taraxa::cli::tools::generateVrfFromKey (const string &key)
 
Json::Value taraxa::cli::tools::createWalletJson (const dev::KeyPair &account, const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk)
 
std::string taraxa::cli::tools::getHomeDir ()
 
std::string taraxa::cli::tools::getTaraxaDefaultDir ()
 
std::string taraxa::cli::tools::getTaraxaDataDefaultDir ()
 
std::string taraxa::cli::tools::getTaraxaDefaultWalletFile ()
 
std::string taraxa::cli::tools::getTaraxaDefaultConfigFile ()
 
std::string taraxa::cli::tools::getTaraxaDefaultGenesisFile ()