6 #ifndef KAGOME_CORE_PRIMITIVES_APPLY_RESULT_HPP 7 #define KAGOME_CORE_PRIMITIVES_APPLY_RESULT_HPP 9 #include <boost/variant.hpp> 14 #include "scale/scale.hpp" 27 namespace dispatch_error {
48 std::optional<std::string>
53 typename = std::enable_if_t<Stream::is_encoder_stream>>
59 typename = std::enable_if_t<Stream::is_decoder_stream>>
86 namespace de = dispatch_error;
99 boost::variant<DispatchOutcome, TransactionValidityError>;
103 #endif // KAGOME_CORE_PRIMITIVES_APPLY_RESULT_HPP uint8_t index
Module index, matching the metadata module index.
uint8_t error
Module specific error value.
Some unclassified error occurred.
boost::variant< de::Other, de::CannotLookup, de::BadOrigin, de::Module, de::ConsumerRemaining, de::NoProviders, de::Token, de::Arithmetic > DispatchError
boost::variant< DispatchSuccess, DispatchError > DispatchOutcome
A custom error in a module.
Stream & operator>>(Stream &s, ArithmeticError &v)
An error to do with tokens.
SCALE_EMPTY_CODER(DispatchSuccess)
boost::variant< DispatchOutcome, TransactionValidityError > ApplyExtrinsicResult
Stream & operator<<(Stream &s, const ArithmeticError &v)
Failed to lookup some data.
libp2p::connection::Stream Stream
std::optional< std::string > message
Optional error message.
At least one consumer is remaining so the account cannot be destroyed.
There are no providers so the account cannot be created.