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