Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
binaryen
common
constant_code_provider.cpp
constant_code_provider.hpp
executor.hpp
memory_allocator.cpp
memory_allocator.hpp
module_repository_impl.cpp
module_repository_impl.hpp
runtime_environment_factory.cpp
runtime_instances_pool.cpp
runtime_instances_pool.hpp
runtime_transaction_error.cpp
runtime_transaction_error.hpp
runtime_upgrade_tracker_impl.cpp
runtime_upgrade_tracker_impl.hpp
storage_code_provider.cpp
storage_code_provider.hpp
trie_storage_provider_impl.cpp
trie_storage_provider_impl.hpp
uncompress_code_if_needed.cpp
uncompress_code_if_needed.hpp
runtime_api
wavm
core_api_factory.hpp
instance_environment.hpp
memory.hpp
memory_provider.hpp
module.hpp
module_factory.hpp
module_instance.hpp
module_repository.hpp
persistent_result.hpp
ptr_size.hpp
raw_executor.hpp
runtime_code_provider.hpp
runtime_environment_factory.hpp
runtime_properties_cache.hpp
runtime_upgrade_tracker.hpp
trie_storage_provider.hpp
types.hpp
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
constant_code_provider.cpp
Go to the documentation of this file.
1
6
#include "
runtime/common/constant_code_provider.hpp
"
7
8
namespace
kagome::runtime
{
9
10
ConstantCodeProvider::ConstantCodeProvider
(
common::Buffer
code)
11
: code_{std::move(code)} {}
12
13
outcome::result<gsl::span<const uint8_t>>
ConstantCodeProvider::getCodeAt
(
14
const
storage::trie::RootHash
&)
const
{
15
return
code_
;
16
}
17
18
}
// namespace kagome::runtime
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::code_
common::Buffer code_
Definition:
constant_code_provider.hpp:24
constant_code_provider.hpp
core
runtime
common
constant_code_provider.cpp
Generated by
1.8.11