public class TronSmartContracts extends Object
| Constructor and Description |
|---|
TronSmartContracts() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
generateContractAddress(byte[] ownerAddress,
Protocol.Transaction trx) |
static Protocol.SmartContract.ABI.Entry.EntryType |
getEntryType(String type) |
static Protocol.SmartContract.ABI.Entry.StateMutabilityType |
getStateMutability(String stateMutability) |
static Protocol.SmartContract.ABI |
jsonStr2ABI(String jsonStr) |
static byte[] |
replaceLibraryAddress(String code,
Map<String,TronAddress> libraries) |
static byte[] |
replaceLibraryAddress(String code,
String libraryAddressPair) |
public static Protocol.SmartContract.ABI.Entry.EntryType getEntryType(String type)
public static Protocol.SmartContract.ABI.Entry.StateMutabilityType getStateMutability(String stateMutability)
public static Protocol.SmartContract.ABI jsonStr2ABI(String jsonStr)
public static byte[] replaceLibraryAddress(String code, String libraryAddressPair)
public static byte[] replaceLibraryAddress(String code, Map<String,TronAddress> libraries)
public static byte[] generateContractAddress(byte[] ownerAddress,
Protocol.Transaction trx)
Copyright © 2020. All rights reserved.