import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { StaticPriceFeed__factory } from "../../../../typechain" ; const func = async function ( hre ) { const PRICE_IN_WAD = ethers . utils . parseUnits ( "1" , 18 ) ; const STATIC_PRICE_FEED_ADDR = "0xD67286e5969ca0D2ad282EB4eDa4B51d60A9eB45" ; const config = ConfigEntity . getConfig ( ) ; const staticPriceFeed = StaticPriceFeed__factory . connect ( STATIC_PRICE_FEED_ADDR , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( ">> setPrice" ) ; await staticPriceFeed . setPrice ( PRICE_IN_WAD , { gasLimit : 1000000 } ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetPriceStatic" ] ;