Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | |||||
//! Wallet chain client that in addition to having chain client methods for | //! Wallet chain client that in addition to having chain client methods for | ||||
//! starting up, shutting down, and registering RPCs, also has additional | //! starting up, shutting down, and registering RPCs, also has additional | ||||
//! methods (called by the GUI) to load and create wallets. | //! methods (called by the GUI) to load and create wallets. | ||||
class WalletClient : public ChainClient { | class WalletClient : public ChainClient { | ||||
public: | public: | ||||
//! Create new wallet. | //! Create new wallet. | ||||
virtual std::unique_ptr<Wallet> | virtual std::unique_ptr<Wallet> | ||||
createWallet(const CChainParams ¶ms, const std::string &name, | createWallet(const std::string &name, const SecureString &passphrase, | ||||
const SecureString &passphrase, uint64_t wallet_creation_flags, | uint64_t wallet_creation_flags, WalletCreationStatus &status, | ||||
WalletCreationStatus &status, bilingual_str &error, | bilingual_str &error, | ||||
std::vector<bilingual_str> &warnings) = 0; | std::vector<bilingual_str> &warnings) = 0; | ||||
//! Load existing wallet. | //! Load existing wallet. | ||||
virtual std::unique_ptr<Wallet> | virtual std::unique_ptr<Wallet> | ||||
loadWallet(const CChainParams ¶ms, const std::string &name, | loadWallet(const std::string &name, bilingual_str &error, | ||||
bilingual_str &error, std::vector<bilingual_str> &warnings) = 0; | std::vector<bilingual_str> &warnings) = 0; | ||||
//! Return default wallet directory. | //! Return default wallet directory. | ||||
virtual std::string getWalletDir() = 0; | virtual std::string getWalletDir() = 0; | ||||
//! Return available wallets in wallet directory. | //! Return available wallets in wallet directory. | ||||
virtual std::vector<std::string> listWalletDir() = 0; | virtual std::vector<std::string> listWalletDir() = 0; | ||||
//! Return interfaces for accessing wallets (if any). | //! Return interfaces for accessing wallets (if any). | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |