6 #ifndef IROHA_TX_STATUS_FACTORY_HPP 7 #define IROHA_TX_STATUS_FACTORY_HPP 44 std::decay_t<StatelessErrorOrFailedCommandNameType>
cmd_name_;
52 : cmd_name_{cmd_name},
53 cmd_index_{cmd_index},
54 error_code_{error_code} {}
119 #endif // IROHA_TX_STATUS_FACTORY_HPP virtual FactoryReturnType makeMstPending(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates transaction pending status.
uint32_t ErrorCodeType
Type of command error code.
Definition: tx_response.hpp:87
TransactionError(StatelessErrorOrFailedCommandNameType cmd_name, FailedCommandIndexType cmd_index, ErrorCodeType error_code)
Definition: tx_status_factory.hpp:49
virtual FactoryReturnType makeStatelessFail(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates stateless failed transaction status.
Definition: tx_status_factory.hpp:19
virtual FactoryReturnType makeCommitted(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates committed transaction status.
TransactionResponse::FailedCommandIndexType FailedCommandIndexType
Definition: tx_status_factory.hpp:36
FailedCommandIndexType cmd_index_
Definition: tx_status_factory.hpp:45
std::string StatelessErrorOrFailedCommandNameType
Definition: tx_response.hpp:72
const TransactionResponse::StatelessErrorOrFailedCommandNameType & StatelessErrorOrFailedCommandNameType
Definition: tx_status_factory.hpp:31
size_t FailedCommandIndexType
Type of command index, which failed validation.
Definition: tx_response.hpp:80
virtual FactoryReturnType makeStatefulValid(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates stateful valid transaction status.
std::decay_t< StatelessErrorOrFailedCommandNameType > cmd_name_
Definition: tx_status_factory.hpp:44
virtual FactoryReturnType makeNotReceived(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates transaction is not received status.
ErrorCodeType error_code_
Definition: tx_status_factory.hpp:46
virtual FactoryReturnType makeEnoughSignaturesCollected(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates status which shows that enough signatures were collected.
virtual FactoryReturnType makeRejected(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates rejected transaction status.
virtual FactoryReturnType makeStatefulFail(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates stateful failed transaction status.
represents transaction error, empty or not
Definition: tx_status_factory.hpp:43
virtual FactoryReturnType makeStatelessValid(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates stateless valid transaction status.
TransactionResponse::ErrorCodeType ErrorCodeType
Definition: tx_status_factory.hpp:40
virtual FactoryReturnType makeMstExpired(TransactionHashType, TransactionError tx_error=TransactionError())=0
Creates transaction expired status.
TransactionError()
Definition: tx_status_factory.hpp:48
std::unique_ptr< TransactionResponse > FactoryReturnType
return type of all generative methods
Definition: tx_status_factory.hpp:22
virtual ~TxStatusFactory()=default
Definition: command_executor.hpp:13