"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 { pufETH, WETH } = 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("pufETHOneJumpRedStoneOracle", {
        contract: "OneJumpOracle",
        from: deployer,
        log: true,
        deterministicDeployment: false,
        args: [pufETH, WETH, 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 = ["pufETHOneJumpRedStoneOracle"];
exports.default = func;
//# sourceMappingURL=14-deploy-pufETH-oracle.js.map