-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathDeployEigenlayerSlashing.s.sol
More file actions
45 lines (33 loc) · 1.57 KB
/
DeployEigenlayerSlashing.s.sol
File metadata and controls
45 lines (33 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "forge-std/Script.sol";
import "../src/EtherFiNode.sol";
import "../src/EtherFiNodesManager.sol";
import "../src/EtherFiRestaker.sol";
import "../src/helpers/AddressProvider.sol";
import "../src/UUPSProxy.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "forge-std/console2.sol";
contract DeployEigenlayerSlashingScript is Script {
using Strings for string;
UUPSProxy public liquifierProxy;
EtherFiNode public etherFiNodeImplementation;
EtherFiNode public etherFiNodeInstance;
EtherFiNodesManager public etherFiNodesManagerImplementation;
EtherFiNodesManager public etherFiNodesManagerInstance;
EtherFiRestaker public etherFiRestakerImplementation;
EtherFiRestaker public etherFiRestakerInstance;
AddressProvider public addressProvider;
address rewardsCoordinator = 0x7750d328b314EfFa365A0402CcfD489B80B0adda;
address avsOperatorManager = 0x2093Bbb221f1d8C7c932c32ee28Be6dEe4a37A6a;
function run() external {
vm.startBroadcast();
etherFiNodeImplementation = new EtherFiNode();
etherFiNodesManagerImplementation = new EtherFiNodesManager();
etherFiRestakerImplementation = new EtherFiRestaker(rewardsCoordinator, avsOperatorManager);
console2.log("etherFiNode Impl:", address(etherFiNodeImplementation));
console2.log("etherFiNodesManager Impl:", address(etherFiNodesManagerImplementation));
console2.log("etherFiRestaker Impl:", address(etherFiRestakerImplementation));
vm.stopBroadcast();
}
}