{"size": 461, "ext": "js", "max_stars_repo_path": "generate-contracts.js", "max_stars_repo_name": "hoosmartchain/hoo-contracts", "max_stars_repo_stars_event_min_datetime": "2021-06-03T11:17:57.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-03T11:17:57.000Z", "max_issues_repo_path": "generate-contracts.js", "max_issues_repo_name": "hoosmartchain/hoo-contracts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "generate-contracts.js", "max_forks_repo_name": "hoosmartchain/hoo-contracts", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6111111111, "max_line_length": 70, "alphanum_fraction": 0.6746203905}
const fs = require("fs");
const nunjucks = require("nunjucks");

const config = {
    mock: false,
}

var list = [
    { src: "contracts/Params.template", dst: "contracts/Params.sol" },
];

for (let i = 0; i < list.length; i++) {
    const templateStr = fs.readFileSync(list[i].src).toString();
    const contractStr = nunjucks.renderString(templateStr, config);
    fs.writeFileSync(list[i].dst, contractStr)
}

console.log("generate system contracts success")