- 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
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
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)
|
|
|