Skip to main content
Version: Next

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