Kagome
Polkadot Runtime Engine in C++17
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 {
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
virtual outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &state) const =0