const EVM_CANDIDATE_CONFIG = Object.freeze({
  enabled: process.env.PLAIS_EVM_CANDIDATE_ENABLED === '1',
  networkName: process.env.PLAIS_EVM_NETWORK_NAME || 'PLAIS EVM Candidate',
  chainId: Number(process.env.PLAIS_EVM_CHAIN_ID || 20260718),
  rpcUrl: process.env.PLAIS_EVM_RPC_URL || 'http://127.0.0.1:8545',
  rpcHost: process.env.PLAIS_EVM_RPC_HOST || '127.0.0.1',
  rpcPort: Number(process.env.PLAIS_EVM_RPC_PORT || 8545),
  consensus: process.env.PLAIS_EVM_CONSENSUS || 'QBFT',
  validatorCount: Number(process.env.PLAIS_EVM_VALIDATOR_COUNT || 4),
  currencyName: process.env.PLAIS_EVM_CURRENCY_NAME || 'PLAIS Coin',
  currencySymbol: process.env.PLAIS_EVM_CURRENCY_SYMBOL || 'PLAIS',
  currencyDecimals: Number(process.env.PLAIS_EVM_CURRENCY_DECIMALS || 18),
  genesisSupply: process.env.PLAIS_EVM_GENESIS_SUPPLY || '10000000000',
  minimumTransferAmount: process.env.PLAIS_EVM_MIN_TRANSFER_AMOUNT || '0.000001',
  minimumGasPriceGwei: process.env.PLAIS_EVM_MIN_GAS_PRICE_GWEI || '1',
  externalTransfersEnabled: process.env.PLAIS_EVM_EXTERNAL_TRANSFERS_ENABLED === '1'
});

module.exports = { EVM_CANDIDATE_CONFIG };
