A class that represents the ABI for an input or output field of a contract funciton.
More...
#include <abi.h>
|
bool | IsDynamic () |
| Checks whether the type of this input or output is dynamic or static. More...
|
|
bool | isInteger () const |
| Checks if the type of this input or output is an integer (int or uint) type of any size. More...
|
|
|
IotexString | name |
|
EthereumTypeName | type |
|
uint32_t | sizeBytes |
|
EthereumTypeName | arrayType |
|
uint32_t | arrayTypeSizeBytes = 0 |
|
uint32_t | arraySize |
|
A class that represents the ABI for an input or output field of a contract funciton.
◆ getTypeAndSizeFromString()
ResultCode iotex::abi::InputOutputAbi::getTypeAndSizeFromString |
( |
IotexString & |
str, |
|
|
InputOutputAbi & |
out |
|
) |
| |
|
static |
Parses the size and type from the input/output "type" property in the ABI JSON.
- Parameters
-
- Returns
- ResultCode
◆ IsDynamic()
bool iotex::abi::InputOutputAbi::IsDynamic |
( |
| ) |
|
|
inline |
Checks whether the type of this input or output is dynamic or static.
- Returns
- true if the type is dynamic
-
false if the type is static
◆ isInteger()
bool iotex::abi::InputOutputAbi::isInteger |
( |
| ) |
const |
|
inline |
Checks if the type of this input or output is an integer (int or uint) type of any size.
- Returns
- true if the type is an integer
-
false if the type is not an integer
The documentation for this class was generated from the following files:
- src/abi/abi.h
- src/abi/abi.cpp