refactor: rename generic metadata fields to specific names in multitenant models
- Rename metadata to user_metadata in TenantUser model - Rename metadata to usage_metadata in UsageRecord model - Rename metadata to invoice_metadata in Invoice model - Rename metadata to event_metadata in TenantAuditLog model - Update TenantManagementService to use event_metadata parameter name
This commit is contained in:
249
genesis_enhanced_devnet.yaml
Normal file
249
genesis_enhanced_devnet.yaml
Normal file
@@ -0,0 +1,249 @@
|
||||
genesis:
|
||||
chain_id: "aitbc-enhanced-devnet"
|
||||
chain_type: "enhanced"
|
||||
purpose: "development-with-new-features"
|
||||
name: "AITBC Enhanced Development Network"
|
||||
description: "Enhanced development network with AI trading, surveillance, analytics, and multi-chain features"
|
||||
timestamp: "2026-03-07T11:00:00Z"
|
||||
parent_hash: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
||||
gas_limit: 15000000
|
||||
gas_price: 1000000000
|
||||
consensus:
|
||||
algorithm: "poa"
|
||||
validators:
|
||||
- "ait1devproposer000000000000000000000000000000"
|
||||
- "ait1aivalidator00000000000000000000000000000"
|
||||
- "ait1surveillance0000000000000000000000000000"
|
||||
accounts:
|
||||
# Core system accounts
|
||||
- address: "aitbc1genesis"
|
||||
balance: "10000000"
|
||||
type: "genesis"
|
||||
metadata:
|
||||
purpose: "Genesis account with initial supply"
|
||||
features: ["governance", "staking", "validation"]
|
||||
- address: "aitbc1faucet"
|
||||
balance: "1000000"
|
||||
type: "faucet"
|
||||
metadata:
|
||||
purpose: "Development faucet for testing"
|
||||
distribution_rate: "100 per hour"
|
||||
- address: "aitbc1treasury"
|
||||
balance: "5000000"
|
||||
type: "treasury"
|
||||
metadata:
|
||||
purpose: "Treasury for ecosystem rewards"
|
||||
features: ["rewards", "staking", "governance"]
|
||||
- address: "aitbc1aiengine"
|
||||
balance: "2000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "AI Trading Engine operational account"
|
||||
service_type: "ai_trading_engine"
|
||||
features: ["trading", "analytics", "prediction"]
|
||||
- address: "aitbc1surveillance"
|
||||
balance: "1500000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "AI Surveillance service account"
|
||||
service_type: "ai_surveillance"
|
||||
features: ["monitoring", "risk_assessment", "compliance"]
|
||||
- address: "aitbc1analytics"
|
||||
balance: "1000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Advanced Analytics service account"
|
||||
service_type: "advanced_analytics"
|
||||
features: ["real_time_analytics", "reporting", "metrics"]
|
||||
- address: "aitbc1marketplace"
|
||||
balance: "2000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Global Marketplace service account"
|
||||
service_type: "global_marketplace"
|
||||
features: ["trading", "liquidity", "cross_chain"]
|
||||
- address: "aitbc1enterprise"
|
||||
balance: "3000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Enterprise Integration service account"
|
||||
service_type: "enterprise_api_gateway"
|
||||
features: ["api_gateway", "multi_tenant", "security"]
|
||||
- address: "aitbc1multimodal"
|
||||
balance: "1500000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Multi-modal AI service account"
|
||||
service_type: "multimodal_agent"
|
||||
features: ["gpu_acceleration", "modality_optimization", "fusion"]
|
||||
- address: "aitbc1zkproofs"
|
||||
balance: "1000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Zero-Knowledge Proofs service account"
|
||||
service_type: "zk_proofs"
|
||||
features: ["zk_circuits", "verification", "privacy"]
|
||||
- address: "aitbc1crosschain"
|
||||
balance: "2000000"
|
||||
type: "service"
|
||||
metadata:
|
||||
purpose: "Cross-chain bridge service account"
|
||||
service_type: "cross_chain_bridge"
|
||||
features: ["bridge", "atomic_swap", "reputation"]
|
||||
# Developer and testing accounts
|
||||
- address: "aitbc1developer1"
|
||||
balance: "500000"
|
||||
type: "developer"
|
||||
metadata:
|
||||
purpose: "Primary developer testing account"
|
||||
permissions: ["full_access", "service_deployment"]
|
||||
- address: "aitbc1developer2"
|
||||
balance: "300000"
|
||||
type: "developer"
|
||||
metadata:
|
||||
purpose: "Secondary developer testing account"
|
||||
permissions: ["testing", "debugging"]
|
||||
- address: "aitbc1tester"
|
||||
balance: "200000"
|
||||
type: "tester"
|
||||
metadata:
|
||||
purpose: "Automated testing account"
|
||||
permissions: ["testing_only"]
|
||||
# Smart contracts deployed at genesis
|
||||
contracts:
|
||||
- name: "AITBCToken"
|
||||
address: "0x0000000000000000000000000000000000001000"
|
||||
type: "ERC20"
|
||||
metadata:
|
||||
symbol: "AITBC-E"
|
||||
decimals: 18
|
||||
initial_supply: "21000000000000000000000000"
|
||||
purpose: "Enhanced network token with chain-specific isolation"
|
||||
- name: "AISurveillanceRegistry"
|
||||
address: "0x0000000000000000000000000000000000001001"
|
||||
type: "Registry"
|
||||
metadata:
|
||||
purpose: "Registry for AI surveillance patterns and alerts"
|
||||
features: ["pattern_registration", "alert_management", "risk_scoring"]
|
||||
- name: "AnalyticsOracle"
|
||||
address: "0x0000000000000000000000000000000000001002"
|
||||
type: "Oracle"
|
||||
metadata:
|
||||
purpose: "Oracle for advanced analytics data feeds"
|
||||
features: ["price_feeds", "market_data", "performance_metrics"]
|
||||
- name: "CrossChainBridge"
|
||||
address: "0x0000000000000000000000000000000000001003"
|
||||
type: "Bridge"
|
||||
metadata:
|
||||
purpose: "Cross-chain bridge for asset transfers"
|
||||
features: ["atomic_swaps", "reputation_system", "chain_isolation"]
|
||||
- name: "EnterpriseGateway"
|
||||
address: "0x0000000000000000000000000000000000001004"
|
||||
type: "Gateway"
|
||||
metadata:
|
||||
purpose: "Enterprise API gateway with multi-tenant support"
|
||||
features: ["api_management", "tenant_isolation", "security"]
|
||||
# Enhanced network parameters
|
||||
parameters:
|
||||
block_time: 3 # Faster blocks for enhanced features
|
||||
max_block_size: 2097152 # 2MB blocks for more transactions
|
||||
min_stake: 1000
|
||||
max_validators: 100
|
||||
block_reward: "2000000000000000000" # 2 AITBC per block
|
||||
stake_reward_rate: "0.05" # 5% annual reward rate
|
||||
governance_threshold: "0.51" # 51% for governance decisions
|
||||
surveillance_threshold: "0.75" # 75% for surveillance alerts
|
||||
analytics_retention: 86400 # 24 hours retention for analytics data
|
||||
cross_chain_fee: "10000000000000000" # 0.01 AITBC for cross-chain transfers
|
||||
enterprise_min_stake: 10000 # Higher stake for enterprise validators
|
||||
# Privacy and security settings
|
||||
privacy:
|
||||
access_control: "permissioned"
|
||||
require_invitation: false
|
||||
visibility: "public"
|
||||
encryption: "enabled"
|
||||
zk_proofs: "enabled"
|
||||
audit_logging: "enabled"
|
||||
# Feature flags for new services
|
||||
features:
|
||||
ai_trading_engine: true
|
||||
ai_surveillance: true
|
||||
advanced_analytics: true
|
||||
enterprise_integration: true
|
||||
multi_modal_ai: true
|
||||
zk_proofs: true
|
||||
cross_chain_bridge: true
|
||||
global_marketplace: true
|
||||
adaptive_learning: true
|
||||
performance_monitoring: true
|
||||
# Service endpoints configuration
|
||||
services:
|
||||
ai_trading_engine:
|
||||
port: 8010
|
||||
enabled: true
|
||||
config:
|
||||
models: ["mean_reversion", "momentum", "arbitrage"]
|
||||
risk_threshold: 0.02
|
||||
max_positions: 100
|
||||
ai_surveillance:
|
||||
port: 8011
|
||||
enabled: true
|
||||
config:
|
||||
risk_models: ["isolation_forest", "neural_network"]
|
||||
alert_threshold: 0.85
|
||||
retention_days: 30
|
||||
advanced_analytics:
|
||||
port: 8012
|
||||
enabled: true
|
||||
config:
|
||||
indicators: ["rsi", "macd", "bollinger", "volume"]
|
||||
update_interval: 60
|
||||
history_retention: 86400
|
||||
enterprise_gateway:
|
||||
port: 8013
|
||||
enabled: true
|
||||
config:
|
||||
max_tenants: 1000
|
||||
rate_limit: 1000
|
||||
auth_required: true
|
||||
multimodal_ai:
|
||||
port: 8014
|
||||
enabled: true
|
||||
config:
|
||||
gpu_acceleration: true
|
||||
modalities: ["text", "image", "audio"]
|
||||
fusion_model: "transformer_based"
|
||||
zk_proofs:
|
||||
port: 8015
|
||||
enabled: true
|
||||
config:
|
||||
circuit_types: ["receipt", "identity", "compliance"]
|
||||
verification_speed: "fast"
|
||||
memory_optimization: true
|
||||
# Network configuration
|
||||
network:
|
||||
max_peers: 50
|
||||
min_peers: 5
|
||||
boot_nodes:
|
||||
- "ait1bootnode0000000000000000000000000000000:8008"
|
||||
- "ait1bootnode0000000000000000000000000000001:8008"
|
||||
propagation_timeout: 30
|
||||
sync_mode: "fast"
|
||||
# Governance settings
|
||||
governance:
|
||||
voting_period: 604800 # 7 days
|
||||
execution_delay: 86400 # 1 day
|
||||
proposal_threshold: "1000000000000000000000000" # 1000 AITBC
|
||||
quorum_rate: "0.40" # 40% quorum
|
||||
emergency_pause: true
|
||||
multi_signature: true
|
||||
# Economic parameters
|
||||
economics:
|
||||
total_supply: "21000000000000000000000000" # 21 million AITBC
|
||||
inflation_rate: "0.02" # 2% annual inflation
|
||||
burn_rate: "0.01" # 1% burn rate
|
||||
treasury_allocation: "0.20" # 20% to treasury
|
||||
staking_allocation: "0.30" # 30% to staking rewards
|
||||
ecosystem_allocation: "0.25" # 25% to ecosystem
|
||||
team_allocation: "0.15" # 15% to team
|
||||
community_allocation: "0.10" # 10% to community
|
||||
Reference in New Issue
Block a user