hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_transactions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GET_ACCOUNT_TRANSACTIONS_H
7 #define IROHA_GET_ACCOUNT_TRANSACTIONS_H
8 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
17  : public TrivialProto<interface::GetAccountTransactions,
18  iroha::protocol::Query> {
19  public:
20  template <typename QueryType>
21  explicit GetAccountTransactions(QueryType &&query);
22 
24 
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  const interface::TxPaginationMeta &paginationMeta() const override;
30 
31  private:
32  // ------------------------------| fields |-------------------------------
33 
34  const iroha::protocol::GetAccountTransactions &account_transactions_;
35  const TxPaginationMeta pagination_meta_;
36  };
37 
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_GET_ACCOUNT_TRANSACTIONS_H
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::TxPaginationMeta & paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_transactions.cpp:39
Provides query metadata for any transaction list pagination.
Definition: tx_pagination_meta.hpp:17
Provides query metadata for any transaction list pagination.
Definition: proto_tx_pagination_meta.hpp:18
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_transactions.cpp:34
GetAccountTransactions(QueryType &&query)
Definition: proto_get_account_transactions.cpp:14
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
Definition: proto_get_account_transactions.hpp:16