Skip to content

Commit

Permalink
Update TokenStaking upgrade verification script
Browse files Browse the repository at this point in the history
After #153, which drop support for legacy stakers, TokenStaking constructor requires less arguments
  • Loading branch information
cygnusv committed Sep 9, 2024
1 parent 6e08164 commit 1f6493b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions deploy/60_validate_upgrade_token_staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { log } = deployments

const T = await deployments.get("T")
const KeepTokenStaking = await deployments.get("KeepTokenStaking")
const NuCypherStakingEscrow = await deployments.get("NuCypherStakingEscrow")
const VendingMachineKeep = await deployments.get("VendingMachineKeep")
const VendingMachineNuCypher = await deployments.get("VendingMachineNuCypher")
const KeepStake = await deployments.get("KeepStake")
const TokenStakingDeployment = await deployments.get("TokenStaking")

const tokenStakingConstructorArgs = [
T.address,
KeepTokenStaking.address,
NuCypherStakingEscrow.address,
VendingMachineKeep.address,
VendingMachineNuCypher.address,
KeepStake.address,
]

if (hre.network.name == "mainnet") {
Expand Down
9 changes: 1 addition & 8 deletions deploy/61_prepare_upgrade_token_staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { log } = deployments

const T = await deployments.get("T")
const KeepTokenStaking = await deployments.get("KeepTokenStaking")
const NuCypherStakingEscrow = await deployments.get("NuCypherStakingEscrow")
const VendingMachineKeep = await deployments.get("VendingMachineKeep")
const VendingMachineNuCypher = await deployments.get("VendingMachineNuCypher")
const KeepStake = await deployments.get("KeepStake")
const TokenStakingProxy = await deployments.get("TokenStaking")

const tokenStakingConstructorArgs = [
T.address,
KeepTokenStaking.address,
NuCypherStakingEscrow.address,
VendingMachineKeep.address,
VendingMachineNuCypher.address,
KeepStake.address,
]

if (hre.network.name == "mainnet") {
Expand Down Expand Up @@ -65,3 +57,4 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
export default func

func.tags = ["PrepareUpgradeTokenStaking"]
func.dependencies = ["ValidateUpgradeTokenStaking"]

0 comments on commit 1f6493b

Please sign in to comment.