hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
create_asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CREATE_ASSET_HPP
7 #define IROHA_CREATE_ASSET_HPP
8 
9 #include "model/command.hpp"
10 #include <string>
11 
12 namespace iroha {
13  namespace model {
14 
18  struct CreateAsset : public Command {
22  std::string asset_name;
23 
27  std::string domain_id;
28 
32  uint8_t precision;
33 
34  bool operator==(const Command &command) const override;
35 
37 
38  CreateAsset(const std::string &asset_name,
39  const std::string &domain_id,
40  uint8_t precision)
41  : asset_name(asset_name),
42  domain_id(domain_id),
43  precision(precision) {}
44  };
45  } // namespace model
46 } // namespace iroha
47 #endif // IROHA_CREATE_ASSET_HPP
Definition: command.hpp:14
std::string asset_name
Definition: create_asset.hpp:22
std::string domain_id
Definition: create_asset.hpp:27
uint8_t precision
Definition: create_asset.hpp:32
CreateAsset(const std::string &asset_name, const std::string &domain_id, uint8_t precision)
Definition: create_asset.hpp:38
bool operator==(const Command &command) const override
Definition: model_operators.cpp:144
Definition: block_query.hpp:16
Definition: create_asset.hpp:18
CreateAsset()
Definition: create_asset.hpp:36