aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:21:08 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 15:50:33 +0300
commitd500272fa87bea70054e1f97e1d64741721722bf (patch)
tree6736284bbf6c008a8e70954ca20c0d7d87ef5915 /src/wallet/api/transaction_info.h
parenttransaction history api in progress (diff)
downloadmonero-d500272fa87bea70054e1f97e1d64741721722bf.tar.xz
Wallet API : transaction history in progress
Diffstat (limited to 'src/wallet/api/transaction_info.h')
-rw-r--r--src/wallet/api/transaction_info.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wallet/api/transaction_info.h b/src/wallet/api/transaction_info.h
index 3aae19a64..a06bc367e 100644
--- a/src/wallet/api/transaction_info.h
+++ b/src/wallet/api/transaction_info.h
@@ -41,12 +41,17 @@ class TransactionInfoImpl : public TransactionInfo
public:
TransactionInfoImpl();
~TransactionInfoImpl();
+ //! in/out
virtual int direction() const;
+ //! true if hold
virtual bool isHold() const;
virtual bool isFailed() const;
virtual uint64_t amount() const;
+ //! always 0 for incoming txes
virtual uint64_t fee() const;
- virtual std::string address() const;
+ virtual uint64_t blockHeight() const;
+
+ virtual std::string hash() const;
virtual std::time_t timestamp() const;
virtual std::string paymentId() const;
@@ -56,8 +61,8 @@ private:
bool m_failed;
uint64_t m_amount;
uint64_t m_fee;
- uint64_t b_blockheight;
- std::string m_address;
+ uint64_t m_blockheight;
+ std::string m_hash;
std::time_t m_timestamp;
std::string m_paymentid;