6 #ifndef KAGOME_RUNTIME_CORE_HPP 7 #define KAGOME_RUNTIME_CORE_HPP 21 class RuntimeCodeProvider;
28 virtual ~Core() =
default;
34 virtual outcome::result<primitives::Version>
version(
42 virtual outcome::result<primitives::Version>
version() = 0;
61 #endif // KAGOME_RUNTIME_CORE_HPP
Block class represents polkadot block primitive.
virtual outcome::result< storage::trie::RootHash > initialize_block(const primitives::BlockHeader &header)=0
Initialize a block with the given header.
virtual outcome::result< void > execute_block(const primitives::Block &block)=0
Executes the given block.
virtual outcome::result< primitives::Version > version()=0
Returns the version of the runtime - version for nested calls, such as in MiscExtension.