aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-29 16:26:14 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 16:01:26 +0300
commite6fdd5dd10efa29029aa6babf821c429084d786f (patch)
treec3a392307e0d204082b8d2c7292013c84ed368e0 /src/wallet/wallet2_api.h
parentmerged with upstream (diff)
downloadmonero-e6fdd5dd10efa29029aa6babf821c429084d786f.tar.xz
TransactionHistory continued
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h12
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