@ApiAudience.Public @ApiStability.Unstable public class ContractInterface extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ContractInterface.ContractInvocationWithNothing |
static interface |
ContractInterface.ContractInvocationWithReady |
protected static class |
ContractInterface.InvocationBuilder |
Modifier and Type | Field and Description |
---|---|
protected ContractAddress |
address |
protected java.util.List<ContractFunction> |
functions |
protected java.lang.String |
language |
protected java.util.List<StateVariable> |
stateVariables |
protected java.lang.String |
version |
Constructor and Description |
---|
ContractInterface(ContractAddress contractAddress,
java.lang.String version,
java.lang.String language,
java.util.List<ContractFunction> functions,
java.util.List<StateVariable> stateVariables)
ContractInterface constructor.
|
Modifier and Type | Method and Description |
---|---|
ContractFunction |
findFunction(java.lang.String functionName)
Find a contract function with the given function name.
|
ContractInterface.ContractInvocationWithNothing |
newInvocationBuilder() |
protected final ContractAddress address
protected final java.lang.String version
protected final java.lang.String language
protected final java.util.List<ContractFunction> functions
protected final java.util.List<StateVariable> stateVariables
@ApiAudience.Private public ContractInterface(ContractAddress contractAddress, java.lang.String version, java.lang.String language, java.util.List<ContractFunction> functions, java.util.List<StateVariable> stateVariables)
contractAddress
- a contract addressversion
- a contract versionlanguage
- a contract languagefunctions
- a contract functions to invokestateVariables
- a contract state variablespublic ContractFunction findFunction(java.lang.String functionName)
functionName
- function name to findContractFunction
if found. Otherwise, nullpublic ContractInterface.ContractInvocationWithNothing newInvocationBuilder()