diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-12 22:30:20 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-12 22:30:20 +0300 |
commit | 1774d9574b5c6ebc55b3f4a6adf82d995bfad42f (patch) | |
tree | c2de41256f5b26e1416e3a5ec22f6ad5816b6c01 /src/wallet/wallet2_api.h | |
parent | Transaction API continued (diff) | |
download | monero-1774d9574b5c6ebc55b3f4a6adf82d995bfad42f.tar.xz |
TODOs for Transaction/Transfer interface
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 17 |
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; + + }; /** |