import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { AccessControlConfig__factory } from "../../../../typechain" ; const func = async function ( hre ) { const config = ConfigEntity . getConfig ( ) ; const POSITION_MANAGER_ADDR = config . StableSwapModule . address ; const accessContralConfig = AccessControlConfig__factory . connect ( config . AccessControlConfig . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( `>> Grant POSITION_MANAGER_ROLE address: ${ POSITION_MANAGER_ADDR }` ) ; await accessContralConfig . grantRole ( await accessContralConfig . POSITION_MANAGER_ROLE ( ) , POSITION_MANAGER_ADDR ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "GrantPositionManagerRole" ] ;