Kagome
Polkadot Runtime Engine in C++17
block_direction.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_NETWORK_TYPES_BLOCK_DIRECTION_HPP
7 #define KAGOME_CORE_NETWORK_TYPES_BLOCK_DIRECTION_HPP
8 
9 #include <cstdint>
10 #include <type_traits>
11 
12 #include <scale/enum_traits.hpp>
13 
14 #include "common/outcome_throw.hpp"
15 
16 namespace kagome::network {
20  enum class Direction : uint8_t {
22  ASCENDING = 0,
24  DESCENDING = 1
25  };
26 
27 } // namespace kagome::network
28 
30  Direction,
33 
34 #endif // KAGOME_CORE_NETWORK_TYPES_BLOCK_DIRECTION_HPP
from parent to canonical child
SCALE_DEFINE_ENUM_VALUE_RANGE(kagome::network, Direction, kagome::network::Direction::ASCENDING, kagome::network::Direction::DESCENDING)