diff --git a/docs/monero__utils_8h_source.html b/docs/monero__utils_8h_source.html index 6de017c..2ab14fd 100644 --- a/docs/monero__utils_8h_source.html +++ b/docs/monero__utils_8h_source.html @@ -90,104 +90,106 @@ $(function() {
73
74 // -------------------------------- UTILS -----------------------------------
75
-
76 monero_integrated_address get_integrated_address(monero_network_type network_type, const std::string& standard_address, const std::string& payment_id);
-
77 bool is_valid_address(const std::string& address, monero_network_type network_type);
-
78 bool is_valid_private_view_key(const std::string& private_view_key);
-
79 bool is_valid_private_spend_key(const std::string& private_spend_key);
-
80 void validate_address(const std::string& address, monero_network_type network_type);
-
81 void validate_private_view_key(const std::string& private_view_key);
-
82 void validate_private_spend_key(const std::string& private_spend_key);
-
83 void json_to_binary(const std::string &json, std::string &bin);
-
84 void binary_to_json(const std::string &bin, std::string &json);
-
85 void binary_blocks_to_json(const std::string &bin, std::string &json);
-
86
-
87 // ------------------------------ RAPIDJSON ---------------------------------
+
76 void set_log_level(int level);
+
77 void configure_logging(const std::string& path, bool console);
+
78 monero_integrated_address get_integrated_address(monero_network_type network_type, const std::string& standard_address, const std::string& payment_id);
+
79 bool is_valid_address(const std::string& address, monero_network_type network_type);
+
80 bool is_valid_private_view_key(const std::string& private_view_key);
+
81 bool is_valid_private_spend_key(const std::string& private_spend_key);
+
82 void validate_address(const std::string& address, monero_network_type network_type);
+
83 void validate_private_view_key(const std::string& private_view_key);
+
84 void validate_private_spend_key(const std::string& private_spend_key);
+
85 void json_to_binary(const std::string &json, std::string &bin);
+
86 void binary_to_json(const std::string &bin, std::string &json);
+
87 void binary_blocks_to_json(const std::string &bin, std::string &json);
88
-
89 std::string serialize(const rapidjson::Document& doc);
+
89 // ------------------------------ RAPIDJSON ---------------------------------
90
-
96 template <class T>
-
97 void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field) {
-
98 rapidjson::Value field_key(key.c_str(), key.size(), allocator);
-
99 field.SetInt64((uint64_t) val);
-
100 root.AddMember(field_key, field, allocator);
-
101 }
-
102 void add_json_member(std::string key, std::string val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field);
-
103 void add_json_member(std::string key, bool val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root);
-
104
-
105 // TODO: template implementation here, could move to monero_utils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
-
106 template <class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<std::shared_ptr<T>>& vals) {
-
107 rapidjson::Value value_arr(rapidjson::kArrayType);
-
108 for (const auto& val : vals) {
-
109 value_arr.PushBack(val->to_rapidjson_val(allocator), allocator);
-
110 }
-
111 return value_arr;
-
112 }
-
113
-
114 // TODO: template implementation here, could move to monero_utils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
-
115 template <class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<T>& vals) {
-
116 rapidjson::Value value_arr(rapidjson::kArrayType);
-
117 for (const auto& val : vals) {
-
118 value_arr.PushBack(val.to_rapidjson_val(allocator), allocator);
-
119 }
-
120 return value_arr;
-
121 }
-
122
-
123 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<std::string>& strs);
-
124 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint8_t>& nums);
-
125 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint32_t>& nums);
-
126 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint64_t>& nums);
-
127
-
128 // ------------------------ PROPERTY TREES ---------------------------
+
91 std::string serialize(const rapidjson::Document& doc);
+
92
+
98 template <class T>
+
99 void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field) {
+
100 rapidjson::Value field_key(key.c_str(), key.size(), allocator);
+
101 field.SetInt64((uint64_t) val);
+
102 root.AddMember(field_key, field, allocator);
+
103 }
+
104 void add_json_member(std::string key, std::string val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root, rapidjson::Value& field);
+
105 void add_json_member(std::string key, bool val, rapidjson::Document::AllocatorType& allocator, rapidjson::Value& root);
+
106
+
107 // TODO: template implementation here, could move to monero_utils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
+
108 template <class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<std::shared_ptr<T>>& vals) {
+
109 rapidjson::Value value_arr(rapidjson::kArrayType);
+
110 for (const auto& val : vals) {
+
111 value_arr.PushBack(val->to_rapidjson_val(allocator), allocator);
+
112 }
+
113 return value_arr;
+
114 }
+
115
+
116 // TODO: template implementation here, could move to monero_utils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
+
117 template <class T> rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<T>& vals) {
+
118 rapidjson::Value value_arr(rapidjson::kArrayType);
+
119 for (const auto& val : vals) {
+
120 value_arr.PushBack(val.to_rapidjson_val(allocator), allocator);
+
121 }
+
122 return value_arr;
+
123 }
+
124
+
125 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<std::string>& strs);
+
126 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint8_t>& nums);
+
127 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint32_t>& nums);
+
128 rapidjson::Value to_rapidjson_val(rapidjson::Document::AllocatorType& allocator, const std::vector<uint64_t>& nums);
129
-
130 // TODO: fully switch from property trees to rapidjson
+
130 // ------------------------ PROPERTY TREES ---------------------------
131
-
132 std::string serialize(const boost::property_tree::ptree& node);
-
133 void deserialize(const std::string& json, boost::property_tree::ptree& root);
-
134
-
135 // --------------------------------------------------------------------------
+
132 // TODO: fully switch from property trees to rapidjson
+
133
+
134 std::string serialize(const boost::property_tree::ptree& node);
+
135 void deserialize(const std::string& json, boost::property_tree::ptree& root);
136
-
143 bool is_valid_language(const std::string& language);
-
144
-
151 std::shared_ptr<monero_block> cn_block_to_block(const cryptonote::block& cn_block);
-
152
-
160 std::shared_ptr<monero_tx> cn_tx_to_tx(const cryptonote::transaction& cn_tx, bool init_as_tx_wallet = false);
-
161
-
167 static std::string get_pruned_tx_json(cryptonote::transaction &tx)
-
168 {
-
169 std::stringstream ss;
-
170 json_archive<true> ar(ss);
-
171 bool r = tx.serialize_base(ar);
-
172 CHECK_AND_ASSERT_MES(r, std::string(), "Failed to serialize rct signatures base");
-
173 return ss.str();
-
174 }
-
175
-
181 static void free(std::shared_ptr<monero_block> block) {
-
182 for (std::shared_ptr<monero_tx>& tx : block->m_txs) {
-
183 tx->m_block.reset();
-
184 monero_tx_wallet* tx_wallet = dynamic_cast<monero_tx_wallet*>(tx.get());
-
185 if (tx_wallet != nullptr) {
-
186 if (tx_wallet->m_outgoing_transfer != boost::none) tx_wallet->m_outgoing_transfer.get()->m_tx.reset();
-
187 for (std::shared_ptr<monero_transfer> transfer : tx_wallet->m_incoming_transfers) transfer->m_tx.reset();
-
188 for (std::shared_ptr<monero_output> output : tx_wallet->m_outputs) output->m_tx.reset();
-
189 for (std::shared_ptr<monero_output> input : tx_wallet->m_inputs) {
-
190 input->m_key_image.reset();
-
191 input->m_tx.reset();
-
192 }
-
193 }
-
194 }
-
195 block.reset();
-
196 }
-
197
-
203 static void free(std::vector<std::shared_ptr<monero_block>> blocks) {
-
204 for (std::shared_ptr<monero_block>& block : blocks) monero_utils::free(block);
-
205 }
-
206}
-
207#endif /* monero_utils_h */
+
137 // --------------------------------------------------------------------------
+
138
+
145 bool is_valid_language(const std::string& language);
+
146
+
153 std::shared_ptr<monero_block> cn_block_to_block(const cryptonote::block& cn_block);
+
154
+
162 std::shared_ptr<monero_tx> cn_tx_to_tx(const cryptonote::transaction& cn_tx, bool init_as_tx_wallet = false);
+
163
+
169 static std::string get_pruned_tx_json(cryptonote::transaction &tx)
+
170 {
+
171 std::stringstream ss;
+
172 json_archive<true> ar(ss);
+
173 bool r = tx.serialize_base(ar);
+
174 CHECK_AND_ASSERT_MES(r, std::string(), "Failed to serialize rct signatures base");
+
175 return ss.str();
+
176 }
+
177
+
183 static void free(std::shared_ptr<monero_block> block) {
+
184 for (std::shared_ptr<monero_tx>& tx : block->m_txs) {
+
185 tx->m_block.reset();
+
186 monero_tx_wallet* tx_wallet = dynamic_cast<monero_tx_wallet*>(tx.get());
+
187 if (tx_wallet != nullptr) {
+
188 if (tx_wallet->m_outgoing_transfer != boost::none) tx_wallet->m_outgoing_transfer.get()->m_tx.reset();
+
189 for (std::shared_ptr<monero_transfer> transfer : tx_wallet->m_incoming_transfers) transfer->m_tx.reset();
+
190 for (std::shared_ptr<monero_output> output : tx_wallet->m_outputs) output->m_tx.reset();
+
191 for (std::shared_ptr<monero_output> input : tx_wallet->m_inputs) {
+
192 input->m_key_image.reset();
+
193 input->m_tx.reset();
+
194 }
+
195 }
+
196 }
+
197 block.reset();
+
198 }
+
199
+
205 static void free(std::vector<std::shared_ptr<monero_block>> blocks) {
+
206 for (std::shared_ptr<monero_block>& block : blocks) monero_utils::free(block);
+
207 }
+
208}
+
209#endif /* monero_utils_h */
monero_utils
Definition: monero_utils.h:67
-
monero_utils::is_valid_language
bool is_valid_language(const std::string &language)
Definition: monero_utils.cpp:295
-
monero_utils::cn_block_to_block
std::shared_ptr< monero_block > cn_block_to_block(const cryptonote::block &cn_block)
Definition: monero_utils.cpp:308
-
monero_utils::add_json_member
void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &root, rapidjson::Value &field)
Definition: monero_utils.h:97
-
monero_utils::cn_tx_to_tx
std::shared_ptr< monero_tx > cn_tx_to_tx(const cryptonote::transaction &cn_tx, bool init_as_tx_wallet=false)
Definition: monero_utils.cpp:324
+
monero_utils::is_valid_language
bool is_valid_language(const std::string &language)
Definition: monero_utils.cpp:303
+
monero_utils::cn_block_to_block
std::shared_ptr< monero_block > cn_block_to_block(const cryptonote::block &cn_block)
Definition: monero_utils.cpp:316
+
monero_utils::add_json_member
void add_json_member(std::string key, T val, rapidjson::Document::AllocatorType &allocator, rapidjson::Value &root, rapidjson::Value &field)
Definition: monero_utils.h:99
+
monero_utils::cn_tx_to_tx
std::shared_ptr< monero_tx > cn_tx_to_tx(const cryptonote::transaction &cn_tx, bool init_as_tx_wallet=false)
Definition: monero_utils.cpp:332
monero::monero_network_type
monero_network_type
Definition: monero_daemon_model.h:90
monero::monero_integrated_address
Definition: monero_wallet_model.h:353
monero::monero_tx_wallet
Definition: monero_wallet_model.h:274
diff --git a/docs/monero__wallet__full_8h_source.html b/docs/monero__wallet__full_8h_source.html index 811b5d7..54f6313 100644 --- a/docs/monero__wallet__full_8h_source.html +++ b/docs/monero__wallet__full_8h_source.html @@ -265,114 +265,114 @@ $(function() {
335 };
336}
monero::monero_wallet_full
Definition: monero_wallet_full.h:77
-
monero::monero_wallet_full::start_mining
void start_mining(boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) override
Definition: monero_wallet_full.cpp:3206
-
monero::monero_wallet_full::get_outputs
std::vector< std::shared_ptr< monero_output_wallet > > get_outputs(const monero_output_query &query) const override
Definition: monero_wallet_full.cpp:1856
+
monero::monero_wallet_full::start_mining
void start_mining(boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) override
Definition: monero_wallet_full.cpp:3203
+
monero::monero_wallet_full::get_outputs
std::vector< std::shared_ptr< monero_output_wallet > > get_outputs(const monero_output_query &query) const override
Definition: monero_wallet_full.cpp:1853
monero::monero_wallet_full::wallet_exists
static bool wallet_exists(const std::string &path)
Definition: monero_wallet_full.cpp:1037
-
monero::monero_wallet_full::get_tx_note
std::string get_tx_note(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:3024
+
monero::monero_wallet_full::get_tx_note
std::string get_tx_note(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:3021
monero::monero_wallet_full::get_version
monero_version get_version() const override
Definition: monero_wallet_full.cpp:1333
monero::monero_wallet_full::get_restore_height
uint64_t get_restore_height() const override
Definition: monero_wallet_full.cpp:1464
monero::monero_wallet_full::get_private_view_key
std::string get_private_view_key() const override
Definition: monero_wallet_full.cpp:1372
-
monero::monero_wallet_full::prepare_multisig
std::string prepare_multisig() override
Definition: monero_wallet_full.cpp:3288
+
monero::monero_wallet_full::prepare_multisig
std::string prepare_multisig() override
Definition: monero_wallet_full.cpp:3285
monero::monero_wallet_full::get_public_view_key
std::string get_public_view_key() const override
Definition: monero_wallet_full.cpp:1367
-
monero::monero_wallet_full::get_address_book_entries
std::vector< monero_address_book_entry > get_address_book_entries(const std::vector< uint64_t > &indices) const override
Definition: monero_wallet_full.cpp:3059
-
monero::monero_wallet_full::get_account
monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const override
Definition: monero_wallet_full.cpp:1655
-
monero::monero_wallet_full::sweep_dust
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_dust(bool relay=false) override
Definition: monero_wallet_full.cpp:2442
+
monero::monero_wallet_full::get_address_book_entries
std::vector< monero_address_book_entry > get_address_book_entries(const std::vector< uint64_t > &indices) const override
Definition: monero_wallet_full.cpp:3056
+
monero::monero_wallet_full::get_account
monero_account get_account(const uint32_t account_idx, bool include_subaddresses) const override
Definition: monero_wallet_full.cpp:1652
+
monero::monero_wallet_full::sweep_dust
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_dust(bool relay=false) override
Definition: monero_wallet_full.cpp:2439
monero::monero_wallet_full::set_daemon_proxy
void set_daemon_proxy(const std::string &uri="") override
Definition: monero_wallet_full.cpp:1286
-
monero::monero_wallet_full::set_attribute
void set_attribute(const std::string &key, const std::string &val) override
Definition: monero_wallet_full.cpp:3202
-
monero::monero_wallet_full::set_tx_notes
void set_tx_notes(const std::vector< std::string > &tx_hashes, const std::vector< std::string > &notes) override
Definition: monero_wallet_full.cpp:3051
-
monero::monero_wallet_full::stop_syncing
void stop_syncing() override
Definition: monero_wallet_full.cpp:1565
+
monero::monero_wallet_full::set_attribute
void set_attribute(const std::string &key, const std::string &val) override
Definition: monero_wallet_full.cpp:3199
+
monero::monero_wallet_full::set_tx_notes
void set_tx_notes(const std::vector< std::string > &tx_hashes, const std::vector< std::string > &notes) override
Definition: monero_wallet_full.cpp:3048
+
monero::monero_wallet_full::stop_syncing
void stop_syncing() override
Definition: monero_wallet_full.cpp:1562
monero::monero_wallet_full::get_path
std::string get_path() const override
Definition: monero_wallet_full.cpp:1340
monero::monero_wallet_full::create_wallet_random
static monero_wallet_full * create_wallet_random(const std::string &path, const std::string &password, const monero_network_type network_type, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), const std::string &language="English", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1219
-
monero::monero_wallet_full::get_subaddresses
std::vector< monero_subaddress > get_subaddresses(const uint32_t account_idx, const std::vector< uint32_t > &subaddress_indices) const override
Definition: monero_wallet_full.cpp:1687
-
monero::monero_wallet_full::set_tx_note
void set_tx_note(const std::string &tx_hash, const std::string &note) override
Definition: monero_wallet_full.cpp:3041
-
monero::monero_wallet_full::import_multisig_hex
int import_multisig_hex(const std::vector< std::string > &multisig_hexes) override
Definition: monero_wallet_full.cpp:3332
-
monero::monero_wallet_full::export_key_images
std::vector< std::shared_ptr< monero_key_image > > export_key_images(bool all=false) const override
Definition: monero_wallet_full.cpp:1893
-
monero::monero_wallet_full::import_key_images
std::shared_ptr< monero_key_image_import_result > import_key_images(const std::vector< std::shared_ptr< monero_key_image > > &key_images) override
Definition: monero_wallet_full.cpp:1908
-
monero::monero_wallet_full::sign_multisig_tx_hex
monero_multisig_sign_result sign_multisig_tx_hex(const std::string &multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3360
-
monero::monero_wallet_full::freeze_output
void freeze_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1935
-
monero::monero_wallet_full::relay_txs
std::vector< std::string > relay_txs(const std::vector< std::string > &tx_metadatas) override
Definition: monero_wallet_full.cpp:2541
+
monero::monero_wallet_full::get_subaddresses
std::vector< monero_subaddress > get_subaddresses(const uint32_t account_idx, const std::vector< uint32_t > &subaddress_indices) const override
Definition: monero_wallet_full.cpp:1684
+
monero::monero_wallet_full::set_tx_note
void set_tx_note(const std::string &tx_hash, const std::string &note) override
Definition: monero_wallet_full.cpp:3038
+
monero::monero_wallet_full::import_multisig_hex
int import_multisig_hex(const std::vector< std::string > &multisig_hexes) override
Definition: monero_wallet_full.cpp:3329
+
monero::monero_wallet_full::export_key_images
std::vector< std::shared_ptr< monero_key_image > > export_key_images(bool all=false) const override
Definition: monero_wallet_full.cpp:1890
+
monero::monero_wallet_full::import_key_images
std::shared_ptr< monero_key_image_import_result > import_key_images(const std::vector< std::shared_ptr< monero_key_image > > &key_images) override
Definition: monero_wallet_full.cpp:1905
+
monero::monero_wallet_full::sign_multisig_tx_hex
monero_multisig_sign_result sign_multisig_tx_hex(const std::string &multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3357
+
monero::monero_wallet_full::freeze_output
void freeze_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1932
+
monero::monero_wallet_full::relay_txs
std::vector< std::string > relay_txs(const std::vector< std::string > &tx_metadatas) override
Definition: monero_wallet_full.cpp:2538
monero::monero_wallet_full::get_mnemonic_languages
static std::vector< std::string > get_mnemonic_languages()
Definition: monero_wallet_full.cpp:1211
monero::monero_wallet_full::create_wallet_from_mnemonic
static monero_wallet_full * create_wallet_from_mnemonic(const std::string &path, const std::string &password, const monero_network_type network_type, const std::string &mnemonic, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), uint64_t restore_height=0, const std::string &seed_offset="", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1230
-
monero::monero_wallet_full::create_subaddress
monero_subaddress create_subaddress(uint32_t account_idx, const std::string &label="") override
Definition: monero_wallet_full.cpp:1696
-
monero::monero_wallet_full::rescan_blockchain
void rescan_blockchain() override
Definition: monero_wallet_full.cpp:1596
+
monero::monero_wallet_full::create_subaddress
monero_subaddress create_subaddress(uint32_t account_idx, const std::string &label="") override
Definition: monero_wallet_full.cpp:1693
+
monero::monero_wallet_full::rescan_blockchain
void rescan_blockchain() override
Definition: monero_wallet_full.cpp:1593
monero::monero_wallet_full::is_view_only
bool is_view_only() const override
Definition: monero_wallet_full.h:185
monero::monero_wallet_full::get_mnemonic
std::string get_mnemonic() const override
Definition: monero_wallet_full.cpp:1348
-
monero::monero_wallet_full::rescan_spent
void rescan_spent() override
Definition: monero_wallet_full.cpp:1588
+
monero::monero_wallet_full::rescan_spent
void rescan_spent() override
Definition: monero_wallet_full.cpp:1585
monero::monero_wallet_full::open_wallet_data
static monero_wallet_full * open_wallet_data(const std::string &password, const monero_network_type, const std::string &keys_data, const std::string &cache_data, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1055
-
monero::monero_wallet_full::sign_message
std::string sign_message(const std::string &msg, monero_message_signature_type signature_type, uint32_t account_idx=0, uint32_t subaddress_idx=0) const override
Definition: monero_wallet_full.cpp:2796
+
monero::monero_wallet_full::sign_message
std::string sign_message(const std::string &msg, monero_message_signature_type signature_type, uint32_t account_idx=0, uint32_t subaddress_idx=0) const override
Definition: monero_wallet_full.cpp:2793
monero::monero_wallet_full::create_wallet
static monero_wallet_full * create_wallet(const monero_wallet_config &config, std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1067
-
monero::monero_wallet_full::get_tx_key
std::string get_tx_key(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:2835
-
monero::monero_wallet_full::thaw_output
void thaw_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1942
-
monero::monero_wallet_full::get_unlocked_balance
uint64_t get_unlocked_balance() const override
Definition: monero_wallet_full.cpp:1619
+
monero::monero_wallet_full::get_tx_key
std::string get_tx_key(const std::string &tx_hash) const override
Definition: monero_wallet_full.cpp:2832
+
monero::monero_wallet_full::thaw_output
void thaw_output(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1939
+
monero::monero_wallet_full::get_unlocked_balance
uint64_t get_unlocked_balance() const override
Definition: monero_wallet_full.cpp:1616
monero::monero_wallet_full::get_address_index
monero_subaddress get_address_index(const std::string &address) const override
Definition: monero_wallet_full.cpp:1393
-
monero::monero_wallet_full::submit_txs
std::vector< std::string > submit_txs(const std::string &signed_tx_hex) override
Definition: monero_wallet_full.cpp:2770
-
monero::monero_wallet_full::create_txs
std::vector< std::shared_ptr< monero_tx_wallet > > create_txs(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:1956
-
monero::monero_wallet_full::parse_payment_uri
std::shared_ptr< monero_tx_config > parse_payment_uri(const std::string &uri) const override
Definition: monero_wallet_full.cpp:3170
-
monero::monero_wallet_full::check_reserve_proof
std::shared_ptr< monero_check_reserve > check_reserve_proof(const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:3003
-
monero::monero_wallet_full::submit_multisig_tx_hex
std::vector< std::string > submit_multisig_tx_hex(const std::string &signed_multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3403
-
monero::monero_wallet_full::get_spend_proof
std::string get_spend_proof(const std::string &tx_hash, const std::string &message) const override
Definition: monero_wallet_full.cpp:2960
+
monero::monero_wallet_full::submit_txs
std::vector< std::string > submit_txs(const std::string &signed_tx_hex) override
Definition: monero_wallet_full.cpp:2767
+
monero::monero_wallet_full::create_txs
std::vector< std::shared_ptr< monero_tx_wallet > > create_txs(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:1953
+
monero::monero_wallet_full::parse_payment_uri
std::shared_ptr< monero_tx_config > parse_payment_uri(const std::string &uri) const override
Definition: monero_wallet_full.cpp:3167
+
monero::monero_wallet_full::check_reserve_proof
std::shared_ptr< monero_check_reserve > check_reserve_proof(const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:3000
+
monero::monero_wallet_full::submit_multisig_tx_hex
std::vector< std::string > submit_multisig_tx_hex(const std::string &signed_multisig_tx_hex) override
Definition: monero_wallet_full.cpp:3400
+
monero::monero_wallet_full::get_spend_proof
std::string get_spend_proof(const std::string &tx_hash, const std::string &message) const override
Definition: monero_wallet_full.cpp:2957
monero::monero_wallet_full::get_daemon_connection
boost::optional< monero_rpc_connection > get_daemon_connection() const override
Definition: monero_wallet_full.cpp:1295
monero::monero_wallet_full::get_height_by_date
uint64_t get_height_by_date(uint16_t year, uint8_t month, uint8_t day) const override
Definition: monero_wallet_full.cpp:1489
-
monero::monero_wallet_full::export_outputs
std::string export_outputs(bool all=false) const override
Definition: monero_wallet_full.cpp:1877
+
monero::monero_wallet_full::export_outputs
std::string export_outputs(bool all=false) const override
Definition: monero_wallet_full.cpp:1874
monero::monero_wallet_full::decode_integrated_address
monero_integrated_address decode_integrated_address(const std::string &integrated_address) const override
Definition: monero_wallet_full.cpp:1444
-
monero::monero_wallet_full::get_txs
std::vector< std::shared_ptr< monero_tx_wallet > > get_txs() const override
Definition: monero_wallet_full.cpp:1722
-
monero::monero_wallet_full::sweep_unlocked
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_unlocked(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:2100
-
monero::monero_wallet_full::describe_tx_set
monero_tx_set describe_tx_set(const monero_tx_set &tx_set) override
Definition: monero_wallet_full.cpp:2589
-
monero::monero_wallet_full::import_outputs
int import_outputs(const std::string &outputs_hex) override
Definition: monero_wallet_full.cpp:1881
-
monero::monero_wallet_full::get_payment_uri
std::string get_payment_uri(const monero_tx_config &config) const override
Definition: monero_wallet_full.cpp:3147
-
monero::monero_wallet_full::check_tx_proof
std::shared_ptr< monero_check_tx > check_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2928
-
monero::monero_wallet_full::start_syncing
void start_syncing(uint64_t sync_period_in_ms) override
Definition: monero_wallet_full.cpp:1556
+
monero::monero_wallet_full::get_txs
std::vector< std::shared_ptr< monero_tx_wallet > > get_txs() const override
Definition: monero_wallet_full.cpp:1719
+
monero::monero_wallet_full::sweep_unlocked
std::vector< std::shared_ptr< monero_tx_wallet > > sweep_unlocked(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:2097
+
monero::monero_wallet_full::describe_tx_set
monero_tx_set describe_tx_set(const monero_tx_set &tx_set) override
Definition: monero_wallet_full.cpp:2586
+
monero::monero_wallet_full::import_outputs
int import_outputs(const std::string &outputs_hex) override
Definition: monero_wallet_full.cpp:1878
+
monero::monero_wallet_full::get_payment_uri
std::string get_payment_uri(const monero_tx_config &config) const override
Definition: monero_wallet_full.cpp:3144
+
monero::monero_wallet_full::check_tx_proof
std::shared_ptr< monero_check_tx > check_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2925
+
monero::monero_wallet_full::start_syncing
void start_syncing(uint64_t sync_period_in_ms) override
Definition: monero_wallet_full.cpp:1553
monero::monero_wallet_full::add_listener
void add_listener(monero_wallet_listener &listener) override
Definition: monero_wallet_full.cpp:1493
-
monero::monero_wallet_full::save
void save() override
Definition: monero_wallet_full.cpp:3457
-
monero::monero_wallet_full::is_output_frozen
bool is_output_frozen(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1949
+
monero::monero_wallet_full::save
void save() override
Definition: monero_wallet_full.cpp:3454
+
monero::monero_wallet_full::is_output_frozen
bool is_output_frozen(const std::string &key_image) override
Definition: monero_wallet_full.cpp:1946
monero::monero_wallet_full::get_mnemonic_language
std::string get_mnemonic_language() const override
Definition: monero_wallet_full.cpp:1362
-
monero::monero_wallet_full::exchange_multisig_keys
monero_multisig_init_result exchange_multisig_keys(const std::vector< std::string > &mutisig_hexes, const std::string &password) override
Definition: monero_wallet_full.cpp:3302
+
monero::monero_wallet_full::exchange_multisig_keys
monero_multisig_init_result exchange_multisig_keys(const std::vector< std::string > &mutisig_hexes, const std::string &password) override
Definition: monero_wallet_full.cpp:3299
monero::monero_wallet_full::is_daemon_synced
bool is_daemon_synced() const override
Definition: monero_wallet_full.cpp:1318
-
monero::monero_wallet_full::sign_txs
std::string sign_txs(const std::string &unsigned_tx_hex) override
Definition: monero_wallet_full.cpp:2748
-
monero::monero_wallet_full::is_multisig_import_needed
bool is_multisig_import_needed() const override
Definition: monero_wallet_full.cpp:3278
-
monero::monero_wallet_full::get_reserve_proof_wallet
std::string get_reserve_proof_wallet(const std::string &message) const override
Definition: monero_wallet_full.cpp:2989
-
monero::monero_wallet_full::verify_message
monero_message_signature_result verify_message(const std::string &msg, const std::string &address, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2802
-
monero::monero_wallet_full::sweep_output
std::shared_ptr< monero_tx_wallet > sweep_output(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:2300
-
monero::monero_wallet_full::get_tx_proof
std::string get_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message) const override
Definition: monero_wallet_full.cpp:2910
-
monero::monero_wallet_full::stop_mining
void stop_mining() override
Definition: monero_wallet_full.cpp:3236
-
monero::monero_wallet_full::get_attribute
bool get_attribute(const std::string &key, std::string &value) const override
Definition: monero_wallet_full.cpp:3198
+
monero::monero_wallet_full::sign_txs
std::string sign_txs(const std::string &unsigned_tx_hex) override
Definition: monero_wallet_full.cpp:2745
+
monero::monero_wallet_full::is_multisig_import_needed
bool is_multisig_import_needed() const override
Definition: monero_wallet_full.cpp:3275
+
monero::monero_wallet_full::get_reserve_proof_wallet
std::string get_reserve_proof_wallet(const std::string &message) const override
Definition: monero_wallet_full.cpp:2986
+
monero::monero_wallet_full::verify_message
monero_message_signature_result verify_message(const std::string &msg, const std::string &address, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2799
+
monero::monero_wallet_full::sweep_output
std::shared_ptr< monero_tx_wallet > sweep_output(const monero_tx_config &config) override
Definition: monero_wallet_full.cpp:2297
+
monero::monero_wallet_full::get_tx_proof
std::string get_tx_proof(const std::string &tx_hash, const std::string &address, const std::string &message) const override
Definition: monero_wallet_full.cpp:2907
+
monero::monero_wallet_full::stop_mining
void stop_mining() override
Definition: monero_wallet_full.cpp:3233
+
monero::monero_wallet_full::get_attribute
bool get_attribute(const std::string &key, std::string &value) const override
Definition: monero_wallet_full.cpp:3195
monero::monero_wallet_full::~monero_wallet_full
~monero_wallet_full()
Definition: monero_wallet_full.cpp:1260
monero::monero_wallet_full::is_daemon_trusted
bool is_daemon_trusted() const override
Definition: monero_wallet_full.cpp:1324
monero::monero_wallet_full::create_wallet_from_keys
static monero_wallet_full * create_wallet_from_keys(const std::string &path, const std::string &password, const monero_network_type network_type, const std::string &address, const std::string &view_key, const std::string &spend_key, const monero_rpc_connection &daemon_connection=monero_rpc_connection(), uint64_t restore_height=0, const std::string &language="English", std::unique_ptr< epee::net_utils::http::http_client_factory > http_client_factory=nullptr)
Definition: monero_wallet_full.cpp:1243
-
monero::monero_wallet_full::check_tx_key
std::shared_ptr< monero_check_tx > check_tx_key(const std::string &tx_hash, const std::string &txKey, const std::string &address) const override
Definition: monero_wallet_full.cpp:2860
-
monero::monero_wallet_full::scan_txs
void scan_txs(const std::vector< std::string > &tx_hashes) override
Definition: monero_wallet_full.cpp:1570
+
monero::monero_wallet_full::check_tx_key
std::shared_ptr< monero_check_tx > check_tx_key(const std::string &tx_hash, const std::string &txKey, const std::string &address) const override
Definition: monero_wallet_full.cpp:2857
+
monero::monero_wallet_full::scan_txs
void scan_txs(const std::vector< std::string > &tx_hashes) override
Definition: monero_wallet_full.cpp:1567
monero::monero_wallet_full::get_address
std::string get_address(const uint32_t account_idx, const uint32_t subaddress_idx) const override
Definition: monero_wallet_full.cpp:1389
-
monero::monero_wallet_full::get_listeners
std::set< monero_wallet_listener * > get_listeners() override
Definition: monero_wallet_full.cpp:1505
-
monero::monero_wallet_full::check_spend_proof
bool check_spend_proof(const std::string &tx_hash, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2973
-
monero::monero_wallet_full::delete_address_book_entry
void delete_address_book_entry(uint64_t index) override
Definition: monero_wallet_full.cpp:3141
-
monero::monero_wallet_full::add_address_book_entry
uint64_t add_address_book_entry(const std::string &address, const std::string &description) override
Definition: monero_wallet_full.cpp:3091
-
monero::monero_wallet_full::get_keys_file_buffer
std::string get_keys_file_buffer(const epee::wipeable_string &password, bool view_only) const
Definition: monero_wallet_full.cpp:3462
+
monero::monero_wallet_full::get_listeners
std::set< monero_wallet_listener * > get_listeners() override
Definition: monero_wallet_full.cpp:1503
+
monero::monero_wallet_full::check_spend_proof
bool check_spend_proof(const std::string &tx_hash, const std::string &message, const std::string &signature) const override
Definition: monero_wallet_full.cpp:2970
+
monero::monero_wallet_full::delete_address_book_entry
void delete_address_book_entry(uint64_t index) override
Definition: monero_wallet_full.cpp:3138
+
monero::monero_wallet_full::add_address_book_entry
uint64_t add_address_book_entry(const std::string &address, const std::string &description) override
Definition: monero_wallet_full.cpp:3088
+
monero::monero_wallet_full::get_keys_file_buffer
std::string get_keys_file_buffer(const epee::wipeable_string &password, bool view_only) const
Definition: monero_wallet_full.cpp:3459
monero::monero_wallet_full::is_connected_to_daemon
bool is_connected_to_daemon() const override
Definition: monero_wallet_full.cpp:1310
-
monero::monero_wallet_full::change_password
void change_password(const std::string &old_password, const std::string &new_password) override
Definition: monero_wallet_full.cpp:3444
+
monero::monero_wallet_full::change_password
void change_password(const std::string &old_password, const std::string &new_password) override
Definition: monero_wallet_full.cpp:3441
monero::monero_wallet_full::open_wallet
static monero_wallet_full * open_wallet(const std::string &path, const std::string &password, const monero_network_type network_type)
Definition: monero_wallet_full.cpp:1045
-
monero::monero_wallet_full::wait_for_next_block
uint64_t wait_for_next_block() override
Definition: monero_wallet_full.cpp:3246
-
monero::monero_wallet_full::get_multisig_info
monero_multisig_info get_multisig_info() const override
Definition: monero_wallet_full.cpp:3282
-
monero::monero_wallet_full::get_balance
uint64_t get_balance() const override
Definition: monero_wallet_full.cpp:1605
+
monero::monero_wallet_full::wait_for_next_block
uint64_t wait_for_next_block() override
Definition: monero_wallet_full.cpp:3243
+
monero::monero_wallet_full::get_multisig_info
monero_multisig_info get_multisig_info() const override
Definition: monero_wallet_full.cpp:3279
+
monero::monero_wallet_full::get_balance
uint64_t get_balance() const override
Definition: monero_wallet_full.cpp:1602
monero::monero_wallet_full::get_integrated_address
monero_integrated_address get_integrated_address(const std::string &standard_address="", const std::string &payment_id="") const override
Definition: monero_wallet_full.cpp:1414
-
monero::monero_wallet_full::move_to
void move_to(const std::string &path, const std::string &password) override
Definition: monero_wallet_full.cpp:3452
-
monero::monero_wallet_full::make_multisig
std::string make_multisig(const std::vector< std::string > &multisig_hexes, int threshold, const std::string &password) override
Definition: monero_wallet_full.cpp:3295
+
monero::monero_wallet_full::move_to
void move_to(const std::string &path, const std::string &password) override
Definition: monero_wallet_full.cpp:3449
+
monero::monero_wallet_full::make_multisig
std::string make_multisig(const std::vector< std::string > &multisig_hexes, int threshold, const std::string &password) override
Definition: monero_wallet_full.cpp:3292
monero::monero_wallet_full::get_network_type
monero_network_type get_network_type() const override
Definition: monero_wallet_full.cpp:1344
-
monero::monero_wallet_full::create_account
monero_account create_account(const std::string &label="") override
Definition: monero_wallet_full.cpp:1672
-
monero::monero_wallet_full::sync
monero_sync_result sync() override
Definition: monero_wallet_full.cpp:1510
-
monero::monero_wallet_full::export_multisig_hex
std::string export_multisig_hex() override
Definition: monero_wallet_full.cpp:3325
-
monero::monero_wallet_full::remove_listener
void remove_listener(monero_wallet_listener &listener) override
Definition: monero_wallet_full.cpp:1499
+
monero::monero_wallet_full::create_account
monero_account create_account(const std::string &label="") override
Definition: monero_wallet_full.cpp:1669
+
monero::monero_wallet_full::sync
monero_sync_result sync() override
Definition: monero_wallet_full.cpp:1507
+
monero::monero_wallet_full::export_multisig_hex
std::string export_multisig_hex() override
Definition: monero_wallet_full.cpp:3322
+
monero::monero_wallet_full::remove_listener
void remove_listener(monero_wallet_listener &listener) override
Definition: monero_wallet_full.cpp:1498
monero::monero_wallet_full::get_height
uint64_t get_height() const override
Definition: monero_wallet_full.cpp:1460
-
monero::monero_wallet_full::edit_address_book_entry
void edit_address_book_entry(uint64_t index, bool set_address, const std::string &address, bool set_description, const std::string &description) override
Definition: monero_wallet_full.cpp:3108
+
monero::monero_wallet_full::edit_address_book_entry
void edit_address_book_entry(uint64_t index, bool set_address, const std::string &address, bool set_description, const std::string &description) override
Definition: monero_wallet_full.cpp:3105
monero::monero_wallet_full::get_private_spend_key
std::string get_private_spend_key() const override
Definition: monero_wallet_full.cpp:1382
-
monero::monero_wallet_full::close
void close(bool save=false) override
Definition: monero_wallet_full.cpp:3476
+
monero::monero_wallet_full::close
void close(bool save=false) override
Definition: monero_wallet_full.cpp:3473
monero::monero_wallet_full::get_daemon_max_peer_height
uint64_t get_daemon_max_peer_height() const override
Definition: monero_wallet_full.cpp:1480
-
monero::monero_wallet_full::set_subaddress_label
void set_subaddress_label(uint32_t account_idx, uint32_t subaddress_idx, const std::string &label="") override
Definition: monero_wallet_full.cpp:1716
+
monero::monero_wallet_full::set_subaddress_label
void set_subaddress_label(uint32_t account_idx, uint32_t subaddress_idx, const std::string &label="") override
Definition: monero_wallet_full.cpp:1713
monero::monero_wallet_full::get_daemon_height
uint64_t get_daemon_height() const override
Definition: monero_wallet_full.cpp:1472
monero::monero_wallet_full::get_public_spend_key
std::string get_public_spend_key() const override
Definition: monero_wallet_full.cpp:1377
-
monero::monero_wallet_full::get_transfers
std::vector< std::shared_ptr< monero_transfer > > get_transfers(const monero_transfer_query &query) const override
Definition: monero_wallet_full.cpp:1835
-
monero::monero_wallet_full::get_tx_notes
std::vector< std::string > get_tx_notes(const std::vector< std::string > &tx_hashes) const override
Definition: monero_wallet_full.cpp:3034
+
monero::monero_wallet_full::get_transfers
std::vector< std::shared_ptr< monero_transfer > > get_transfers(const monero_transfer_query &query) const override
Definition: monero_wallet_full.cpp:1832
+
monero::monero_wallet_full::get_tx_notes
std::vector< std::string > get_tx_notes(const std::vector< std::string > &tx_hashes) const override
Definition: monero_wallet_full.cpp:3031
monero::monero_wallet_full::is_synced
bool is_synced() const override
Definition: monero_wallet_full.cpp:1329
-
monero::monero_wallet_full::get_reserve_proof_account
std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string &message) const override
Definition: monero_wallet_full.cpp:2995
+
monero::monero_wallet_full::get_reserve_proof_account
std::string get_reserve_proof_account(uint32_t account_idx, uint64_t amount, const std::string &message) const override
Definition: monero_wallet_full.cpp:2992
monero::monero_wallet_full::set_restore_height
void set_restore_height(uint64_t restore_height) override
Definition: monero_wallet_full.cpp:1468
monero::monero_wallet_full::set_daemon_connection
void set_daemon_connection(const std::string &uri, const std::string &username="", const std::string &password="") override
Definition: monero_wallet_full.cpp:1265
monero::monero_wallet_listener
Definition: monero_wallet.h:71
diff --git a/docs/namespacemonero__utils.html b/docs/namespacemonero__utils.html index f382e90..22c9231 100644 --- a/docs/namespacemonero__utils.html +++ b/docs/namespacemonero__utils.html @@ -70,6 +70,12 @@ $(function() { + + + +

Functions

+void set_log_level (int level)
 
+void configure_logging (const std::string &path, bool console)
 
monero_integrated_address get_integrated_address (monero_network_type network_type, const std::string &standard_address, const std::string &payment_id)