LCOV - code coverage report
Current view: top level - irohad/model/queries - get_transactions.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 4 4 100.0 %
Date: 2019-03-07 14:46:43 Functions: 16 21 76.2 %

          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_GET_TRANSACTIONS_HPP
       7             : #define IROHA_GET_TRANSACTIONS_HPP
       8             : 
       9             : #include <string>
      10             : #include <vector>
      11             : 
      12             : #include "crypto/hash_types.hpp"
      13             : #include "model/query.hpp"
      14             : 
      15             : namespace iroha {
      16             :   namespace model {
      17             : 
      18             :     /**
      19             :      * Query for getting transactions of given asset of an account
      20             :      */
      21             :     struct GetAccountAssetTransactions : Query {
      22             :       /**
      23             :        * Account identifier
      24             :        */
      25           2 :       std::string account_id{};
      26             : 
      27             :       /**
      28             :        * Asset identifier
      29             :        */
      30           2 :       std::string asset_id{};
      31             :     };
      32             : 
      33             :     /**
      34             :      * Query for getting transactions of account
      35             :      */
      36             :     struct GetAccountTransactions : Query {
      37             :       /**
      38             :        * Account identifier
      39             :        */
      40           6 :       std::string account_id{};
      41             :     };
      42             : 
      43             :     /**
      44             :      * Query for getting transactions of given transactions' hashes
      45             :      */
      46             :     struct GetTransactions : Query {
      47             :       using TxHashType = iroha::hash256_t;
      48             :       using TxHashCollectionType = std::vector<TxHashType>;
      49             :       /**
      50             :        * Hashes of the transaction to be retrieved
      51             :        */
      52           6 :       TxHashCollectionType tx_hashes{};
      53             :     };
      54             :   }  // namespace model
      55             : }  // namespace iroha
      56             : #endif  // IROHA_GET_TRANSACTIONS_HPP

Generated by: LCOV version 1.13