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 
23 
25  const types::SharedTxsCollectionType &transactions) const override;
26 
28  std::shared_ptr<Transaction> transaction) const override;
29 
30  private:
31  std::shared_ptr<validation::AbstractValidator<TransactionBatch>>
32  batch_validator_;
33  };
34 
35  } // namespace interface
36 } // namespace shared_model
37 
38 #endif // IROHA_TRANSACTION_BATCH_FACTORY_IMPL_HPP
FactoryResult< std::unique_ptr< TransactionBatch >> FactoryImplResult
Definition: transaction_batch_factory_impl.hpp:18
Definition: abstract_validator.hpp:16
auto batch_validator
Definition: transaction_sequence_factory.cpp:27
iroha::expected::Result< BatchType, std::string > FactoryResult
Definition: transaction_batch_factory.hpp:28
Definition: transaction_batch_factory_impl.hpp:15
Definition: transaction_batch_factory.hpp:23
TransactionBatchFactoryImpl(std::shared_ptr< validation::AbstractValidator< TransactionBatch >> batch_validator)
Definition: transaction_batch_factory_impl.cpp:15
Definition: command_executor.hpp:12
FactoryImplResult createTransactionBatch(const types::SharedTxsCollectionType &transactions) const override
Definition: transaction_batch_factory_impl.cpp:21
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27