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:
14
dev/scripts/patch_cli_blockchain_mempool_remove.py
Normal file
14
dev/scripts/patch_cli_blockchain_mempool_remove.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user