Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slashing: Add additional happy path AM test cases #828

Merged
merged 2 commits into from
Oct 16, 2024
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
1 change: 0 additions & 1 deletion src/contracts/interfaces/IStrategyManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ interface IStrategyManager is IStrategyManagerErrors, IStrategyManagerEvents, IS
IStrategy[] calldata strategiesToRemoveFromWhitelist
) external;


/// @notice Returns bool for whether or not `strategy` is whitelisted for deposit
function strategyIsWhitelistedForDeposit(
IStrategy strategy
Expand Down
11 changes: 11 additions & 0 deletions src/test/mocks/DelegationManagerMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ contract DelegationManagerMock is Test {
return withdrawalRoot;
}

function getOperatorsShares(address[] memory operators, IStrategy[] memory strategies) external view returns (uint256[][] memory) {
uint256[][] memory operatorSharesArray = new uint256[][](operators.length);
for (uint256 i = 0; i < operators.length; i++) {
operatorSharesArray[i] = new uint256[](strategies.length);
for (uint256 j = 0; j < strategies.length; j++) {
operatorSharesArray[i][j] = operatorShares[operators[i]][strategies[j]];
}
}
return operatorSharesArray;
}

function operatorDetails(address operator) external pure returns (IDelegationManagerTypes.OperatorDetails memory) {
IDelegationManagerTypes.OperatorDetails memory returnValue = IDelegationManagerTypes.OperatorDetails({
__deprecated_earningsReceiver: operator,
Expand Down
Loading
Loading