示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }