feat: scaffold deterministic replayable indexer architecture with core pipeline, models and docker

This commit is contained in:
Bot
2026-08-31 00:03:33 +08:00
parent b9bed788d7
commit fae49b2b1e
15 changed files with 165 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
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()