TARAXA
taraxa::net::Taraxa Class Reference

#include <Taraxa.h>

Collaboration diagram for taraxa::net::Taraxa:

Public Member Functions

 Taraxa (const std::shared_ptr< taraxa::FullNode > &_full_node)
 
virtual RPCModules implementedModules () const override
 
virtual std::string taraxa_protocolVersion () override
 
virtual Json::Value taraxa_getVersion () override
 
virtual Json::Value taraxa_getDagBlockByHash (const std::string &_blockHash, bool _includeTransactions) override
 
virtual Json::Value taraxa_getDagBlockByLevel (const std::string &_blockLevel, bool _includeTransactions) override
 
virtual std::string taraxa_dagBlockLevel () override
 
virtual std::string taraxa_dagBlockPeriod () override
 
virtual Json::Value taraxa_getScheduleBlockByPeriod (const std::string &_period) override
 
virtual Json::Value taraxa_getNodeVersions () override
 
virtual std::string taraxa_pbftBlockHashByPeriod (const std::string &_period) override
 
virtual Json::Value taraxa_getConfig () override
 
virtual Json::Value taraxa_getChainStats () override
 
virtual std::string taraxa_yield (const std::string &_period) override
 
virtual std::string taraxa_totalSupply (const std::string &_period) override
 
virtual Json::Value taraxa_getPillarBlockData (const std::string &pillar_block_period, bool include_signatures) override
 
- Public Member Functions inherited from taraxa::net::TaraxaFace
 TaraxaFace ()
 
virtual void taraxa_protocolVersionI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getVersionI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getDagBlockByHashI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getDagBlockByLevelI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_dagBlockLevelI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_dagBlockPeriodI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getScheduleBlockByPeriodI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getNodeVersionsI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getConfigI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getChainStatsI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_pbftBlockHashByPeriodI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_yieldI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_totalSupplyI (const Json::Value &request, Json::Value &response)
 
virtual void taraxa_getPillarBlockDataI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< TaraxaFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Protected Attributes

std::weak_ptr< taraxa::FullNodefull_node_
 

Private Types

using NodePtr = decltype(full_node_.lock())
 

Private Member Functions

NodePtr tryGetNode ()
 

Private Attributes

Json::Value version
 

Additional Inherited Members

- Public Types inherited from ServerInterface< TaraxaFace >
using MethodPointer = AbstractMethodPointer< TaraxaFace >
 
using NotificationPointer = AbstractNotificationPointer< TaraxaFace >
 
using MethodBinding = std::tuple< jsonrpc::Procedure, AbstractMethodPointer< TaraxaFace > >
 
using NotificationBinding = std::tuple< jsonrpc::Procedure, AbstractNotificationPointer< TaraxaFace > >
 
using Methods = std::vector< MethodBinding >
 
using Notifications = std::vector< NotificationBinding >
 
using RPCModules = std::vector< RPCModule >
 
- Static Public Attributes inherited from taraxa::net::TaraxaFace
static constexpr int JSON_ANY = 0
 
- Protected Member Functions inherited from ServerInterface< TaraxaFace >
void bindAndAddMethod (jsonrpc::Procedure const &_proc, MethodPointer _pointer)
 
void bindAndAddNotification (jsonrpc::Procedure const &_proc, NotificationPointer _pointer)
 

Member Typedef Documentation

◆ NodePtr

using taraxa::net::Taraxa::NodePtr = decltype(full_node_.lock())
private

Constructor & Destructor Documentation

◆ Taraxa()

taraxa::net::Taraxa::Taraxa ( const std::shared_ptr< taraxa::FullNode > &  _full_node)
explicit

Member Function Documentation

◆ implementedModules()

virtual RPCModules taraxa::net::Taraxa::implementedModules ( ) const
inlineoverridevirtual
Returns
which interfaces (eth, admin, db, ...) this class implements in which version.

Implements ServerInterface< TaraxaFace >.

◆ taraxa_dagBlockLevel()

string taraxa::net::Taraxa::taraxa_dagBlockLevel ( )
overridevirtual

◆ taraxa_dagBlockPeriod()

string taraxa::net::Taraxa::taraxa_dagBlockPeriod ( )
overridevirtual

◆ taraxa_getChainStats()

Json::Value taraxa::net::Taraxa::taraxa_getChainStats ( )
overridevirtual

◆ taraxa_getConfig()

Json::Value taraxa::net::Taraxa::taraxa_getConfig ( )
overridevirtual

◆ taraxa_getDagBlockByHash()

Json::Value taraxa::net::Taraxa::taraxa_getDagBlockByHash ( const std::string &  _blockHash,
bool  _includeTransactions 
)
overridevirtual

◆ taraxa_getDagBlockByLevel()

Json::Value taraxa::net::Taraxa::taraxa_getDagBlockByLevel ( const std::string &  _blockLevel,
bool  _includeTransactions 
)
overridevirtual

◆ taraxa_getNodeVersions()

Json::Value taraxa::net::Taraxa::taraxa_getNodeVersions ( )
overridevirtual

◆ taraxa_getPillarBlockData()

Json::Value taraxa::net::Taraxa::taraxa_getPillarBlockData ( const std::string &  pillar_block_period,
bool  include_signatures 
)
overridevirtual

◆ taraxa_getScheduleBlockByPeriod()

Json::Value taraxa::net::Taraxa::taraxa_getScheduleBlockByPeriod ( const std::string &  _period)
overridevirtual

◆ taraxa_getVersion()

Json::Value taraxa::net::Taraxa::taraxa_getVersion ( )
overridevirtual

◆ taraxa_pbftBlockHashByPeriod()

std::string taraxa::net::Taraxa::taraxa_pbftBlockHashByPeriod ( const std::string &  _period)
overridevirtual

◆ taraxa_protocolVersion()

string taraxa::net::Taraxa::taraxa_protocolVersion ( )
overridevirtual

◆ taraxa_totalSupply()

std::string taraxa::net::Taraxa::taraxa_totalSupply ( const std::string &  _period)
overridevirtual

◆ taraxa_yield()

std::string taraxa::net::Taraxa::taraxa_yield ( const std::string &  _period)
overridevirtual

◆ tryGetNode()

Taraxa::NodePtr taraxa::net::Taraxa::tryGetNode ( )
private

Member Data Documentation

◆ full_node_

std::weak_ptr<taraxa::FullNode> taraxa::net::Taraxa::full_node_
protected

◆ version

Json::Value taraxa::net::Taraxa::version
private

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