Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | public: | ||||
using WatchOnlyChangedFn = std::function<void(bool have_watch_only)>; | using WatchOnlyChangedFn = std::function<void(bool have_watch_only)>; | ||||
virtual std::unique_ptr<Handler> | virtual std::unique_ptr<Handler> | ||||
handleWatchOnlyChanged(WatchOnlyChangedFn fn) = 0; | handleWatchOnlyChanged(WatchOnlyChangedFn fn) = 0; | ||||
//! Register handler for keypool changed messages. | //! Register handler for keypool changed messages. | ||||
using CanGetAddressesChangedFn = std::function<void()>; | using CanGetAddressesChangedFn = std::function<void()>; | ||||
virtual std::unique_ptr<Handler> | virtual std::unique_ptr<Handler> | ||||
handleCanGetAddressesChanged(CanGetAddressesChangedFn fn) = 0; | handleCanGetAddressesChanged(CanGetAddressesChangedFn fn) = 0; | ||||
//! Return pointer to internal wallet class, useful for testing. | |||||
virtual CWallet *wallet() { return nullptr; } | |||||
}; | }; | ||||
//! Information about one wallet address. | //! Information about one wallet address. | ||||
struct WalletAddress { | struct WalletAddress { | ||||
CTxDestination dest; | CTxDestination dest; | ||||
isminetype is_mine; | isminetype is_mine; | ||||
std::string name; | std::string name; | ||||
std::string purpose; | std::string purpose; | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |