Skip to main content
Version: 5.24.3

Namespace: events

Functions​

getAbiEvents​

â–¸ getAbiEvents(abi): AbiEvents

Parameters​

NameType
abiAbi

Returns​

AbiEvents

Defined in​

src/utils/events/index.ts:17


parseEvents​

â–¸ parseEvents(providerReceivedEvents, abiEvents, abiStructs, abiEnums): ParsedEvents

Parse raw events and structure them into response object based on a contract structs and defined events

Parameters​

NameTypeDescription
providerReceivedEventsEvent[]ProviderEvent[] - Array of raw events
abiEventsAbiEventsAbiEvents - Events defined in the abi
abiStructsAbiStructsAbiStructs - Structs defined in the abi
abiEnumsAbiEnums-

Returns​

ParsedEvents

ParsedEvents - parsed events corresponding to the abi

Defined in​

src/utils/events/index.ts:38