Class ContractLoader
java.lang.Object
org.fisco.bcos.sdk.transaction.tools.ContractLoader
public class ContractLoader
extends java.lang.Object
ContractLoader @Description: ContractLoader
-
Constructor Summary
Constructors Constructor Description ContractLoader(java.lang.String abiFilePath, java.lang.String binaryFilePath)
-
Method Summary
Modifier and Type Method Description AbiInfo
abiInfo(java.lang.String abiFilePath)
BinInfo
binInfo(java.lang.String binaryFilePath)
org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String>
getABIAndBinaryByContractName(java.lang.String contractName)
java.lang.String
getABIByContractName(java.lang.String contractName)
java.lang.String
getBinaryByContractName(java.lang.String contractName)
ABIDefinition
getConstructorABIByContractName(java.lang.String contractName)
java.util.List<ABIDefinition>
getFunctionABIListByContractName(java.lang.String contractName)
static ABIDefinition
selectConstructor(java.util.List<ABIDefinition> abiList)
-
Constructor Details
-
ContractLoader
public ContractLoader(java.lang.String abiFilePath, java.lang.String binaryFilePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
binInfo
- Throws:
java.io.IOException
-
abiInfo
- Throws:
java.lang.Exception
-
selectConstructor
-
getABIByContractName
public java.lang.String getABIByContractName(java.lang.String contractName) throws NoSuchTransactionFileException- Throws:
NoSuchTransactionFileException
-
getBinaryByContractName
public java.lang.String getBinaryByContractName(java.lang.String contractName) throws NoSuchTransactionFileException- Throws:
NoSuchTransactionFileException
-
getABIAndBinaryByContractName
public org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.String> getABIAndBinaryByContractName(java.lang.String contractName) throws NoSuchTransactionFileException- Throws:
NoSuchTransactionFileException
-
getConstructorABIByContractName
public ABIDefinition getConstructorABIByContractName(java.lang.String contractName) throws NoSuchTransactionFileException- Throws:
NoSuchTransactionFileException
-
getFunctionABIListByContractName
public java.util.List<ABIDefinition> getFunctionABIListByContractName(java.lang.String contractName) throws NoSuchTransactionFileException- Throws:
NoSuchTransactionFileException
-