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