"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createNetworkRoutes = void 0;
const express_1 = require("express");
const validation_middleware_1 = require("../middleware/validation.middleware");
const network_gas_dto_1 = require("../../application/dto/network-gas.dto");
/**
 * Network routes mounted under `/api/v1`.
 *
 * Routes:
 *  - GET /networks               List all active networks (public, cached).
 *  - GET /networks/:networkId/gas  Current block, gas price, gas limit and fee for a network.
 */
const createNetworkRoutes = (controller) => {
    const router = (0, express_1.Router)();
    router.get('/networks', controller.getAll);
    router.get('/networks/:networkId/gas', (0, validation_middleware_1.validateRequest)({ params: network_gas_dto_1.networkGasParamsSchema }), controller.getGasInfo);
    return router;
};
exports.createNetworkRoutes = createNetworkRoutes;
//# sourceMappingURL=network.routes.js.map