hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_call_engine.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_CALL_ENGINE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_CALL_ENGINE_HPP
8 
10 
11 namespace iroha::protocol {
12  class CallEngine;
13  class Command;
14 } // namespace iroha::protocol
15 
16 namespace shared_model::proto {
17 
19  public:
20  explicit CallEngine(iroha::protocol::Command &command);
21 
22  virtual ~CallEngine();
23 
24  shared_model::interface::EngineType type() const override;
25 
26  const std::string &caller() const override;
27 
28  std::optional<std::reference_wrapper<const std::string>> callee()
29  const override;
30 
31  const std::string &input() const override;
32 
33  private:
34  const iroha::protocol::CallEngine &call_engine_;
36  };
37 
38 } // namespace shared_model::proto
39 
40 #endif
Definition: batch_meta.hpp:17
Definition: call_engine.hpp:20
Definition: proto_call_engine.hpp:18
EngineType
Type of smart contract engine.
Definition: engine_type.hpp:12
Definition: proto_call_engine.hpp:11