hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_subtract_asset_quantity.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_SUBTRACT_ASSET_QUANTITY_HPP
7 #define IROHA_PROTO_SUBTRACT_ASSET_QUANTITY_HPP
8 
10 
11 #include "commands.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
18  public:
19  explicit SubtractAssetQuantity(iroha::protocol::Command &command);
20 
21  const interface::types::AssetIdType &assetId() const override;
22 
23  const interface::Amount &amount() const override;
24 
25  private:
26  const iroha::protocol::SubtractAssetQuantity &subtract_asset_quantity_;
27 
28  const interface::Amount amount_;
29  };
30 
31  } // namespace proto
32 } // namespace shared_model
33 
34 #endif // IROHA_PROTO_SUBTRACT_ASSET_QUANTITY_HPP
SubtractAssetQuantity(iroha::protocol::Command &command)
Definition: proto_subtract_asset_quantity.cpp:11
const interface::Amount & amount() const override
Definition: proto_subtract_asset_quantity.cpp:21
Definition: amount.hpp:20
Definition: subtract_asset_quantity.hpp:20
Definition: proto_subtract_asset_quantity.hpp:16
Definition: command_executor.hpp:12
const interface::types::AssetIdType & assetId() const override
Definition: proto_subtract_asset_quantity.cpp:16
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55