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); }
public Event(Contract contract, EventABI eventAbi) { _contract = contract; EventABI = eventAbi; _eventTopicBuilder = new EventTopicBuilder(eventAbi); }