hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_batch_factory_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_BATCH_FACTORY_IMPL_HPP
7 #define IROHA_TRANSACTION_BATCH_FACTORY_IMPL_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14 
16  public:
17  using FactoryImplResult =
19 
21  const types::SharedTxsCollectionType &transactions) const override;
22 
24  std::shared_ptr<Transaction> transaction) const override;
25 
26  private:
27  validation::BatchValidator batch_validator_;
28  };
29 
30  } // namespace interface
31 } // namespace shared_model
32 
33 #endif // IROHA_TRANSACTION_BATCH_FACTORY_IMPL_HPP
FactoryResult< std::unique_ptr< TransactionBatch >> FactoryImplResult
Definition: transaction_batch_factory_impl.hpp:18
iroha::expected::Result< BatchType, std::string > FactoryResult
Definition: transaction_batch_factory.hpp:28
Definition: transaction_batch_factory_impl.hpp:15
Definition: transaction_batch_validator.hpp:14
Definition: transaction_batch_factory.hpp:23
Definition: command_executor.hpp:12
FactoryImplResult createTransactionBatch(const types::SharedTxsCollectionType &transactions) const override
Definition: transaction_batch_factory_impl.cpp:15
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27