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