Kagome
Polkadot Runtime Engine in C++17
kagome::api::system::request::ChainType Class Referencefinal

Get the chain's type. Given as a string identifier. More...

#include <chain_type.hpp>

Collaboration diagram for kagome::api::system::request::ChainType:

Public Member Functions

 ChainType (const ChainType &)=delete
 
ChainTypeoperator= (const ChainType &)=delete
 
 ChainType (ChainType &&)=default
 
ChainTypeoperator= (ChainType &&)=default
 
 ChainType (std::shared_ptr< SystemApi > api)
 
 ~ChainType ()=default
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
outcome::result< std::string > execute ()
 

Private Attributes

std::shared_ptr< SystemApiapi_
 

Detailed Description

Get the chain's type. Given as a string identifier.

Definition at line 22 of file chain_type.hpp.

Constructor & Destructor Documentation

kagome::api::system::request::ChainType::ChainType ( const ChainType )
delete
kagome::api::system::request::ChainType::ChainType ( ChainType &&  )
default
kagome::api::system::request::ChainType::ChainType ( std::shared_ptr< SystemApi api)
explicit

Definition at line 14 of file chain_type.cpp.

kagome::api::system::request::ChainType::~ChainType ( )
default

Member Function Documentation

outcome::result< std::string > kagome::api::system::request::ChainType::execute ( )

Definition at line 26 of file chain_type.cpp.

outcome::result< void > kagome::api::system::request::ChainType::init ( const jsonrpc::Request::Parameters &  params)

Definition at line 18 of file chain_type.cpp.

ChainType& kagome::api::system::request::ChainType::operator= ( const ChainType )
delete
ChainType& kagome::api::system::request::ChainType::operator= ( ChainType &&  )
default

Member Data Documentation

std::shared_ptr<SystemApi> kagome::api::system::request::ChainType::api_
private

Definition at line 38 of file chain_type.hpp.


The documentation for this class was generated from the following files: