hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_sequence_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_SEQUENCE_FACTORY_HPP
7 #define IROHA_TRANSACTION_SEQUENCE_FACTORY_HPP
8 
10 
11 #include "common/result.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16 
22  public:
30  template <typename TransactionValidator,
31  typename FieldValidator = validation::FieldValidator>
32  static iroha::expected::Result<TransactionSequence, std::string>
34  const types::SharedTxsCollectionType &transactions,
36  TransactionValidator> &validator,
37  const FieldValidator &field_validator);
38  };
39 
40  } // namespace interface
41 } // namespace shared_model
42 
43 #endif // IROHA_TRANSACTION_SEQUENCE_FACTORY_HPP
Definition: transaction_sequence_factory.hpp:21
Definition: field_validator.hpp:35
static iroha::expected::Result< TransactionSequence, std::string > createTransactionSequence(const types::SharedTxsCollectionType &transactions, const validation::TransactionsCollectionValidator< TransactionValidator > &validator, const FieldValidator &field_validator)
Definition: transaction_sequence_factory.cpp:34
Definition: command_executor.hpp:12
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27
Definition: transactions_collection_validator.hpp:22