6 #ifndef IROHA_WSV_QUERY_HPP 7 #define IROHA_WSV_QUERY_HPP 9 #include <boost/optional.hpp> 39 virtual boost::optional<
40 std::vector<std::shared_ptr<shared_model::interface::Peer>>>
76 virtual boost::optional<std::shared_ptr<shared_model::interface::Peer>>
88 #endif // IROHA_WSV_QUERY_HPP virtual boost::optional< std::shared_ptr< shared_model::interface::Peer > > getPeerByPublicKey(shared_model::interface::types::PublicKeyHexStringView public_key)=0
Definition: block_query.hpp:17
Definition: result_fwd.hpp:27
virtual ~WsvQuery()=default
virtual iroha::expected::Result< size_t, std::string > countTransactions()=0
Fetch number of valid transactions in ledger.
Definition: block_query.hpp:15
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
virtual boost::optional< std::vector< std::string > > getSignatories(const shared_model::interface::types::AccountIdType &account_id)=0
Definition: wsv_query.hpp:23
virtual iroha::expected::Result< iroha::TopBlockInfo, std::string > getTopBlockInfo() const =0
Get top block info from ledger state.
virtual boost::optional< std::vector< std::shared_ptr< shared_model::interface::Peer > > > getPeers()=0
virtual iroha::expected::Result< size_t, std::string > countPeers()=0
Fetch domains stored in ledger.
virtual iroha::expected::Result< size_t, std::string > countDomains()=0
Fetch number of domains in ledger.