"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const hardhat_1 = __importDefault(require("hardhat"));
const deploymentConfig_1 = require("../helpers/deploymentConfig");
const func = async function ({ getNamedAccounts, deployments, network }) {
    const { deploy } = deployments;
    const { deployer } = await getNamedAccounts();
    const proxyOwnerAddress = deploymentConfig_1.ADDRESSES[network.name].timelock;
    const { LBTC, WBTC } = deploymentConfig_1.ADDRESSES[network.name];
    const redstoneOracle = await hardhat_1.default.ethers.getContract("RedStoneOracle");
    const resilientOracle = await hardhat_1.default.ethers.getContract("ResilientOracle");
    await deploy("LBTCOneJumpRedStoneOracle", {
        contract: "OneJumpOracle",
        from: deployer,
        log: true,
        deterministicDeployment: false,
        args: [LBTC, WBTC, resilientOracle.address, redstoneOracle.address],
        proxy: {
            owner: proxyOwnerAddress,
            proxyContract: "OptimizedTransparentProxy",
        },
        skipIfAlreadyDeployed: true,
    });
};
func.skip = async () => hardhat_1.default.network.name !== "ethereum" && hardhat_1.default.network.name !== "sepolia";
func.tags = ["LBTCOneJumpRedStoneOracle"];
exports.default = func;
//# sourceMappingURL=15-deploy-lbtc-oracle.js.map