1
0
Fork 0
forked from lthn/blockchain

added print_money method

This commit is contained in:
cryptozoidberg 2020-02-03 19:28:05 +01:00
parent 5dfefd20ca
commit bc9bbe8d10
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 7 additions and 0 deletions

View file

@ -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();

View file

@ -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);