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 class
StoredContractByName.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.StoredContractByNameBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements the StoredContractByHash encoderjava.util.List<NamedArg<?>>
getArgs()
java.lang.String
getEntryPoint()
Entry Pointjava.lang.String
getName()
Contract namebyte
getOrder()
ExecutableDeployItem
order 2void
setArgs(java.util.List<NamedArg<?>> args)
void
setEntryPoint(java.lang.String entryPoint)
Entry Pointvoid
setName(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()
ExecutableDeployItem
order 2- Specified by:
getOrder
in interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the StoredContractByHash encoder- Specified by:
encode
in 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
-
-