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_blockchain_node_accounts.py
Normal file
14
dev/scripts/patch_blockchain_node_accounts.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import re
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/rpc/router.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# Fix getBalance and address routes
|
||||
content = content.replace("session.get(Account, address)", "session.get(Account, (chain_id, address))")
|
||||
content = content.replace("session.get(Account, request.address)", "session.get(Account, (chain_id, request.address))")
|
||||
|
||||
# Also fix Account creation
|
||||
content = content.replace("Account(address=request.address, balance=request.amount)", "Account(chain_id=chain_id, address=request.address, balance=request.amount)")
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/rpc/router.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user