Skip to content

Commit 481dc8f

Browse files
committed
24.05.0-alpha, Y: deploy script
1 parent 9b86dae commit 481dc8f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.23;
3+
4+
import "forge-std/Script.sol";
5+
import "../src/core/Factory.sol";
6+
import "../src/core/vaults/CVault.sol";
7+
import "../src/core/vaults/RVault.sol";
8+
import "../src/core/vaults/RMVault.sol";
9+
import "../src/strategies/YearnStrategy.sol";
10+
11+
contract PrepareUpgrade5Polygon is Script {
12+
function run() external {
13+
uint deployerPrivateKey = vm.envUint("PRIVATE_KEY");
14+
vm.startBroadcast(deployerPrivateKey);
15+
16+
// Factory 1.1.0: getDeploymentKey fix for not farming strategies, strategyAvailableInitParams
17+
new Factory();
18+
19+
// CVault 1.3.0: VaultBase 1.3.0
20+
new CVault();
21+
22+
// RVault 1.3.0: VaultBase 1.3.0
23+
new RVault();
24+
25+
// RMVault 1.3.0: VaultBase 1.3.0
26+
new RMVault();
27+
28+
// new strategy implementation
29+
new YearnStrategy();
30+
31+
vm.stopBroadcast();
32+
}
33+
34+
function testDeployPolygon() external {}
35+
}

0 commit comments

Comments
 (0)