/ testnet / config / alpha-testnet.toml
alpha-testnet.toml
  1  # ALPHA Chain Testnet Configuration
  2  # ===================================
  3  # This configuration is for the ALPHA testnet (privacy/credits chain).
  4  # Network ID: alpha-testnet-1
  5  
  6  [network]
  7  # Network identifier
  8  network_id = "alpha-testnet-1"
  9  # Human-readable network name
 10  name = "ALPHA Testnet"
 11  # Network type: testnet (allows testing features)
 12  type = "testnet"
 13  
 14  [genesis]
 15  # Genesis timestamp (UTC)
 16  timestamp = "2026-01-20T00:00:00Z"
 17  # Initial block height
 18  height = 0
 19  # Genesis hash (computed at launch)
 20  hash = ""
 21  
 22  [genesis.initial_supply]
 23  # Total initial supply in microcredits (100M credits = 100_000_000_000_000 microcredits)
 24  total = 100_000_000_000_000
 25  # Foundation allocation (40%)
 26  foundation = 40_000_000_000_000
 27  # Ecosystem development (25%)
 28  ecosystem = 25_000_000_000_000
 29  # Testnet faucet (20%)
 30  faucet = 20_000_000_000_000
 31  # Initial validators (15%)
 32  validators = 15_000_000_000_000
 33  
 34  [genesis.faucet]
 35  # Testnet faucet address (will be generated)
 36  address = ""
 37  # Amount per request (1000 credits)
 38  amount_per_request = 1_000_000_000
 39  # Cooldown period in seconds (1 hour)
 40  cooldown_secs = 3600
 41  
 42  [consensus]
 43  # Block time target in milliseconds (10 seconds for testnet)
 44  block_time_ms = 10000
 45  # Minimum validators for consensus
 46  min_validators = 3
 47  # Maximum validators in active set
 48  max_validators = 100
 49  # Validator unbonding period in blocks (~7 days at 10s blocks)
 50  unbonding_period_blocks = 60480
 51  # Slashing penalty for double signing (5%)
 52  slash_double_sign_percent = 5
 53  # Slashing penalty for downtime (0.1%)
 54  slash_downtime_percent = 0.1
 55  # Downtime threshold (missed blocks before slashing)
 56  downtime_threshold_blocks = 1000
 57  
 58  [consensus.bft]
 59  # BFT protocol: narwhal-bullshark
 60  protocol = "narwhal-bullshark"
 61  # Batch size for DAG
 62  batch_size = 1000
 63  # Maximum batch delay in milliseconds
 64  max_batch_delay_ms = 100
 65  # GC depth for DAG
 66  gc_depth = 50
 67  
 68  [network_params]
 69  # Maximum peers per node
 70  max_peers = 50
 71  # Target outbound connections
 72  target_outbound = 10
 73  # Gossip message TTL in hops
 74  gossip_ttl = 6
 75  # Sync batch size (blocks)
 76  sync_batch_size = 100
 77  # Transaction pool size
 78  mempool_size = 10000
 79  
 80  [network_params.bootstrap_peers]
 81  # List of bootstrap nodes for testnet
 82  # Format: "/ip4/{ip}/tcp/{port}/p2p/{peer_id}"
 83  peers = []
 84  
 85  [validators]
 86  # Initial validator set
 87  # Each entry: address, stake, commission_rate
 88  
 89  [[validators.initial]]
 90  name = "alpha-validator-1"
 91  address = ""
 92  stake = 3_000_000_000_000
 93  commission_percent = 5
 94  
 95  [[validators.initial]]
 96  name = "alpha-validator-2"
 97  address = ""
 98  stake = 3_000_000_000_000
 99  commission_percent = 5
100  
101  [[validators.initial]]
102  name = "alpha-validator-3"
103  address = ""
104  stake = 3_000_000_000_000
105  commission_percent = 5
106  
107  [[validators.initial]]
108  name = "alpha-validator-4"
109  address = ""
110  stake = 3_000_000_000_000
111  commission_percent = 5
112  
113  [[validators.initial]]
114  name = "alpha-validator-5"
115  address = ""
116  stake = 3_000_000_000_000
117  commission_percent = 5
118  
119  [rpc]
120  # RPC server configuration
121  enabled = true
122  port = 3030
123  # CORS allowed origins (testnet allows all)
124  cors_origins = ["*"]
125  # Rate limiting (requests per minute)
126  rate_limit = 1000
127  # Maximum concurrent connections
128  max_connections = 1000
129  
130  [metrics]
131  # Prometheus metrics
132  enabled = true
133  port = 9090
134  # Metrics endpoint path
135  path = "/metrics"
136  
137  [logging]
138  # Log level: debug, info, warn, error
139  level = "info"
140  # Log format: json or text
141  format = "json"
142  # Log file path (empty for stdout only)
143  file = ""