6 #ifndef KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORYIMPL 7 #define KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORYIMPL 11 #include <libp2p/host/host.hpp> 21 class AppConfiguration;
31 class OffchainWorkerPool;
36 std::shared_ptr<clock::SystemClock> clock,
37 std::shared_ptr<crypto::Hasher> hasher,
38 std::shared_ptr<storage::BufferStorage> storage,
39 std::shared_ptr<crypto::CSPRNG> random_generator,
40 std::shared_ptr<api::AuthorApi> author_api,
42 std::shared_ptr<offchain::OffchainPersistentStorage> persistent_storage,
43 std::shared_ptr<offchain::OffchainWorkerPool> offchain_worker_pool);
45 std::shared_ptr<OffchainWorker> make(
46 std::shared_ptr<runtime::Executor> executor,
51 std::shared_ptr<clock::SystemClock>
clock_;
53 std::shared_ptr<storage::BufferStorage>
storage_;
63 #endif // KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORYIMPL
std::shared_ptr< crypto::Hasher > hasher_
std::shared_ptr< api::AuthorApi > author_api_
std::shared_ptr< offchain::OffchainPersistentStorage > persistent_storage_
const network::OwnPeerInfo & current_peer_info_
std::shared_ptr< crypto::CSPRNG > random_generator_
std::shared_ptr< clock::SystemClock > clock_
std::shared_ptr< offchain::OffchainWorkerPool > offchain_worker_pool_
std::shared_ptr< storage::BufferStorage > storage_
const application::AppConfiguration & app_config_