Kagome
Polkadot Runtime Engine in C++17
babe_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_IMPL_BABE_API_HPP
7 #define KAGOME_CORE_RUNTIME_IMPL_BABE_API_HPP
8 
10 
11 namespace kagome::runtime {
12 
13  class Executor;
14 
15  class BabeApiImpl final : public BabeApi {
16  public:
17  explicit BabeApiImpl(std::shared_ptr<Executor> executor);
18 
19  outcome::result<primitives::BabeConfiguration> configuration(
20  primitives::BlockHash const &block) override;
21 
22  private:
23  std::shared_ptr<Executor> executor_;
24  };
25 
26 } // namespace kagome::runtime
27 
28 #endif // KAGOME_CORE_RUNTIME_IMPL_BABE_API_HPP
std::shared_ptr< Executor > executor_
Definition: babe_api.hpp:23
BabeApiImpl(std::shared_ptr< Executor > executor)
Definition: babe_api.cpp:12
outcome::result< primitives::BabeConfiguration > configuration(primitives::BlockHash const &block) override
Definition: babe_api.cpp:17