from pydantic_settings import BaseSettings class IndexerSettings(BaseSettings): CHAIN_ID: int = 46630 # Robinhood Testnet default RPC_URL: str = "https://rpc.testnet.chain.robinhood.com" START_BLOCK: int = 0 BATCH_SIZE: int = 100 POLL_INTERVAL_SECONDS: float = 2.0 # 数据库与 Redis DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/wtfx" REDIS_URL: str = "redis://localhost:6379/0" # 控制器合约地址 CONTROLLER_ADDRESS: str = "0x0000000000000000000000000000000000000000" class Config: env_file = ".env" indexer_settings = IndexerSettings()