hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
subtract_asset_quantity.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_SUBTRACT_ASSET_QUANTITY_HPP
6 #define IROHA_SUBTRACT_ASSET_QUANTITY_HPP
7 
8 #include <string>
9 #include "model/command.hpp"
10 
11 namespace iroha {
12  namespace model {
13 
17  struct SubtractAssetQuantity : public Command {
22  std::string asset_id;
23 
27  std::string amount;
28 
29  bool operator==(const Command &command) const override;
30 
32 
33  SubtractAssetQuantity(const std::string &asset_id,
34  const std::string &amount)
35  : asset_id(asset_id), amount(amount) {}
36  };
37  } // namespace model
38 } // namespace iroha
39 #endif // IROHA_SUBTRACT_ASSET_QUANTITY_HPP
std::string amount
Definition: subtract_asset_quantity.hpp:27
std::string asset_id
Definition: subtract_asset_quantity.hpp:22
Definition: command.hpp:14
SubtractAssetQuantity(const std::string &asset_id, const std::string &amount)
Definition: subtract_asset_quantity.hpp:33
Definition: block_query.hpp:14
Definition: subtract_asset_quantity.hpp:17
bool operator==(const Command &command) const override
Definition: model_operators.cpp:97
SubtractAssetQuantity()
Definition: subtract_asset_quantity.hpp:31