Kagome
Polkadot Runtime Engine in C++17
kagome::api::SystemApiImpl Class Referencefinal

#include <system_api_impl.hpp>

Inheritance diagram for kagome::api::SystemApiImpl:
Collaboration diagram for kagome::api::SystemApiImpl:

Public Member Functions

 SystemApiImpl (std::shared_ptr< application::ChainSpec > config, std::shared_ptr< consensus::babe::Babe > babe, std::shared_ptr< network::PeerManager > peer_manager, std::shared_ptr< runtime::AccountNonceApi > account_nonce_api, std::shared_ptr< transaction_pool::TransactionPool > transaction_pool, std::shared_ptr< const blockchain::BlockTree > block_tree, std::shared_ptr< crypto::Hasher > hasher)
 
std::shared_ptr< application::ChainSpecgetConfig () const override
 
std::shared_ptr< consensus::babe::BabegetBabe () const override
 
std::shared_ptr< network::PeerManagergetPeerManager () const override
 
outcome::result< primitives::AccountNoncegetNonceFor (std::string_view account_address) const override
 
- Public Member Functions inherited from kagome::api::SystemApi
virtual ~SystemApi ()=default
 

Private Member Functions

primitives::AccountNonce adjustNonce (const primitives::AccountId &account_id, primitives::AccountNonce current_nonce) const
 

Private Attributes

std::shared_ptr< application::ChainSpecconfig_
 
std::shared_ptr< consensus::babe::Babebabe_
 
std::shared_ptr< network::PeerManagerpeer_manager_
 
std::shared_ptr< runtime::AccountNonceApiaccount_nonce_api_
 
std::shared_ptr< transaction_pool::TransactionPooltransaction_pool_
 
std::shared_ptr< const blockchain::BlockTreeblock_tree_
 
std::shared_ptr< crypto::Hasherhasher_
 

Detailed Description

Definition at line 25 of file system_api_impl.hpp.

Constructor & Destructor Documentation

kagome::api::SystemApiImpl::SystemApiImpl ( std::shared_ptr< application::ChainSpec config,
std::shared_ptr< consensus::babe::Babe babe,
std::shared_ptr< network::PeerManager peer_manager,
std::shared_ptr< runtime::AccountNonceApi account_nonce_api,
std::shared_ptr< transaction_pool::TransactionPool transaction_pool,
std::shared_ptr< const blockchain::BlockTree block_tree,
std::shared_ptr< crypto::Hasher hasher 
)

Definition at line 19 of file system_api_impl.cpp.

Member Function Documentation

primitives::AccountNonce kagome::api::SystemApiImpl::adjustNonce ( const primitives::AccountId account_id,
primitives::AccountNonce  current_nonce 
) const
private

Definition at line 65 of file system_api_impl.cpp.

std::shared_ptr< consensus::babe::Babe > kagome::api::SystemApiImpl::getBabe ( ) const
overridevirtual

Implements kagome::api::SystemApi.

Definition at line 47 of file system_api_impl.cpp.

std::shared_ptr< application::ChainSpec > kagome::api::SystemApiImpl::getConfig ( ) const
overridevirtual

Implements kagome::api::SystemApi.

Definition at line 43 of file system_api_impl.cpp.

outcome::result< primitives::AccountNonce > kagome::api::SystemApiImpl::getNonceFor ( std::string_view  account_address) const
overridevirtual

The nonce which should be used for the next extrinsic from

  • account_adderss

Implements kagome::api::SystemApi.

Definition at line 55 of file system_api_impl.cpp.

std::shared_ptr< network::PeerManager > kagome::api::SystemApiImpl::getPeerManager ( ) const
overridevirtual

Implements kagome::api::SystemApi.

Definition at line 51 of file system_api_impl.cpp.

Member Data Documentation

std::shared_ptr<runtime::AccountNonceApi> kagome::api::SystemApiImpl::account_nonce_api_
private

Definition at line 58 of file system_api_impl.hpp.

std::shared_ptr<consensus::babe::Babe> kagome::api::SystemApiImpl::babe_
private

Definition at line 56 of file system_api_impl.hpp.

std::shared_ptr<const blockchain::BlockTree> kagome::api::SystemApiImpl::block_tree_
private

Definition at line 60 of file system_api_impl.hpp.

std::shared_ptr<application::ChainSpec> kagome::api::SystemApiImpl::config_
private

Definition at line 55 of file system_api_impl.hpp.

std::shared_ptr<crypto::Hasher> kagome::api::SystemApiImpl::hasher_
private

Definition at line 61 of file system_api_impl.hpp.

std::shared_ptr<network::PeerManager> kagome::api::SystemApiImpl::peer_manager_
private

Definition at line 57 of file system_api_impl.hpp.

std::shared_ptr<transaction_pool::TransactionPool> kagome::api::SystemApiImpl::transaction_pool_
private

Definition at line 59 of file system_api_impl.hpp.


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