|
OpenCBDC Transaction Processor
|
#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>
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 |
| 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().

| 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().

| 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().

| auto main | ( | int | argc, |
| char ** | argv ) -> int |
Definition at line 177 of file client-cli.cpp.
References confirmtx_command(), fan_command(), cbdc::config::get_args(), importinput_command(), cbdc::config::load_options(), mint_command(), newaddress_command(), cbdc::client::print_amount(), and send_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().

| 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().

| 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 ) |
Definition at line 38 of file client-cli.cpp.
References cbdc::client::export_send_inputs(), cbdc::make_buffer(), cbdc::sentinel::to_string(), cbdc::to_string(), cbdc::transaction::validation::to_string(), and cbdc::transaction::tx_id().
Referenced by fan_command(), and 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().
