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 ADAPTER_ADDR = "0x4Bf04730C37fc395B5F780E6Ad3E397C031F6d39" ; const accessContralConfig = AccessControlConfig__factory . connect ( config . AccessControlConfig . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( `>> Grant ADAPTER_ROLE address: ${ ADAPTER_ADDR }` ) ; await accessContralConfig . grantRole ( await accessContralConfig . ADAPTER_ROLE ( ) , ADAPTER_ADDR , { gasLimit : 1000000 } ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "GrantAdapterRole" ] ;