Kagome
Polkadot Runtime Engine in C++17
constant_code_provider.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_COMMON_CONST_WASM_PROVIDER
7 #define KAGOME_CORE_RUNTIME_COMMON_CONST_WASM_PROVIDER
8 
10 
11 namespace kagome::runtime {
12 
17  public:
18  explicit ConstantCodeProvider(common::Buffer code);
19 
20  outcome::result<gsl::span<const uint8_t>> getCodeAt(
21  const storage::trie::RootHash &at) const override;
22 
23  private:
25  };
26 
27 } // namespace kagome::runtime
28 
29 #endif // KAGOME_CORE_RUNTIME_COMMON_CONST_WASM_PROVIDER
Class represents arbitrary (including empty) byte buffer.
Definition: buffer.hpp:29
outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &at) const override