RuntimeEventCodec class
Codec for encoding and decoding RuntimeEvent
Handles the core event encoding/decoding logic for both V14 and V15 metadata. This codec manages pallet indices, event indices, and event data fields.
- Mixed-in types
-
- Codec<
RuntimeEvent>
- Codec<
Constructors
- RuntimeEventCodec(MetadataTypeRegistry registry)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- registry → MetadataTypeRegistry
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Input input) → RuntimeEvent -
Decode a RuntimeEvent from input
override
-
decodePalletEvent(
String palletName, int eventIndex, Input input) → Map< String, dynamic> - Decode event from specific pallet (when you know the pallet) This is useful when you already know which pallet the event is from
-
encode(
RuntimeEvent value) → Uint8List -
Convert self to an owned vector.
inherited
-
encodeEvent(
{required String palletName, required String eventName, required Map< String, dynamic> data}) → Uint8List - Encode a RuntimeEvent with specific pallet and event names This is a convenience method for encoding events when you know the names
-
encodeTo(
RuntimeEvent value, Output output) → void -
Encode a RuntimeEvent to output
override
-
isSizeZero(
) → bool -
Is Size Zero
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sizeHint(
RuntimeEvent value) → int -
Calculate size hint for a RuntimeEvent
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited