public async Task <List <EventLog <TEventMessage> > > GetAllChanges(NewFilterInput filterInput) { if (!EventABI.IsFilterInputForEvent(ContractAddress, filterInput)) { throw new FilterInputNotForEventException(); } var logs = await EthGetLogs.SendRequestAsync(filterInput).ConfigureAwait(false); return(DecodeAllEvents <TEventMessage>(logs)); }
public async Task <List <EventLog <List <ParameterOutput> > > > GetAllChangesDefault(NewFilterInput filterInput) { if (!EventABI.IsFilterInputForEvent(ContractAddress, filterInput)) { throw new FilterInputNotForEventException(); } var logs = await EthGetLogs.SendRequestAsync(filterInput).ConfigureAwait(false); return(EventABI.DecodeAllEventsDefaultTopics(logs)); }
public async Task <List <EventLog <List <ParameterOutput> > > > GetAllChangesDefault(NewFilterInput filterInput) { if (!EventABI.IsFilterInputForEvent(ContractAddress, filterInput)) { throw new Exception("Invalid filter input for current event, the filter input does not belong to this contract"); } var logs = await EthGetLogs.SendRequestAsync(filterInput).ConfigureAwait(false); return(EventABI.DecodeAllEventsDefaultTopics(logs)); }
public async Task <List <EventLog <T> > > GetAllChanges <T>(NewFilterInput filterInput) where T : new() { if (!EventABI.IsFilterInputForEvent(ContractAddress, filterInput)) { throw new Exception("Invalid filter input for current event, use CreateFilterInput"); } var logs = await EthGetLogs.SendRequestAsync(filterInput).ConfigureAwait(false); return(DecodeAllEvents <T>(logs)); }