Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
9
#include "
runtime/runtime_code_provider.hpp
"
10
11
namespace
kagome::runtime
{
12
16
class
ConstantCodeProvider
final :
public
RuntimeCodeProvider
{
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
:
24
common::Buffer
code_
;
25
};
26
27
}
// namespace kagome::runtime
28
29
#endif // KAGOME_CORE_RUNTIME_COMMON_CONST_WASM_PROVIDER
kagome::common::SLBuffer
Class represents arbitrary (including empty) byte buffer.
Definition:
buffer.hpp:29
kagome::runtime::ConstantCodeProvider::ConstantCodeProvider
ConstantCodeProvider(common::Buffer code)
Definition:
constant_code_provider.cpp:10
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::runtime::ConstantCodeProvider::getCodeAt
outcome::result< gsl::span< const uint8_t > > getCodeAt(const storage::trie::RootHash &at) const override
Definition:
constant_code_provider.cpp:13
kagome::runtime::ConstantCodeProvider
Definition:
constant_code_provider.hpp:16
runtime_code_provider.hpp
kagome::runtime::ConstantCodeProvider::code_
common::Buffer code_
Definition:
constant_code_provider.hpp:24
kagome::runtime::RuntimeCodeProvider
Definition:
runtime_code_provider.hpp:19
core
runtime
common
constant_code_provider.hpp
Generated by
1.8.11