Skip to content

Commit

Permalink
feat: interface change for mw sigchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan authored and ypatil12 committed Nov 30, 2023
1 parent 30e49d3 commit 043a809
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/contracts/interfaces/IDelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,14 @@ interface IDelegationManager is ISignatureUtils {
*/
function delegationApproverSaltIsSpent(address _delegationApprover, bytes32 salt) external view returns (bool);

/**
* @notice Minimum delay enforced by this contract for completing queued withdrawals. Measured in blocks, and adjustable by this contract's owner,
* up to a maximum of `MAX_WITHDRAWAL_DELAY_BLOCKS`. Minimum value is 0 (i.e. no delay enforced).
* @dev Note that the withdrawal delay is not enforced on withdrawals of 'beaconChainETH', as the EigenPods have their own separate delay mechanic
* and we want to avoid stacking multiple enforced delays onto a single withdrawal.
*/
function withdrawalDelayBlocks() external view returns (uint256);

/**
* @notice Calculates the digestHash for a `staker` to sign to delegate to an `operator`
* @param staker The signing staker
Expand Down
4 changes: 4 additions & 0 deletions src/test/mocks/DelegationManagerMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ contract DelegationManagerMock is IDelegationManager, Test {
return 0;
}

function withdrawalDelayBlocks() external pure returns (uint256) {
return 0;
}

function isDelegated(address staker) external view returns (bool) {
return (delegatedTo[staker] != address(0));
}
Expand Down

0 comments on commit 043a809

Please sign in to comment.