AbiEventFragment class

Represents an event fragment in ABI, providing methods for decoding event data.

Implemented types

Constructors

AbiEventFragment({required String name, List<AbiParameter> inputs = const [], bool? anonymous})
Creates an AbiEventFragment instance.
AbiEventFragment.fromJson(Map<String, dynamic> json)
Creates an instance of AbiEventFragment from JSON representation.
factory

Properties

anonymous bool?
Indicates whether the event is anonymous.
final
eventName String
Gets the event function name.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputs List<AbiParameter>
The list of input parameters for the fragment.
final
name String
The name of the event fragment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature List<int>
The signature of the event.
latefinal
type FragmentTypes
The type of the fragment.
final

Methods

decode(List<int> data, List<List<int>?> topics) List
Decodes the event data from the encoded bytes and topics.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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