Open iherger opened 4 years ago
For general event logging purposes, it would be very useful to have access to the event name in the EthereumEvent class.
EthereumEvent
E.g. if my subgraph manifest contains
eventHandlers: - event: PriceUpdate(address[],uint256[]) handler: handlePriceUpdate
I would like to be able to do something like
export function handlePriceUpdate(event: PriceUpdate): void { saveEvent(event); // other code }
My current solution also works, but is more manual and therefore error prone:
export function handlePriceUpdate(event: PriceUpdate): void { saveEvent("PriceUpdate", event); // other code }
For general event logging purposes, it would be very useful to have access to the event name in the
EthereumEvent
class.E.g. if my subgraph manifest contains
I would like to be able to do something like
My current solution also works, but is more manual and therefore error prone: