hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
query_generator.hpp
Go to the documentation of this file.
1 
6 #include <memory>
7 #include <vector>
8 
14 
17 
18 #ifndef IROHA_QUERY_GENERATOR_HPP
19 #define IROHA_QUERY_GENERATOR_HPP
20 namespace iroha {
21  namespace model {
22  namespace generators {
24  public:
25  std::shared_ptr<GetAccount> generateGetAccount(ts64_t timestamp,
26  std::string creator,
27  uint64_t query_counter,
28  std::string account_id);
29 
30  std::shared_ptr<GetAccountAssets> generateGetAccountAssets(
31  ts64_t timestamp,
32  std::string creator,
33  uint64_t query_counter,
34  std::string account_id,
35  std::string asset_id);
36 
37  std::shared_ptr<GetAccountDetail> generateGetAccountDetail(
38  ts64_t timestamp,
39  std::string creator,
40  uint64_t query_counter,
41  std::string account_id,
42  std::string creator_account_id);
43 
44  std::shared_ptr<GetSignatories> generateGetSignatories(
45  ts64_t timestamp,
46  std::string creator,
47  uint64_t query_counter,
48  std::string account_id);
49 
50  std::shared_ptr<GetAccountTransactions> generateGetAccountTransactions(
51  ts64_t timestamp,
52  std::string creator,
53  uint64_t query_counter,
54  std::string account_id);
55 
56  std::shared_ptr<GetAccountAssetTransactions>
58  std::string creator,
59  uint64_t query_counter,
60  std::string account_id,
61  std::string asset_id);
62 
63  std::shared_ptr<GetTransactions> generateGetTransactions(
64  ts64_t timestamp,
65  const std::string &creator,
66  uint64_t query_counter,
67  const std::vector<iroha::hash256_t> &tx_hashes);
68 
73  std::shared_ptr<GetAssetInfo> generateGetAssetInfo();
74 
79  std::shared_ptr<GetRoles> generateGetRoles();
80 
85  std::shared_ptr<GetRolePermissions> generateGetRolePermissions();
86 
87  void setQueryMetaData(std::shared_ptr<Query> query,
88  ts64_t timestamp,
89  std::string creator,
90  uint64_t query_counter);
91  };
92  } // namespace generators
93  } // namespace model
94 } // namespace iroha
95 
96 #endif // IROHA_QUERY_GENERATOR_HPP
std::shared_ptr< GetSignatories > generateGetSignatories(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id)
Definition: query_generator.cpp:64
std::shared_ptr< GetAccount > generateGetAccount(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id)
Definition: query_generator.cpp:22
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
std::shared_ptr< GetRolePermissions > generateGetRolePermissions()
Definition: query_generator.cpp:136
uint64_t ts64_t
Definition: time.hpp:14
std::shared_ptr< GetAccountTransactions > generateGetAccountTransactions(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id)
Definition: query_generator.cpp:78
std::shared_ptr< GetAssetInfo > generateGetAssetInfo()
Definition: query_generator.cpp:119
std::shared_ptr< GetAccountDetail > generateGetAccountDetail(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id, std::string creator_account_id)
Definition: query_generator.cpp:50
Definition: block_query.hpp:16
Definition: query_generator.hpp:23
std::shared_ptr< GetAccountAssets > generateGetAccountAssets(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id, std::string asset_id)
Definition: query_generator.cpp:36
std::shared_ptr< GetTransactions > generateGetTransactions(ts64_t timestamp, const std::string &creator, uint64_t query_counter, const std::vector< iroha::hash256_t > &tx_hashes)
Definition: query_generator.cpp:106
void setQueryMetaData(std::shared_ptr< Query > query, ts64_t timestamp, std::string creator, uint64_t query_counter)
Definition: query_generator.cpp:13
std::shared_ptr< GetRoles > generateGetRoles()
Definition: query_generator.cpp:127
std::shared_ptr< GetAccountAssetTransactions > generateGetAccountAssetTransactions(ts64_t timestamp, std::string creator, uint64_t query_counter, std::string account_id, std::string asset_id)
Definition: query_generator.cpp:91