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