diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-04 14:56:17 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-04 14:56:17 +0300 |
commit | ee5bb17f26390ceb55dd277932585b0020077e9e (patch) | |
tree | 1d30a5bcdf19f9d2b60e43274a13d918fe1a8f42 /src/wallet/wallet2_api.h | |
parent | Wallet::transfer in progress (diff) | |
download | monero-ee5bb17f26390ceb55dd277932585b0020077e9e.tar.xz |
Wallet::transfer() continued
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 1c3cd595a..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. |