hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_tx_status_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_TX_STATUS_FACTORY_HPP
7 #define IROHA_PROTO_TX_STATUS_FACTORY_HPP
8 
11 
12 namespace shared_model {
13  namespace proto {
15  public:
17 
18  // ------------------------| Stateless statuses |-------------------------
19 
21  TransactionError) override;
22 
24  TransactionError) override;
25 
26  // ------------------------| Stateful statuses |--------------------------
27 
29  TransactionError) override;
31  TransactionError) override;
32 
33  // --------------------------| Final statuses |---------------------------
34 
36  TransactionError) override;
37 
39  TransactionError) override;
40 
41  // --------------------------| Rest statuses |----------------------------
42 
44  TransactionError) override;
45 
47  TransactionError) override;
48 
50  TransactionError) override;
51 
54  };
55  } // namespace proto
56 } // namespace shared_model
57 #endif // IROHA_PROTO_TX_STATUS_FACTORY_HPP
FactoryReturnType makeNotReceived(TransactionHashType, TransactionError) override
Creates transaction is not received status.
Definition: proto_tx_status_factory.cpp:96
Definition: tx_status_factory.hpp:19
Definition: hash.hpp:18
FactoryReturnType makeStatefulFail(TransactionHashType, TransactionError) override
Creates stateful failed transaction status.
Definition: proto_tx_status_factory.cpp:59
FactoryReturnType makeMstExpired(TransactionHashType, TransactionError) override
Creates transaction expired status.
Definition: proto_tx_status_factory.cpp:84
FactoryReturnType makeRejected(TransactionHashType, TransactionError) override
Creates rejected transaction status.
Definition: proto_tx_status_factory.cpp:77
interface::TxStatusFactory::FactoryReturnType FactoryReturnType
Definition: proto_tx_status_factory.hpp:16
FactoryReturnType makeStatelessFail(TransactionHashType, TransactionError) override
Creates stateless failed transaction status.
Definition: proto_tx_status_factory.cpp:44
FactoryReturnType makeStatefulValid(TransactionHashType, TransactionError) override
Creates stateful valid transaction status.
Definition: proto_tx_status_factory.cpp:64
FactoryReturnType makeMstPending(TransactionHashType, TransactionError) override
Creates transaction pending status.
Definition: proto_tx_status_factory.cpp:90
represents transaction error, empty or not
Definition: tx_status_factory.hpp:43
FactoryReturnType makeCommitted(TransactionHashType, TransactionError) override
Creates committed transaction status.
Definition: proto_tx_status_factory.cpp:72
FactoryReturnType makeStatelessValid(TransactionHashType, TransactionError) override
Creates stateless valid transaction status.
Definition: proto_tx_status_factory.cpp:51
FactoryReturnType makeEnoughSignaturesCollected(TransactionHashType, TransactionError) override
Creates status which shows that enough signatures were collected.
Definition: proto_tx_status_factory.cpp:103
Definition: proto_tx_status_factory.hpp:14
std::unique_ptr< TransactionResponse > FactoryReturnType
return type of all generative methods
Definition: tx_status_factory.hpp:22
Definition: command_executor.hpp:12