TARAXA
taraxa::cli::tools Namespace Reference

Functions

void generateAccount ()
 
void generateAccount (const dev::KeyPair &account)
 
void generateAccountFromKey (const std::string &key)
 
void generateVrf ()
 
void generateVrf (const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk)
 
void generateVrfFromKey (const std::string &key)
 
int getChainIdFromString (std::string &chain_str)
 
void getConfig (const std::string &config, cli::Config::ChainIdType chain_id)
 
Json::Value getConfig (Config::ChainIdType chain_id)
 
Json::Value getGenesis (Config::ChainIdType chain_id)
 
void generateWallet (const std::string &wallet)
 
Json::Value 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 overrideWallet (Json::Value &wallet, const std::string &node_key, const std::string &vrf_key)
 
std::string getHomeDir ()
 
std::string getTaraxaDefaultDir ()
 
std::string getTaraxaDataDefaultDir ()
 
std::string getTaraxaDefaultConfigFile ()
 
std::string getTaraxaDefaultWalletFile ()
 
std::string getTaraxaDefaultGenesisFile ()
 
Json::Value createWalletJson (const dev::KeyPair &account, const taraxa::vrf_wrapper::vrf_sk_t &sk, const taraxa::vrf_wrapper::vrf_pk_t &pk)
 
Json::Value 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 generateWallet (const string &wallet)
 
void generateAccountFromKey (const string &key)
 
void generateVrfFromKey (const string &key)
 

Variables

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

Function Documentation

◆ createWalletJson()

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 
)

◆ generateAccount() [1/2]

void taraxa::cli::tools::generateAccount ( )

◆ generateAccount() [2/2]

void taraxa::cli::tools::generateAccount ( const dev::KeyPair account)

◆ generateAccountFromKey() [1/2]

void taraxa::cli::tools::generateAccountFromKey ( const std::string &  key)

◆ generateAccountFromKey() [2/2]

void taraxa::cli::tools::generateAccountFromKey ( const string &  key)

◆ generateVrf() [1/2]

void taraxa::cli::tools::generateVrf ( )

◆ generateVrf() [2/2]

void taraxa::cli::tools::generateVrf ( const taraxa::vrf_wrapper::vrf_sk_t sk,
const taraxa::vrf_wrapper::vrf_pk_t pk 
)

◆ generateVrfFromKey() [1/2]

void taraxa::cli::tools::generateVrfFromKey ( const std::string &  key)

◆ generateVrfFromKey() [2/2]

void taraxa::cli::tools::generateVrfFromKey ( const string &  key)

◆ generateWallet() [1/2]

void taraxa::cli::tools::generateWallet ( const std::string &  wallet)

◆ generateWallet() [2/2]

void taraxa::cli::tools::generateWallet ( const string &  wallet)

◆ getChainIdFromString()

int taraxa::cli::tools::getChainIdFromString ( std::string &  chain_str)

◆ getConfig() [1/2]

Json::Value taraxa::cli::tools::getConfig ( Config::ChainIdType  chain_id)

◆ getConfig() [2/2]

void taraxa::cli::tools::getConfig ( const std::string &  config,
cli::Config::ChainIdType  chain_id 
)

◆ getGenesis()

Json::Value taraxa::cli::tools::getGenesis ( Config::ChainIdType  chain_id)

◆ getHomeDir()

string taraxa::cli::tools::getHomeDir ( )

◆ getTaraxaDataDefaultDir()

string taraxa::cli::tools::getTaraxaDataDefaultDir ( )

◆ getTaraxaDefaultConfigFile()

string taraxa::cli::tools::getTaraxaDefaultConfigFile ( )

◆ getTaraxaDefaultDir()

string taraxa::cli::tools::getTaraxaDefaultDir ( )

◆ getTaraxaDefaultGenesisFile()

string taraxa::cli::tools::getTaraxaDefaultGenesisFile ( )

◆ getTaraxaDefaultWalletFile()

string taraxa::cli::tools::getTaraxaDefaultWalletFile ( )

◆ overrideConfig() [1/2]

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 
)

◆ overrideConfig() [2/2]

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 
)

◆ overrideWallet()

Json::Value taraxa::cli::tools::overrideWallet ( Json::Value &  wallet,
const std::string &  node_key,
const std::string &  vrf_key 
)

Variable Documentation

◆ configs_path

const std::filesystem::path taraxa::cli::tools::configs_path = std::filesystem::current_path() / "config_jsons"

◆ DEFAULT_CONFIG_FILE_NAME

constexpr const char* taraxa::cli::tools::DEFAULT_CONFIG_FILE_NAME = "config.json"
constexpr

◆ DEFAULT_GENESIS_FILE_NAME

constexpr const char* taraxa::cli::tools::DEFAULT_GENESIS_FILE_NAME = "genesis.json"
constexpr

◆ DEFAULT_TARAXA_DATA_DIR_NAME

constexpr const char* taraxa::cli::tools::DEFAULT_TARAXA_DATA_DIR_NAME = ".taraxa/data"
constexpr

◆ DEFAULT_TARAXA_DIR_NAME

constexpr const char* taraxa::cli::tools::DEFAULT_TARAXA_DIR_NAME = ".taraxa"
constexpr

◆ DEFAULT_WALLET_FILE_NAME

constexpr const char* taraxa::cli::tools::DEFAULT_WALLET_FILE_NAME = "wallet.json"
constexpr