Package org.stellar.sdk.xdr
Class InvokeHostFunctionResult
java.lang.Object
org.stellar.sdk.xdr.InvokeHostFunctionResult
InvokeHostFunctionResult's original definition in the XDR file is:
union InvokeHostFunctionResult switch (InvokeHostFunctionResultCode code) { case INVOKE_HOST_FUNCTION_SUCCESS: Hash success; // sha256(InvokeHostFunctionSuccessPreImage) case INVOKE_HOST_FUNCTION_MALFORMED: case INVOKE_HOST_FUNCTION_TRAPPED: case INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED: case INVOKE_HOST_FUNCTION_ENTRY_ARCHIVED: case INVOKE_HOST_FUNCTION_INSUFFICIENT_REFUNDABLE_FEE: void; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionInvokeHostFunctionResult
(InvokeHostFunctionResultCode discriminant, Hash success) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static InvokeHostFunctionResult
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static InvokeHostFunctionResult
fromXdrBase64
(String xdr) static InvokeHostFunctionResult
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(InvokeHostFunctionResultCode discriminant) void
setSuccess
(Hash success) toString()
default String
default byte[]
-
Constructor Details
-
InvokeHostFunctionResult
public InvokeHostFunctionResult() -
InvokeHostFunctionResult
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getSuccess
-
setDiscriminant
-
setSuccess
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-