hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_transactions_page_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
8 
10 
13 #include "qry_responses.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
19  public:
20  explicit TransactionsPageResponse(
21  iroha::protocol::QueryResponse &query_response);
22 
24  const override;
25 
26  std::optional<interface::types::HashType> nextTxHash() const override;
27 
29  const override;
30 
31  private:
32  const iroha::protocol::TransactionsPageResponse &transactionPageResponse_;
33  std::vector<proto::Transaction> transactions_;
34  std::optional<interface::types::HashType> next_hash_;
35  };
36  } // namespace proto
37 } // namespace shared_model
38 
39 #endif // IROHA_SHARED_MODEL_PROTO_TRANSACTION_PAGE_RESPONSE_HPP
Definition: transactions_page_response.hpp:20
interface::types::TransactionsCollectionType transactions() const override
Definition: proto_transaction_page_response.cpp:28
std::optional< interface::types::HashType > nextTxHash() const override
Definition: proto_transaction_page_response.cpp:33
Definition: proto_transactions_page_response.hpp:17
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:84
interface::types::TransactionsNumberType allTransactionsSize() const override
Definition: proto_transaction_page_response.cpp:38
Definition: command_executor.hpp:12
boost::any_range< Transaction, boost::random_access_traversal_tag, Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29
TransactionsPageResponse(iroha::protocol::QueryResponse &query_response)
Definition: proto_transaction_page_response.cpp:12