Skip to content

Commit

Permalink
chore: bump core fix iface changes (#352)
Browse files Browse the repository at this point in the history
* chore: bump dep

* fix: iface changes and param names
  • Loading branch information
stevennevins authored Jan 8, 2025
1 parent 865b490 commit d54835c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/eigenlayer-contracts
2 changes: 1 addition & 1 deletion test/integration/User.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ contract User is Test {
params[0] = IDelegationManagerTypes.QueuedWithdrawalParams({
strategies: strategies,
depositShares: shares,
withdrawer: address(this)
__deprecated_withdrawer: address(this)
});

delegationManager.queueWithdrawals(params);
Expand Down
39 changes: 33 additions & 6 deletions test/mocks/DelegationMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,40 @@ contract DelegationIntermediate is IDelegationManager {
uint256 wadSlashed
) external virtual {}

function decreaseDelegatedShares(
address staker,
uint256 curDepositShares,
uint64 beaconChainSlashingFactorDecrease
) external virtual {}
function decreaseDelegatedShares(
address staker,
uint256 curDepositShares,
uint64 beaconChainSlashingFactorDecrease
) external virtual {}

function minWithdrawalDelayBlocks()
external
view
virtual
override
returns (uint32)
{}

function minWithdrawalDelayBlocks() external view virtual override returns (uint32) {}
function slashOperatorShares(
address operator,
IStrategy strategy,
uint64 prevMaxMagnitude,
uint64 newMaxMagnitude
) external override {}

function getQueuedWithdrawal(
bytes32 withdrawalRoot
) external view override returns (Withdrawal memory) {}

function getQueuedWithdrawalRoots(
address staker
) external view override returns (bytes32[] memory) {}

function convertToDepositShares(
address staker,
IStrategy[] memory strategies,
uint256[] memory withdrawableShares
) external view override returns (uint256[] memory) {}
}

contract DelegationMock is DelegationIntermediate {
Expand Down
6 changes: 6 additions & 0 deletions test/mocks/EigenPodManagerMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,10 @@ contract EigenPodManagerMock is Test, Pausable, IEigenPodManager {
int256 balanceDeltaWei
) external {
}

function burnableETHShares() external view returns (uint256) {
}

function increaseBurnableShares(IStrategy strategy, uint256 addedSharesToBurn) external {
}
}

0 comments on commit d54835c

Please sign in to comment.