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

#include <raw_executor.hpp>

Inheritance diagram for kagome::runtime::RawExecutor:
Collaboration diagram for kagome::runtime::RawExecutor:

Public Types

using Buffer = common::Buffer
 
using BlockHash = primitives::BlockHash
 

Public Member Functions

virtual ~RawExecutor ()=default
 
virtual outcome::result< BuffercallAtRaw (const BlockHash &block_hash, std::string_view name, const Buffer &encoded_args)=0
 

Detailed Description

Definition at line 15 of file raw_executor.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<Buffer> kagome::runtime::RawExecutor::callAtRaw ( const BlockHash block_hash,
std::string_view  name,
const Buffer encoded_args 
)
pure virtual

Call a runtime method

Parameters
nameat state on block
block_hashin an ephemeral environment, e. g. the storage changes, made by this call, will NOT persist in the node's Trie storage The call will be done with the runtime code from
block_infostate Arguments for the call are expected to be scale-encoded into single buffer
encoded_argsbeforehand
Returns
scale-encoded result

Implemented in kagome::runtime::Executor.


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