Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
9
#include "
api/service/base_request.hpp
"
10
11
namespace
kagome::api::chain::request
{
12
13
struct
UnsubscribeFinalizedHeads
final
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
kagome::api::chain::request
Definition:
get_block.hpp:11
kagome::api::details::RequestType
Definition:
base_request.hpp:32
base_request.hpp
kagome::api::chain::request::UnsubscribeFinalizedHeads::api_
std::shared_ptr< ChainApi > api_
Definition:
unsubscribe_finalized_heads.hpp:25
kagome::api::chain::request::UnsubscribeFinalizedHeads::execute
outcome::result< Return > execute() override
Definition:
unsubscribe_finalized_heads.hpp:20
kagome::api::chain::request::UnsubscribeFinalizedHeads
Definition:
unsubscribe_finalized_heads.hpp:13
kagome::api::chain::request::UnsubscribeFinalizedHeads::UnsubscribeFinalizedHeads
UnsubscribeFinalizedHeads(std::shared_ptr< ChainApi > &api)
Definition:
unsubscribe_finalized_heads.hpp:15
core
api
service
chain
requests
unsubscribe_finalized_heads.hpp
Generated by
1.8.11