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 
11 #include "commands.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16 
17  class TransferAsset final : public interface::TransferAsset {
18  public:
19  explicit TransferAsset(iroha::protocol::Command &command);
20 
21  const interface::Amount &amount() const override;
22 
23  const interface::types::AssetIdType &assetId() const override;
24 
25  const interface::types::AccountIdType &srcAccountId() const override;
26 
27  const interface::types::AccountIdType &destAccountId() const override;
28 
29  const interface::types::DescriptionType &description() const override;
30 
31  private:
32  const iroha::protocol::TransferAsset &transfer_asset_;
33 
34  const interface::Amount amount_;
35  };
36 
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_PROTO_TRANSFER_ASSET_HPP
const interface::types::AccountIdType & srcAccountId() const override
Definition: proto_transfer_asset.cpp:23
Definition: amount.hpp:19
std::string DescriptionType
Type of the transfer message.
Definition: types.hpp:83
const interface::Amount & amount() const override
Definition: proto_transfer_asset.cpp:15
Definition: transfer_asset.hpp:19
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::types::DescriptionType & description() const override
Definition: proto_transfer_asset.cpp:32
const interface::types::AssetIdType & assetId() const override
Definition: proto_transfer_asset.cpp:19
const interface::types::AccountIdType & destAccountId() const override
Definition: proto_transfer_asset.cpp:27
TransferAsset(iroha::protocol::Command &command)
Definition: proto_transfer_asset.cpp:11
Definition: command_executor.hpp:12
Definition: proto_transfer_asset.hpp:17
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55