Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }