hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_tx_pagination_meta.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
7 #define IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
8 
10 
12 #include "queries.pb.h"
13 
14 #include "proto_ordering.hpp"
15 
16 namespace shared_model {
17  namespace proto {
18 
21  public:
22  explicit TxPaginationMeta(iroha::protocol::TxPaginationMeta &meta);
23 
25 
26  std::optional<interface::types::HashType> firstTxHash() const override;
27  interface::Ordering const &ordering() const override;
28 
29  private:
30  const iroha::protocol::TxPaginationMeta &meta_;
31  OrderingImpl ordering_;
32  };
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_PROTO_MODEL_QUERY_TX_PAGINATION_META_HPP
Definition: ordering.hpp:19
interface::Ordering const & ordering() const override
Definition: proto_tx_pagination_meta.cpp:35
Provides ordering data for pagination.
Definition: proto_ordering.hpp:18
std::optional< interface::types::HashType > firstTxHash() const override
Get the first requested transaction hash, if provided.
Definition: proto_tx_pagination_meta.cpp:26
Provides query metadata for any transaction list pagination.
Definition: tx_pagination_meta.hpp:19
Provides query metadata for any transaction list pagination.
Definition: proto_tx_pagination_meta.hpp:20
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:84
Definition: command_executor.hpp:12
TxPaginationMeta(iroha::protocol::TxPaginationMeta &meta)
Definition: proto_tx_pagination_meta.cpp:15
interface::types::TransactionsNumberType pageSize() const override
Get the requested page size.
Definition: proto_tx_pagination_meta.cpp:22