hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_ASSET_HPP
7 #define IROHA_ASSET_HPP
8 
9 #include <string>
10 
11 namespace iroha {
12  namespace model {
13 
17  struct Asset {
18  Asset() = default;
19 
20  Asset(std::string asset_id, std::string domain_id, uint8_t precision)
21  : asset_id(asset_id), domain_id(domain_id), precision(precision) {}
25  std::string asset_id;
26 
27  std::string domain_id;
28 
32  uint8_t precision;
33  };
34  } // namespace model
35 } // namespace iroha
36 
37 #endif // IROHA_ASSET_HPP
uint8_t precision
Definition: asset.hpp:32
Definition: asset.hpp:17
std::string domain_id
Definition: asset.hpp:27
Definition: block_query.hpp:14
std::string asset_id
Definition: asset.hpp:25
Asset(std::string asset_id, std::string domain_id, uint8_t precision)
Definition: asset.hpp:20