Skip to content

Commit b6f5fa2

Browse files
committed
prepare upgrade script
1 parent ac8b11c commit b6f5fa2

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

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 {console} from "forge-std/Test.sol";
5+
import "forge-std/Script.sol";
6+
import "../chains/PolygonLib.sol";
7+
import "../src/core/Factory.sol";
8+
import "../src/core/Zap.sol";
9+
import "../src/core/vaults/CVault.sol";
10+
import "../src/core/vaults/RVault.sol";
11+
import "../src/core/vaults/RMVault.sol";
12+
13+
contract PrepareUpgrade1Polygon is Script {
14+
function run() external {
15+
uint deployerPrivateKey = vm.envUint("PRIVATE_KEY");
16+
vm.startBroadcast(deployerPrivateKey);
17+
address newImpl;
18+
19+
newImpl = address(new Factory());
20+
console.log("Factory 1.0.1", newImpl);
21+
newImpl = address(new Zap());
22+
console.log("Zap 1.0.1", newImpl);
23+
24+
newImpl = address(new CVault());
25+
console.log("CVault 1.0.1", newImpl);
26+
newImpl = address(new RVault());
27+
console.log("RVault 1.0.1", newImpl);
28+
newImpl = address(new RMVault());
29+
console.log("RMVault 1.0.1", newImpl);
30+
31+
vm.stopBroadcast();
32+
}
33+
34+
function testDeployPolygon() external {}
35+
}

0 commit comments

Comments
 (0)