Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
unsubscribe_new_heads.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
7
#define KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
8
9
#include "
api/service/base_request.hpp
"
10
11
namespace
kagome::api::chain::request
{
12
13
struct
UnsubscribeNewHeads
final :
details::RequestType
<void, uint32_t> {
14
explicit
UnsubscribeNewHeads
(std::shared_ptr<ChainApi> &api) :
api_
(api) {
15
BOOST_ASSERT(
api_
);
16
}
17
18
outcome::result<Return>
execute
()
override
{
19
return
api_
->unsubscribeNewHeads(getParam<0>());
20
}
21
22
private
:
23
std::shared_ptr<ChainApi>
api_
;
24
};
25
26
}
// namespace kagome::api::chain::request
27
28
#endif // KAGOME_CHAIN_UNSUBSCRIBE_NEW_HEADS_HPP
kagome::api::chain::request
Definition:
get_block.hpp:11
kagome::api::chain::request::UnsubscribeNewHeads::UnsubscribeNewHeads
UnsubscribeNewHeads(std::shared_ptr< ChainApi > &api)
Definition:
unsubscribe_new_heads.hpp:14
kagome::api::chain::request::UnsubscribeNewHeads
Definition:
unsubscribe_new_heads.hpp:13
kagome::api::chain::request::UnsubscribeNewHeads::execute
outcome::result< Return > execute() override
Definition:
unsubscribe_new_heads.hpp:18
kagome::api::details::RequestType
Definition:
base_request.hpp:32
base_request.hpp
kagome::api::chain::request::UnsubscribeNewHeads::api_
std::shared_ptr< ChainApi > api_
Definition:
unsubscribe_new_heads.hpp:23
core
api
service
chain
requests
unsubscribe_new_heads.hpp
Generated by
1.8.11