"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chains_1 = require("../helpers/chains");
const tokens_1 = require("../helpers/tokens");
const func = async function (hre) {
    const { deployments, getNamedAccounts } = hre;
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const chain = (0, chains_1.assertKnownChain)(hre.network.name);
    const tokensConfig = Object.values(tokens_1.tokens[chain]);
    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;
