Kagome
Polkadot Runtime Engine in C++17
extrinsic_observer.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_NETWORK_EXTRINSIC_OBSERVER_HPP
7 #define KAGOME_CORE_NETWORK_EXTRINSIC_OBSERVER_HPP
8 
9 #include "common/blob.hpp"
10 #include "outcome/outcome.hpp"
11 
12 namespace kagome::api {
13  class AuthorApi;
14 }
15 namespace kagome::primitives {
16  struct Extrinsic;
17 }
18 
19 namespace kagome::network {
20 
22  public:
23  virtual ~ExtrinsicObserver() = default;
24 
25  virtual outcome::result<common::Hash256> onTxMessage(
26  const primitives::Extrinsic &extrinsic) = 0;
27  };
28 
29 } // namespace kagome::network
30 
31 #endif // KAGOME_CORE_NETWORK_EXTRINSIC_OBSERVER_HPP
Extrinsic class represents extrinsic.
Definition: extrinsic.hpp:24