diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-29 16:26:14 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-29 16:26:14 +0300 |
commit | 93119344ecb3326b452f2f8e91bc101fe1896f8c (patch) | |
tree | 5cb9575138b9f87d8c505c636d26403c23ad1584 /src/wallet/wallet2_api.h | |
parent | merged with upstream (diff) | |
download | monero-93119344ecb3326b452f2f8e91bc101fe1896f8c.tar.xz |
TransactionHistory continued
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index ab715dbf9..43f5c9472 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -68,16 +68,26 @@ struct TransactionInfo Direction_In, Direction_Out }; + + struct Transfer { + Transfer(uint64_t _amount, const std::string &address); + const uint64_t amount; + const std::string address; + }; + virtual ~TransactionInfo() = 0; virtual int direction() const = 0; - virtual bool isHold() const = 0; + virtual bool isPending() const = 0; virtual bool isFailed() const = 0; virtual uint64_t amount() const = 0; virtual uint64_t fee() const = 0; virtual uint64_t blockHeight() const = 0; + //! transaction_id virtual std::string hash() const = 0; virtual std::time_t timestamp() const = 0; virtual std::string paymentId() const = 0; + //! only applicable for output transactions + virtual const std::vector<Transfer> & transfers() const = 0; }; /** * @brief The TransactionHistory - interface for displaying transaction history |