hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
wsv_query.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_WSV_QUERY_HPP
7 #define IROHA_WSV_QUERY_HPP
8 
9 #include <vector>
10 
11 #include <boost/optional.hpp>
13 
14 namespace iroha {
15  namespace ametsuchi {
19  class WsvQuery {
20  public:
21  virtual ~WsvQuery() = default;
22 
28  virtual boost::optional<
29  std::vector<shared_model::interface::types::PubkeyType>>
31  const shared_model::interface::types::AccountIdType &account_id) = 0;
32 
37  virtual boost::optional<
38  std::vector<std::shared_ptr<shared_model::interface::Peer>>>
39  getPeers() = 0;
40  };
41 
42  } // namespace ametsuchi
43 } // namespace iroha
44 
45 #endif // IROHA_WSV_QUERY_HPP
virtual ~WsvQuery()=default
Definition: block_query.hpp:16
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
Definition: wsv_query.hpp:19
virtual boost::optional< std::vector< shared_model::interface::types::PubkeyType > > getSignatories(const shared_model::interface::types::AccountIdType &account_id)=0
virtual boost::optional< std::vector< std::shared_ptr< shared_model::interface::Peer > > > getPeers()=0