public class ContractCodecTools
extends java.lang.Object
| 构造器和说明 |
|---|
ContractCodecTools() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ABIObject |
decode(ABIObject template,
byte[] input,
boolean isWasm)
decode abi object
|
static ABIObject |
decodeAbiObjectListValue(ABIObject template,
java.lang.Object value) |
static ABIObject |
decodeAbiObjectStructValue(ABIObject template,
java.lang.Object value) |
static ABIObject |
decodeABIObjectValue(ABIObject template,
java.lang.Object value) |
static java.util.List<java.lang.Object> |
decodeJavaObject(ABIObject template,
java.lang.String input,
boolean isWasm) |
static org.apache.commons.lang3.tuple.Pair<java.util.List<java.lang.Object>,java.util.List<ABIObject>> |
decodeJavaObjectAndOutputObject(ABIObject template,
java.lang.String input,
boolean isWasm) |
static byte[] |
encode(ABIObject abiObject,
boolean isWasm)
encode this object
|
static byte[] |
formatBytesN(ABIObject abiObject) |
public static ABIObject decodeAbiObjectListValue(ABIObject template, java.lang.Object value)
public static ABIObject decodeAbiObjectStructValue(ABIObject template, java.lang.Object value)
public static ABIObject decodeABIObjectValue(ABIObject template, java.lang.Object value)
public static byte[] encode(ABIObject abiObject, boolean isWasm) throws java.io.IOException
abiObject - abi objectisWasm - if evm or wasm vmjava.io.IOException - throw when decode errorpublic static ABIObject decode(ABIObject template, byte[] input, boolean isWasm) throws java.lang.ClassNotFoundException
template - decode template abi object, it means should know the actual abi typeinput - the string to be decoded into ABIObjectisWasm - is evm or wasm vmjava.lang.ClassNotFoundException - throw when decode class not foundpublic static org.apache.commons.lang3.tuple.Pair<java.util.List<java.lang.Object>,java.util.List<ABIObject>> decodeJavaObjectAndOutputObject(ABIObject template, java.lang.String input, boolean isWasm) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.util.List<java.lang.Object> decodeJavaObject(ABIObject template, java.lang.String input, boolean isWasm) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static byte[] formatBytesN(ABIObject abiObject)