@@ -790,7 +790,7 @@ The script can be run with: ``python ./eventscanner.py <your JSON-RPC API URL>``
790790 import time
791791 import logging
792792 from abc import ABC , abstractmethod
793- from typing import Tuple, Optional, Callable, List, Iterable
793+ from typing import Tuple, Optional, Callable, List, Iterable, Dict, Any
794794
795795 from web3 import Web3
796796 from web3.contract import Contract
@@ -865,7 +865,7 @@ The script can be run with: ``python ./eventscanner.py <your JSON-RPC API URL>``
865865 because it cannot correctly throttle and decrease the `eth_getLogs` block number range.
866866 """
867867
868- def __init__ (self , w3 : Web3, contract : Contract, state : EventScannerState, events : List, filters : {} ,
868+ def __init__ (self , w3 : Web3, contract : Contract, state : EventScannerState, events : List, filters : Dict[ str , Any] ,
869869 max_chunk_scan_size : int = 10000 , max_request_retries : int = 30 , request_retry_seconds : float = 3.0 ):
870870 """
871871 :param contract: Contract
@@ -1130,7 +1130,7 @@ The script can be run with: ``python ./eventscanner.py <your JSON-RPC API URL>``
11301130 def _fetch_events_for_all_contracts (
11311131 w3 ,
11321132 event ,
1133- argument_filters : dict ,
1133+ argument_filters : Dict[ str , Any] ,
11341134 from_block : int ,
11351135 to_block : int ) -> Iterable:
11361136 """ Get events using eth_getLogs API.
@@ -1363,7 +1363,7 @@ The script can be run with: ``python ./eventscanner.py <your JSON-RPC API URL>``
13631363 state = JSONifiedState()
13641364 state.restore()
13651365
1366- # chain_id: int, w3: Web3, abi: dict , state: EventScannerState, events: List, filters: {} , max_chunk_scan_size: int=10000
1366+ # chain_id: int, w3: Web3, abi: Dict , state: EventScannerState, events: List, filters: Dict , max_chunk_scan_size: int=10000
13671367 scanner = EventScanner(
13681368 w3 = w3,
13691369 contract = ERC20 ,
0 commit comments