public class TriggerSmartContractContract extends TronContract
TronContract.Type
Constructor and Description |
---|
TriggerSmartContractContract(Contract.TriggerSmartContract contract) |
Modifier and Type | Method and Description |
---|---|
TronCurrency |
getCallValue() |
TronAddress |
getContractAddress() |
byte[] |
getData() |
static List<Object> |
interpretData(byte[] callData,
String methodSignature)
Interprets the call data using the method signature.
|
List<Object> |
interpretData(String methodSignature)
Interprets the call data using the method signature.
|
void |
print(String indent)
Prints the object in stdout.
|
void |
printAndInterpret(String indent,
TronClient client)
Prints to stdout with interpretation.
|
com.google.gson.JsonObject |
toJson() |
static List<Object> |
unpack(List<String> types,
byte[] data)
Unpacks data
|
getOwnerAddress, getType
public TriggerSmartContractContract(Contract.TriggerSmartContract contract)
public TronAddress getContractAddress()
public byte[] getData()
public TronCurrency getCallValue()
public List<Object> interpretData(String methodSignature) throws InvalidCallDataException
methodSignature
- The method signatureInvalidCallDataException
- If the conversion failspublic static List<Object> interpretData(byte[] callData, String methodSignature) throws InvalidCallDataException
callData
- The call datamethodSignature
- The method signatureInvalidCallDataException
- If the conversion failspublic static List<Object> unpack(List<String> types, byte[] data) throws InvalidCallDataException
types
- The list of types preset in the datadata
- The dataInvalidCallDataException
- If the data is invalidpublic com.google.gson.JsonObject toJson()
toJson
in class TronContract
public void print(String indent)
TronContract
print
in class TronContract
public void printAndInterpret(String indent, TronClient client)
indent
- client
- Copyright © 2020. All rights reserved.