hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_transaction_status_builder.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_TRANSACTION_STATUS_BUILDER_HPP
7 #define IROHA_PROTO_TRANSACTION_STATUS_BUILDER_HPP
8 
10 
11 namespace shared_model {
12  namespace proto {
13  class [[deprecated]] TransactionStatusBuilder {
14  public:
16 
18 
19  TransactionStatusBuilder statelessValidationSuccess();
20 
21  TransactionStatusBuilder statelessValidationFailed();
22 
23  TransactionStatusBuilder mstPending();
24 
25  TransactionStatusBuilder enoughSignaturesCollected();
26 
27  TransactionStatusBuilder statefulValidationSuccess();
28 
29  TransactionStatusBuilder statefulValidationFailed();
30 
31  TransactionStatusBuilder committed();
32 
33  TransactionStatusBuilder notReceived();
34 
35  TransactionStatusBuilder mstExpired();
36 
38 
39  TransactionStatusBuilder statelessErrorOrCmdName(const std::string &name);
40 
41  TransactionStatusBuilder failedCmdIndex(uint32_t index);
42 
43  TransactionStatusBuilder errorCode(uint32_t code);
44 
45  private:
46  iroha::protocol::ToriiResponse tx_response_;
47  };
48  } // namespace proto
49 } // namespace shared_model
50 
51 #endif // IROHA_PROTO_TRANSACTION_STATUS_BUILDER_HPP
Definition: hash.hpp:18
Definition: proto_transaction_status_builder.hpp:13
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: proto_tx_response.hpp:18
Definition: command_executor.hpp:12