hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
account.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PLAIN_ACCOUNT_HPP
7 #define IROHA_SHARED_MODEL_PLAIN_ACCOUNT_HPP
8 
10 
12 
13 namespace shared_model {
14  namespace plain {
15 
16  class Account final : public interface::Account {
17  public:
18  Account(const interface::types::AccountIdType &account_id,
19  const interface::types::DomainIdType &domain_id,
21  const interface::types::JsonType &json_data);
22 
23  const interface::types::AccountIdType &accountId() const override;
24 
25  const interface::types::DomainIdType &domainId() const override;
26 
27  interface::types::QuorumType quorum() const override;
28 
29  const interface::types::JsonType &jsonData() const override;
30 
31  private:
32  const interface::types::AccountIdType account_id_;
33  const interface::types::DomainIdType domain_id_;
35  const interface::types::JsonType json_data_;
36  };
37  } // namespace plain
38 } // namespace shared_model
39 
40 #endif // IROHA_SHARED_MODEL_PLAIN_ACCOUNT_HPP
Definition: account.hpp:20
const interface::types::JsonType & jsonData() const override
Definition: account.cpp:31
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
const interface::types::AccountIdType & accountId() const override
Definition: account.cpp:19
Account(const interface::types::AccountIdType &account_id, const interface::types::DomainIdType &domain_id, interface::types::QuorumType quorum, const interface::types::JsonType &json_data)
Definition: account.cpp:8
interface::types::QuorumType quorum() const override
Definition: account.cpp:27
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: account.hpp:16
Definition: command_executor.hpp:12
uint16_t QuorumType
Type of Quorum used in transaction and set quorum.
Definition: types.hpp:62
std::string JsonType
Type of JSON data.
Definition: types.hpp:74
const interface::types::DomainIdType & domainId() const override
Definition: account.cpp:23