56 static const char*
tr(
const char* str);
60 bool init(
const boost::program_options::variables_map *vm);
84 MAP_JON_RPC_WE(
"set_account_tag_description", on_set_account_tag_description,
wallet_rpc::COMMAND_RPC_SET_ACCOUNT_TAG_DESCRIPTION)
102 MAP_JON_RPC_WE(
"make_integrated_address", on_make_integrated_address,
wallet_rpc::COMMAND_RPC_MAKE_INTEGRATED_ADDRESS)
103 MAP_JON_RPC_WE(
"split_integrated_address", on_split_integrated_address,
wallet_rpc::COMMAND_RPC_SPLIT_INTEGRATED_ADDRESS)
140 MAP_JON_RPC_WE(
"restore_deterministic_wallet", on_restore_deterministic_wallet,
wallet_rpc::COMMAND_RPC_RESTORE_DETERMINISTIC_WALLET)
249 bool not_open(
epee::json_rpc::
error& er);
250 void handle_rpc_exception(const
std::exception_ptr& e,
epee::json_rpc::
error& er,
int default_error_code);
252 template<typename Ts, typename Tu>
253 bool fill_response(
std::vector<
tools::
wallet2::pending_tx> &ptx_vector,
254 bool get_tx_key, Ts& tx_key, Tu &amount, Tu &fee,
std::
string &multisig_txset,
std::
string &unsigned_txset,
bool do_not_relay,
255 Ts &tx_hash,
bool get_tx_hex, Ts &tx_blob,
bool get_tx_metadata, Ts &tx_metadata,
epee::json_rpc::
error &er);
257 bool validate_transfer(const
std::list<
wallet_rpc::transfer_destination>& destinations, const
std::
string& payment_id,
std::vector<
cryptonote::tx_destination_entry>& dsts,
std::vector<
uint8_t>& extra,
bool at_least_one_destination,
epee::json_rpc::
error& er);
259 void check_background_mining();
262 std::
string m_wallet_dir;
264 std::atomic<
bool> m_stop;
266 const
boost::program_options::variables_map *m_vm;
268 boost::posix_time::ptime m_last_auto_refresh_time;