Kagome
Polkadot Runtime Engine in C++17
kagome::host_api::MiscExtension Class Referencefinal

#include <misc_extension.hpp>

Collaboration diagram for kagome::host_api::MiscExtension:

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::Hasherhasher_
 
std::shared_ptr< const runtime::MemoryProvidermemory_provider_
 
std::shared_ptr< const runtime::CoreApiFactorycore_factory_
 
log::Logger logger_
 

Detailed Description

Implements miscellaneous extension functions

Definition at line 32 of file misc_extension.hpp.

Constructor & Destructor Documentation

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.

kagome::host_api::MiscExtension::~MiscExtension ( )
default

Member Function Documentation

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.

Member Data Documentation

std::shared_ptr<const runtime::CoreApiFactory> kagome::host_api::MiscExtension::core_factory_
private

Definition at line 54 of file misc_extension.hpp.

std::shared_ptr<const crypto::Hasher> kagome::host_api::MiscExtension::hasher_
private

Definition at line 52 of file misc_extension.hpp.

log::Logger kagome::host_api::MiscExtension::logger_
private

Definition at line 55 of file misc_extension.hpp.

std::shared_ptr<const runtime::MemoryProvider> kagome::host_api::MiscExtension::memory_provider_
private

Definition at line 53 of file misc_extension.hpp.


The documentation for this class was generated from the following files: