hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transfer_asset.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_TRANSFER_ASSET_HPP
7 #define IROHA_SHARED_MODEL_TRANSFER_ASSET_HPP
8 
10 
13 
14 namespace shared_model {
15  namespace interface {
19  class TransferAsset : public ModelPrimitive<TransferAsset> {
20  public:
24  virtual const types::AccountIdType &srcAccountId() const = 0;
28  virtual const types::AccountIdType &destAccountId() const = 0;
32  virtual const types::AssetIdType &assetId() const = 0;
36  virtual const Amount &amount() const = 0;
40  virtual const types::DescriptionType &description() const = 0;
41 
42  std::string toString() const override;
43 
44  bool operator==(const ModelType &rhs) const override;
45  };
46  } // namespace interface
47 } // namespace shared_model
48 
49 #endif // IROHA_SHARED_MODEL_TRANSFER_ASSET_HPP
virtual const types::AccountIdType & srcAccountId() const =0
virtual const types::AccountIdType & destAccountId() const =0
Definition: amount.hpp:19
virtual const Amount & amount() const =0
std::string DescriptionType
Type of the transfer message.
Definition: types.hpp:83
Definition: transfer_asset.hpp:19
virtual const types::AssetIdType & assetId() const =0
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
virtual const types::DescriptionType & description() const =0
std::string toString() const override
Definition: transfer_asset.cpp:11
Definition: model_primitive.hpp:22
bool operator==(const ModelType &rhs) const override
Definition: transfer_asset.cpp:22
Definition: command_executor.hpp:12
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55