hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transfer_asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSFER_ASSET_HPP
7 #define IROHA_TRANSFER_ASSET_HPP
8 
9 #include <string>
10 #include "model/command.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
18  struct TransferAsset : public Command {
22  std::string src_account_id;
23 
27  std::string dest_account_id;
28 
32  std::string asset_id;
33 
37  std::string description;
38 
42  std::string amount;
43 
44  bool operator==(const Command &command) const override;
45 
47 
48  TransferAsset(const std::string &src_account_id,
49  const std::string &dest_account_id,
50  const std::string &asset_id,
51  const std::string &amount)
52  : src_account_id(src_account_id),
53  dest_account_id(dest_account_id),
54  asset_id(asset_id),
55  amount(amount) {}
56  };
57  } // namespace model
58 } // namespace iroha
59 #endif // IROHA_TRANSFER_ASSET_HPP
Definition: transfer_asset.hpp:18
Definition: command.hpp:14
std::string dest_account_id
Definition: transfer_asset.hpp:27
Definition: block_query.hpp:16
std::string description
Definition: transfer_asset.hpp:37
std::string src_account_id
Definition: transfer_asset.hpp:22
TransferAsset(const std::string &src_account_id, const std::string &dest_account_id, const std::string &asset_id, const std::string &amount)
Definition: transfer_asset.hpp:48
bool operator==(const Command &command) const override
Definition: model_operators.cpp:181
std::string asset_id
Definition: transfer_asset.hpp:32
TransferAsset()
Definition: transfer_asset.hpp:46
std::string amount
Definition: transfer_asset.hpp:42