"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = require("hardhat");
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async ({ getNamedAccounts, deployments, network }) => {
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const proxyOwnerAddress = network.live ? deploymentConfig_1.ADDRESSES[network.name].timelock : deployer;
    await deploy("MockAccountant_eBTC", {
        from: deployer,
        contract: "MockAccountant",
        args: [],
        log: true,
        autoMine: true,
        skipIfAlreadyDeployed: true,
    });
    const mockAccountant = await hardhat_1.ethers.getContract("MockAccountant_eBTC");
    await mockAccountant.transferOwnership(proxyOwnerAddress);
};
exports.default = func;
func.tags = ["eBTCAccountantOracle"];
func.skip = async (hre) => hre.network.name !== "sepolia";
//# sourceMappingURL=14-dependencies-eBTC-oracle.js.map