OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
client-cli.cpp File Reference
#include "atomizer_client.hpp"
#include "bech32/bech32.h"
#include "bech32/util/strencodings.h"
#include "client.hpp"
#include "crypto/sha256.h"
#include "twophase_client.hpp"
#include "uhs/transaction/messages.hpp"
#include "util/common/config.hpp"
#include "util/serialization/util.hpp"
#include <future>
#include <iostream>
Include dependency graph for client-cli.cpp:

Go to the source code of this file.

Functions

auto mint_command (cbdc::client &client, const std::vector< std::string > &args) -> bool
 
void print_tx_result (const std::optional< cbdc::transaction::full_tx > &tx, const std::optional< cbdc::sentinel::execute_response > &resp, const cbdc::hash_t &pubkey)
 
auto send_command (cbdc::client &client, const std::vector< std::string > &args) -> bool
 
auto fan_command (cbdc::client &client, const std::vector< std::string > &args) -> bool
 
void newaddress_command (cbdc::client &client)
 
auto importinput_command (cbdc::client &client, const std::vector< std::string > &args) -> bool
 
auto confirmtx_command (cbdc::client &client, const std::vector< std::string > &args) -> bool
 
auto main (int argc, char **argv) -> int
 

Function Documentation

◆ confirmtx_command()

auto confirmtx_command ( cbdc::client & client,
const std::vector< std::string > & args ) -> bool

Definition at line 162 of file client-cli.cpp.

References cbdc::hash_from_hex(), and cbdc::client::print_amount().

Referenced by main().

Here is the call graph for this function:

◆ fan_command()

auto fan_command ( cbdc::client & client,
const std::vector< std::string > & args ) -> bool

Definition at line 92 of file client-cli.cpp.

References cbdc::address::decode(), and print_tx_result().

Referenced by main().

Here is the call graph for this function:

◆ importinput_command()

auto importinput_command ( cbdc::client & client,
const std::vector< std::string > & args ) -> bool

Definition at line 144 of file client-cli.cpp.

References cbdc::from_buffer(), and cbdc::buffer::from_hex().

Referenced by main().

Here is the call graph for this function:

◆ main()

auto main ( int argc,
char ** argv ) -> int

◆ mint_command()

auto mint_command ( cbdc::client & client,
const std::vector< std::string > & args ) -> bool

Definition at line 19 of file client-cli.cpp.

References cbdc::to_string(), and cbdc::transaction::tx_id().

Referenced by main().

Here is the call graph for this function:

◆ newaddress_command()

void newaddress_command ( cbdc::client & client)

Definition at line 122 of file client-cli.cpp.

References cbdc::client::new_address(), and cbdc::client::public_key.

Referenced by main().

Here is the call graph for this function:

◆ print_tx_result()

void print_tx_result ( const std::optional< cbdc::transaction::full_tx > & tx,
const std::optional< cbdc::sentinel::execute_response > & resp,
const cbdc::hash_t & pubkey )

◆ send_command()

auto send_command ( cbdc::client & client,
const std::vector< std::string > & args ) -> bool

Definition at line 65 of file client-cli.cpp.

References cbdc::address::decode(), and print_tx_result().

Referenced by main().

Here is the call graph for this function: