Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        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));
        }