hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
parse_and_create_batches.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_INTERFACE_PARSE_AND_CREATE_BATCHES_HPP
7 #define IROHA_SHARED_MODEL_INTERFACE_PARSE_AND_CREATE_BATCHES_HPP
8 
9 #include "common/result.hpp"
14 
15 namespace shared_model {
16  namespace interface {
17 
18  iroha::expected::Result<types::BatchesCollectionType, std::string>
19  parseAndCreateBatches(const TransactionBatchParser &batch_parser,
20  const TransactionBatchFactory &batch_factory,
21  const types::SharedTxsCollectionType &transactions);
22  } // namespace interface
23 } // namespace shared_model
24 
25 #endif // IROHA_SHARED_MODEL_INTERFACE_PARSE_AND_CREATE_BATCHES_HPP
iroha::expected::Result< types::BatchesCollectionType, std::string > parseAndCreateBatches(const TransactionBatchParser &batch_parser, const TransactionBatchFactory &batch_factory, const types::SharedTxsCollectionType &transactions)
Definition: parse_and_create_batches.cpp:14
std::vector< std::shared_ptr< Transaction > > SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27
const std::unique_ptr< TransactionBatchFactory > batch_factory
Definition: transaction_sequence_factory.cpp:29
Definition: command_executor.hpp:12