Beispiel #1
0
        public static NewFilterInput CreateFilterInput <T1, T2>(this EventABI eventABI, T1 filterTopic1, T2 filterTopic2,
                                                                BlockParameter fromBlock = null, BlockParameter toBlock = null)
        {
            var ethFilterInput = FilterInputBuilder.GetDefaultFilterInput((string)null, fromBlock, toBlock);

            ethFilterInput.Topics = eventABI.GetTopicBuilder().GetTopics(filterTopic1, filterTopic2);
            return(ethFilterInput);
        }
Beispiel #2
0
        public static NewFilterInput CreateFilterInput(this EventABI eventABI, string[] contractAddress, object[] filterTopic1, object[] filterTopic2, object[] filterTopic3,
                                                       BlockParameter fromBlock = null, BlockParameter toBlock = null)
        {
            var ethFilterInput = FilterInputBuilder.GetDefaultFilterInput(contractAddress, fromBlock, toBlock);

            ethFilterInput.Topics = eventABI.GetTopicBuilder().GetTopics(filterTopic1, filterTopic2, filterTopic3);
            return(ethFilterInput);
        }
Beispiel #3
0
        public static NewFilterInput CreateFilterInput(this EventABI eventABI, string[] contractAddress, BlockParameter fromBlock = null, BlockParameter toBlock = null)
        {
            var eventTopicBuilder = new EventTopicBuilder(eventABI);
            var ethFilterInput    = FilterInputBuilder.GetDefaultFilterInput(contractAddress, fromBlock, toBlock);

            ethFilterInput.Topics = eventTopicBuilder.GetSignatureTopic();
            return(ethFilterInput);
        }
Beispiel #4
0
 public NewFilterInput GetDefaultFilterInput(BlockParameter fromBlock = null, BlockParameter toBlock = null)
 {
     return(FilterInputBuilder.GetDefaultFilterInput(Address, fromBlock, toBlock));
 }