public class Event extends Struct
A representation of a system event. These are generated via the Metadata interfaces and specific to a specific Substrate runtime
Modifier and Type | Class and Description |
---|---|
static class |
Event.EventData
Wrapper for the actual data that forms part of an Event
|
static class |
Event.EventIndex
This follows the same approach as in
Method , we have the [sectionIndex, methodIndex] pairing that indicates the actual event fired |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,Types.ConstructorCodec<Event.EventData>> |
EventTypes |
Constructor and Description |
---|
Event(byte[] value) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
decodeEvent(byte[] value) |
Event.EventData |
getData()
The wrapped EventData
|
Event.EventIndex |
getIndex()
The EventIndex, identifying the raw event
|
Events.EventMetadata |
getMeta()
The EventMetadata with the documentation
|
java.lang.String |
getMethod()
The method string identifying the event
|
java.lang.String |
getSection()
The section string identifying the event
|
java.util.List<CreateType.TypeDef> |
getTypeDef()
The TypeDef for the event
|
static void |
injectMetadata(MetadataV0 metadata) |
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
finalize, getClass, notify, notifyAll, wait, wait, wait
getConstructorCodec, toU8a
public static final java.util.Map<java.lang.String,Types.ConstructorCodec<Event.EventData>> EventTypes
public static java.lang.Object[] decodeEvent(byte[] value)
public static void injectMetadata(MetadataV0 metadata)
public Event.EventData getData()
The wrapped EventData
public Event.EventIndex getIndex()
The EventIndex, identifying the raw event
public Events.EventMetadata getMeta()
The EventMetadata with the documentation
public java.lang.String getMethod()
The method string identifying the event
public java.lang.String getSection()
The section string identifying the event
public java.util.List<CreateType.TypeDef> getTypeDef()
The TypeDef for the event