Skip to content

Commit

Permalink
fix(contracts): fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
mempirate committed Oct 16, 2024
1 parent 5cf7fef commit 49f7138
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bolt-contracts/script/holesky/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ contract DeployBolt is Script {
config.minimumOperatorStake
)
);
address parametersProxy = Upgrades.deployUUPSProxy("BoltParameters.sol", initParameters);
console.log("BoltParameters proxy deployed at", parametersProxy);
address parametersProxy = Upgrades.deployUUPSProxy("BoltParametersV1.sol", initParameters);
console.log("BoltParametersV1 proxy deployed at", parametersProxy);

// Generate the `initialize` call data for the contract.
bytes memory initValidators = abi.encodeCall(BoltValidatorsV1.initialize, (admin, parametersProxy));
// Deploy the UUPSProxy through the `Upgrades` library, with the correct `initialize` call data.
address validatorsProxy = Upgrades.deployUUPSProxy("BoltValidators.sol", initValidators);
console.log("BoltValidators proxy deployed at", validatorsProxy);
address validatorsProxy = Upgrades.deployUUPSProxy("BoltValidatorsV1.sol", initValidators);
console.log("BoltValidatorsV1 proxy deployed at", validatorsProxy);

bytes memory initManager = abi.encodeCall(BoltManagerV1.initialize, (admin, parametersProxy, validatorsProxy));
address managerProxy = Upgrades.deployUUPSProxy("BoltManager.sol", initManager);
console.log("BoltManager proxy deployed at", managerProxy);
address managerProxy = Upgrades.deployUUPSProxy("BoltManagerV1.sol", initManager);
console.log("BoltManagerV1 proxy deployed at", managerProxy);

bytes memory initEigenLayerMiddleware = abi.encodeCall(
BoltEigenLayerMiddlewareV1.initialize,
Expand All @@ -67,8 +67,8 @@ contract DeployBolt is Script {
)
);
address eigenLayerMiddlewareProxy =
Upgrades.deployUUPSProxy("BoltEigenLayerMiddleware.sol", initEigenLayerMiddleware);
console.log("BoltEigenLayerMiddleware proxy deployed at", eigenLayerMiddlewareProxy);
Upgrades.deployUUPSProxy("BoltEigenLayerMiddlewareV1.sol", initEigenLayerMiddleware);
console.log("BoltEigenLayerMiddlewareV1 proxy deployed at", eigenLayerMiddlewareProxy);

bytes memory initSymbioticMiddleware = abi.encodeCall(
BoltSymbioticMiddlewareV1.initialize,
Expand All @@ -83,8 +83,8 @@ contract DeployBolt is Script {
)
);
address symbioticMiddlewareProxy =
Upgrades.deployUUPSProxy("BoltSymbioticMiddleware.sol", initSymbioticMiddleware);
console.log("BoltSymbioticMiddleware proxy deployed at", address(symbioticMiddlewareProxy));
Upgrades.deployUUPSProxy("BoltSymbioticMiddlewareV1.sol", initSymbioticMiddleware);
console.log("BoltSymbioticMiddlewareV1 proxy deployed at", address(symbioticMiddlewareProxy));

vm.stopBroadcast();
}
Expand Down

0 comments on commit 49f7138

Please sign in to comment.