"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async function (hre) {
    const { deployments, getNamedAccounts } = hre;
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const { tokensConfig } = await (0, deploymentConfig_1.getConfig)(hre.network.name);
    for (const token of tokensConfig) {
        if (token.isMock) {
            const contractName = `Mock${token.symbol}`;
            await deploy(contractName, {
                from: deployer,
                contract: "MockToken",
                args: [token.name, token.symbol, token.decimals],
                log: true,
                autoMine: true,
                skipIfAlreadyDeployed: true,
            });
        }
    }
};
func.tags = ["MockTokens"];
exports.default = func;
