Kagome
Polkadot Runtime Engine in C++17
kagome::offchain::OffchainWorkerFactoryImpl Class Referencefinal

#include <offchain_worker_factory_impl.hpp>

Inheritance diagram for kagome::offchain::OffchainWorkerFactoryImpl:
Collaboration diagram for kagome::offchain::OffchainWorkerFactoryImpl:

Public Member Functions

 OffchainWorkerFactoryImpl (const application::AppConfiguration &app_config, std::shared_ptr< clock::SystemClock > clock, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< storage::BufferStorage > storage, std::shared_ptr< crypto::CSPRNG > random_generator, std::shared_ptr< api::AuthorApi > author_api, const network::OwnPeerInfo &current_peer_info, std::shared_ptr< offchain::OffchainPersistentStorage > persistent_storage, std::shared_ptr< offchain::OffchainWorkerPool > offchain_worker_pool)
 
std::shared_ptr< OffchainWorkermake (std::shared_ptr< runtime::Executor > executor, const primitives::BlockHeader &header) override
 
- Public Member Functions inherited from kagome::offchain::OffchainWorkerFactory
virtual ~OffchainWorkerFactory ()=default
 

Private Attributes

const application::AppConfigurationapp_config_
 
std::shared_ptr< clock::SystemClockclock_
 
std::shared_ptr< crypto::Hasherhasher_
 
std::shared_ptr< storage::BufferStoragestorage_
 
std::shared_ptr< crypto::CSPRNGrandom_generator_
 
std::shared_ptr< api::AuthorApiauthor_api_
 
const network::OwnPeerInfocurrent_peer_info_
 
std::shared_ptr< offchain::OffchainPersistentStoragepersistent_storage_
 
std::shared_ptr< offchain::OffchainWorkerPooloffchain_worker_pool_
 

Detailed Description

Definition at line 32 of file offchain_worker_factory_impl.hpp.

Constructor & Destructor Documentation

kagome::offchain::OffchainWorkerFactoryImpl::OffchainWorkerFactoryImpl ( const application::AppConfiguration app_config,
std::shared_ptr< clock::SystemClock clock,
std::shared_ptr< crypto::Hasher hasher,
std::shared_ptr< storage::BufferStorage storage,
std::shared_ptr< crypto::CSPRNG random_generator,
std::shared_ptr< api::AuthorApi author_api,
const network::OwnPeerInfo current_peer_info,
std::shared_ptr< offchain::OffchainPersistentStorage persistent_storage,
std::shared_ptr< offchain::OffchainWorkerPool offchain_worker_pool 
)

Definition at line 13 of file offchain_worker_factory_impl.cpp.

Member Function Documentation

std::shared_ptr< OffchainWorker > kagome::offchain::OffchainWorkerFactoryImpl::make ( std::shared_ptr< runtime::Executor executor,
const primitives::BlockHeader header 
)
overridevirtual

Member Data Documentation

const application::AppConfiguration& kagome::offchain::OffchainWorkerFactoryImpl::app_config_
private

Definition at line 50 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<api::AuthorApi> kagome::offchain::OffchainWorkerFactoryImpl::author_api_
private

Definition at line 55 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<clock::SystemClock> kagome::offchain::OffchainWorkerFactoryImpl::clock_
private

Definition at line 51 of file offchain_worker_factory_impl.hpp.

const network::OwnPeerInfo& kagome::offchain::OffchainWorkerFactoryImpl::current_peer_info_
private

Definition at line 56 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<crypto::Hasher> kagome::offchain::OffchainWorkerFactoryImpl::hasher_
private

Definition at line 52 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<offchain::OffchainWorkerPool> kagome::offchain::OffchainWorkerFactoryImpl::offchain_worker_pool_
private

Definition at line 58 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<offchain::OffchainPersistentStorage> kagome::offchain::OffchainWorkerFactoryImpl::persistent_storage_
private

Definition at line 57 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<crypto::CSPRNG> kagome::offchain::OffchainWorkerFactoryImpl::random_generator_
private

Definition at line 54 of file offchain_worker_factory_impl.hpp.

std::shared_ptr<storage::BufferStorage> kagome::offchain::OffchainWorkerFactoryImpl::storage_
private

Definition at line 53 of file offchain_worker_factory_impl.hpp.


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