hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
engine_log.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_INTERFACE_ENGINE_LOG_HPP
7 #define IROHA_SHARED_MODEL_INTERFACE_ENGINE_LOG_HPP
8 
9 #include <boost/optional.hpp>
10 #include <vector>
13 
14 namespace shared_model {
15  namespace interface {
16 
18  class EngineLog : public ModelPrimitive<EngineLog> {
19  public:
20  using TopicsCollectionType = std::vector<types::EvmTopicsHexString>;
21 
23  virtual types::EvmAddressHexString const &getAddress() const = 0;
24 
26  virtual types::EvmDataHexString const &getData() const = 0;
27 
29  virtual TopicsCollectionType const &getTopics() const = 0;
30 
31  std::string toString() const override;
32 
33  bool operator==(const ModelType &rhs) const override;
34  };
35 
36  } // namespace interface
37 } // namespace shared_model
38 
39 #endif // IROHA_SHARED_MODEL_INTERFACE_ENGINE_LOG_HPP
std::string EvmDataHexString
Types of evm data.
Definition: types.hpp:42
std::string toString() const override
Definition: engine_log.cpp:19
EngineLog ModelType
Definition: model_primitive.hpp:27
virtual TopicsCollectionType const & getTopics() const =0
Topics collection.
bool operator==(const ModelType &rhs) const override
Definition: engine_log.cpp:10
std::vector< types::EvmTopicsHexString > TopicsCollectionType
Definition: engine_log.hpp:20
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
Provides an engine log data.
Definition: engine_log.hpp:18
virtual types::EvmAddressHexString const & getAddress() const =0
Contract address.
virtual types::EvmDataHexString const & getData() const =0
Contract data.
std::string EvmAddressHexString
Type of evm address.
Definition: types.hpp:40