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

#include <Personal.h>

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

Public Member Functions

 Personal (dev::eth::KeyManager &_keyManager, dev::eth::AccountHolder &_accountHolder, eth::Interface &_eth)
 
virtual RPCModules implementedModules () const override
 
virtual std::string personal_newAccount (std::string const &_password) override
 
virtual bool personal_unlockAccount (std::string const &_address, std::string const &_password, int _duration) override
 
virtual std::string personal_signAndSendTransaction (Json::Value const &_transaction, std::string const &_password) override
 
virtual std::string personal_sendTransaction (Json::Value const &_transaction, std::string const &_password) override
 
virtual Json::Value personal_listAccounts () override
 
- Public Member Functions inherited from dev::rpc::PersonalFace
 PersonalFace ()
 
virtual void personal_newAccountI (const Json::Value &request, Json::Value &response)
 
virtual void personal_unlockAccountI (const Json::Value &request, Json::Value &response)
 
virtual void personal_signAndSendTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void personal_sendTransactionI (const Json::Value &request, Json::Value &response)
 
virtual void personal_listAccountsI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< PersonalFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Private Attributes

dev::eth::KeyManagerm_keyManager
 
dev::eth::AccountHolderm_accountHolder
 
dev::eth::Interfacem_eth
 

Additional Inherited Members

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

Detailed Description

Definition at line 17 of file Personal.h.

Constructor & Destructor Documentation

Personal::Personal ( dev::eth::KeyManager _keyManager,
dev::eth::AccountHolder _accountHolder,
eth::Interface _eth 
)

Definition at line 16 of file Personal.cpp.

Member Function Documentation

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

Implements ServerInterface< PersonalFace >.

Definition at line 21 of file Personal.h.

Json::Value Personal::personal_listAccounts ( )
overridevirtual

Implements dev::rpc::PersonalFace.

Definition at line 60 of file Personal.cpp.

Here is the call graph for this function:

std::string Personal::personal_newAccount ( std::string const &  _password)
overridevirtual

Implements dev::rpc::PersonalFace.

Definition at line 23 of file Personal.cpp.

Here is the call graph for this function:

string Personal::personal_sendTransaction ( Json::Value const &  _transaction,
std::string const &  _password 
)
overridevirtual

Implements dev::rpc::PersonalFace.

Definition at line 30 of file Personal.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

string Personal::personal_signAndSendTransaction ( Json::Value const &  _transaction,
std::string const &  _password 
)
overridevirtual

Implements dev::rpc::PersonalFace.

Definition at line 50 of file Personal.cpp.

Here is the call graph for this function:

bool Personal::personal_unlockAccount ( std::string const &  _address,
std::string const &  _password,
int  _duration 
)
overridevirtual

Implements dev::rpc::PersonalFace.

Definition at line 55 of file Personal.cpp.

Here is the call graph for this function:

Member Data Documentation

dev::eth::AccountHolder& dev::rpc::Personal::m_accountHolder
private

Definition at line 33 of file Personal.h.

dev::eth::Interface& dev::rpc::Personal::m_eth
private

Definition at line 34 of file Personal.h.

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

Definition at line 32 of file Personal.h.


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