Class StoredContractByName
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executabledeploy.StoredContractByName
-
- All Implemented Interfaces:
EncodableValue,ExecutableDeployItem
public class StoredContractByName extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the StoredContractByName.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredContractByName.StoredContractByNameBuilder
-
Constructor Summary
Constructors Constructor Description StoredContractByName()StoredContractByName(java.lang.String name, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoredContractByName.StoredContractByNameBuilderbuilder()voidencode(CLValueEncoder clve, boolean encodeType)Implements the StoredContractByHash encoderjava.util.List<NamedArg<?>>getArgs()java.lang.StringgetEntryPoint()Entry Pointjava.lang.StringgetName()Contract namebytegetOrder()ExecutableDeployItemorder 2voidsetArgs(java.util.List<NamedArg<?>> args)voidsetEntryPoint(java.lang.String entryPoint)Entry PointvoidsetName(java.lang.String name)Contract name
-
-
-
Constructor Detail
-
StoredContractByName
public StoredContractByName(java.lang.String name, java.lang.String entryPoint, java.util.List<NamedArg<?>> args)
-
StoredContractByName
public StoredContractByName()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItemorder 2- Specified by:
getOrderin interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the StoredContractByHash encoder- Specified by:
encodein interfaceEncodableValue- Parameters:
clve- the encoder to be usedencodeType- append encoded type?- Throws:
java.io.IOException- thrown if an IO error occursCLValueEncodeException- thrown if failed to encode a cl valueDynamicInstanceException- thrown if it could not instantiate a typeNoSuchTypeException- thrown if type not found
-
builder
public static StoredContractByName.StoredContractByNameBuilder builder()
-
getName
public java.lang.String getName()
Contract name
-
getEntryPoint
public java.lang.String getEntryPoint()
Entry Point
-
setName
public void setName(java.lang.String name)
Contract name
-
setEntryPoint
public void setEntryPoint(java.lang.String entryPoint)
Entry Point
-
-