diff --git a/deploy/94_transfer_ownership_keep_stake.ts b/deploy/94_transfer_ownership_keep_stake.ts new file mode 100644 index 00000000..9d15809c --- /dev/null +++ b/deploy/94_transfer_ownership_keep_stake.ts @@ -0,0 +1,22 @@ +import { HardhatRuntimeEnvironment } from "hardhat/types" +import { DeployFunction } from "hardhat-deploy/types" + +const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { + const { getNamedAccounts, helpers } = hre + const { deployer, thresholdCouncil } = await getNamedAccounts() + + await helpers.ownable.transferOwnership( + "KeepStake", + thresholdCouncil, + deployer + ) +} + +export default func + +func.tags = ["TransferOwnershipKeepStake"] +func.dependencies = ["KeepStake"] +func.runAtTheEnd = true +func.skip = async function (hre: HardhatRuntimeEnvironment): Promise { + return hre.network.name !== "mainnet" +}