hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::ProtoTxStatusFactory Class Reference

#include "proto_tx_status_factory.hpp"

Inheritance diagram for shared_model::proto::ProtoTxStatusFactory:
Inheritance graph
Collaboration diagram for shared_model::proto::ProtoTxStatusFactory:
Collaboration graph

Public Types

using FactoryReturnType = interface::TxStatusFactory::FactoryReturnType
 
- Public Types inherited from shared_model::interface::TxStatusFactory
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

FactoryReturnType makeStatelessFail (TransactionHashType, TransactionError) override
 Creates stateless failed transaction status. More...
 
FactoryReturnType makeStatelessValid (TransactionHashType, TransactionError) override
 Creates stateless valid transaction status. More...
 
FactoryReturnType makeStatefulFail (TransactionHashType, TransactionError) override
 Creates stateful failed transaction status. More...
 
FactoryReturnType makeStatefulValid (TransactionHashType, TransactionError) override
 Creates stateful valid transaction status. More...
 
FactoryReturnType makeCommitted (TransactionHashType, TransactionError) override
 Creates committed transaction status. More...
 
FactoryReturnType makeRejected (TransactionHashType, TransactionError) override
 Creates rejected transaction status. More...
 
FactoryReturnType makeMstExpired (TransactionHashType, TransactionError) override
 Creates transaction expired status. More...
 
FactoryReturnType makeMstPending (TransactionHashType, TransactionError) override
 Creates transaction pending status. More...
 
FactoryReturnType makeNotReceived (TransactionHashType, TransactionError) override
 Creates transaction is not received status. More...
 
FactoryReturnType makeEnoughSignaturesCollected (TransactionHashType, TransactionError) override
 Creates status which shows that enough signatures were collected. More...
 
- Public Member Functions inherited from shared_model::interface::TxStatusFactory
virtual ~TxStatusFactory ()=default
 

Member Typedef Documentation

Member Function Documentation

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeCommitted ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates committed transaction status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeEnoughSignaturesCollected ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates status which shows that enough signatures were collected.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeMstExpired ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates transaction expired status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeMstPending ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates transaction pending status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeNotReceived ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates transaction is not received status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeRejected ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates rejected transaction status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeStatefulFail ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates stateful failed transaction status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeStatefulValid ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates stateful valid transaction status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeStatelessFail ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates stateless failed transaction status.

Implements shared_model::interface::TxStatusFactory.

ProtoTxStatusFactory::FactoryReturnType ProtoTxStatusFactory::makeStatelessValid ( TransactionHashType  ,
TransactionError  tx_error 
)
overridevirtual

Creates stateless valid transaction status.

Implements shared_model::interface::TxStatusFactory.


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