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:
40
dev/scripts/patch_cli_chain.py
Normal file
40
dev/scripts/patch_cli_chain.py
Normal file
@@ -0,0 +1,40 @@
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/chain.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
import re
|
||||
|
||||
# Fix asyncio issues by wrapping in asyncio.run
|
||||
content = content.replace(
|
||||
""" # Get chains
|
||||
chains = chain_manager.list_chains(
|
||||
chain_type=ChainType(chain_type) if chain_type != 'all' else None,
|
||||
include_private=show_private,
|
||||
sort_by=sort
|
||||
)""",
|
||||
""" # Get chains
|
||||
import asyncio
|
||||
chains = asyncio.run(chain_manager.list_chains(
|
||||
chain_type=ChainType(chain_type) if chain_type != 'all' else None,
|
||||
include_private=show_private,
|
||||
sort_by=sort
|
||||
))"""
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
""" # Get chain info
|
||||
chain_info = chain_manager.get_chain_info(chain_id)""",
|
||||
""" # Get chain info
|
||||
import asyncio
|
||||
chain_info = asyncio.run(chain_manager.get_chain_info(chain_id))"""
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
""" # Get monitoring data
|
||||
stats = chain_manager.monitor_chain(chain_id, duration)""",
|
||||
""" # Get monitoring data
|
||||
import asyncio
|
||||
stats = asyncio.run(chain_manager.monitor_chain(chain_id, duration))"""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/chain.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user