hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
blocks_query.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_BLOCKS_QUERY_HPP
7 #define IROHA_SHARED_MODEL_BLOCKS_QUERY_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14 
20  class BlocksQuery : public Signable<BlocksQuery> {
21  public:
25  virtual const types::AccountIdType &creatorAccountId() const = 0;
26 
32  virtual types::CounterType queryCounter() const = 0;
33 
34  // ------------------------| Primitive override |-------------------------
35 
36  std::string toString() const override;
37 
38  bool operator==(const ModelType &rhs) const override;
39  };
40  } // namespace interface
41 } // namespace shared_model
42 #endif // IROHA_SHARED_MODEL_BLOCKS_QUERY_HPP
Definition: signable.hpp:35
std::string toString() const override
Definition: blocks_query.cpp:12
Definition: blocks_query.hpp:20
virtual const types::AccountIdType & creatorAccountId() const =0
bool operator==(const ModelType &rhs) const override
Definition: blocks_query.cpp:21
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
uint64_t CounterType
Type of counter.
Definition: types.hpp:63
Definition: command_executor.hpp:12
virtual types::CounterType queryCounter() const =0