Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
FunctionABI Class Reference

#include <contractabi.h>

Public Member Functions

 FunctionABI (const std::string &_name="", const std::string &_type="function", const std::vector< ParameterABI > &_inputs=std::vector< ParameterABI >(), const std::vector< ParameterABI > &_outputs=std::vector< ParameterABI >(), bool _payable=false, bool _constant=false, bool _anonymous=false)
 
bool abiIn (const std::vector< std::vector< std::string >> &values, std::string &data, std::vector< ParameterABI::ErrorType > &errors) const
 
bool abiOut (const std::string &data, std::vector< std::vector< std::string >> &values, std::vector< ParameterABI::ErrorType > &errors) const
 
std::string selector () const
 
QString errorMessage (std::vector< ParameterABI::ErrorType > &errors, bool in) const
 

Static Public Member Functions

static std::string defaultSelector ()
 

Public Attributes

std::string name
 
std::string type
 
std::vector< ParameterABIinputs
 
std::vector< ParameterABIoutputs
 
bool payable
 
bool constant
 
bool anonymous
 

Private Member Functions

void processDynamicParams (const std::map< int, std::string > &mapDynamic, std::string &data) const
 

Detailed Description

Definition at line 159 of file contractabi.h.

Constructor & Destructor Documentation

FunctionABI::FunctionABI ( const std::string &  _name = "",
const std::string &  _type = "function",
const std::vector< ParameterABI > &  _inputs = std::vector<ParameterABI>(),
const std::vector< ParameterABI > &  _outputs = std::vector<ParameterABI>(),
bool  _payable = false,
bool  _constant = false,
bool  _anonymous = false 
)

Definition at line 114 of file contractabi.cpp.

Member Function Documentation

bool FunctionABI::abiIn ( const std::vector< std::vector< std::string >> &  values,
std::string &  data,
std::vector< ParameterABI::ErrorType > &  errors 
) const

Definition at line 128 of file contractabi.cpp.

Here is the call graph for this function:

bool FunctionABI::abiOut ( const std::string &  data,
std::vector< std::vector< std::string >> &  values,
std::vector< ParameterABI::ErrorType > &  errors 
) const

Definition at line 146 of file contractabi.cpp.

std::string FunctionABI::defaultSelector ( )
static

Definition at line 199 of file contractabi.cpp.

Here is the caller graph for this function:

QString FunctionABI::errorMessage ( std::vector< ParameterABI::ErrorType > &  errors,
bool  in 
) const

Definition at line 204 of file contractabi.cpp.

void FunctionABI::processDynamicParams ( const std::map< int, std::string > &  mapDynamic,
std::string &  data 
) const
private

Definition at line 239 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string FunctionABI::selector ( ) const

Definition at line 160 of file contractabi.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool FunctionABI::anonymous

Definition at line 186 of file contractabi.h.

bool FunctionABI::constant

Definition at line 185 of file contractabi.h.

std::vector<ParameterABI> FunctionABI::inputs

Definition at line 182 of file contractabi.h.

std::string FunctionABI::name

Definition at line 180 of file contractabi.h.

std::vector<ParameterABI> FunctionABI::outputs

Definition at line 183 of file contractabi.h.

bool FunctionABI::payable

Definition at line 184 of file contractabi.h.

std::string FunctionABI::type

Definition at line 181 of file contractabi.h.


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