Kagome
Polkadot Runtime Engine in C++17
subscribe_runtime_version.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_API_STATE_REQUEST_SUBSCRIBERUNTIMEVERSION
7 #define KAGOME_API_STATE_REQUEST_SUBSCRIBERUNTIMEVERSION
8 
10 
12 
14 
15  struct SubscribeRuntimeVersion final : details::RequestType<uint32_t> {
16  explicit SubscribeRuntimeVersion(std::shared_ptr<StateApi> &api)
17  : api_(api) {
18  BOOST_ASSERT(api_);
19  }
20 
21  outcome::result<Return> execute() override {
22  return api_->subscribeRuntimeVersion();
23  }
24 
25  private:
26  std::shared_ptr<StateApi> api_;
27  };
28 
29 } // namespace kagome::api::state::request
30 
31 #endif // KAGOME_API_STATE_REQUEST_SUBSCRIBERUNTIMEVERSION