forked from Layr-Labs/eigenlayer-middleware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Layr-Labs/dev
latest upate
- Loading branch information
Showing
28 changed files
with
1,516 additions
and
959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule eigenlayer-contracts
updated
173 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.12; | ||
|
||
import {IServiceManager} from "./interfaces/IServiceManager.sol"; | ||
import {IRegistryCoordinator} from "./interfaces/IRegistryCoordinator.sol"; | ||
import {IStakeRegistry} from "./interfaces/IStakeRegistry.sol"; | ||
|
||
import {IAVSDirectory} from "eigenlayer-contracts/src/contracts/interfaces/IAVSDirectory.sol"; | ||
import {IRewardsCoordinator} from "eigenlayer-contracts/src/contracts/interfaces/IRewardsCoordinator.sol"; | ||
|
||
/** | ||
* @title Storage variables for the `ServiceManagerBase` contract. | ||
* @author Layr Labs, Inc. | ||
* @notice This storage contract is separate from the logic to simplify the upgrade process. | ||
*/ | ||
abstract contract ServiceManagerBaseStorage is IServiceManager { | ||
/** | ||
* | ||
* CONSTANTS AND IMMUTABLES | ||
* | ||
*/ | ||
IAVSDirectory internal immutable _avsDirectory; | ||
IRewardsCoordinator internal immutable _rewardsCoordinator; | ||
IRegistryCoordinator internal immutable _registryCoordinator; | ||
IStakeRegistry internal immutable _stakeRegistry; | ||
|
||
/** | ||
* | ||
* STATE VARIABLES | ||
* | ||
*/ | ||
|
||
/// @notice The address of the entity that can initiate rewards | ||
address public rewardsInitiator; | ||
|
||
/// @notice Sets the (immutable) `_avsDirectory`, `_rewardsCoordinator`, `_registryCoordinator`, and `_stakeRegistry` addresses | ||
constructor( | ||
IAVSDirectory __avsDirectory, | ||
IRewardsCoordinator __rewardsCoordinator, | ||
IRegistryCoordinator __registryCoordinator, | ||
IStakeRegistry __stakeRegistry | ||
) { | ||
_avsDirectory = __avsDirectory; | ||
_rewardsCoordinator = __rewardsCoordinator; | ||
_registryCoordinator = __registryCoordinator; | ||
_stakeRegistry = __stakeRegistry; | ||
} | ||
|
||
// storage gap for upgradeability | ||
uint256[49] private __GAP; | ||
} |
Oops, something went wrong.