- 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
15 lines
865 B
Python
15 lines
865 B
Python
import re
|
|
|
|
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "r") as f:
|
|
content = f.read()
|
|
|
|
# Since /rpc/mempool doesn't exist on the node, let's remove it and use an endpoint that exists like /rpc/transactions
|
|
# Wait, /rpc/transactions exists! Let's rename the mempool command to transactions
|
|
content = content.replace('f"{_get_node_endpoint(ctx)}/rpc/mempool?chain_id={chain_id}"', 'f"{_get_node_endpoint(ctx)}/rpc/transactions?chain_id={chain_id}"')
|
|
content = content.replace('def mempool(ctx, chain_id):', 'def transactions(ctx, chain_id):')
|
|
content = content.replace('Get the mempool status of a chain', 'Get latest transactions on a chain')
|
|
content = content.replace('Failed to get mempool', 'Failed to get transactions')
|
|
|
|
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "w") as f:
|
|
f.write(content)
|