hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_set_quorum.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_SET_QUORUM_HPP
7 #define IROHA_PROTO_SET_QUORUM_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class SetQuorum final : public CopyableProto<interface::SetQuorum,
16  iroha::protocol::Command,
17  SetQuorum> {
18  public:
19  template <typename CommandType>
20  explicit SetQuorum(CommandType &&command);
21 
22  SetQuorum(const SetQuorum &o);
23 
24  SetQuorum(SetQuorum &&o) noexcept;
25 
26  const interface::types::AccountIdType &accountId() const override;
27 
28  interface::types::QuorumType newQuorum() const override;
29 
30  private:
31  const iroha::protocol::SetAccountQuorum &set_account_quorum_;
32  };
33 
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_PROTO_SET_QUORUM_HPP
const interface::types::AccountIdType & accountId() const override
Definition: proto_set_quorum.cpp:25
SetQuorum(CommandType &&command)
Definition: proto_set_quorum.cpp:12
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
interface::types::QuorumType newQuorum() const override
Definition: proto_set_quorum.cpp:29
Definition: proto_set_quorum.hpp:15
Definition: command_executor.hpp:12
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:59
Definition: trivial_proto.hpp:45