Skip to content

Commit 1861cf7

Browse files
committed
Update TokenStaking upgrade verification script
After #153, which drop support for legacy stakers, TokenStaking constructor requires less arguments
1 parent c855f64 commit 1861cf7

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

deploy/60_validate_upgrade_token_staking.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
88
const { log } = deployments
99

1010
const T = await deployments.get("T")
11-
const KeepTokenStaking = await deployments.get("KeepTokenStaking")
12-
const NuCypherStakingEscrow = await deployments.get("NuCypherStakingEscrow")
13-
const VendingMachineKeep = await deployments.get("VendingMachineKeep")
1411
const VendingMachineNuCypher = await deployments.get("VendingMachineNuCypher")
15-
const KeepStake = await deployments.get("KeepStake")
1612
const TokenStakingDeployment = await deployments.get("TokenStaking")
1713

1814
const tokenStakingConstructorArgs = [
1915
T.address,
20-
KeepTokenStaking.address,
21-
NuCypherStakingEscrow.address,
22-
VendingMachineKeep.address,
2316
VendingMachineNuCypher.address,
24-
KeepStake.address,
2517
]
2618

2719
if (hre.network.name == "mainnet") {

deploy/61_prepare_upgrade_token_staking.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
88
const { log } = deployments
99

1010
const T = await deployments.get("T")
11-
const KeepTokenStaking = await deployments.get("KeepTokenStaking")
12-
const NuCypherStakingEscrow = await deployments.get("NuCypherStakingEscrow")
13-
const VendingMachineKeep = await deployments.get("VendingMachineKeep")
1411
const VendingMachineNuCypher = await deployments.get("VendingMachineNuCypher")
15-
const KeepStake = await deployments.get("KeepStake")
1612
const TokenStakingProxy = await deployments.get("TokenStaking")
1713

1814
const tokenStakingConstructorArgs = [
1915
T.address,
20-
KeepTokenStaking.address,
21-
NuCypherStakingEscrow.address,
22-
VendingMachineKeep.address,
2316
VendingMachineNuCypher.address,
24-
KeepStake.address,
2517
]
2618

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

6759
func.tags = ["PrepareUpgradeTokenStaking"]
60+
func.dependencies = ["ValidateUpgradeTokenStaking"]

0 commit comments

Comments
 (0)