Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
12
#include "
primitives/opaque_metadata.hpp
"
13
14
namespace
kagome::runtime
{
15
16
class
Metadata
{
17
protected
:
18
using
OpaqueMetadata
=
primitives::OpaqueMetadata
;
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
common.hpp
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::primitives::OpaqueMetadata
std::vector< uint8_t > OpaqueMetadata
Definition:
opaque_metadata.hpp:16
kagome::runtime::Metadata::OpaqueMetadata
primitives::OpaqueMetadata OpaqueMetadata
Definition:
metadata.hpp:18
kagome::runtime::Metadata::metadata
virtual outcome::result< OpaqueMetadata > metadata(const primitives::BlockHash &block_hash)=0
calls metadata method of Metadata runtime api
outcome.hpp
opaque_metadata.hpp
kagome::runtime::Metadata
Definition:
metadata.hpp:16
kagome::runtime::Metadata::~Metadata
virtual ~Metadata()=default
core
runtime
runtime_api
metadata.hpp
Generated by
1.8.11