Kagome
Polkadot Runtime Engine in C++17
metadata.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_METADATA_HPP
7 #define KAGOME_CORE_RUNTIME_METADATA_HPP
8 
9 #include <optional>
10 #include <outcome/outcome.hpp>
11 #include "primitives/common.hpp"
13 
14 namespace kagome::runtime {
15 
16  class Metadata {
17  protected:
19 
20  public:
21  virtual ~Metadata() = default;
22 
27  virtual outcome::result<OpaqueMetadata> metadata(
28  const primitives::BlockHash &block_hash) = 0;
29  };
30 
31 } // namespace kagome::runtime
32 
33 #endif // KAGOME_CORE_RUNTIME_METADATA_HPP
std::vector< uint8_t > OpaqueMetadata
primitives::OpaqueMetadata OpaqueMetadata
Definition: metadata.hpp:18
virtual outcome::result< OpaqueMetadata > metadata(const primitives::BlockHash &block_hash)=0
calls metadata method of Metadata runtime api
virtual ~Metadata()=default