Kagome
Polkadot Runtime Engine in C++17
|
#include <misc_extension.hpp>
Public Member Functions | |
MiscExtension (uint64_t chain_id, std::shared_ptr< const crypto::Hasher > hasher, std::shared_ptr< const runtime::MemoryProvider > memory_provider, std::shared_ptr< const runtime::CoreApiFactory > core_provider) | |
~MiscExtension ()=default | |
runtime::WasmSpan | ext_misc_runtime_version_version_1 (runtime::WasmSpan data) const |
void | ext_misc_print_hex_version_1 (runtime::WasmSpan data) const |
void | ext_misc_print_num_version_1 (uint64_t value) const |
void | ext_misc_print_utf8_version_1 (runtime::WasmSpan data) const |
Private Attributes | |
std::shared_ptr< const crypto::Hasher > | hasher_ |
std::shared_ptr< const runtime::MemoryProvider > | memory_provider_ |
std::shared_ptr< const runtime::CoreApiFactory > | core_factory_ |
log::Logger | logger_ |
Implements miscellaneous extension functions
Definition at line 32 of file misc_extension.hpp.
kagome::host_api::MiscExtension::MiscExtension | ( | uint64_t | chain_id, |
std::shared_ptr< const crypto::Hasher > | hasher, | ||
std::shared_ptr< const runtime::MemoryProvider > | memory_provider, | ||
std::shared_ptr< const runtime::CoreApiFactory > | core_provider | ||
) |
Definition at line 18 of file misc_extension.cpp.
|
default |
void kagome::host_api::MiscExtension::ext_misc_print_hex_version_1 | ( | runtime::WasmSpan | data | ) | const |
Definition at line 73 of file misc_extension.cpp.
void kagome::host_api::MiscExtension::ext_misc_print_num_version_1 | ( | uint64_t | value | ) | const |
Definition at line 80 of file misc_extension.cpp.
void kagome::host_api::MiscExtension::ext_misc_print_utf8_version_1 | ( | runtime::WasmSpan | data | ) | const |
Definition at line 84 of file misc_extension.cpp.
runtime::WasmSpan kagome::host_api::MiscExtension::ext_misc_runtime_version_version_1 | ( | runtime::WasmSpan | data | ) | const |
Definition at line 32 of file misc_extension.cpp.
|
private |
Definition at line 54 of file misc_extension.hpp.
|
private |
Definition at line 52 of file misc_extension.hpp.
|
private |
Definition at line 55 of file misc_extension.hpp.
|
private |
Definition at line 53 of file misc_extension.hpp.