chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features
- Delete .aitbc.yaml.example CLI configuration template - Delete .lycheeignore link checker exclusion rules - Delete .nvmrc Node.js version specification - Add advanced search panel with filters for address, amount range, transaction type, time range, and validator - Add analytics dashboard with transaction volume, active addresses, and block time metrics - Add Chart.js integration
This commit is contained in:
27
dev/scripts/patch_app_again.py
Normal file
27
dev/scripts/patch_app_again.py
Normal file
@@ -0,0 +1,27 @@
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
content = content.replace(
|
||||
""" _app_logger.info("Blockchain node started", extra={"chain_id": settings.chain_id})""",
|
||||
""" _app_logger.info("Blockchain node started", extra={"supported_chains": settings.supported_chains})"""
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
|
||||
async def health() -> dict:
|
||||
return {
|
||||
"status": "ok",
|
||||
"chain_id": settings.chain_id,
|
||||
"proposer_id": settings.proposer_id,
|
||||
}""",
|
||||
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
|
||||
async def health() -> dict:
|
||||
return {
|
||||
"status": "ok",
|
||||
"supported_chains": [c.strip() for c in settings.supported_chains.split(",") if c.strip()],
|
||||
"proposer_id": settings.proposer_id,
|
||||
}"""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user