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 #include "commands.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
17  : public CopyableProto<interface::SubtractAssetQuantity,
18  iroha::protocol::Command,
19  SubtractAssetQuantity> {
20  public:
21  template <typename CommandType>
22  explicit SubtractAssetQuantity(CommandType &&command);
23 
25 
27 
28  const interface::types::AssetIdType &assetId() const override;
29 
30  const interface::Amount &amount() const override;
31 
32  private:
33  const iroha::protocol::SubtractAssetQuantity &subtract_asset_quantity_;
34 
35  const interface::Amount amount_;
36  };
37 
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_PROTO_SUBTRACT_ASSET_QUANTITY_HPP
const interface::Amount & amount() const override
Definition: proto_subtract_asset_quantity.cpp:36
Definition: amount.hpp:20
Definition: proto_subtract_asset_quantity.hpp:16
SubtractAssetQuantity(CommandType &&command)
Definition: proto_subtract_asset_quantity.cpp:12
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
const interface::types::AssetIdType & assetId() const override
Definition: proto_subtract_asset_quantity.cpp:31
std::string AssetIdType
Type of asset id.
Definition: types.hpp:51