Skip to content

Commit

Permalink
Merge branch 'master' into route-thru-sm
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidu28 authored Jan 6, 2025
2 parents bb015ed + 4626e20 commit c5e42d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/script/HelloWorldDeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ contract HelloWorldDeployer is Script, Test {

helloWorldConfig = HelloWorldDeploymentLib.readDeploymentConfigValues("config/hello-world/", block.chainid);


coreDeployment = CoreDeploymentLib.readDeploymentJson("deployments/core/", block.chainid);
}

function run() external {
vm.startBroadcast(deployer);
rewardsOwner = helloWorldConfig.rewardsOwner;
rewardsInitiator = helloWorldConfig.rewardsInitiator;

token = new ERC20Mock();
helloWorldStrategy = IStrategy(StrategyFactory(coreDeployment.strategyFactory).deployNewStrategy(token));

Expand All @@ -59,8 +61,10 @@ contract HelloWorldDeployer is Script, Test {
StrategyParams({strategy: helloWorldStrategy, multiplier: 10_000})
);


proxyAdmin = UpgradeableProxyLib.deployProxyAdmin();


helloWorldDeployment =
HelloWorldDeploymentLib.deployContracts(proxyAdmin, coreDeployment, quorum, rewardsInitiator, rewardsOwner);

Expand Down

0 comments on commit c5e42d8

Please sign in to comment.