6 #ifndef KAGOME_HOST_API_CHILD_STORAGE_EXTENSION_HPP 7 #define KAGOME_HOST_API_CHILD_STORAGE_EXTENSION_HPP 17 class TrieStorageProvider;
28 std::shared_ptr<runtime::TrieStorageProvider> storage_provider,
29 std::shared_ptr<const runtime::MemoryProvider> memory_provider);
36 void ext_default_child_storage_set_version_1(
50 void ext_default_child_storage_clear_version_1(
68 void ext_default_child_storage_clear_prefix_version_1(
83 uint32_t ext_default_child_storage_exists_version_1(
89 void ext_default_child_storage_storage_kill_version_1(
97 constexpr
static auto kDefaultLoggerTag =
98 "WASM Runtime [ChildStorageExtension]";
100 template <
typename R,
typename F,
typename... Args>
101 outcome::result<R> executeOnChildStorage(
102 const common::Buffer &child_storage_key, F func, Args &&...args)
const;
107 #endif // KAGOME_CHILD_STORAGE_HostApiS_HostApi_HPP Class represents arbitrary (including empty) byte buffer.
uint32_t WasmOffset
Offset type is uint32_t because we are working in 32 bit address space.
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< const runtime::MemoryProvider > memory_provider_
uint64_t WasmSpan
combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size
std::shared_ptr< runtime::TrieStorageProvider > storage_provider_