Class ModuleBytes
- java.lang.Object
-
- com.syntifi.casper.sdk.model.deploy.executabledeploy.ModuleBytes
-
- All Implemented Interfaces:
EncodableValue,ExecutableDeployItem
public class ModuleBytes extends java.lang.Object implements ExecutableDeployItem
Abstract Executable Deploy Item containing the ModuleBytes of the contract.- Since:
- 0.0.1
- See Also:
ExecutableDeployItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleBytes.ModuleBytesBuilder
-
Constructor Summary
Constructors Constructor Description ModuleBytes()ModuleBytes(java.lang.String bytes, java.util.List<NamedArg<?>> args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleBytes.ModuleBytesBuilderbuilder()voidencode(CLValueEncoder clve, boolean encodeType)Implements the ModuleBytes encoderjava.util.List<NamedArg<?>>getArgs()java.lang.StringgetBytes()Module bytesbytegetOrder()ExecutableDeployItemorder 0voidsetArgs(java.util.List<NamedArg<?>> args)voidsetBytes(java.lang.String bytes)Module bytes
-
-
-
Constructor Detail
-
ModuleBytes
public ModuleBytes(java.lang.String bytes, java.util.List<NamedArg<?>> args)
-
ModuleBytes
public ModuleBytes()
-
-
Method Detail
-
getOrder
public byte getOrder()
ExecutableDeployItemorder 0- Specified by:
getOrderin interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the ModuleBytes 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 ModuleBytes.ModuleBytesBuilder builder()
-
getBytes
public java.lang.String getBytes()
Module bytes
-
setBytes
public void setBytes(java.lang.String bytes)
Module bytes
-
-