Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::PrecompiledContract Class Reference

#include <ChainOperationParams.h>

Public Member Functions

 PrecompiledContract ()=default
 
 PrecompiledContract (PrecompiledPricer 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
 

Detailed Description

Definition at line 35 of file ChainOperationParams.h.

Constructor & Destructor Documentation

◆ PrecompiledContract() [1/3]

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

◆ PrecompiledContract() [2/3]

dev::eth::PrecompiledContract::PrecompiledContract ( PrecompiledPricer const &  _cost,
PrecompiledExecutor const &  _exec,
u256 const &  _startingBlock = 0 
)
inline

Definition at line 39 of file ChainOperationParams.h.

◆ PrecompiledContract() [3/3]

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

Definition at line 29 of file ChainOperationParams.cpp.

Member Function Documentation

◆ cost()

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

Definition at line 55 of file ChainOperationParams.h.

◆ execute()

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

Definition at line 56 of file ChainOperationParams.h.

◆ startingBlock()

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

Definition at line 58 of file ChainOperationParams.h.


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