Kagome
Polkadot Runtime Engine in C++17
apply_result.hpp File Reference
#include <boost/variant.hpp>
#include "primitives/arithmetic_error.hpp"
#include "primitives/token_error.hpp"
#include "primitives/transaction_validity.hpp"
#include "scale/scale.hpp"
#include "scale/tie.hpp"
Include dependency graph for apply_result.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kagome::primitives::DispatchSuccess
 
struct  kagome::primitives::dispatch_error::Other
 Some unclassified error occurred. More...
 
struct  kagome::primitives::dispatch_error::CannotLookup
 Failed to lookup some data. More...
 
struct  kagome::primitives::dispatch_error::BadOrigin
 A bad origin. More...
 
struct  kagome::primitives::dispatch_error::Module
 A custom error in a module. More...
 
struct  kagome::primitives::dispatch_error::ConsumerRemaining
 At least one consumer is remaining so the account cannot be destroyed. More...
 
struct  kagome::primitives::dispatch_error::NoProviders
 There are no providers so the account cannot be created. More...
 
struct  kagome::primitives::dispatch_error::Token
 An error to do with tokens. More...
 
struct  kagome::primitives::dispatch_error::Arithmetic
 An arithmetic error. More...
 

Namespaces

 kagome::primitives
 
 kagome::primitives::dispatch_error
 

Typedefs

using kagome::primitives::DispatchError = boost::variant< de::Other, de::CannotLookup, de::BadOrigin, de::Module, de::ConsumerRemaining, de::NoProviders, de::Token, de::Arithmetic >
 
using kagome::primitives::DispatchOutcome = boost::variant< DispatchSuccess, DispatchError >
 
using kagome::primitives::ApplyExtrinsicResult = boost::variant< DispatchOutcome, TransactionValidityError >
 

Functions

 kagome::primitives::SCALE_EMPTY_CODER (DispatchSuccess)
 
 kagome::primitives::dispatch_error::SCALE_EMPTY_CODER (Other)
 
 kagome::primitives::dispatch_error::SCALE_EMPTY_CODER (CannotLookup)
 
 kagome::primitives::dispatch_error::SCALE_EMPTY_CODER (BadOrigin)
 
template<typename Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & kagome::primitives::dispatch_error::operator<< (Stream &s, const Module &v)
 
template<typename Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & kagome::primitives::dispatch_error::operator>> (Stream &s, Module &v)
 
 kagome::primitives::dispatch_error::SCALE_EMPTY_CODER (ConsumerRemaining)
 
 kagome::primitives::dispatch_error::SCALE_EMPTY_CODER (NoProviders)
 

Class Documentation

class kagome::primitives::DispatchSuccess

Definition at line 24 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::DispatchSuccess:
struct kagome::primitives::dispatch_error::Other

Some unclassified error occurred.

Definition at line 29 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::Other:
Class Members
string value
struct kagome::primitives::dispatch_error::CannotLookup

Failed to lookup some data.

Definition at line 36 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::CannotLookup:
struct kagome::primitives::dispatch_error::BadOrigin

A bad origin.

Definition at line 39 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::BadOrigin:
struct kagome::primitives::dispatch_error::Module

A custom error in a module.

Definition at line 42 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::Module:
Class Members
uint8_t error Module specific error value.
uint8_t index Module index, matching the metadata module index.
optional< string > message Optional error message.
struct kagome::primitives::dispatch_error::ConsumerRemaining

At least one consumer is remaining so the account cannot be destroyed.

Definition at line 66 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::ConsumerRemaining:
struct kagome::primitives::dispatch_error::NoProviders

There are no providers so the account cannot be created.

Definition at line 69 of file apply_result.hpp.

Collaboration diagram for kagome::primitives::dispatch_error::NoProviders: