def get_db_backend_class(import_path: str = None) -> Type[BaseAtomicDB]: if import_path is None: import_path = os.environ.get( 'CHAIN_DB_BACKEND_CLASS', DEFAULT_DB_BACKEND, ) return cast(Type[BaseAtomicDB], import_string(import_path))
def get_gas_estimator() -> Callable[[BaseState, BaseOrSpoofTransaction], int]: import_path = os.environ.get( 'GAS_ESTIMATOR_BACKEND_FUNC', 'eth.estimators.gas.binary_gas_search_intrinsic_tolerance', ) return cast(Callable[[BaseState, BaseOrSpoofTransaction], int], import_string(import_path))
def get_gas_estimator() -> Callable: import_path = os.environ.get( 'GAS_ESTIMATOR_BACKEND_FUNC', 'eth.estimators.gas.binary_gas_search_intrinsic_tolerance', ) return import_string(import_path)