"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const capitalize = (s) => `${s.charAt(0).toUpperCase()}${s.substring(1)}`;
const getSetterContractName = (networkName) => `SetCheckpoint${capitalize(networkName)}`;
const func = async function (hre) {
    const { deployments, getNamedAccounts } = hre;
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const chain = hre.getNetworkName();
    await deploy(getSetterContractName(chain), {
        contract: getSetterContractName(chain),
        from: deployer,
        args: [],
        log: true,
        skipIfAlreadyDeployed: true,
    });
};
func.tags = ["RateModelCheckpointSetter"];
func.skip = async (hre) => !["bsctestnet", "bscmainnet"].includes(hre.network.name);
exports.default = func;
