ledger-core
Public Member Functions | Static Public Member Functions | List of all members
ledger::core::WalletPoolApi Class Reference
+ Inheritance diagram for ledger::core::WalletPoolApi:
+ Collaboration diagram for ledger::core::WalletPoolApi:

Public Member Functions

 WalletPoolApi (const std::shared_ptr< ledger::core::WalletPool > &pool)
 
std::shared_ptr< api::LoggergetLogger () override
 
std::shared_ptr< api::PreferencesgetPreferences () override
 
void getWalletCount (const std::shared_ptr< api::I32Callback > &callback) override
 
void getWallet (const std::string &name, const std::shared_ptr< api::WalletCallback > &callback) override
 
void updateWalletConfig (const std::string &name, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< api::ErrorCodeCallback > &callback) override
 
void getWallets (int32_t from, int32_t size, const std::shared_ptr< api::WalletListCallback > &callback) override
 
void createWallet (const std::string &name, const api::Currency &currency, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< api::WalletCallback > &callback) override
 
void getCurrencies (const std::shared_ptr< api::CurrencyListCallback > &callback) override
 
void getCurrency (const std::string &name, const std::shared_ptr< api::CurrencyCallback > &callback) override
 
std::string getName () override
 
std::shared_ptr< api::EventBusgetEventBus () override
 
void getLastBlock (const std::string &currencyName, const std::shared_ptr< api::BlockCallback > &callback) override
 
void eraseDataSince (const std::chrono::system_clock::time_point &date, const std::shared_ptr< api::ErrorCodeCallback > &callback) override
 
void freshResetAll (const std::shared_ptr< api::ErrorCodeCallback > &callback) override
 
void changePassword (const std::string &oldPassword, const std::string &newPassword, const std::shared_ptr< api::ErrorCodeCallback > &callback) override
 
- Public Member Functions inherited from ledger::core::api::WalletPool
virtual void getWalletCount (const std::shared_ptr< I32Callback > &callback)=0
 
virtual void getWallets (int32_t from, int32_t size, const std::shared_ptr< WalletListCallback > &callback)=0
 
virtual void getWallet (const std::string &name, const std::shared_ptr< WalletCallback > &callback)=0
 
virtual void updateWalletConfig (const std::string &name, const std::shared_ptr< DynamicObject > &configuration, const std::shared_ptr< ErrorCodeCallback > &callback)=0
 
virtual void createWallet (const std::string &name, const Currency &currency, const std::shared_ptr< DynamicObject > &configuration, const std::shared_ptr< WalletCallback > &callback)=0
 
virtual void getCurrencies (const std::shared_ptr< CurrencyListCallback > &callback)=0
 
virtual void getCurrency (const std::string &name, const std::shared_ptr< CurrencyCallback > &callback)=0
 
virtual void getLastBlock (const std::string &currencyName, const std::shared_ptr< BlockCallback > &callback)=0
 
virtual void eraseDataSince (const std::chrono::system_clock::time_point &date, const std::shared_ptr< ErrorCodeCallback > &callback)=0
 
virtual void freshResetAll (const std::shared_ptr< ErrorCodeCallback > &callback)=0
 
virtual void changePassword (const std::string &oldPassword, const std::string &newPassword, const std::shared_ptr< ErrorCodeCallback > &callback)=0
 

Static Public Member Functions

static void open (const std::string &name, const std::string &password, const std::shared_ptr< api::HttpClient > &httpClient, const std::shared_ptr< api::WebSocketClient > &webSocketClient, const std::shared_ptr< api::PathResolver > &pathResolver, const std::shared_ptr< api::LogPrinter > &logPrinter, const std::shared_ptr< api::ThreadDispatcher > &dispatcher, const std::shared_ptr< api::RandomNumberGenerator > &rng, const std::shared_ptr< api::DatabaseBackend > &backend, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< api::WalletPoolCallback > &listener)
 
- Static Public Member Functions inherited from ledger::core::api::WalletPool
static std::shared_ptr< WalletPoolnewInstance (const std::string &name, const std::string &password, const std::shared_ptr< HttpClient > &httpClient, const std::shared_ptr< WebSocketClient > &webSocketClient, const std::shared_ptr< PathResolver > &pathResolver, const std::shared_ptr< LogPrinter > &logPrinter, const std::shared_ptr< ThreadDispatcher > &dispatcher, const std::shared_ptr< RandomNumberGenerator > &rng, const std::shared_ptr< DatabaseBackend > &backend, const std::shared_ptr< DynamicObject > &configuration)
 

Member Function Documentation

◆ getEventBus()

std::shared_ptr< api::EventBus > ledger::core::WalletPoolApi::getEventBus ( )
overridevirtual

Get event bus (handler) through which wallet pool observe and gets notified (explorers, DBs ...).

Parameters
EventBusobject

Implements ledger::core::api::WalletPool.

◆ getLogger()

std::shared_ptr< api::Logger > ledger::core::WalletPoolApi::getLogger ( )
overridevirtual

Return used logger to dump logs in defined log path by PathResolver.

Returns
Logger object

Implements ledger::core::api::WalletPool.

◆ getName()

std::string ledger::core::WalletPoolApi::getName ( )
overridevirtual

Return the name of the wallet pool.

Returns
string

Implements ledger::core::api::WalletPool.

◆ getPreferences()

std::shared_ptr< api::Preferences > ledger::core::WalletPoolApi::getPreferences ( )
overridevirtual

Return preferences of wallet pool (deduced from configuration).

Returns
Preferences object

Implements ledger::core::api::WalletPool.


The documentation for this class was generated from the following files: