Exemplo n.º 1
0
        public static NewFilterInput CreateFilterInput(this EventABI eventABI, string contractAddress, object[] filterTopic1, BlockParameter fromBlock = null,
                                                       BlockParameter toBlock = null)
        {
            var eventTopicBuilder = new EventTopicBuilder(eventABI);
            var ethFilterInput    = FilterInputBuilder.GetDefaultFilterInput(contractAddress, fromBlock, toBlock);

            ethFilterInput.Topics = eventTopicBuilder.GetTopics(filterTopic1);
            return(ethFilterInput);
        }
Exemplo n.º 2
0
 public Event(Contract contract, EventABI eventAbi)
 {
     _contract          = contract;
     EventABI           = eventAbi;
     _eventTopicBuilder = new EventTopicBuilder(eventAbi);
 }