Kagome
Polkadot Runtime Engine in C++17
|
#include <get_block_hash.hpp>
Classes | |
struct | NoParameters |
Public Types | |
using | ResultType = boost::variant< std::string, std::vector< std::string >> |
Public Member Functions | |
GetBlockhash (std::shared_ptr< ChainApi > api) | |
outcome::result< void > | init (const jsonrpc::Request::Parameters ¶ms) |
outcome::result< ResultType > | execute () |
Private Types | |
using | Param1 = primitives::BlockNumber |
using | Param2 = std::string |
using | VectorParam = boost::variant< Param1, Param2 > |
using | Param3 = std::vector< VectorParam > |
using | Param = boost::variant< NoParameters, Param1, Param2, Param3 > |
Private Attributes | |
std::shared_ptr< ChainApi > | api_ |
Param | param_ |
Definition at line 16 of file get_block_hash.hpp.
struct kagome::api::chain::request::GetBlockhash::NoParameters |
Definition at line 17 of file get_block_hash.hpp.
|
private |
Definition at line 22 of file get_block_hash.hpp.
Definition at line 18 of file get_block_hash.hpp.
|
private |
Definition at line 19 of file get_block_hash.hpp.
|
private |
Definition at line 21 of file get_block_hash.hpp.
using kagome::api::chain::request::GetBlockhash::ResultType = boost::variant<std::string, std::vector<std::string>> |
Definition at line 30 of file get_block_hash.hpp.
|
private |
Definition at line 20 of file get_block_hash.hpp.
|
inlineexplicit |
Definition at line 25 of file get_block_hash.hpp.
outcome::result< GetBlockhash::ResultType > kagome::api::chain::request::GetBlockhash::execute | ( | ) |
Definition at line 64 of file get_block_hash.cpp.
outcome::result< void > kagome::api::chain::request::GetBlockhash::init | ( | const jsonrpc::Request::Parameters & | params | ) |
Definition at line 15 of file get_block_hash.cpp.
|
private |
Definition at line 34 of file get_block_hash.hpp.
|
private |
Definition at line 35 of file get_block_hash.hpp.