LCOV - code coverage report
Current view: top level - irohad/model/commands - subtract_asset_quantity.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 1 0.0 %
Date: 2019-03-07 14:46:43 Functions: 8 11 72.7 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : #ifndef IROHA_SUBTRACT_ASSET_QUANTITY_HPP
       6             : #define IROHA_SUBTRACT_ASSET_QUANTITY_HPP
       7             : 
       8             : #include <string>
       9             : #include "model/command.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Subtract amount of asset to an account
      16             :      */
      17             :     struct SubtractAssetQuantity : public Command {
      18             :       /**
      19             :        * Asset to issue
      20             :        * Note: must exist in the system
      21             :        */
      22             :       std::string asset_id;
      23             : 
      24             :       /**
      25             :        * Amount to add to account asset
      26             :        */
      27             :       std::string amount;
      28             : 
      29             :       bool operator==(const Command &command) const override;
      30             : 
      31             :       SubtractAssetQuantity() {}
      32             : 
      33             :       SubtractAssetQuantity(const std::string &asset_id,
      34             :                             const std::string &amount)
      35           0 :           : asset_id(asset_id), amount(amount) {}
      36             :     };
      37             :   }  // namespace model
      38             : }  // namespace iroha
      39             : #endif  // IROHA_SUBTRACT_ASSET_QUANTITY_HPP

Generated by: LCOV version 1.13