6 #ifndef IROHA_SHARED_MODEL_PROTO_ASSET_HPP 7 #define IROHA_SHARED_MODEL_PROTO_ASSET_HPP 12 #include "qry_responses.pb.h" 17 :
public TrivialProto<interface::Asset, iroha::protocol::Asset> {
19 template <
typename AssetType>
20 explicit Asset(AssetType &&account)
32 return proto_->domain_id();
36 return proto_->precision();
42 #endif // IROHA_SHARED_MODEL_PROTO_ASSET_HPP Asset(AssetType &&account)
Definition: asset.hpp:20
Asset(Asset &&o) noexcept
Definition: asset.hpp:25
std::string DomainIdType
Iroha domain id type.
Definition: types.hpp:56
Asset(const Asset &o)
Definition: asset.hpp:23
const interface::types::AssetIdType & assetId() const override
Definition: asset.hpp:27
interface::types::PrecisionType precision() const override
Definition: asset.hpp:35
const interface::types::DomainIdType & domainId() const override
Definition: asset.hpp:31
uint8_t PrecisionType
Type of precision.
Definition: types.hpp:46
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
detail::ReferenceHolder< iroha::protocol::Asset > proto_
Definition: trivial_proto.hpp:36
std::string AssetIdType
Type of asset id.
Definition: types.hpp:58