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

#include <ChainOperationParams.h>

Public Member Functions

 PrecompiledContract ()=default
 
 PrecompiledContract (std::function< bigint(size_t)> const &_cost, PrecompiledExecutor const &_exec, u256 const &_startingBlock=0)
 
 PrecompiledContract (unsigned _base, unsigned _word, PrecompiledExecutor const &_exec, u256 const &_startingBlock=0)
 
bigint cost (bytesConstRef _in) const
 
std::pair< bool, bytesexecute (bytesConstRef _in) const
 
u256 const & startingBlock () const
 

Private Attributes

std::function< bigint(size_t)> m_cost
 
PrecompiledExecutor m_execute
 
u256 m_startingBlock = 0
 

Detailed Description

Definition at line 35 of file ChainOperationParams.h.

Constructor & Destructor Documentation

dev::eth::PrecompiledContract::PrecompiledContract ( )
default

Here is the caller graph for this function:

dev::eth::PrecompiledContract::PrecompiledContract ( std::function< bigint(size_t)> const &  _cost,
PrecompiledExecutor const &  _exec,
u256 const &  _startingBlock = 0 
)
inline

Definition at line 39 of file ChainOperationParams.h.

Here is the call graph for this function:

PrecompiledContract::PrecompiledContract ( unsigned  _base,
unsigned  _word,
PrecompiledExecutor const &  _exec,
u256 const &  _startingBlock = 0 
)

Definition at line 29 of file ChainOperationParams.cpp.

Member Function Documentation

bigint dev::eth::PrecompiledContract::cost ( bytesConstRef  _in) const
inline

Definition at line 55 of file ChainOperationParams.h.

Here is the call graph for this function:

std::pair<bool, bytes> dev::eth::PrecompiledContract::execute ( bytesConstRef  _in) const
inline

Definition at line 56 of file ChainOperationParams.h.

u256 const& dev::eth::PrecompiledContract::startingBlock ( ) const
inline

Definition at line 58 of file ChainOperationParams.h.

Member Data Documentation

std::function<bigint(size_t)> dev::eth::PrecompiledContract::m_cost
private

Definition at line 61 of file ChainOperationParams.h.

PrecompiledExecutor dev::eth::PrecompiledContract::m_execute
private

Definition at line 62 of file ChainOperationParams.h.

u256 dev::eth::PrecompiledContract::m_startingBlock = 0
private

Definition at line 63 of file ChainOperationParams.h.


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