Package org.stellar.sdk.xdr
Class SorobanTransactionMeta
java.lang.Object
org.stellar.sdk.xdr.SorobanTransactionMeta
- All Implemented Interfaces:
XdrElement
SorobanTransactionMeta's original definition in the XDR file is:
struct SorobanTransactionMeta
{
SorobanTransactionMetaExt ext;
ContractEvent events<>; // custom events populated by the
// contracts themselves.
SCVal returnValue; // return value of the host fn invocation
// Diagnostics events that are not hashed.
// This will contain all contract and diagnostic events. Even ones
// that were emitted in a failed contract call.
DiagnosticEvent diagnosticEvents<>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSorobanTransactionMeta(SorobanTransactionMetaExt ext, ContractEvent[] events, SCVal returnValue, DiagnosticEvent[] diagnosticEvents) Creates a newSorobanTransactionMetainstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanTransactionMetadecode(XdrDataInputStream stream) static SorobanTransactionMetadecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SorobanTransactionMetastatic SorobanTransactionMetafromXdrBase64(String xdr) static SorobanTransactionMetafromXdrByteArray(byte[] xdr) Value of thediagnosticEventsfield.Value of theeventsfield.getExt()Value of theextfield.Value of thereturnValuefield.inthashCode()voidsetDiagnosticEvents(DiagnosticEvent[] diagnosticEvents) Value of thediagnosticEventsfield.voidsetEvents(ContractEvent[] events) Value of theeventsfield.voidValue of theextfield.voidsetReturnValue(SCVal returnValue) Value of thereturnValuefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanTransactionMeta
public SorobanTransactionMeta() -
SorobanTransactionMeta
public SorobanTransactionMeta(SorobanTransactionMetaExt ext, ContractEvent[] events, SCVal returnValue, DiagnosticEvent[] diagnosticEvents) Creates a newSorobanTransactionMetainstance.- Parameters:
ext- theextfield valueevents- theeventsfield valuereturnValue- thereturnValuefield valuediagnosticEvents- thediagnosticEventsfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static SorobanTransactionMeta decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getEvents
Value of theeventsfield.- Returns:
- the
eventsfield value
-
getReturnValue
Value of thereturnValuefield.- Returns:
- the
returnValuefield value
-
getDiagnosticEvents
Value of thediagnosticEventsfield.- Returns:
- the
diagnosticEventsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setEvents
Value of theeventsfield.- Parameters:
events- theeventsfield value
-
setReturnValue
Value of thereturnValuefield.- Parameters:
returnValue- thereturnValuefield value
-
setDiagnosticEvents
Value of thediagnosticEventsfield.- Parameters:
diagnosticEvents- thediagnosticEventsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-