Kagome
Polkadot Runtime Engine in C++17
babe_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_BABE_API_HPP
7 #define KAGOME_CORE_RUNTIME_BABE_API_HPP
8 
9 #include <outcome/outcome.hpp>
10 
12 
13 namespace kagome::runtime {
14 
18  class BabeApi {
19  public:
20  virtual ~BabeApi() = default;
21 
26  virtual outcome::result<primitives::BabeConfiguration> configuration(
27  const primitives::BlockHash &block) = 0;
28  };
29 
30 } // namespace kagome::runtime
31 
32 #endif // KAGOME_CORE_RUNTIME_BABE_API_HPP
virtual ~BabeApi()=default
virtual outcome::result< primitives::BabeConfiguration > configuration(const primitives::BlockHash &block)=0