"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = require("hardhat");
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async function () {
    const vaiController = await hardhat_1.ethers.getContract("VaiController");
    let vaiUnitroller = await hardhat_1.ethers.getContract("VaiUnitroller");
    await vaiUnitroller._setPendingImplementation(vaiController.address);
    await vaiController._become(vaiUnitroller.address);
    vaiUnitroller = await hardhat_1.ethers.getContractAt("VAIController", (await hardhat_1.ethers.getContract("VaiUnitroller")).address);
    await vaiUnitroller.initialize();
};
func.tags = ["VAIController", "configuration"];
func.id = "vai_controller_config"; // id required to prevent re-execution
func.skip = (0, deploymentConfig_1.skipRemoteNetworks)();
exports.default = func;
