Package org.stellar.sdk.xdr
Class ContractExecutable
java.lang.Object
org.stellar.sdk.xdr.ContractExecutable
ContractExecutable's original definition in the XDR file is:
union ContractExecutable switch (ContractExecutableType type) { case CONTRACT_EXECUTABLE_WASM: Hash wasm_hash; case CONTRACT_EXECUTABLE_STELLAR_ASSET: void; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ContractExecutable
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ContractExecutable
fromXdrBase64
(String xdr) static ContractExecutable
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(ContractExecutableType discriminant) void
setWasm_hash
(Hash wasm_hash) toString()
default String
default byte[]
-
Constructor Details
-
ContractExecutable
public ContractExecutable() -
ContractExecutable
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getWasm_hash
-
setDiscriminant
-
setWasm_hash
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-