#include "transaction_batch_factory.hpp"
Public Types | |
template<typename BatchType > | |
using | FactoryResult = iroha::expected::Result< BatchType, std::string > |
Public Member Functions | |
virtual | ~TransactionBatchFactory ()=default |
virtual FactoryResult< std::unique_ptr< TransactionBatch > > | createTransactionBatch (const types::SharedTxsCollectionType &transactions) const =0 |
virtual FactoryResult< std::unique_ptr< TransactionBatch > > | createTransactionBatch (std::shared_ptr< Transaction > transaction) const =0 |
Provides methods that create transaction batch from a single transaction, or a collection of transactions. Field validator is used by default
using shared_model::interface::TransactionBatchFactory::FactoryResult = iroha::expected::Result<BatchType, std::string> |
|
virtualdefault |
|
pure virtual |
Create transaction batch out of collection of transactions
transactions | collection of transactions, should be from the same batch |
Implemented in shared_model::interface::TransactionBatchFactoryImpl.
|
pure virtual |
Creates transaction batch from single transaction
transaction | is transaction being validated and used to create batch |
Implemented in shared_model::interface::TransactionBatchFactoryImpl.