Kagome
Polkadot Runtime Engine in C++17
kagome::api::state::request::GetKeysPaged Class Referencefinal

#include <get_keys_paged.hpp>

Collaboration diagram for kagome::api::state::request::GetKeysPaged:

Public Member Functions

 GetKeysPaged (GetKeysPaged const &)=delete
 
GetKeysPagedoperator= (GetKeysPaged const &)=delete
 
 GetKeysPaged (GetKeysPaged &&)=default
 
GetKeysPagedoperator= (GetKeysPaged &&)=default
 
 GetKeysPaged (std::shared_ptr< StateApi > api)
 
 ~GetKeysPaged ()=default
 
outcome::result< void > init (const jsonrpc::Request::Parameters &params)
 
outcome::result< std::vector< common::Buffer > > execute ()
 

Private Attributes

std::shared_ptr< StateApiapi_
 
std::optional< common::Bufferprefix_
 
uint32_t keys_amount_ {}
 
std::optional< common::Bufferprev_key_
 
std::optional< primitives::BlockHashat_
 

Detailed Description

Request processor for state_GetKeysPaged RPC: https://github.com/w3f/PSPs/blob/psp-rpc-api/psp-002.md#state_getkeyspaged

Definition at line 22 of file get_keys_paged.hpp.

Constructor & Destructor Documentation

kagome::api::state::request::GetKeysPaged::GetKeysPaged ( GetKeysPaged const &  )
delete
kagome::api::state::request::GetKeysPaged::GetKeysPaged ( GetKeysPaged &&  )
default
kagome::api::state::request::GetKeysPaged::GetKeysPaged ( std::shared_ptr< StateApi api)
inlineexplicit

Definition at line 30 of file get_keys_paged.hpp.

kagome::api::state::request::GetKeysPaged::~GetKeysPaged ( )
default

Member Function Documentation

outcome::result< std::vector< common::Buffer > > kagome::api::state::request::GetKeysPaged::execute ( )

Definition at line 73 of file get_keys_paged.cpp.

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

Definition at line 12 of file get_keys_paged.cpp.

GetKeysPaged& kagome::api::state::request::GetKeysPaged::operator= ( GetKeysPaged const &  )
delete
GetKeysPaged& kagome::api::state::request::GetKeysPaged::operator= ( GetKeysPaged &&  )
default

Member Data Documentation

std::shared_ptr<StateApi> kagome::api::state::request::GetKeysPaged::api_
private

Definition at line 41 of file get_keys_paged.hpp.

std::optional<primitives::BlockHash> kagome::api::state::request::GetKeysPaged::at_
private

Definition at line 45 of file get_keys_paged.hpp.

uint32_t kagome::api::state::request::GetKeysPaged::keys_amount_ {}
private

Definition at line 43 of file get_keys_paged.hpp.

std::optional<common::Buffer> kagome::api::state::request::GetKeysPaged::prefix_
private

Definition at line 42 of file get_keys_paged.hpp.

std::optional<common::Buffer> kagome::api::state::request::GetKeysPaged::prev_key_
private

Definition at line 44 of file get_keys_paged.hpp.


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