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

#include <core.hpp>

Inheritance diagram for kagome::runtime::Core:
Collaboration diagram for kagome::runtime::Core:

Public Member Functions

virtual ~Core ()=default
 
virtual outcome::result< primitives::Versionversion (primitives::BlockHash const &block)=0
 Returns the version of the runtime. More...
 
virtual outcome::result< primitives::Versionversion ()=0
 Returns the version of the runtime - version for nested calls, such as in MiscExtension. More...
 
virtual outcome::result< void > execute_block (const primitives::Block &block)=0
 Executes the given block. More...
 
virtual outcome::result< storage::trie::RootHashinitialize_block (const primitives::BlockHeader &header)=0
 Initialize a block with the given header. More...
 

Detailed Description

Core represents mandatory part of runtime api

Definition at line 26 of file core.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<void> kagome::runtime::Core::execute_block ( const primitives::Block block)
pure virtual

Executes the given block.

Parameters
blockblock to execute

Implemented in kagome::runtime::CoreImpl.

virtual outcome::result<storage::trie::RootHash> kagome::runtime::Core::initialize_block ( const primitives::BlockHeader header)
pure virtual

Initialize a block with the given header.

Parameters
headerheader used for block initialization

Implemented in kagome::runtime::CoreImpl.

virtual outcome::result<primitives::Version> kagome::runtime::Core::version ( primitives::BlockHash const &  block)
pure virtual

Returns the version of the runtime.

Returns
runtime version

Implemented in kagome::runtime::CoreImpl.

virtual outcome::result<primitives::Version> kagome::runtime::Core::version ( )
pure virtual

Returns the version of the runtime - version for nested calls, such as in MiscExtension.

Returns
runtime version

Implemented in kagome::runtime::CoreImpl.


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