Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions script/releases/Env.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import "src/contracts/core/RewardsCoordinator.sol";
import "src/contracts/interfaces/IRewardsCoordinator.sol";
import "src/contracts/core/StrategyManager.sol";

/// slashEscrow/
import "src/contracts/core/SlashEscrow.sol";
import "src/contracts/core/SlashEscrowFactory.sol";

/// permissions/
import "src/contracts/permissions/PauserRegistry.sol";
import "src/contracts/permissions/PermissionController.sol";
Expand Down Expand Up @@ -76,6 +80,10 @@ library Env {
return _envAddress("operationsMultisig");
}

function communityMultisig() internal view returns (address) {
return _envAddress("communityMultisig");
}

function protocolCouncilMultisig() internal view returns (address) {
return _envAddress("protocolCouncilMultisig");
}
Expand All @@ -88,6 +96,10 @@ library Env {
return _envAddress("proxyAdmin");
}

function slashEscrowProxyAdmin() internal view returns (address) {
return _envAddress("slashEscrowProxyAdmin");
}

function ethPOS() internal view returns (IETHPOSDeposit) {
return IETHPOSDeposit(_envAddress("ethPOS"));
}
Expand Down Expand Up @@ -148,6 +160,10 @@ library Env {
return _envU256("REWARDS_COORDINATOR_PAUSE_STATUS");
}

function SLASH_ESCROW_DELAY() internal view returns (uint32) {
return _envU32("SLASH_ESCROW_DELAY");
}

/**
* core/
*/
Expand Down Expand Up @@ -318,6 +334,27 @@ library Env {
return StrategyFactory(_deployedImpl(type(StrategyFactory).name));
}

/**
* slashEscrow/
*/
function slashEscrow(
DeployedImpl
) internal view returns (SlashEscrow) {
return SlashEscrow(_deployedImpl(type(SlashEscrow).name));
}

function slashEscrowFactory(
DeployedProxy
) internal view returns (SlashEscrowFactory) {
return SlashEscrowFactory(_deployedProxy(type(SlashEscrowFactory).name));
}

function slashEscrowFactory(
DeployedImpl
) internal view returns (SlashEscrowFactory) {
return SlashEscrowFactory(_deployedImpl(type(SlashEscrowFactory).name));
}

/**
* token/
*/
Expand Down
Loading