Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::RuntimePropertiesCache Class Referenceabstract

#include <runtime_properties_cache.hpp>

Inheritance diagram for kagome::runtime::RuntimePropertiesCache:
Collaboration diagram for kagome::runtime::RuntimePropertiesCache:

Public Member Functions

virtual ~RuntimePropertiesCache ()=default
 
virtual outcome::result< primitives::VersiongetVersion (const common::Hash256 &hash, std::function< outcome::result< primitives::Version >()> obtainer)=0
 
virtual outcome::result< primitives::OpaqueMetadatagetMetadata (const common::Hash256 &hash, std::function< outcome::result< primitives::OpaqueMetadata >()> obtainer)=0
 

Detailed Description

Cache for runtime properties (as Version and Metadata) Allows loading and compiling a module directly from its web assembly byte code and instantiating a runtime module at an arbitrary block

Definition at line 25 of file runtime_properties_cache.hpp.

Constructor & Destructor Documentation

virtual kagome::runtime::RuntimePropertiesCache::~RuntimePropertiesCache ( )
virtualdefault

Member Function Documentation

virtual outcome::result<primitives::OpaqueMetadata> kagome::runtime::RuntimePropertiesCache::getMetadata ( const common::Hash256 hash,
std::function< outcome::result< primitives::OpaqueMetadata >()>  obtainer 
)
pure virtual
virtual outcome::result<primitives::Version> kagome::runtime::RuntimePropertiesCache::getVersion ( const common::Hash256 hash,
std::function< outcome::result< primitives::Version >()>  obtainer 
)
pure virtual

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