import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers } from "hardhat" ; import { VaultPriceOracle__factory } from "../../../../typechain" ; import { ConfigEntity } from "../../../entities" ; const func = async function ( hre ) { const VAULT = "0x7C9e73d4C71dae564d41F78d56439bB4ba87592f" ; const IS_OK = true ; const config = ConfigEntity . getConfig ( ) ; const vaultPriceOracle = VaultPriceOracle__factory . connect ( config . Oracle . VaultPriceOracle . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( `>> vaultPriceOracle set vault ${ VAULT }: ${ IS_OK }` ) ; await vaultPriceOracle . setVault ( VAULT , IS_OK ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetVault" ] ;