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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionInvokeHostFunctionResult(InvokeHostFunctionResultCode discriminant, Hash success) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static InvokeHostFunctionResultdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic InvokeHostFunctionResultfromXdrBase64(String xdr) static InvokeHostFunctionResultfromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(InvokeHostFunctionResultCode discriminant) voidsetSuccess(Hash success) toString()default Stringdefault 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
-