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 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class CreateAsset final : public interface::CreateAsset {
17  public:
18  explicit CreateAsset(iroha::protocol::Command &command);
19 
20  const interface::types::AssetNameType &assetName() const override;
21 
22  const interface::types::DomainIdType &domainId() const override;
23 
24  const PrecisionType &precision() const override;
25 
26  private:
27  const iroha::protocol::CreateAsset &create_asset_;
28 
29  const PrecisionType precision_;
30  };
31 
32  } // namespace proto
33 } // namespace shared_model
34 
35 #endif // IROHA_PROTO_CREATE_ASSET_HPP
const interface::types::AssetNameType & assetName() const override
Definition: proto_create_asset.cpp:16
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:53
const PrecisionType & precision() const override
Definition: proto_create_asset.cpp:24
Definition: create_asset.hpp:18
CreateAsset(iroha::protocol::Command &command)
Definition: proto_create_asset.cpp:11
Definition: proto_create_asset.hpp:16
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:41
const interface::types::DomainIdType & domainId() const override
Definition: proto_create_asset.cpp:20
Definition: command_executor.hpp:12
std::string AssetNameType
Type of asset name.
Definition: types.hpp:70