LCOV - code coverage report
Current view: top level - irohad/model/commands - add_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             : 
       6             : #ifndef IROHA_ADD_ASSET_QUANTITY_HPP
       7             : #define IROHA_ADD_ASSET_QUANTITY_HPP
       8             : 
       9             : #include <string>
      10             : #include "model/command.hpp"
      11             : 
      12             : namespace iroha {
      13             :   namespace model {
      14             : 
      15             :     /**
      16             :      * Add amount of asset to an account
      17             :      */
      18             :     struct AddAssetQuantity : public Command {
      19             :       /**
      20             :        * Asset to issue
      21             :        * Note: must exist in the system
      22             :        */
      23             :       std::string asset_id;
      24             : 
      25             :       /**
      26             :        * Amount to add to account asset
      27             :        */
      28             :       std::string amount;
      29             : 
      30             :       bool operator==(const Command &command) const override;
      31             : 
      32             :       AddAssetQuantity() {}
      33             : 
      34             :       AddAssetQuantity(const std::string &asset_id, const std::string &amount)
      35           0 :           : asset_id(asset_id), amount(amount) {}
      36             :     };
      37             :   }  // namespace model
      38             : }  // namespace iroha
      39             : #endif  // IROHA_ADD_ASSET_QUANTITY_HPP

Generated by: LCOV version 1.13