/* * Authors: * Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net> * Alexander Lysikov <alexander.lysikov@demlabs.net> * DeM Labs Inc. https://demlabs.net * Kelvin Project https://github.com/kelvinblockchain * Copyright (c) 2019 * All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. DAP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ #pragma once #include "dap_chain.h" #include "dap_chain_net.h" #include "dap_chain_node.h" #include "dap_chain_node_cli.h" /** * Find in base addr by alias * * return addr, NULL if not found */ dap_chain_node_addr_t* dap_chain_node_addr_get_by_alias(dap_chain_net_t * a_net, const char *alias); int dap_chain_node_cli_cmd_values_parse_net_chain(int *a_arg_index,int argc, char ** argv, char ** a_str_reply, dap_chain_t ** a_chain, dap_chain_net_t ** a_net); /** * global_db command */ int com_global_db(int argc, char ** argv, char **str_reply); /** * Node command */ int com_node(int argc, char ** argv, char **str_reply); /** * Traceroute command * * return 0 OK, -1 Err */ int com_traceroute(int argc, char** argv, char **str_reply); /** * Tracepath command * * return 0 OK, -1 Err */ int com_tracepath(int argc, char** argv, char **str_reply); /** * Ping command * * return 0 OK, -1 Err */ int com_ping(int argc, char** argv, char **str_reply); /** * Help command */ int com_help(int argc, char ** argv, char **str_reply); /** * Token declaration */ int com_token_decl ( int argc, char ** argv, char ** str_reply); /** * Token declaration add sign */ int com_token_decl_sign ( int argc, char ** argv, char ** str_reply); /** * Token emission */ int com_token_emit (int argc, char ** argv, char ** str_reply); /** * com_tx_create command * * Wallet info */ int com_tx_wallet(int argc, char ** argv, char **str_reply); /** * com_tx_create command * * Create transaction */ int com_tx_create(int argc, char ** argv, char **str_reply); int com_tx_cond_create(int argc, char ** argv, char **str_reply); /** * tx_verify command * * Verifing transaction */ int com_tx_verify(int argc, char ** argv, char **str_reply); // Print log info int com_print_log(int argc, char ** argv, char **str_reply); int com_mempool_delete(int argc, char ** argv, char ** a_str_reply); int com_mempool_list(int argc, char ** argv, char ** a_str_reply); int com_mempool_proc(int argc, char ** argv, char ** a_str_reply);