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 class
ModuleBytes.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.ModuleBytesBuilder
builder()
void
encode(CLValueEncoder clve, boolean encodeType)
Implements the ModuleBytes encoderjava.util.List<NamedArg<?>>
getArgs()
java.lang.String
getBytes()
Module bytesbyte
getOrder()
ExecutableDeployItem
order 0void
setArgs(java.util.List<NamedArg<?>> args)
void
setBytes(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()
ExecutableDeployItem
order 0- Specified by:
getOrder
in interfaceExecutableDeployItem
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements the ModuleBytes 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 ModuleBytes.ModuleBytesBuilder builder()
-
getBytes
public java.lang.String getBytes()
Module bytes
-
setBytes
public void setBytes(java.lang.String bytes)
Module bytes
-
-