6 #ifndef IROHA_TX_RESPONSE_HPP 7 #define IROHA_TX_RESPONSE_HPP 11 #include <boost/variant/variant_fwd.hpp> 34 template <
typename... Value>
35 using wrap = boost::variant<
const Value &...>;
42 virtual int priority()
const noexcept = 0;
107 std::string
toString()
const override;
113 #endif // IROHA_TX_RESPONSE_HPP virtual const TransactionHashType & transactionHash() const =0
uint32_t ErrorCodeType
Type of command error code.
Definition: tx_response.hpp:87
virtual const StatelessErrorOrFailedCommandNameType & statelessErrorOrCommandName() const =0
std::string StatelessErrorOrFailedCommandNameType
Definition: tx_response.hpp:72
ProtoRef< interface::CommittedTxResponse, iroha::protocol::ToriiResponse > CommittedTxResponse
Definition: proto_concrete_tx_response.hpp:41
ProtoRef< interface::MstPendingResponse, iroha::protocol::ToriiResponse > MstPendingResponse
Definition: proto_concrete_tx_response.hpp:52
ProtoRef< interface::NotReceivedTxResponse, iroha::protocol::ToriiResponse > NotReceivedTxResponse
Definition: proto_concrete_tx_response.hpp:50
crypto::Hash HashType
Type of hash.
Definition: types.hpp:34
size_t FailedCommandIndexType
Type of command index, which failed validation.
Definition: tx_response.hpp:80
TransactionResponse ModelType
Definition: model_primitive.hpp:27
ProtoRef< interface::StatelessValidTxResponse, iroha::protocol::ToriiResponse > StatelessValidTxResponse
Definition: proto_concrete_tx_response.hpp:29
ProtoRef< interface::StatelessFailedTxResponse, iroha::protocol::ToriiResponse > StatelessFailedTxResponse
Definition: proto_concrete_tx_response.hpp:26
virtual ErrorCodeType errorCode() const =0
std::string toString() const override
Definition: tx_response.cpp:45
virtual FailedCommandIndexType failedCommandIndex() const =0
ProtoRef< interface::EnoughSignaturesCollectedResponse, iroha::protocol::ToriiResponse > EnoughSignaturesCollectedResponse
Definition: proto_concrete_tx_response.hpp:55
ProtoRef< interface::RejectedTxResponse, iroha::protocol::ToriiResponse > RejectedTxResponse
Definition: proto_concrete_tx_response.hpp:43
ProtoRef< interface::StatefulValidTxResponse, iroha::protocol::ToriiResponse > StatefulValidTxResponse
Definition: proto_concrete_tx_response.hpp:36
PrioritiesComparisonResult comparePriorities(const ModelType &other) const noexcept
Definition: tx_response.cpp:35
Definition: enough_signatures_collected_response.hpp:15
Definition: tx_response.hpp:31
bool operator==(const ModelType &rhs) const override
Definition: tx_response.cpp:56
wrap< StatelessFailedTxResponse, StatelessValidTxResponse, StatefulFailedTxResponse, StatefulValidTxResponse, RejectedTxResponse, CommittedTxResponse, MstExpiredResponse, NotReceivedTxResponse, MstPendingResponse, EnoughSignaturesCollectedResponse > ResponseVariantType
Type of variant, that handle all concrete tx responses in the system.
Definition: tx_response.hpp:55
Definition: model_primitive.hpp:22
ProtoRef< interface::MstExpiredResponse, iroha::protocol::ToriiResponse > MstExpiredResponse
Definition: proto_concrete_tx_response.hpp:48
Definition: command_executor.hpp:13
virtual int priority() const noexcept=0
ProtoRef< interface::StatefulFailedTxResponse, iroha::protocol::ToriiResponse > StatefulFailedTxResponse
Definition: proto_concrete_tx_response.hpp:34
PrioritiesComparisonResult
Definition: tx_response.hpp:96