aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.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/wallet2_api.h
parenttransaction history api in progress (diff)
downloadmonero-d500272fa87bea70054e1f97e1d64741721722bf.tar.xz
Wallet API : transaction history in progress
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 37d9ee86b..4954db0d2 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -56,17 +56,6 @@ struct PendingTransaction
virtual uint64_t fee() const = 0;
};
-struct TransactionInfo;
-struct TransactionHistory
-{
- virtual int count() const;
- virtual TransactionInfo * transaction(int index) const = 0;
- virtual TransactionInfo * transaction(const std::string &id) const = 0;
- virtual std::vector<TransactionInfo*> getAll() const = 0;
- virtual void refresh() = 0;
-};
-
-
/**
* @brief The TransactionInfo - interface for displaying transaction information
*/
@@ -76,16 +65,31 @@ struct TransactionInfo
Direction_In,
Direction_Out
};
-
+ virtual ~TransactionInfo() = 0;
virtual int direction() const = 0;
virtual bool isHold() const = 0;
virtual bool isFailed() const = 0;
virtual uint64_t amount() const = 0;
virtual uint64_t fee() const = 0;
- virtual std::string address() const = 0;
+ virtual uint64_t blockHeight() const = 0;
+ virtual std::string hash() const = 0;
virtual std::time_t timestamp() const = 0;
virtual std::string paymentId() const = 0;
};
+/**
+ * @brief The TransactionHistory - interface for displaying transaction history
+ */
+struct TransactionHistory
+{
+ virtual ~TransactionHistory() = 0;
+ virtual int count() const = 0;
+ virtual TransactionInfo * transaction(int index) const = 0;
+ virtual TransactionInfo * transaction(const std::string &id) const = 0;
+ virtual std::vector<TransactionInfo*> getAll() const = 0;
+ virtual void refresh() = 0;
+};
+
+
/**
* @brief Interface for wallet operations.