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