Kagome
Polkadot Runtime Engine in C++17
offchain_worker_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
7 #define KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
8 
10 
12 
13 namespace kagome::offchain {
14 
16  public:
17  virtual ~OffchainWorkerFactory() = default;
18 
19  virtual std::shared_ptr<OffchainWorker> make(
20  std::shared_ptr<runtime::Executor> executor,
21  const primitives::BlockHeader &header) = 0;
22  };
23 
24 } // namespace kagome::offchain
25 
26 #endif // KAGOME_OFFCHAIN_OFFCHAINWORKERFACTORY
virtual std::shared_ptr< OffchainWorker > make(std::shared_ptr< runtime::Executor > executor, const primitives::BlockHeader &header)=0