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

JSON-RPC api implementation. More...

#include <Eth.h>

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

Public Member Functions

 Eth (eth::Interface &_eth, eth::AccountHolder &_ethAccounts)
 
virtual RPCModules implementedModules () const override
 
eth::AccountHolder const & ethAccounts () const
 
virtual std::string eth_protocolVersion () override
 
virtual std::string eth_hashrate () override
 
virtual std::string eth_coinbase () override
 
virtual bool eth_mining () override
 
virtual std::string eth_gasPrice () override
 
virtual Json::Value eth_accounts () override
 
virtual std::string eth_blockNumber () override
 
virtual std::string eth_getBalance (std::string const &_address, std::string const &_blockNumber) override
 
virtual std::string eth_getStorageAt (std::string const &_address, std::string const &_position, std::string const &_blockNumber) override
 
virtual std::string eth_getStorageRoot (std::string const &_address, std::string const &_blockNumber) override
 
virtual std::string eth_getTransactionCount (std::string const &_address, std::string const &_blockNumber) override
 
virtual std::string eth_pendingTransactions () override
 
virtual Json::Value eth_getBlockTransactionCountByHash (std::string const &_blockHash) override
 
virtual Json::Value eth_getBlockTransactionCountByNumber (std::string const &_blockNumber) override
 
virtual Json::Value eth_getUncleCountByBlockHash (std::string const &_blockHash) override
 
virtual Json::Value eth_getUncleCountByBlockNumber (std::string const &_blockNumber) override
 
virtual std::string eth_getCode (std::string const &_address, std::string const &_blockNumber) override
 
virtual std::string eth_sendTransaction (Json::Value const &_json) override
 
virtual std::string eth_call (Json::Value const &_json, std::string const &_blockNumber) override
 
virtual std::string eth_estimateGas (Json::Value const &_json) override
 
virtual bool eth_flush () override
 
virtual Json::Value eth_getBlockByHash (std::string const &_blockHash, bool _includeTransactions) override
 
virtual Json::Value eth_getBlockByNumber (std::string const &_blockNumber, bool _includeTransactions) override
 
virtual Json::Value eth_getTransactionByHash (std::string const &_transactionHash) override
 
virtual Json::Value eth_getTransactionByBlockHashAndIndex (std::string const &_blockHash, std::string const &_transactionIndex) override
 
virtual Json::Value eth_getTransactionByBlockNumberAndIndex (std::string const &_blockNumber, std::string const &_transactionIndex) override
 
virtual Json::Value eth_getTransactionReceipt (std::string const &_transactionHash) override
 
virtual Json::Value eth_getUncleByBlockHashAndIndex (std::string const &_blockHash, std::string const &_uncleIndex) override
 
virtual Json::Value eth_getUncleByBlockNumberAndIndex (std::string const &_blockNumber, std::string const &_uncleIndex) override
 
virtual std::string eth_newFilter (Json::Value const &_json) override
 
virtual std::string eth_newFilterEx (Json::Value const &_json) override
 
virtual std::string eth_newBlockFilter () override
 
virtual std::string eth_newPendingTransactionFilter () override
 
virtual bool eth_uninstallFilter (std::string const &_filterId) override
 
virtual Json::Value eth_getFilterChanges (std::string const &_filterId) override
 
virtual Json::Value eth_getFilterChangesEx (std::string const &_filterId) override
 
virtual Json::Value eth_getFilterLogs (std::string const &_filterId) override
 
virtual Json::Value eth_getFilterLogsEx (std::string const &_filterId) override
 
virtual Json::Value eth_getLogs (Json::Value const &_json) override
 
virtual Json::Value eth_getLogsEx (Json::Value const &_json) override
 
virtual Json::Value eth_getWork () override
 
virtual bool eth_submitWork (std::string const &_nonce, std::string const &, std::string const &_mixHash) override
 
virtual bool eth_submitHashrate (std::string const &_hashes, std::string const &_id) override
 
virtual std::string eth_register (std::string const &_address) override
 
virtual bool eth_unregister (std::string const &_accountId) override
 
virtual Json::Value eth_fetchQueuedTransactions (std::string const &_accountId) override
 
virtual std::string eth_signTransaction (Json::Value const &_transaction) override
 
virtual Json::Value eth_inspectTransaction (std::string const &_rlp) override
 
virtual std::string eth_sendRawTransaction (std::string const &_rlp) override
 
virtual bool eth_notePassword (std::string const &) override
 
virtual Json::Value eth_syncing () override
 
void setTransactionDefaults (eth::TransactionSkeleton &_t)
 
- Public Member Functions inherited from dev::rpc::EthFace
 EthFace ()
 
virtual void eth_protocolVersionI (const Json::Value &request, Json::Value &response)
 
virtual void eth_hashrateI (const Json::Value &request, Json::Value &response)
 
virtual void eth_coinbaseI (const Json::Value &request, Json::Value &response)
 
virtual void eth_miningI (const Json::Value &request, Json::Value &response)
 
virtual void eth_gasPriceI (const Json::Value &request, Json::Value &response)
 
virtual void eth_accountsI (const Json::Value &request, Json::Value &response)
 
virtual void eth_blockNumberI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getBalanceI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getStorageAtI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getStorageRootI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getTransactionCountI (const Json::Value &request, Json::Value &response)
 
virtual void eth_pendingTransactionsI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getBlockTransactionCountByHashI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getBlockTransactionCountByNumberI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getUncleCountByBlockHashI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getUncleCountByBlockNumberI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getCodeI (const Json::Value &request, Json::Value &response)
 
virtual void eth_sendTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void eth_callI (const Json::Value &request, Json::Value &response)
 
virtual void eth_flushI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getBlockByHashI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getBlockByNumberI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getTransactionByHashI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getTransactionByBlockHashAndIndexI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getTransactionByBlockNumberAndIndexI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getTransactionReceiptI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getUncleByBlockHashAndIndexI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getUncleByBlockNumberAndIndexI (const Json::Value &request, Json::Value &response)
 
virtual void eth_newFilterI (const Json::Value &request, Json::Value &response)
 
virtual void eth_newFilterExI (const Json::Value &request, Json::Value &response)
 
virtual void eth_newBlockFilterI (const Json::Value &request, Json::Value &response)
 
virtual void eth_newPendingTransactionFilterI (const Json::Value &request, Json::Value &response)
 
virtual void eth_uninstallFilterI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getFilterChangesI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getFilterChangesExI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getFilterLogsI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getFilterLogsExI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getLogsI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getLogsExI (const Json::Value &request, Json::Value &response)
 
virtual void eth_getWorkI (const Json::Value &request, Json::Value &response)
 
virtual void eth_submitWorkI (const Json::Value &request, Json::Value &response)
 
virtual void eth_submitHashrateI (const Json::Value &request, Json::Value &response)
 
virtual void eth_registerI (const Json::Value &request, Json::Value &response)
 
virtual void eth_unregisterI (const Json::Value &request, Json::Value &response)
 
virtual void eth_fetchQueuedTransactionsI (const Json::Value &request, Json::Value &response)
 
virtual void eth_signTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void eth_inspectTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void eth_sendRawTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void eth_notePasswordI (const Json::Value &request, Json::Value &response)
 
virtual void eth_syncingI (const Json::Value &request, Json::Value &response)
 
virtual void eth_estimateGasI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< EthFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Protected Member Functions

eth::Interfaceclient ()
 
- Protected Member Functions inherited from ServerInterface< EthFace >
void bindAndAddMethod (jsonrpc::Procedure const &_proc, MethodPointer _pointer)
 
void bindAndAddNotification (jsonrpc::Procedure const &_proc, NotificationPointer _pointer)
 

Protected Attributes

eth::Interfacem_eth
 
eth::AccountHolderm_ethAccounts
 

Additional Inherited Members

- Public Types inherited from ServerInterface< EthFace >
using MethodPointer = AbstractMethodPointer< EthFace >
 
using NotificationPointer = AbstractNotificationPointer< EthFace >
 
using MethodBinding = std::tuple< jsonrpc::Procedure, AbstractMethodPointer< EthFace >>
 
using NotificationBinding = std::tuple< jsonrpc::Procedure, AbstractNotificationPointer< EthFace >>
 
using Methods = std::vector< MethodBinding >
 
using Notifications = std::vector< NotificationBinding >
 
using RPCModules = std::vector< RPCModule >
 

Detailed Description

JSON-RPC api implementation.

Definition at line 64 of file Eth.h.

Constructor & Destructor Documentation

Eth::Eth ( eth::Interface _eth,
eth::AccountHolder _ethAccounts 
)

Definition at line 51 of file Eth.cpp.

Member Function Documentation

eth::Interface* dev::rpc::Eth::client ( )
inlineprotected

Definition at line 131 of file Eth.h.

Here is the caller graph for this function:

Json::Value Eth::eth_accounts ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 96 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_blockNumber ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 101 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_call ( Json::Value const &  _json,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 345 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_coinbase ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 62 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_estimateGas ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 360 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_fetchQueuedTransactions ( std::string const &  _accountId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 717 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_flush ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 375 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_gasPrice ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 91 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_getBalance ( std::string const &  _address,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 107 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getBlockByHash ( std::string const &  _blockHash,
bool  _includeTransactions 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 381 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getBlockByNumber ( std::string const &  _blockNumber,
bool  _includeTransactions 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 400 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getBlockTransactionCountByHash ( std::string const &  _blockHash)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 174 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getBlockTransactionCountByNumber ( std::string const &  _blockNumber)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 190 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_getCode ( std::string const &  _address,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 238 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getFilterChanges ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 558 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getFilterChangesEx ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 574 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getFilterLogs ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 590 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getFilterLogsEx ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 602 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getLogs ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 614 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getLogsEx ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 626 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_getStorageAt ( std::string const &  _address,
std::string const &  _position,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 119 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_getStorageRoot ( std::string const &  _address,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 131 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getTransactionByBlockHashAndIndex ( std::string const &  _blockHash,
std::string const &  _transactionIndex 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 435 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getTransactionByBlockNumberAndIndex ( std::string const &  _blockNumber,
std::string const &  _transactionIndex 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 452 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getTransactionByHash ( std::string const &  _transactionHash)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 419 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_getTransactionCount ( std::string const &  _address,
std::string const &  _blockNumber 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 162 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getTransactionReceipt ( std::string const &  _transactionHash)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 470 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getUncleByBlockHashAndIndex ( std::string const &  _blockHash,
std::string const &  _uncleIndex 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 486 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getUncleByBlockNumberAndIndex ( std::string const &  _blockNumber,
std::string const &  _uncleIndex 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 498 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getUncleCountByBlockHash ( std::string const &  _blockHash)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 206 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getUncleCountByBlockNumber ( std::string const &  _blockNumber)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 222 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_getWork ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 638 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_hashrate ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 67 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_inspectTransaction ( std::string const &  _rlp)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 315 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_mining ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 79 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_newBlockFilter ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 534 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_newFilter ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 510 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_newFilterEx ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 522 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_newPendingTransactionFilter ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 540 of file Eth.cpp.

Here is the call graph for this function:

virtual bool dev::rpc::Eth::eth_notePassword ( std::string const &  )
inlineoverridevirtual

Implements dev::rpc::EthFace.

Definition at line 125 of file Eth.h.

string Eth::eth_pendingTransactions ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 143 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_protocolVersion ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 57 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_register ( std::string const &  _address)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 693 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_sendRawTransaction ( std::string const &  _rlp)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 327 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_sendTransaction ( Json::Value const &  _json)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 256 of file Eth.cpp.

Here is the call graph for this function:

string Eth::eth_signTransaction ( Json::Value const &  _transaction)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 291 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_submitHashrate ( std::string const &  _hashes,
std::string const &  _id 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 680 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_submitWork ( std::string const &  _nonce,
std::string const &  ,
std::string const &  _mixHash 
)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 668 of file Eth.cpp.

Here is the call graph for this function:

Json::Value Eth::eth_syncing ( )
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 655 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_uninstallFilter ( std::string const &  _filterId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 546 of file Eth.cpp.

Here is the call graph for this function:

bool Eth::eth_unregister ( std::string const &  _accountId)
overridevirtual

Implements dev::rpc::EthFace.

Definition at line 705 of file Eth.cpp.

Here is the call graph for this function:

eth::AccountHolder const& dev::rpc::Eth::ethAccounts ( ) const
inline

Definition at line 74 of file Eth.h.

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

Implements ServerInterface< EthFace >.

Definition at line 69 of file Eth.h.

void Eth::setTransactionDefaults ( eth::TransactionSkeleton _t)

Definition at line 250 of file Eth.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

eth::Interface& dev::rpc::Eth::m_eth
protected

Definition at line 133 of file Eth.h.

eth::AccountHolder& dev::rpc::Eth::m_ethAccounts
protected

Definition at line 134 of file Eth.h.


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