forked from lthn/blockchain
added print_money method
This commit is contained in:
parent
5dfefd20ca
commit
bc9bbe8d10
2 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "plain_wallet_api_impl.h"
|
||||
#include "currency_core/currency_config.h"
|
||||
#include "version.h"
|
||||
#include "currency_core/currency_format_utils.h"
|
||||
|
||||
//TODO: global objects, need refactoring. Just temporary solution
|
||||
std::map<int64_t, plain_wallet::plain_wallet_api_impl*> ginstances;
|
||||
|
|
@ -44,6 +45,11 @@ namespace plain_wallet
|
|||
return get_bundle_root_dir() + "/Documents";
|
||||
}
|
||||
|
||||
std::string print_money(int64_t amount)
|
||||
{
|
||||
return currency::print_money(amount);
|
||||
}
|
||||
|
||||
void initialize_logs()
|
||||
{
|
||||
std::string log_dir = get_bundle_root_dir();
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ namespace plain_wallet
|
|||
void destroy_instance(hwallet h);
|
||||
std::string get_version();
|
||||
std::string get_wallet_files();
|
||||
std::string print_money(int64_t);
|
||||
|
||||
std::string open(hwallet h, const std::string& path, const std::string& password);
|
||||
std::string restore(hwallet h, const std::string& seed, const std::string& path, const std::string& password);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue