import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , upgrades } from "hardhat" ; import { VaultPriceOracle__factory } from "../../../../typechain" ; const func = async function ( hre ) { console . log ( ">> Deploying an upgradable VaultPriceOracle contract" ) ; const VaultPriceOracle = ( await ethers . getContractFactory ( "VaultPriceOracle" , ( await ethers . getSigners ( ) ) [ 0 ] ) ) as VaultPriceOracle__factory ; const vaultPriceOracle = await upgrades . deployProxy ( VaultPriceOracle ) ; await vaultPriceOracle . deployed ( ) ; console . log ( `>> Deployed at ${ vaultPriceOracle . address }` ) ; const tx = await vaultPriceOracle . deployTransaction . wait ( ) ; console . log ( `>> Deploy block ${ tx . blockNumber }` ) ; } ; export default func ; func . tags = [ "VaultPriceOracle" ] ;