aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-03-31 12:48:41 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-03-31 12:48:41 +0300
commit2157a9ac4876c2f50421d0e5ad13be3123ff1201 (patch)
tree4bc7d3d8a5f7697376ac1d7e2d81492a1de244d9 /src/wallet/wallet2_api.h
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadmonero-2157a9ac4876c2f50421d0e5ad13be3123ff1201.tar.xz
testnet option, Wallet::balance(), Wallet::unlockedBalance()
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index ad1e08fe3..ec37358d4 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -70,6 +70,9 @@ struct Wallet
virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit) = 0;
virtual bool connectToDaemon() = 0;
virtual uint64_t balance() const = 0;
+ virtual uint64_t unlockedBalance() const = 0;
+ // TODO?
+ // virtual uint64_t unlockedDustBalance() const = 0;
};
/**
@@ -85,7 +88,7 @@ struct WalletManager
* \param language Language to be used to generate electrum seed memo
* \return Wallet instance (Wallet::status() needs to be called to check if created successfully)
*/
- virtual Wallet * createWallet(const std::string &path, const std::string &password, const std::string &language, bool testnet) = 0;
+ virtual Wallet * createWallet(const std::string &path, const std::string &password, const std::string &language, bool testnet = false) = 0;
/*!
* \brief Opens existing wallet
@@ -93,7 +96,7 @@ struct WalletManager
* \param password Password of wallet file
* \return Wallet instance (Wallet::status() needs to be called to check if opened successfully)
*/
- virtual Wallet * openWallet(const std::string &path, const std::string &password, bool testnet) = 0;
+ virtual Wallet * openWallet(const std::string &path, const std::string &password, bool testnet = false) = 0;
/*!
* \brief recovers existing wallet using memo (electrum seed)
@@ -101,7 +104,7 @@ struct WalletManager
* \param memo memo (25 words electrum seed)
* \return Wallet instance (Wallet::status() needs to be called to check if recovered successfully)
*/
- virtual Wallet * recoveryWallet(const std::string &path, const std::string &memo) = 0;
+ virtual Wallet * recoveryWallet(const std::string &path, const std::string &memo, bool testnet = false) = 0;
/*!
* \brief Closes wallet. In case operation succeded, wallet object deleted. in case operation failed, wallet object not deleted