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
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
account.hpp
apply_result.hpp
arithmetic_error.cpp
arithmetic_error.hpp
author_api_primitives.hpp
authority.hpp
authority_discovery_id.hpp
babe_configuration.hpp
block.hpp
block_data.hpp
block_header.cpp
block_header.hpp
block_id.hpp
check_inherents_result.hpp
code_substitutes.hpp
common.hpp
compact_integer.hpp
digest.hpp
event_types.hpp
extrinsic.hpp
inherent_data.cpp
inherent_data.hpp
justification.hpp
math.hpp
opaque_metadata.hpp
parachain_host.hpp
rpc_methods.hpp
runtime_dispatch_info.hpp
scheduled_change.hpp
session_key.hpp
ss58_codec.cpp
ss58_codec.hpp
strobe.hpp
token_error.cpp
token_error.hpp
transaction.hpp
transaction_validity.cpp
transaction_validity.hpp
transcript.hpp
version.cpp
version.hpp
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rpc_methods.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_PRIMITIVES_RPC_METHODS_HPP
7
#define KAGOME_CORE_PRIMITIVES_RPC_METHODS_HPP
8
9
#include <string>
10
#include <vector>
11
12
#include "
scale/tie.hpp
"
13
14
namespace
kagome::primitives
{
15
16
// The version number is just hardcoded in substrate implementation
17
// https://github.com/paritytech/substrate/blob/8060a437dc01cc247a757fb318a46f81c8e40d5c/client/rpc-servers/src/lib.rs#L59
18
static
constexpr uint32_t
kRpcMethodsVersion
= 1;
19
23
struct
RpcMethods
{
24
SCALE_TIE
(2);
25
26
using
Version
= uint32_t;
27
using
Methods
= std::vector<std::string>;
28
30
Version
version
=
kRpcMethodsVersion
;
31
33
Methods
methods
;
34
};
35
}
// namespace kagome::primitives
36
37
#endif // KAGOME_CORE_PRIMITIVES_RPC_METHODS_HPP
kagome::primitives::RpcMethods::Methods
std::vector< std::string > Methods
Definition:
rpc_methods.hpp:27
kagome::primitives::RpcMethods::version
Version version
Descriptor version.
Definition:
rpc_methods.hpp:30
kagome::primitives
Definition:
author_api.hpp:19
kagome::primitives::RpcMethods::SCALE_TIE
SCALE_TIE(2)
kagome::primitives::kRpcMethodsVersion
static constexpr uint32_t kRpcMethodsVersion
Definition:
rpc_methods.hpp:18
kagome::primitives::RpcMethods
Definition:
rpc_methods.hpp:23
kagome::primitives::RpcMethods::Version
uint32_t Version
Definition:
rpc_methods.hpp:26
kagome::primitives::RpcMethods::methods
Methods methods
A set of methods names as strings.
Definition:
rpc_methods.hpp:33
tie.hpp
core
primitives
rpc_methods.hpp
Generated by
1.8.11