hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
postgres_wsv_command.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POSTGRES_WSV_COMMAND_HPP
7 #define IROHA_POSTGRES_WSV_COMMAND_HPP
8 
10 
13 
14 namespace iroha {
15  namespace ametsuchi {
16 
17  class PostgresWsvCommand : public WsvCommand {
18  public:
19  explicit PostgresWsvCommand(soci::session &sql);
21  const shared_model::interface::types::RoleIdType &role_name) override;
22 
25  const shared_model::interface::types::RoleIdType &role_name) override;
28  const shared_model::interface::types::RoleIdType &role_name) override;
29 
33  override;
34 
36  const shared_model::interface::Account &account) override;
38  const shared_model::interface::Account &account) override;
42  &creator_account_id,
43  const std::string &key,
44  const std::string &val) override;
46  const shared_model::interface::Asset &asset) override;
48  const shared_model::interface::AccountAsset &asset) override;
50  shared_model::interface::types::PublicKeyHexStringView signatory)
51  override;
54  shared_model::interface::types::PublicKeyHexStringView signatory)
55  override;
58  shared_model::interface::types::PublicKeyHexStringView signatory)
59  override;
61  shared_model::interface::types::PublicKeyHexStringView signatory)
62  override;
64  const shared_model::interface::Peer &peer) override;
66  const shared_model::interface::Peer &peer) override;
68  const shared_model::interface::Domain &domain) override;
71  &permittee_account_id,
74 
77  &permittee_account_id,
80 
82  const TopBlockInfo &top_block_info) const override;
83 
84  private:
85  soci::session &sql_;
86  };
87  } // namespace ametsuchi
88 } // namespace iroha
89 
90 #endif // IROHA_POSTGRES_WSV_COMMAND_HPP
Definition: account.hpp:20
WsvCommandResult insertAccountSignatory(const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::types::PublicKeyHexStringView signatory) override
Definition: postgres_wsv_command.cpp:260
PostgresWsvCommand(soci::session &sql)
Definition: postgres_wsv_command.cpp:36
Grantable
Definition: permissions.hpp:76
WsvCommandResult setAccountKV(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &key, const std::string &val) override
Definition: postgres_wsv_command.cpp:380
Definition: peer.hpp:20
WsvCommandResult insertAsset(const shared_model::interface::Asset &asset) override
Definition: postgres_wsv_command.cpp:204
Definition: permissions.hpp:103
Definition: domain.hpp:19
WsvCommandResult insertSignatory(shared_model::interface::types::PublicKeyHexStringView signatory) override
Definition: postgres_wsv_command.cpp:246
Definition: result_fwd.hpp:27
Definition: ledger_state.hpp:14
WsvCommandResult updateAccount(const shared_model::interface::Account &account) override
Definition: postgres_wsv_command.cpp:363
WsvCommandResult deleteAccountRole(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:67
WsvCommandResult upsertAccountAsset(const shared_model::interface::AccountAsset &asset) override
Definition: postgres_wsv_command.cpp:223
WsvCommandResult deleteAccountSignatory(const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::types::PublicKeyHexStringView signatory) override
Definition: postgres_wsv_command.cpp:279
Definition: wsv_command.hpp:51
Definition: block_query.hpp:15
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
WsvCommandResult insertAccountRole(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:49
WsvCommandResult insertAccount(const shared_model::interface::Account &account) override
Definition: postgres_wsv_command.cpp:180
Definition: asset.hpp:19
WsvCommandResult insertRole(const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:38
WsvCommandResult deleteAccountGrantablePermission(const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override
Definition: postgres_wsv_command.cpp:146
Definition: postgres_wsv_command.hpp:17
WsvCommandResult insertDomain(const shared_model::interface::Domain &domain) override
Definition: postgres_wsv_command.cpp:346
WsvCommandResult deleteSignatory(shared_model::interface::types::PublicKeyHexStringView signatory) override
Definition: postgres_wsv_command.cpp:298
WsvCommandResult deletePeer(const shared_model::interface::Peer &peer) override
Definition: postgres_wsv_command.cpp:329
WsvCommandResult insertPeer(const shared_model::interface::Peer &peer) override
Definition: postgres_wsv_command.cpp:314
WsvCommandResult insertRolePermissions(const shared_model::interface::types::RoleIdType &role_id, const shared_model::interface::RolePermissionSet &permissions) override
Definition: postgres_wsv_command.cpp:86
Definition: account_asset.hpp:20
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:54
WsvCommandResult insertAccountGrantablePermission(const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override
Definition: postgres_wsv_command.cpp:112
WsvCommandResult setTopBlockInfo(const TopBlockInfo &top_block_info) const override
Definition: postgres_wsv_command.cpp:412