TARAXA
tools.hpp File Reference
#include <json/json.h>
#include <libdevcrypto/Common.h>
#include <string>
#include "cli/config.hpp"
#include "common/vrf_wrapper.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

void taraxa::cli::tools::generateAccount ()
 
void taraxa::cli::tools::generateAccount (const dev::KeyPair &account)
 
void taraxa::cli::tools::generateAccountFromKey (const std::string &key)
 
void taraxa::cli::tools::generateVrf ()
 
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::generateVrfFromKey (const std::string &key)
 
int taraxa::cli::tools::getChainIdFromString (std::string &chain_str)
 
void taraxa::cli::tools::getConfig (const std::string &config, cli::Config::ChainIdType chain_id)
 
Json::Value taraxa::cli::tools::getConfig (Config::ChainIdType chain_id)
 
Json::Value taraxa::cli::tools::getGenesis (Config::ChainIdType chain_id)
 
void taraxa::cli::tools::generateWallet (const std::string &wallet)
 
Json::Value taraxa::cli::tools::overrideConfig (Json::Value &config, std::string &data_dir, const std::vector< std::string > &boot_nodes, const std::vector< std::string > &log_channels, const std::vector< std::string > &log_configurations, const std::vector< std::string > &boot_nodes_append, const std::vector< std::string > &log_channels_append)
 
Json::Value taraxa::cli::tools::overrideWallet (Json::Value &wallet, const std::string &node_key, const std::string &vrf_key)
 
std::string taraxa::cli::tools::getHomeDir ()
 
std::string taraxa::cli::tools::getTaraxaDefaultDir ()
 
std::string taraxa::cli::tools::getTaraxaDataDefaultDir ()
 
std::string taraxa::cli::tools::getTaraxaDefaultConfigFile ()
 
std::string taraxa::cli::tools::getTaraxaDefaultWalletFile ()
 
std::string taraxa::cli::tools::getTaraxaDefaultGenesisFile ()
 
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)
 

Variables

constexpr const char * taraxa::cli::tools::DEFAULT_TARAXA_DIR_NAME = ".taraxa"
 
constexpr const char * taraxa::cli::tools::DEFAULT_TARAXA_DATA_DIR_NAME = ".taraxa/data"
 
constexpr const char * taraxa::cli::tools::DEFAULT_WALLET_FILE_NAME = "wallet.json"
 
constexpr const char * taraxa::cli::tools::DEFAULT_CONFIG_FILE_NAME = "config.json"
 
constexpr const char * taraxa::cli::tools::DEFAULT_GENESIS_FILE_NAME = "genesis.json"
 
const std::filesystem::path taraxa::cli::tools::configs_path = std::filesystem::current_path() / "config_jsons"