TopicsCodec class

Codec for encoding and decoding event topics

Topics are hashes (typically H256/32 bytes) used for indexed event filtering. They are stored as a Vec<u8; 32> in the EventRecord structure. This codec uses SequenceCodec with U8ArrayCodec internally for proper SCALE encoding.

Mixed-in types

Constructors

TopicsCodec()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Input input) List<String>
Decode topics from input
override
encode(List<String> value) Uint8List
Convert self to an owned vector.
inherited
encodeTo(List<String> value, Output output) → void
Encode topics to output
override
isSizeZero() bool
Is Size Zero
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sizeHint(List<String> value) int
Calculate size hint for topics
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

HASH_SIZE → const int
Size of each topic hash in bytes (H256 = 32 bytes)