core3.constants

Documentation for eth_defi.core3.constants Python module.

Shared constants for Core3 integration.

Centralises API URLs, default paths, and configuration values used by eth_defi.core3.session, eth_defi.core3.database, and eth_defi.core3.scanner.

Functions

resolve_core3_database_path()

Resolve the Core3 DuckDB database path.

resolve_core3_database_path()

Resolve the Core3 DuckDB database path.

Core3 scripts share the same CORE3_DATABASE_PATH environment variable override. Keeping the resolver next to CORE3_DATABASE_PATH avoids each caller repeating the same environment lookup and path expansion logic.

Returns

Path from CORE3_DATABASE_PATH or the default Core3 DuckDB path.

Return type

pathlib.Path