Package org.stellar.sdk.xdr
Class ContractEvent
java.lang.Object
org.stellar.sdk.xdr.ContractEvent
ContractEvent's original definition in the XDR file is:
struct ContractEvent { // We can use this to add more fields, or because it // is first, to change ContractEvent into a union. ExtensionPoint ext; Hash* contractID; ContractEventType type; union switch (int v) { case 0: struct { SCVal topics<>; SCVal data; } v0; } body; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ContractEventBody's original definition in the XDR file is:static class
-
Constructor Summary
ConstructorDescriptionContractEvent
(ExtensionPoint ext, Hash contractID, ContractEventType type, ContractEvent.ContractEventBody body) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ContractEvent
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ContractEvent
fromXdrBase64
(String xdr) static ContractEvent
fromXdrByteArray
(byte[] xdr) getBody()
getExt()
getType()
int
hashCode()
void
void
setContractID
(Hash contractID) void
setExt
(ExtensionPoint ext) void
setType
(ContractEventType type) toString()
default String
default byte[]
-
Constructor Details
-
ContractEvent
public ContractEvent() -
ContractEvent
public ContractEvent(ExtensionPoint ext, Hash contractID, ContractEventType type, ContractEvent.ContractEventBody body)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getExt
-
getContractID
-
getType
-
getBody
-
setExt
-
setContractID
-
setType
-
setBody
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-