const express = require('express');
const testnetService = require('../services/testnetService');

const router = express.Router();

router.get('/status', (req, res) => {
  res.json({ ok: true, testnet: testnetService.getStatus() });
});

router.get('/genesis', (req, res) => {
  res.json({ ok: true, genesis: testnetService.getGenesisPreview() });
});

router.get('/validators', (req, res) => {
  res.json({ ok: true, validators: testnetService.getValidators() });
});

module.exports = router;
