Kagome
Polkadot Runtime Engine in C++17
raw_executor.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_RUNTIME_RAW_EXECUTOR_HPP
7 #define KAGOME_CORE_RUNTIME_RAW_EXECUTOR_HPP
8 
9 #include "common/buffer.hpp"
10 #include "outcome/outcome.hpp"
11 #include "primitives/common.hpp"
12 
13 namespace kagome::runtime {
14 
15  class RawExecutor {
16  public:
19  virtual ~RawExecutor() = default;
20 
29  virtual outcome::result<Buffer> callAtRaw(const BlockHash &block_hash,
30  std::string_view name,
31  const Buffer &encoded_args) = 0;
32  };
33 
34 } // namespace kagome::runtime
35 
36 #endif // KAGOME_CORE_RUNTIME_RAW_EXECUTOR_HPP
Class represents arbitrary (including empty) byte buffer.
Definition: buffer.hpp:29
virtual outcome::result< Buffer > callAtRaw(const BlockHash &block_hash, std::string_view name, const Buffer &encoded_args)=0
SLBuffer< std::numeric_limits< size_t >::max()> Buffer
Definition: buffer.hpp:244
common::Hash256 BlockHash
Definition: block_id.hpp:15
virtual ~RawExecutor()=default