Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
jrpc
service
author
chain
child_state
impl
internal
payment
rpc
state
impl
requests
call.cpp
call.hpp
get_keys_paged.cpp
get_keys_paged.hpp
get_metadata.hpp
get_runtime_version.cpp
get_runtime_version.hpp
get_storage.cpp
get_storage.hpp
query_storage.hpp
subscribe_runtime_version.hpp
subscribe_storage.cpp
subscribe_storage.hpp
unsubscribe_runtime_version.hpp
unsubscribe_storage.cpp
unsubscribe_storage.hpp
state_api.hpp
state_jrpc_processor.cpp
state_jrpc_processor.hpp
system
api_service.hpp
base_request.hpp
transport
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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