public static DecodedEvent ToDecodedEvent <TEvent>(this FilterLog log, EventABI abi) where TEvent : new() { var decodedParameterOutputs = abi.DecodeEventDefaultTopics(log); var decodedDto = log.DecodeEvent <TEvent>(); var decodedEvent = new DecodedEvent(decodedParameterOutputs.Event, decodedParameterOutputs.Log, decodedDto.Event); decodedEvent.AddStateData(abi, log); return(decodedEvent); }
protected override Task ExecuteInternalAsync(FilterLog value) { var eventLog = value.DecodeEvent <TEvent>(); return(_eventAction(eventLog)); }