TARAXA
taraxa::net::rpc::eth Namespace Reference

Classes

struct  TransactionLocationWithBlockHash
 
struct  LocalisedTransaction
 
struct  ExtendedTransactionLocation
 
struct  LocalisedTransactionReceipt
 
struct  LocalisedLogEntry
 
struct  TransactionSkeleton
 
struct  SyncStatus
 
class  EthImpl
 
struct  EthParams
 
struct  Eth
 
struct  LogFilter
 
struct  WatchGroupConfig
 
struct  placeholder_t
 
class  WatchGroup
 
class  Watches
 

Typedefs

using time_point = std::chrono::system_clock::time_point
 
using WatchesConfig = std::array< WatchGroupConfig, WatchType::COUNT >
 
using WatchID = uint64_t
 

Enumerations

enum  WatchType { new_blocks , new_transactions , logs , COUNT }
 

Functions

void add (Json::Value &obj, const std::optional< TransactionLocationWithBlockHash > &info)
 
void add (Json::Value &obj, const ExtendedTransactionLocation &info)
 
Json::Value toJson (const final_chain::BlockHeader &obj)
 
Json::Value toJson (const Transaction &trx, const std::optional< TransactionLocationWithBlockHash > &loc)
 
Json::Value toJson (const LocalisedTransaction &lt)
 
Json::Value toJson (const LocalisedLogEntry &lle)
 
Json::Value toJson (const LocalisedTransactionReceipt &ltr)
 
Json::Value toJson (const SyncStatus &obj)
 
template<typename T >
Json::Value toJson (const T &t)
 
template<typename T >
Json::Value toJsonArray (const std::vector< T > &_es)
 
template<typename T >
Json::Value toJson (const std::optional< T > &t)
 
void add (Json::Value &obj, const optional< TransactionLocationWithBlockHash > &info)
 
Json::Value toJson (const Transaction &trx, const optional< TransactionLocationWithBlockHash > &loc)
 
shared_ptr< EthNewEth (EthParams &&prerequisites)
 
 GLOBAL_CONST_DEF (watch_id_type_mask_bits, WatchType(ceil(log2(float(COUNT))))) Watches
 
 DEV_SIMPLE_EXCEPTION (WatchLimitExceeded)
 
 GLOBAL_CONST (WatchType, watch_id_type_mask_bits)
 

Class Documentation

◆ taraxa::net::rpc::eth::LocalisedTransaction

struct taraxa::net::rpc::eth::LocalisedTransaction
Class Members
shared_ptr< Transaction > trx
optional< TransactionLocationWithBlockHash > trx_loc

◆ taraxa::net::rpc::eth::LocalisedTransactionReceipt

struct taraxa::net::rpc::eth::LocalisedTransactionReceipt
Collaboration diagram for taraxa::net::rpc::eth::LocalisedTransactionReceipt:
Class Members
TransactionReceipt r
addr_t trx_from
ExtendedTransactionLocation trx_loc
optional< addr_t > trx_to

◆ taraxa::net::rpc::eth::LocalisedLogEntry

struct taraxa::net::rpc::eth::LocalisedLogEntry
Collaboration diagram for taraxa::net::rpc::eth::LocalisedLogEntry:
Class Members
LogEntry le
uint64_t position_in_receipt
ExtendedTransactionLocation trx_loc

◆ taraxa::net::rpc::eth::TransactionSkeleton

struct taraxa::net::rpc::eth::TransactionSkeleton
Collaboration diagram for taraxa::net::rpc::eth::TransactionSkeleton:
Class Members
bytes data
Address from
optional< uint64_t > gas
optional< u256 > gas_price
optional< trx_nonce_t > nonce
optional< Address > to
u256 value

◆ taraxa::net::rpc::eth::SyncStatus

struct taraxa::net::rpc::eth::SyncStatus
Class Members
EthBlockNumber current_block
EthBlockNumber highest_block
EthBlockNumber starting_block

◆ taraxa::net::rpc::eth::WatchGroupConfig

struct taraxa::net::rpc::eth::WatchGroupConfig
Class Members
seconds idle_timeout
uint64_t max_watches

◆ taraxa::net::rpc::eth::placeholder_t

struct taraxa::net::rpc::eth::placeholder_t

Typedef Documentation

◆ time_point

using taraxa::net::rpc::eth::time_point = typedef std::chrono::system_clock::time_point

◆ WatchesConfig

using taraxa::net::rpc::eth::WatchesConfig = typedef std::array<WatchGroupConfig, WatchType::COUNT>

◆ WatchID

using taraxa::net::rpc::eth::WatchID = typedef uint64_t

Enumeration Type Documentation

◆ WatchType

Enumerator
new_blocks 
new_transactions 
logs 
COUNT 

Function Documentation

◆ add() [1/3]

void taraxa::net::rpc::eth::add ( Json::Value &  obj,
const ExtendedTransactionLocation info 
)

◆ add() [2/3]

void taraxa::net::rpc::eth::add ( Json::Value &  obj,
const optional< TransactionLocationWithBlockHash > &  info 
)

◆ add() [3/3]

void taraxa::net::rpc::eth::add ( Json::Value &  obj,
const std::optional< TransactionLocationWithBlockHash > &  info 
)

◆ DEV_SIMPLE_EXCEPTION()

taraxa::net::rpc::eth::DEV_SIMPLE_EXCEPTION ( WatchLimitExceeded  )

◆ GLOBAL_CONST()

taraxa::net::rpc::eth::GLOBAL_CONST ( WatchType  ,
watch_id_type_mask_bits   
)

◆ GLOBAL_CONST_DEF()

taraxa::net::rpc::eth::GLOBAL_CONST_DEF ( watch_id_type_mask_bits  ,
WatchType(ceil(log2(float(COUNT))))   
)

◆ NewEth()

std::shared_ptr< Eth > taraxa::net::rpc::eth::NewEth ( EthParams &&  prerequisites)

◆ toJson() [1/9]

Json::Value taraxa::net::rpc::eth::toJson ( const final_chain::BlockHeader obj)

◆ toJson() [2/9]

Json::Value taraxa::net::rpc::eth::toJson ( const LocalisedLogEntry lle)

◆ toJson() [3/9]

Json::Value taraxa::net::rpc::eth::toJson ( const LocalisedTransaction lt)

◆ toJson() [4/9]

Json::Value taraxa::net::rpc::eth::toJson ( const LocalisedTransactionReceipt ltr)

◆ toJson() [5/9]

template<typename T >
Json::Value taraxa::net::rpc::eth::toJson ( const std::optional< T > &  t)

◆ toJson() [6/9]

Json::Value taraxa::net::rpc::eth::toJson ( const SyncStatus obj)

◆ toJson() [7/9]

template<typename T >
Json::Value taraxa::net::rpc::eth::toJson ( const T &  t)

◆ toJson() [8/9]

Json::Value taraxa::net::rpc::eth::toJson ( const Transaction trx,
const optional< TransactionLocationWithBlockHash > &  loc 
)

◆ toJson() [9/9]

Json::Value taraxa::net::rpc::eth::toJson ( const Transaction trx,
const std::optional< TransactionLocationWithBlockHash > &  loc 
)

◆ toJsonArray()

template<typename T >
Json::Value taraxa::net::rpc::eth::toJsonArray ( const std::vector< T > &  _es)