aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-12 22:30:20 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-04-12 22:30:20 +0300
commit1774d9574b5c6ebc55b3f4a6adf82d995bfad42f (patch)
treec2de41256f5b26e1416e3a5ec22f6ad5816b6c01 /src/wallet/wallet2_api.h
parentTransaction API continued (diff)
downloadmonero-1774d9574b5c6ebc55b3f4a6adf82d995bfad42f.tar.xz
TODOs for Transaction/Transfer interface
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index c064aeba8..56a91bfbb 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -39,13 +39,13 @@ namespace Bitmonero {
/**
* @brief Transaction interface
*/
-struct Transaction
+struct PendingTransaction
{
enum Status {
Status_Ok,
Status_Error
};
- virtual ~Transaction() = 0;
+ virtual ~PendingTransaction() = 0;
virtual int status() const = 0;
virtual std::string errorString() const = 0;
virtual bool commit() = 0;
@@ -60,17 +60,12 @@ struct Transaction
*/
struct Wallet
{
- // TODO define wallet interface (decide what needed from wallet2)
enum Status {
Status_Ok,
Status_Error
};
- struct Listener
- {
- // TODO
- };
virtual ~Wallet() = 0;
virtual std::string seed() const = 0;
@@ -92,8 +87,12 @@ struct Wallet
// TODO?
// virtual uint64_t unlockedDustBalance() const = 0;
virtual bool refresh() = 0;
- virtual Transaction * createTransaction(const std::string &dst_addr, uint64_t amount) = 0;
- virtual void disposeTransaction(Transaction * t) = 0;
+ virtual PendingTransaction * createTransaction(const std::string &dst_addr, uint64_t amount) = 0;
+ virtual void disposeTransaction(PendingTransaction * t) = 0;
+ // TODO
+ virtual void getPayments() const;
+
+
};
/**