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:
34
dev/scripts/patch_cli_client_blocks.py
Normal file
34
dev/scripts/patch_cli_client_blocks.py
Normal file
@@ -0,0 +1,34 @@
|
||||
import re
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/client.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# Fix blocks endpoint to /explorer/blocks
|
||||
content = content.replace(
|
||||
"""f"{config.coordinator_url}/blocks",""",
|
||||
"""f"{config.coordinator_url}/explorer/blocks","""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/client.py", "w") as f:
|
||||
f.write(content)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# Fix blockchain endpoints
|
||||
content = content.replace(
|
||||
"""f"{config.coordinator_url}/blocks",""",
|
||||
"""f"{config.coordinator_url}/explorer/blocks","""
|
||||
)
|
||||
content = content.replace(
|
||||
"""f"{config.coordinator_url}/blocks/{block_hash}",""",
|
||||
"""f"{config.coordinator_url}/explorer/blocks/{block_hash}","""
|
||||
)
|
||||
content = content.replace(
|
||||
"""f"{config.coordinator_url}/transactions/{tx_hash}",""",
|
||||
"""f"{config.coordinator_url}/explorer/transactions/{tx_hash}","""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "w") as f:
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user