hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_create_asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_CREATE_ASSET_HPP
7 #define IROHA_PROTO_CREATE_ASSET_HPP
8 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class CreateAsset final : public CopyableProto<interface::CreateAsset,
17  iroha::protocol::Command,
18  CreateAsset> {
19  public:
20  template <typename CommandType>
21  explicit CreateAsset(CommandType &&command);
22 
23  CreateAsset(const CreateAsset &o);
24 
25  CreateAsset(CreateAsset &&o) noexcept;
26 
27  const interface::types::AssetNameType &assetName() const override;
28 
29  const interface::types::DomainIdType &domainId() const override;
30 
31  const PrecisionType &precision() const override;
32 
33  private:
34  const iroha::protocol::CreateAsset &create_asset_;
35 
36  const PrecisionType precision_;
37  };
38 
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_PROTO_CREATE_ASSET_HPP
const interface::types::AssetNameType & assetName() const override
Definition: proto_create_asset.cpp:27
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:51
CreateAsset(CommandType &&command)
Definition: proto_create_asset.cpp:12
const PrecisionType & precision() const override
Definition: proto_create_asset.cpp:35
Definition: proto_create_asset.hpp:16
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:39
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_asset.cpp:31
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string AssetNameType
Type of asset name.
Definition: types.hpp:69