A hook for fetching contract events from state after you have subscribed by calling useEventSubscription. You can filter for specific events by passing in a case-sensitive array of event names.
{ events: { id: string; createdAt: number; name: string; // The name of the event emitted args: unknown[]; // human-readable values emitted in the event }[];// A function to remove an event from state. Useful when a user closes a snackbar notification, etc removeEvent: (args: { address:string, id:string }) =>void;}