diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-03 14:34:38 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-23 15:49:36 +0300 |
commit | 7c51227f8869cca789469f4b805203c3f3aa3503 (patch) | |
tree | a68917862fd006273159f8c6093fd6301ee1102c /src/wallet/wallet2_api.h | |
parent | Wallet::refresh + tests (diff) | |
download | monero-7c51227f8869cca789469f4b805203c3f3aa3503.tar.xz |
Wallet::transfer in progress
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index c818608ed..662264f50 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -36,6 +36,20 @@ // Public interface for libwallet library namespace Bitmonero { +/** + * @brief Transaction interface + */ +struct Transaction +{ + enum Status { + Status_Ok, + Status_Error + }; + + virtual int status() const = 0; + virtual std::string errorString() const = 0; + virtual bool commit() = 0; +}; /** * @brief Interface for wallet operations. @@ -74,9 +88,10 @@ struct Wallet virtual std::string displayAmount(uint64_t amount) const = 0; // TODO? // virtual uint64_t unlockedDustBalance() const = 0; - // TODO refresh virtual bool refresh() = 0; // TODO transfer + virtual bool transfer(const std::string &dst_addr, uint64_t amount) = 0; + }; /** |