public class TVMTypes extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_TYPE
Tron address.
|
static String |
BOOLEAN_TYPE
Boolean.
|
static String |
DYN_BYTES_TYPE
Dynamic bytes array.
|
static String |
INT_TYPE
Signed integer of 256 bits.
|
static String |
STRING_TYPE
String.
|
static String |
UINT_TYPE
Unsigned integer of 256 bits.
|
Constructor and Description |
---|
TVMTypes() |
Modifier and Type | Method and Description |
---|---|
static String |
ARRAY(String type)
Array.
|
static String |
ARRAY(String type,
int len)
Array.
|
static String |
BYTES(int len)
Fixed bytes array.
|
static String |
INT(int bits)
Signed integer.
|
static List<String> |
makeListOfTypes(String... arguments)
Makes a list of types.
|
static String |
signature(String methodName,
String... types)
Makes a method signature
|
static String |
UINT(int bits)
Unsigned integer.
|
public static final String STRING_TYPE
public static final String BOOLEAN_TYPE
public static final String ADDRESS_TYPE
public static final String DYN_BYTES_TYPE
public static final String UINT_TYPE
public static final String INT_TYPE
public static String UINT(int bits)
bits
- Number of bits (8 - 256)public static String INT(int bits)
bits
- Number of bits (8 - 256)public static String BYTES(int len)
len
- Number of bytes.public static String ARRAY(String type)
type
- The type of the arraypublic static String ARRAY(String type, int len)
type
- The type of the array.len
- The length of the array.public static List<String> makeListOfTypes(String... arguments)
arguments
- The list of typesCopyright © 2020. All rights reserved.