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