hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::TxStatusFactory Class Referenceabstract

#include "tx_status_factory.hpp"

Inheritance diagram for shared_model::interface::TxStatusFactory:
Inheritance graph
Collaboration diagram for shared_model::interface::TxStatusFactory:
Collaboration graph

Classes

struct  TransactionError
 represents transaction error, empty or not More...
 

Public Types

using FactoryReturnType = std::unique_ptr< TransactionResponse >
 return type of all generative methods More...
 
using TransactionHashType = const TransactionResponse::TransactionHashType &
 type of transaction hash More...
 
using StatelessErrorOrFailedCommandNameType = const TransactionResponse::StatelessErrorOrFailedCommandNameType &
 
using FailedCommandIndexType = TransactionResponse::FailedCommandIndexType
 
using ErrorCodeType = TransactionResponse::ErrorCodeType
 

Public Member Functions

virtual FactoryReturnType makeStatelessFail (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates stateless failed transaction status. More...
 
virtual FactoryReturnType makeStatelessValid (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates stateless valid transaction status. More...
 
virtual FactoryReturnType makeStatefulFail (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates stateful failed transaction status. More...
 
virtual FactoryReturnType makeStatefulValid (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates stateful valid transaction status. More...
 
virtual FactoryReturnType makeCommitted (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates committed transaction status. More...
 
virtual FactoryReturnType makeRejected (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates rejected transaction status. More...
 
virtual FactoryReturnType makeMstExpired (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates transaction expired status. More...
 
virtual FactoryReturnType makeMstPending (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates transaction pending status. More...
 
virtual FactoryReturnType makeNotReceived (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates transaction is not received status. More...
 
virtual FactoryReturnType makeEnoughSignaturesCollected (TransactionHashType, TransactionError tx_error=TransactionError())=0
 Creates status which shows that enough signatures were collected. More...
 
virtual ~TxStatusFactory ()=default
 

Detailed Description

Factory which creates transaction status response

Member Typedef Documentation

return type of all generative methods

Constructor & Destructor Documentation

virtual shared_model::interface::TxStatusFactory::~TxStatusFactory ( )
virtualdefault

Here is the caller graph for this function:

Member Function Documentation

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeCommitted ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates committed transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeEnoughSignaturesCollected ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates status which shows that enough signatures were collected.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeMstExpired ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates transaction expired status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeMstPending ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates transaction pending status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeNotReceived ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates transaction is not received status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeRejected ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates rejected transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeStatefulFail ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates stateful failed transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeStatefulValid ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates stateful valid transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeStatelessFail ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates stateless failed transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:

virtual FactoryReturnType shared_model::interface::TxStatusFactory::makeStatelessValid ( TransactionHashType  ,
TransactionError  tx_error = TransactionError() 
)
pure virtual

Creates stateless valid transaction status.

Implemented in shared_model::proto::ProtoTxStatusFactory.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: