Skip to content

Commit

Permalink
Deployment script to transfer ownership of KeepStake
Browse files Browse the repository at this point in the history
Only for mainnet
  • Loading branch information
cygnusv committed Feb 1, 2022
1 parent c0fbeb6 commit 9e38fd9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions deploy/94_transfer_ownership_keep_stake.ts
Original file line number Diff line number Diff line change
@@ -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<boolean> {
return hre.network.name !== "mainnet"
}

0 comments on commit 9e38fd9

Please sign in to comment.