hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_grant_permission.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GRANT_PERMISSION_HPP
7 #define IROHA_PROTO_GRANT_PERMISSION_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
17  public:
18  explicit GrantPermission(iroha::protocol::Command &command);
19 
20  const interface::types::AccountIdType &accountId() const override;
21 
23 
24  std::string toString() const override;
25 
26  private:
27  const iroha::protocol::GrantPermission &grant_permission_;
28  };
29 
30  } // namespace proto
31 } // namespace shared_model
32 
33 #endif // IROHA_PROTO_GRANT_PERMISSION_HPP
Definition: proto_grant_permission.hpp:16
const interface::types::AccountIdType & accountId() const override
Definition: proto_grant_permission.cpp:16
Grantable
Definition: permissions.hpp:70
GrantPermission(iroha::protocol::Command &command)
Definition: proto_grant_permission.cpp:13
interface::permissions::Grantable permissionName() const override
Definition: proto_grant_permission.cpp:20
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: grant_permission.hpp:19
Definition: command_executor.hpp:12
std::string toString() const override
Definition: proto_grant_permission.cpp:24