Kagome
Polkadot Runtime Engine in C++17
metadata.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_IMPL_METADATA_HPP
7 #define KAGOME_CORE_RUNTIME_IMPL_METADATA_HPP
8 
10 
12 
13 namespace kagome::runtime {
14 
15  class Executor;
16 
17  class MetadataImpl final : public Metadata {
18  public:
20  std::shared_ptr<blockchain::BlockHeaderRepository> block_header_repo,
21  std::shared_ptr<Executor> executor);
22 
23  outcome::result<OpaqueMetadata> metadata(
24  const primitives::BlockHash &block_hash) override;
25 
26  private:
27  std::shared_ptr<Executor> executor_;
28  std::shared_ptr<blockchain::BlockHeaderRepository> block_header_repo_;
29  };
30 
31 } // namespace kagome::runtime
32 
33 #endif // KAGOME_CORE_RUNTIME_METADATA_HPP
std::shared_ptr< Executor > executor_
Definition: metadata.hpp:27
MetadataImpl(std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo, std::shared_ptr< Executor > executor)
Definition: metadata.cpp:12
std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo_
Definition: metadata.hpp:28
outcome::result< OpaqueMetadata > metadata(const primitives::BlockHash &block_hash) override
calls metadata method of Metadata runtime api
Definition: metadata.cpp:21