Skip to content

Commit

Permalink
also re-deploy the harvester
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed May 3, 2024
1 parent f89f245 commit 22a31d7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
3 changes: 1 addition & 2 deletions contracts/deploy/deployActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ const deployOETHHarvester = async (oethDripper) => {
const assetAddresses = await getAssetAddresses(deployments);
const { governorAddr } = await getNamedAccounts();
const sGovernor = await ethers.provider.getSigner(governorAddr);
const cVaultProxy = await ethers.getContract("VaultProxy");
const cOETHVaultProxy = await ethers.getContract("OETHVaultProxy");

const dOETHHarvesterProxy = await deployWithConfirmation(
Expand Down Expand Up @@ -581,7 +580,7 @@ const deployOETHHarvester = async (oethDripper) => {
cOETHHarvester
.connect(sGovernor)
.setRewardProceedsAddress(
isMainnet || isHolesky ? oethDripper.address : cVaultProxy.address
isMainnet || isHolesky ? oethDripper.address : cOETHVaultProxy.address
)
);

Expand Down
5 changes: 4 additions & 1 deletion contracts/deploy/holesky/004_upgrade_strategy.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const { upgradeNativeStakingSSVStrategy } = require("../deployActions");
const { upgradeNativeStakingSSVStrategy, deployOETHHarvester } = require("../deployActions");

const mainExport = async () => {
console.log("Running 004 deployment on Holesky...");

console.log("Upgrading native staking strategy");
await upgradeNativeStakingSSVStrategy();

console.log("deploying harvester")
const cOETHDripperProxy = await ethers.getContract("OETHDripperProxy");
const cOETHHarvester = await deployOETHHarvester(cOETHDripperProxy.address);

Check failure on line 11 in contracts/deploy/holesky/004_upgrade_strategy.js

View workflow job for this annotation

GitHub Actions / Contracts Linter

'cOETHHarvester' is assigned a value but never used
console.log("Running 004 deployment done");
return true;
};
Expand Down
3 changes: 1 addition & 2 deletions contracts/deployments/holesky/.migrations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"001_core": 1714168010,
"002_upgrade_strategy": 1714233842,
"003_deposit_to_native_strategy": 1714307581,
"004_upgrade_strategy": 1714761605
"003_deposit_to_native_strategy": 1714307581
}
44 changes: 22 additions & 22 deletions contracts/deployments/holesky/OETHHarvester.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions contracts/scripts/deploy/verifySimpleOETHDeployment.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export FEE_ACC=0x79681d3f14a0068479420eE5fDdF59B62301f810
export FEE_ACC_PROXY=0x590B781b511e953dbFC49e7E7864A6E787aFBDCc
export OETH_DRIPPER=0x3833C32826A7f2a93C48D50ae44D45F45Ab17B7F
export OETH_DRIPPER_PROXY=0xaFF1E6263F4004C95Ae611DEb2ADaC049B5aD121
export OETH_HARVESTER=0x22b00a89531E199bd90eC162F9810298b9FBC8b3
export OETH_HARVESTER=0xBd09F938259AE61e089959d52580235b76C69A83
export OETH_HARVESTER_PROXY=0xB7491cdf36367C89001cc41312F22f63A3a17931
export OETH_ORACLE_ROUTER=0x7e2bf9A89180f20591EcFA42C0dd7e52b2C546E3
export NATIVE_STAKING=0x33Eeb0996f6981ff7d11F643630734856BEc09f5
export NATIVE_STAKING=0x51766Fd366D6C9121F6Aeec20267ecA87c2c9793
export NATIVE_STAKING_PROXY=0x4Eac8847c7AE50e3A3551B1Aa4FF7Cc162151410
export WETH=0x94373a4919b3240d86ea41593d5eba789fef3848
export ZERO=0x0000000000000000000000000000000000000000
Expand Down

0 comments on commit 22a31d7

Please sign in to comment.