public class Contract extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
byte[] |
args |
Address |
constracHash |
String |
method |
byte |
version |
| Constructor and Description |
|---|
Contract() |
Contract(byte version,
Address constracHash,
String method,
byte[] args) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(BinaryReader reader) |
static Contract |
deserializeFrom(byte[] value) |
void |
serialize(BinaryWriter writer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toArray, toHexStringpublic byte version
public Address constracHash
public String method
public byte[] args
public void deserialize(BinaryReader reader) throws IOException
deserialize in interface SerializableIOExceptionpublic void serialize(BinaryWriter writer) throws IOException
serialize in interface SerializableIOExceptionpublic static Contract deserializeFrom(byte[] value) throws IOException
IOExceptionCopyright © 2020. All rights reserved.