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:
25
dev/scripts/patch_config_final.py
Normal file
25
dev/scripts/patch_config_final.py
Normal file
@@ -0,0 +1,25 @@
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/config.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
content = content.replace(
|
||||
"""class ChainSettings(BaseSettings):""",
|
||||
"""from pydantic import BaseModel
|
||||
|
||||
class ProposerConfig(BaseModel):
|
||||
chain_id: str
|
||||
proposer_id: str
|
||||
interval_seconds: int
|
||||
max_block_size_bytes: int
|
||||
max_txs_per_block: int
|
||||
|
||||
class ChainSettings(BaseSettings):"""
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
""" chain_id: str = "ait-devnet\"""",
|
||||
""" chain_id: str = "ait-devnet"
|
||||
supported_chains: str = "ait-devnet" # Comma-separated list of supported chain IDs"""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/config.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user