def get_ecc_backend_class(import_path=None): if import_path is None: import_path = os.environ.get( 'EVM_ECC_BACKEND_CLASS', DEFAULT_ECC_BACKEND, ) return import_string(import_path)
def get_db_backend_class(import_path: str = None) -> Type[BaseDB]: if import_path is None: import_path = os.environ.get( 'CHAIN_DB_BACKEND_CLASS', DEFAULT_DB_BACKEND, ) return import_string(import_path)
def get_db_backend_class(import_path=None): if import_path is None: import_path = os.environ.get( 'CHAIN_DB_BACKEND_CLASS', DEFAULT_DB_BACKEND, ) return import_string(import_path)
def get_gas_estimator() -> Callable: import_path = os.environ.get( 'GAS_ESTIMATOR_BACKEND_FUNC', 'evm.estimators.gas.binary_gas_search_intrinsic_tolerance', ) return import_string(import_path)
def get_gas_estimator(): import_path = os.environ.get( 'GAS_ESTIMATOR_BACKEND_FUNC', 'evm.estimators.gas.binary_gas_search_intrinsic_tolerance', ) return import_string(import_path)
def get_db_backend_class(): import_path = os.environ.get( 'CHAIN_DB_BACKEND_CLASS', DEFAULT_DB_BACKEND, ) return import_string(import_path)