"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("MockAnkrBNB", {
        from: deployer,
        log: true,
        autoMine: true,
        skipIfAlreadyDeployed: true,
        args: ["Ankr Staked BNB ", "ankrBNB", "18"],
    });
    const ankrBNBContract = await hardhat_1.ethers.getContract("MockAnkrBNB");
    if ((await ankrBNBContract.owner()) === deployer) {
        await ankrBNBContract.transferOwnership(proxyOwnerAddress);
    }
    await deploy("MockWBETH", {
        from: deployer,
        log: true,
        autoMine: true,
        skipIfAlreadyDeployed: true,
        args: ["Wrapped Binance Beacon ETH", "wBETH", "18"],
    });
    const wBETHContract = await hardhat_1.ethers.getContract("MockWBETH");
    if ((await wBETHContract.owner()) === deployer) {
        await wBETHContract.transferOwnership(proxyOwnerAddress);
    }
};
exports.default = func;
func.tags = ["bnb_lst"];
func.skip = async (hre) => hre.network.name !== "bsctestnet";
//# sourceMappingURL=5-dependencies-bnb-lst-oracles.js.map