Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dev::rpc::AdminEth Class Reference

#include <AdminEth.h>

Inheritance diagram for dev::rpc::AdminEth:
[legend]
Collaboration diagram for dev::rpc::AdminEth:
[legend]

Public Member Functions

 AdminEth (eth::Client &_eth, eth::TrivialGasPricer &_gp, eth::KeyManager &_keyManager, SessionManager &_sm)
 
virtual RPCModules implementedModules () const override
 
virtual bool admin_eth_setMining (bool _on, std::string const &_session) override
 
virtual Json::Value admin_eth_blockQueueStatus (std::string const &_session) override
 
virtual bool admin_eth_setAskPrice (std::string const &_wei, std::string const &_session) override
 
virtual bool admin_eth_setBidPrice (std::string const &_wei, std::string const &_session) override
 
virtual Json::Value admin_eth_findBlock (std::string const &_blockHash, std::string const &_session) override
 
virtual std::string admin_eth_blockQueueFirstUnknown (std::string const &_session) override
 
virtual bool admin_eth_blockQueueRetryUnknown (std::string const &_session) override
 
virtual Json::Value admin_eth_allAccounts (std::string const &_session) override
 
virtual Json::Value admin_eth_newAccount (const Json::Value &_info, std::string const &_session) override
 
virtual bool admin_eth_setMiningBenefactor (std::string const &_uuidOrAddress, std::string const &_session) override
 
virtual Json::Value admin_eth_inspect (std::string const &_address, std::string const &_session) override
 
virtual Json::Value admin_eth_reprocess (std::string const &_blockNumberOrHash, std::string const &_session) override
 
virtual Json::Value admin_eth_vmTrace (std::string const &_blockNumberOrHash, int _txIndex, std::string const &_session) override
 
virtual Json::Value admin_eth_getReceiptByHashAndIndex (std::string const &_blockNumberOrHash, int _txIndex, std::string const &_session) override
 
virtual bool miner_start (int _threads) override
 
virtual bool miner_stop () override
 
virtual bool miner_setEtherbase (std::string const &_uuidOrAddress) override
 
virtual bool miner_setExtra (std::string const &_extraData) override
 
virtual bool miner_setGasPrice (std::string const &_gasPrice) override
 
virtual std::string miner_hashrate () override
 
virtual void setMiningBenefactorChanger (std::function< void(Address const &)> const &_f)
 
- Public Member Functions inherited from dev::rpc::AdminEthFace
 AdminEthFace ()
 
virtual void admin_eth_blockQueueStatusI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_setAskPriceI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_setBidPriceI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_setMiningI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_findBlockI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_blockQueueFirstUnknownI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_blockQueueRetryUnknownI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_allAccountsI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_newAccountI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_setMiningBenefactorI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_inspectI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_reprocessI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_vmTraceI (const Json::Value &request, Json::Value &response)
 
virtual void admin_eth_getReceiptByHashAndIndexI (const Json::Value &request, Json::Value &response)
 
virtual void miner_startI (const Json::Value &request, Json::Value &response)
 
virtual void miner_stopI (const Json::Value &request, Json::Value &response)
 
virtual void miner_setEtherbaseI (const Json::Value &request, Json::Value &response)
 
virtual void miner_setExtraI (const Json::Value &request, Json::Value &response)
 
virtual void miner_setGasPriceI (const Json::Value &request, Json::Value &response)
 
virtual void miner_hashrateI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< AdminEthFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Private Member Functions

h256 blockHash (std::string const &_blockNumberOrHash) const
 

Private Attributes

eth::Clientm_eth
 
eth::TrivialGasPricerm_gp
 
eth::KeyManagerm_keyManager
 
SessionManagerm_sm
 
std::function< void(Address const &)> m_setMiningBenefactor
 

Additional Inherited Members

- Public Types inherited from ServerInterface< AdminEthFace >
using MethodPointer = AbstractMethodPointer< AdminEthFace >
 
using NotificationPointer = AbstractNotificationPointer< AdminEthFace >
 
using MethodBinding = std::tuple< jsonrpc::Procedure, AbstractMethodPointer< AdminEthFace >>
 
using NotificationBinding = std::tuple< jsonrpc::Procedure, AbstractNotificationPointer< AdminEthFace >>
 
using Methods = std::vector< MethodBinding >
 
using Notifications = std::vector< NotificationBinding >
 
using RPCModules = std::vector< RPCModule >
 
- Protected Member Functions inherited from ServerInterface< AdminEthFace >
void bindAndAddMethod (jsonrpc::Procedure const &_proc, MethodPointer _pointer)
 
void bindAndAddNotification (jsonrpc::Procedure const &_proc, NotificationPointer _pointer)
 

Detailed Description

Definition at line 19 of file AdminEth.h.

Constructor & Destructor Documentation

AdminEth::AdminEth ( eth::Client _eth,
eth::TrivialGasPricer _gp,
eth::KeyManager _keyManager,
SessionManager _sm 
)

Definition at line 16 of file AdminEth.cpp.

Member Function Documentation

Json::Value AdminEth::admin_eth_allAccounts ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 96 of file AdminEth.cpp.

Here is the call graph for this function:

string AdminEth::admin_eth_blockQueueFirstUnknown ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 83 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::admin_eth_blockQueueRetryUnknown ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 89 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_blockQueueStatus ( std::string const &  _session)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 33 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_findBlock ( std::string const &  _blockHash,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 62 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_getReceiptByHashAndIndex ( std::string const &  _blockNumberOrHash,
int  _txIndex,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 228 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_inspect ( std::string const &  _address,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 154 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_newAccount ( const Json::Value &  _info,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 126 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_reprocess ( std::string const &  _blockNumberOrHash,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 183 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::admin_eth_setAskPrice ( std::string const &  _wei,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 48 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::admin_eth_setBidPrice ( std::string const &  _wei,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 55 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::admin_eth_setMining ( bool  _on,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 23 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::admin_eth_setMiningBenefactor ( std::string const &  _uuidOrAddress,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 148 of file AdminEth.cpp.

Here is the call graph for this function:

Json::Value AdminEth::admin_eth_vmTrace ( std::string const &  _blockNumberOrHash,
int  _txIndex,
std::string const &  _session 
)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 195 of file AdminEth.cpp.

Here is the call graph for this function:

h256 AdminEth::blockHash ( std::string const &  _blockNumberOrHash) const
private

Definition at line 169 of file AdminEth.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual RPCModules dev::rpc::AdminEth::implementedModules ( ) const
inlineoverridevirtual
Returns
which interfaces (eth, admin, db, ...) this class implements in which version.

Implements ServerInterface< AdminEthFace >.

Definition at line 24 of file AdminEth.h.

string AdminEth::miner_hashrate ( )
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 284 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::miner_setEtherbase ( std::string const &  _uuidOrAddress)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 254 of file AdminEth.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool AdminEth::miner_setExtra ( std::string const &  _extraData)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 272 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::miner_setGasPrice ( std::string const &  _gasPrice)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 278 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::miner_start ( int  _threads)
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 242 of file AdminEth.cpp.

Here is the call graph for this function:

bool AdminEth::miner_stop ( )
overridevirtual

Implements dev::rpc::AdminEthFace.

Definition at line 248 of file AdminEth.cpp.

Here is the call graph for this function:

virtual void dev::rpc::AdminEth::setMiningBenefactorChanger ( std::function< void(Address const &)> const &  _f)
inlinevirtual

Definition at line 50 of file AdminEth.h.

Member Data Documentation

eth::Client& dev::rpc::AdminEth::m_eth
private

Definition at line 52 of file AdminEth.h.

eth::TrivialGasPricer& dev::rpc::AdminEth::m_gp
private

Definition at line 53 of file AdminEth.h.

eth::KeyManager& dev::rpc::AdminEth::m_keyManager
private

Definition at line 54 of file AdminEth.h.

std::function<void(Address const&)> dev::rpc::AdminEth::m_setMiningBenefactor
private

Definition at line 56 of file AdminEth.h.

SessionManager& dev::rpc::AdminEth::m_sm
private

Definition at line 55 of file AdminEth.h.


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