Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
runtime_code_provider.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_RUNTIME_RUNTIME_CODE_PROVIDER_HPP
7
#define KAGOME_CORE_RUNTIME_RUNTIME_CODE_PROVIDER_HPP
8
9
#include <gsl/span>
10
#include <optional>
11
12
#include "
primitives/block_id.hpp
"
13
#include "
storage/trie/types.hpp
"
14
15
namespace
kagome::runtime
{
19
class
RuntimeCodeProvider
{
20
public
:
21
virtual
~RuntimeCodeProvider
() =
default
;
22
23
virtual
outcome::result<gsl::span<const uint8_t>>
getCodeAt
(
24
const
storage::trie::RootHash
&state)
const
= 0;
25
};
26
27
}
// namespace kagome::runtime
28
29
#endif // KAGOME_CORE_RUNTIME_RUNTIME_CODE_PROVIDER_HPP
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
block_id.hpp
types.hpp
kagome::runtime::RuntimeCodeProvider::getCodeAt
virtual outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &state) const =0
kagome::runtime::RuntimeCodeProvider::~RuntimeCodeProvider
virtual ~RuntimeCodeProvider()=default
kagome::runtime::RuntimeCodeProvider
Definition:
runtime_code_provider.hpp:19
core
runtime
runtime_code_provider.hpp
Generated by
1.8.11