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

Get a custom set of properties as a JSON object, defined in the chain spec. More...

#include <properties.hpp>

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

Public Member Functions

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

Private Attributes

std::shared_ptr< SystemApiapi_
 

Detailed Description

Get a custom set of properties as a JSON object, defined in the chain spec.

See also
https://github.com/w3f/PSPs/blob/psp-rpc-api/psp-002.md#system_properties

Definition at line 25 of file properties.hpp.

Constructor & Destructor Documentation

kagome::api::system::request::Properties::Properties ( Properties const &  )
delete
kagome::api::system::request::Properties::Properties ( Properties &&  )
default
kagome::api::system::request::Properties::Properties ( std::shared_ptr< SystemApi api)
inlineexplicit

Definition at line 33 of file properties.hpp.

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

Member Function Documentation

outcome::result< std::map< std::string, std::string > > kagome::api::system::request::Properties::execute ( )

Definition at line 20 of file properties.cpp.

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

Definition at line 12 of file properties.cpp.

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

Member Data Documentation

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

Definition at line 42 of file properties.hpp.


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