Kagome
Polkadot Runtime Engine in C++17
host_api_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_EXTENSIONS_HOST_API_FACTORY_HPP
7 #define KAGOME_CORE_EXTENSIONS_HOST_API_FACTORY_HPP
8 
9 #include "host_api/host_api.hpp"
10 
11 namespace kagome::runtime {
12  class CoreApiFactory;
13  class TrieStorageProvider;
14  class MemoryProvider;
15 } // namespace kagome::runtime
16 
17 namespace kagome::host_api {
18 
23  public:
24  virtual ~HostApiFactory() = default;
25 
29  virtual std::unique_ptr<HostApi> make(
30  std::shared_ptr<const runtime::CoreApiFactory> core_provider,
31  std::shared_ptr<const runtime::MemoryProvider> memory_provider,
32  std::shared_ptr<runtime::TrieStorageProvider> storage_provider)
33  const = 0;
34  };
35 } // namespace kagome::host_api
36 
37 #endif // KAGOME_CORE_EXTENSIONS_HOST_API_FACTORY_HPP