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

Public Member Functions

 EthereumLikeBlockchainObserver (const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< spdlog::logger > &logger, const api::Currency &currency, const std::vector< std::string > &matchableKeys)
 
- Public Member Functions inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
virtual bool registerAccount (const std::shared_ptr< Account > &account)
 
virtual bool unregisterAccount (const std::shared_ptr< Account > &account)
 
virtual bool isRegistered (const std::shared_ptr< Account > &account)
 
std::shared_ptr< spdlog::logger > logger () const
 
bool isObserving () const
 
- Public Member Functions inherited from ledger::core::DedicatedContext
 DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context)
 
template<typename T >
Future< T > async (std::function< T()> f)
 
template<typename T >
Future< T > async (std::function< T()> f) const
 
Future< Unitrun (std::function< void()> f)
 
std::shared_ptr< api::ExecutionContextgetContext () const
 
- Public Member Functions inherited from ledger::core::ConfigurationMatchable
 ConfigurationMatchable (const std::vector< std::string > &matchableKeys)
 
bool match (const std::shared_ptr< api::DynamicObject > &configuration)
 
void setConfiguration (const std::shared_ptr< api::DynamicObject > &configuration)
 

Protected Member Functions

void putTransaction (const EthereumLikeBlockchainExplorerTransaction &tx) override
 
void putBlock (const EthereumLikeBlockchainExplorer::Block &block) override
 
const api::CurrencygetCurrency () const
 
std::shared_ptr< api::DynamicObjectgetConfiguration () const
 
- Protected Member Functions inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
virtual void onStart ()=0
 
virtual void onStop ()=0
 
virtual void putTransaction (const BlockchainExplorerTransaction &tx)=0
 
virtual void putBlock (const BlockchainExplorerBlock &block)=0
 
void setLogger (const std::shared_ptr< spdlog::logger > &logger)
 

Additional Inherited Members

- Protected Attributes inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
std::list< std::shared_ptr< Account > > _accounts
 
std::mutex _lock
 
std::shared_ptr< spdlog::logger > _logger
 
- Protected Attributes inherited from ledger::core::DedicatedContext
std::shared_ptr< api::ExecutionContext_executionContext
 

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