Kagome
Polkadot Runtime Engine in C++17
event_types.hpp File Reference
#include <cstdint>
#include <memory>
#include <boost/none_t.hpp>
#include <boost/variant.hpp>
#include <libp2p/peer/peer_id.hpp>
#include "common/buffer.hpp"
#include "primitives/block_id.hpp"
#include "primitives/extrinsic.hpp"
#include "primitives/version.hpp"
#include "subscription/subscriber.hpp"
#include "subscription/subscription_engine.hpp"
Include dependency graph for event_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::primitives::events::BroadcastEventParams
 
struct  kagome::primitives::events::InBlockEventParams
 
struct  kagome::primitives::events::RetractedEventParams
 
struct  kagome::primitives::events::FinalityTimeoutEventParams
 
struct  kagome::primitives::events::FinalizedEventParams
 
struct  kagome::primitives::events::UsurpedEventParams
 
struct  kagome::primitives::events::ExtrinsicLifecycleEvent
 

Namespaces

 kagome::api
 
 kagome::primitives
 
 kagome::primitives::events
 

Typedefs

template<typename T >
using kagome::primitives::events::ref_t = std::reference_wrapper< const T >
 
using kagome::primitives::events::HeadsEventParams = ref_t< const primitives::BlockHeader >
 
using kagome::primitives::events::RuntimeVersionEventParams = ref_t< const primitives::Version >
 
using kagome::primitives::events::NewRuntimeEventParams = ref_t< const primitives::BlockHash >
 
using kagome::primitives::events::ChainEventParams = boost::variant< std::nullopt_t, HeadsEventParams, RuntimeVersionEventParams, NewRuntimeEventParams >
 
using kagome::primitives::events::Hash256Span = gsl::span< const uint8_t, common::Hash256::size()>
 
using kagome::primitives::events::SubscribedExtrinsicId = uint32_t
 
using kagome::primitives::events::StorageSubscriptionEngine = subscription::SubscriptionEngine< common::Buffer, std::shared_ptr< api::Session >, std::optional< common::Buffer >, primitives::BlockHash >
 
using kagome::primitives::events::StorageSubscriptionEnginePtr = std::shared_ptr< StorageSubscriptionEngine >
 
using kagome::primitives::events::StorageEventSubscriber = StorageSubscriptionEngine::SubscriberType
 
using kagome::primitives::events::StorageEventSubscriberPtr = std::shared_ptr< StorageEventSubscriber >
 
using kagome::primitives::events::ChainSubscriptionEngine = subscription::SubscriptionEngine< primitives::events::ChainEventType, std::shared_ptr< api::Session >, primitives::events::ChainEventParams >
 
using kagome::primitives::events::ChainSubscriptionEnginePtr = std::shared_ptr< ChainSubscriptionEngine >
 
using kagome::primitives::events::ChainEventSubscriber = ChainSubscriptionEngine::SubscriberType
 
using kagome::primitives::events::ChainEventSubscriberPtr = std::shared_ptr< ChainEventSubscriber >
 
using kagome::primitives::events::ExtrinsicSubscriptionEngine = subscription::SubscriptionEngine< SubscribedExtrinsicId, std::shared_ptr< api::Session >, primitives::events::ExtrinsicLifecycleEvent >
 
using kagome::primitives::events::ExtrinsicSubscriptionEnginePtr = std::shared_ptr< ExtrinsicSubscriptionEngine >
 
using kagome::primitives::events::ExtrinsicEventSubscriber = ExtrinsicSubscriptionEngine::SubscriberType
 
using kagome::primitives::events::ExtrinsicEventSubscriberPtr = std::shared_ptr< ExtrinsicEventSubscriber >
 

Enumerations

enum  kagome::primitives::events::ChainEventType : uint32_t {
  kagome::primitives::events::ChainEventType::kNewHeads = 1, kagome::primitives::events::ChainEventType::kFinalizedHeads = 2, kagome::primitives::events::ChainEventType::kAllHeads = 3, kagome::primitives::events::ChainEventType::kFinalizedRuntimeVersion = 4,
  kagome::primitives::events::ChainEventType::kNewRuntime = 5
}
 
enum  kagome::primitives::events::ExtrinsicEventType {
  kagome::primitives::events::ExtrinsicEventType::FUTURE, kagome::primitives::events::ExtrinsicEventType::READY, kagome::primitives::events::ExtrinsicEventType::BROADCAST, kagome::primitives::events::ExtrinsicEventType::IN_BLOCK,
  kagome::primitives::events::ExtrinsicEventType::RETRACTED, kagome::primitives::events::ExtrinsicEventType::FINALITY_TIMEOUT, kagome::primitives::events::ExtrinsicEventType::FINALIZED, kagome::primitives::events::ExtrinsicEventType::USURPED,
  kagome::primitives::events::ExtrinsicEventType::DROPPED, kagome::primitives::events::ExtrinsicEventType::INVALID
}
 

Class Documentation

struct kagome::primitives::events::BroadcastEventParams

Definition at line 92 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::BroadcastEventParams:
Class Members
span< const PeerId > peers
struct kagome::primitives::events::InBlockEventParams

Definition at line 96 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::InBlockEventParams:
Class Members
Hash256Span block
struct kagome::primitives::events::RetractedEventParams

Definition at line 99 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::RetractedEventParams:
Class Members
Hash256Span retracted_block
struct kagome::primitives::events::FinalityTimeoutEventParams

Definition at line 103 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::FinalityTimeoutEventParams:
Class Members
Hash256Span block
struct kagome::primitives::events::FinalizedEventParams

Definition at line 107 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::FinalizedEventParams:
Class Members
Hash256Span block
struct kagome::primitives::events::UsurpedEventParams

Definition at line 111 of file event_types.hpp.

Collaboration diagram for kagome::primitives::events::UsurpedEventParams:
Class Members
Hash256Span transaction_hash