Kagome
Polkadot Runtime Engine in C++17
|
#include <child_storage_extension.hpp>
Private Member Functions | |
template<typename R , typename F , typename... Args> | |
outcome::result< R > | executeOnChildStorage (const common::Buffer &child_storage_key, F func, Args &&...args) const |
Private Attributes | |
std::shared_ptr< runtime::TrieStorageProvider > | storage_provider_ |
std::shared_ptr< const runtime::MemoryProvider > | memory_provider_ |
log::Logger | logger_ |
Static Private Attributes | |
static constexpr auto | kDefaultLoggerTag |
Implements HostApi functions related to storage
Definition at line 25 of file child_storage_extension.hpp.
kagome::host_api::ChildStorageExtension::ChildStorageExtension | ( | std::shared_ptr< runtime::TrieStorageProvider > | storage_provider, |
std::shared_ptr< const runtime::MemoryProvider > | memory_provider | ||
) |
Definition at line 25 of file child_storage_extension.cpp.
outcome::result<R> kagome::host_api::ChildStorageExtension::executeOnChildStorage | ( | const Buffer & | child_storage_key, |
F | func, | ||
Args &&... | args | ||
) | const |
Definition at line 42 of file child_storage_extension.cpp.
|
private |
void kagome::host_api::ChildStorageExtension::ext_default_child_storage_clear_prefix_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | prefix | ||
) |
Definition at line 244 of file child_storage_extension.cpp.
void kagome::host_api::ChildStorageExtension::ext_default_child_storage_clear_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key | ||
) |
Definition at line 143 of file child_storage_extension.cpp.
uint32_t kagome::host_api::ChildStorageExtension::ext_default_child_storage_exists_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key | ||
) | const |
Definition at line 319 of file child_storage_extension.cpp.
runtime::WasmSpan kagome::host_api::ChildStorageExtension::ext_default_child_storage_get_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key | ||
) | const |
Definition at line 108 of file child_storage_extension.cpp.
runtime::WasmSpan kagome::host_api::ChildStorageExtension::ext_default_child_storage_next_key_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key | ||
) | const |
Definition at line 166 of file child_storage_extension.cpp.
runtime::WasmSpan kagome::host_api::ChildStorageExtension::ext_default_child_storage_read_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key, | ||
runtime::WasmSpan | value_out, | ||
runtime::WasmOffset | offset | ||
) | const |
Definition at line 268 of file child_storage_extension.cpp.
runtime::WasmSpan kagome::host_api::ChildStorageExtension::ext_default_child_storage_root_version_1 | ( | runtime::WasmSpan | child_storage_key | ) | const |
Definition at line 217 of file child_storage_extension.cpp.
void kagome::host_api::ChildStorageExtension::ext_default_child_storage_set_version_1 | ( | runtime::WasmSpan | child_storage_key, |
runtime::WasmSpan | key, | ||
runtime::WasmSpan | value | ||
) |
Definition at line 81 of file child_storage_extension.cpp.
void kagome::host_api::ChildStorageExtension::ext_default_child_storage_storage_kill_version_1 | ( | runtime::WasmSpan | child_storage_key | ) |
Definition at line 342 of file child_storage_extension.cpp.
|
staticprivate |
Definition at line 97 of file child_storage_extension.hpp.
|
private |
Definition at line 95 of file child_storage_extension.hpp.
|
private |
Definition at line 94 of file child_storage_extension.hpp.
|
private |
Definition at line 93 of file child_storage_extension.hpp.