Expand aitbc package with new utility modules and enhanced HTTP client
- Add new exception types: RetryError, CircuitBreakerOpenError, RateLimitError - Enhance AITBCHTTPClient with retry logic, caching, circuit breaker, and rate limiting - Add AsyncAITBCHTTPClient for async HTTP operations - Add crypto module with Ethereum key derivation, signing, encryption, and hashing utilities - Add web3_utils module with Web3Client and create_web3_client - Add security module with token generation, API key management
This commit is contained in:
@@ -16,6 +16,8 @@ from pathlib import Path
|
||||
import os
|
||||
import sys
|
||||
|
||||
from aitbc.constants import KEYSTORE_DIR
|
||||
|
||||
# Add CLI utils to path
|
||||
sys.path.insert(0, '/opt/aitbc/cli')
|
||||
|
||||
@@ -23,7 +25,7 @@ sys.path.insert(0, '/opt/aitbc/cli')
|
||||
app = FastAPI(title="AITBC Wallet Daemon", debug=False)
|
||||
|
||||
# Configuration
|
||||
KEYSTORE_PATH = Path("/var/lib/aitbc/keystore")
|
||||
KEYSTORE_PATH = KEYSTORE_DIR
|
||||
BLOCKCHAIN_RPC_URL = "http://localhost:8006"
|
||||
CHAIN_ID = "ait-mainnet"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user