hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
command_service.hpp
Go to the documentation of this file.
1 
6 #ifndef TORII_COMMAND_SERVICE_HPP
7 #define TORII_COMMAND_SERVICE_HPP
8 
10 
11 namespace shared_model::interface {
12  class TransactionBatch;
13  class TransactionResponse;
14 } // namespace shared_model::interface
15 
16 namespace shared_model::crypto {
17  class Hash;
18 }
19 
20 namespace iroha::torii {
21 
23  public:
24  virtual ~CommandService() = default;
25 
30  virtual void handleTransactionBatch(
31  std::shared_ptr<shared_model::interface::TransactionBatch> batch) = 0;
32 
40  virtual std::shared_ptr<shared_model::interface::TransactionResponse>
41  getStatus(const shared_model::crypto::Hash &request) = 0;
42 
43  virtual void processTransactionResponse(
44  std::shared_ptr<shared_model::interface::TransactionResponse>
45  response) = 0;
46  };
47 
48 } // namespace iroha::torii
49 
50 #endif // TORII_COMMAND_SERVICE_HPP
Definition: hash.hpp:18
Definition: command_executor.hpp:14
Definition: application.hpp:79
Definition: tx_presence_cache.hpp:15
Definition: command_service.hpp:22