Kagome
Polkadot Runtime Engine in C++17
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 
31 
34  };
35 } // namespace kagome::primitives
36 
37 #endif // KAGOME_CORE_PRIMITIVES_RPC_METHODS_HPP
std::vector< std::string > Methods
Definition: rpc_methods.hpp:27
Version version
Descriptor version.
Definition: rpc_methods.hpp:30
static constexpr uint32_t kRpcMethodsVersion
Definition: rpc_methods.hpp:18
Methods methods
A set of methods names as strings.
Definition: rpc_methods.hpp:33