diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-06-16 16:42:33 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-23 16:01:41 +0300 |
commit | 85a632244ef97a500a17a9954914c52487422c5e (patch) | |
tree | 9685f31a01a906cc2dbc08f0e34c8f49ceaeb24d /src/wallet/wallet2_api.h | |
parent | wallet::default_mixin exposed to public interface as (diff) | |
download | monero-85a632244ef97a500a17a9954914c52487422c5e.tar.xz |
double/string to monero integer convertion methods
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 62231820b..34c18f77f 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -160,6 +160,8 @@ struct Wallet virtual uint64_t balance() const = 0; virtual uint64_t unlockedBalance() const = 0; static std::string displayAmount(uint64_t amount); + static uint64_t amountFromString(const std::string &amount); + static uint64_t amountFromDouble(double amount); // TODO? // virtual uint64_t unlockedDustBalance() const = 0; virtual bool refresh() = 0; |