public class AbiUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbiUtil.Coder |
static class |
AbiUtil.CoderAddress |
static class |
AbiUtil.CoderArray |
static class |
AbiUtil.CoderBool |
static class |
AbiUtil.CoderDynamicBytes |
static class |
AbiUtil.CoderFixedBytes |
static class |
AbiUtil.CoderNumber |
static class |
AbiUtil.CoderString |
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_SIZE |
Constructor and Description |
---|
AbiUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addressValid(byte[] address) |
static byte[] |
concat(byte[]... bytesArray) |
static byte[] |
decodeFromBase58Check(String addressBase58) |
static byte[] |
encodeDynamicBytes(String value) |
static byte[] |
encodeInput(String methodSign,
String input) |
static String |
geMethodId(String methodSign) |
static AbiUtil.Coder |
getParamCoder(String type) |
static String[] |
getTypes(String methodSign) |
static void |
main(String[] args) |
static byte[] |
pack(List<AbiUtil.Coder> codes,
List<Object> values) |
static String |
parseMethod(String methodSign,
String params) |
static String |
parseMethod(String methodSign,
String input,
boolean isHex) |
public static final int ADDRESS_SIZE
public static AbiUtil.Coder getParamCoder(String type)
public static byte[] decodeFromBase58Check(String addressBase58)
public static boolean addressValid(byte[] address)
public static byte[] encodeDynamicBytes(String value)
public static byte[] pack(List<AbiUtil.Coder> codes, List<Object> values) throws EncodingException
EncodingException
public static String parseMethod(String methodSign, String params) throws EncodingException
EncodingException
public static String parseMethod(String methodSign, String input, boolean isHex) throws EncodingException
EncodingException
public static byte[] encodeInput(String methodSign, String input) throws EncodingException
EncodingException
public static void main(String[] args)
public static byte[] concat(byte[]... bytesArray)
Copyright © 2020. All rights reserved.