Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy 109 - 3rd native staking strategy #2309

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions contracts/deploy/mainnet/109_3rd_native_ssv_staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = deploymentWithGovernanceProposal(
//forceSkip: true,
reduceQueueTime: true,
deployerIsProposer: false,
// proposalId: "",
proposalId:
"105762082509768776202240604338417692927766202901146189706379006167687855789299",
},
async ({ deployWithConfirmation, ethers, getTxOpts, withConfirmation }) => {
const { deployerAddr } = await getNamedAccounts();
Expand Down Expand Up @@ -111,6 +112,13 @@ module.exports = deploymentWithGovernanceProposal(
]
);

/* Before kicking off the deploy script make sure the Defender relayer transfers the governance
* of the proxy to the deployer account that shall be deploying this script so it will be able
* to initialize the proxy contract
*
* Run the following to make it happen, and comment this error block out:
* yarn run hardhat transferGovernanceNativeStakingProxy --index 3 --deployer 0xdeployerAddress --network mainnet
*/
const proxyGovernor = await cNativeStakingStrategyProxy.governor();
if (isFork && proxyGovernor != deployerAddr) {
const relayerSigner = await impersonateAccount(
Expand All @@ -121,19 +129,6 @@ module.exports = deploymentWithGovernanceProposal(
.connect(relayerSigner)
.transferGovernance(deployerAddr, await getTxOpts())
);
} else {
/* Before kicking off the deploy script make sure the Defender relayer transfers the governance
* of the proxy to the deployer account that shall be deploying this script so it will be able
* to initialize the proxy contract
*
* Run the following to make it happen, and comment this error block out:
* yarn run hardhat transferGovernanceNativeStakingProxy --index 3 --deployer 0xdeployerAddress --network mainnet
*/
if (proxyGovernor != deployerAddr) {
throw new Error(
`Native Staking Strategy proxy's governor: ${proxyGovernor} does not match current deployer ${deployerAddr}`
);
}
}

// 7. Transfer governance of the Native Staking Strategy proxy to the deployer
Expand All @@ -145,7 +140,7 @@ module.exports = deploymentWithGovernanceProposal(
);

// 8. Init the proxy to point at the implementation, set the governor, and call initialize
console.log(`About to initialize of NativeStakingStrategy2`);
console.log(`About to initialize of NativeStakingStrategy`);
await withConfirmation(
cNativeStakingStrategyProxy.connect(sDeployer)[proxyInitFunction](
cNativeStakingStrategyImpl.address, // implementation address
Expand Down
5 changes: 3 additions & 2 deletions contracts/deployments/mainnet/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@
"104_upgrade_staking_strategies": 1723926635,
"105_ousd_remove_flux_strat": 1724650407,
"106_ousd_metamorpho_usdc": 1725548135,
"107_arm_buyback": 1726909418
}
"107_arm_buyback": 1726909418,
"109_3rd_native_ssv_staking": 1731456871
}
24 changes: 12 additions & 12 deletions contracts/deployments/mainnet/FeeAccumulator.json

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions contracts/deployments/mainnet/NativeStakingFeeAccumulator3Proxy.json

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions contracts/deployments/mainnet/NativeStakingSSVStrategy.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"solcVersion": "0.8.7",
"storage": [],
"types": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"label": "validatorsStates",
"offset": 0,
"slot": "53",
"type": "t_mapping(t_bytes32,t_enum(VALIDATOR_STATE)36384)",
"type": "t_mapping(t_bytes32,t_enum(VALIDATOR_STATE)38553)",
"contract": "ValidatorRegistrator",
"src": "contracts/strategies/NativeStaking/ValidatorRegistrator.sol:45"
},
Expand Down Expand Up @@ -251,7 +251,7 @@
"label": "bytes32",
"numberOfBytes": "32"
},
"t_enum(VALIDATOR_STATE)36384": {
"t_enum(VALIDATOR_STATE)38553": {
"label": "enum ValidatorRegistrator.VALIDATOR_STATE",
"members": [
"NON_REGISTERED",
Expand All @@ -270,7 +270,7 @@
"label": "mapping(address => address)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_enum(VALIDATOR_STATE)36384)": {
"t_mapping(t_bytes32,t_enum(VALIDATOR_STATE)38553)": {
"label": "mapping(bytes32 => enum ValidatorRegistrator.VALIDATOR_STATE)",
"numberOfBytes": "32"
},
Expand Down
Loading