hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_add_asset_quantity.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_ADD_ASSET_QUANTITY_HPP
7 #define IROHA_PROTO_ADD_ASSET_QUANTITY_HPP
8 
10 
12 #include "commands.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
17  class AddAssetQuantity final
18  : public CopyableProto<interface::AddAssetQuantity,
19  iroha::protocol::Command,
20  AddAssetQuantity> {
21  public:
22  template <typename CommandType>
23  explicit AddAssetQuantity(CommandType &&command);
24 
26 
27  AddAssetQuantity(AddAssetQuantity &&o) noexcept;
28 
29  const interface::types::AssetIdType &assetId() const override;
30 
31  const interface::Amount &amount() const override;
32 
33  private:
34  const iroha::protocol::AddAssetQuantity &add_asset_quantity_;
35 
36  const interface::Amount amount_;
37  };
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_PROTO_ADD_ASSET_QUANTITY_HPP
Definition: amount.hpp:20
Definition: proto_add_asset_quantity.hpp:17
const interface::Amount & amount() const override
Definition: proto_add_asset_quantity.cpp:35
const interface::types::AssetIdType & assetId() const override
Definition: proto_add_asset_quantity.cpp:31
AddAssetQuantity(CommandType &&command)
Definition: proto_add_asset_quantity.cpp:12
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string AssetIdType
Type of asset id.
Definition: types.hpp:51