Skip to content

Commit

Permalink
fix: add missing struct defintion
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Sep 4, 2024
1 parent 9f95d3b commit e5b375b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/core/AVSDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ contract AVSDirectory is
uint16 numToComplete
) external view returns (uint64) {
OperatorMagnitudeInfo storage info = operatorMagnitudeInfo[operator][strategy];
(, uint64 freeMagnitudeToAdd) =
(uint64 freeMagnitudeToAdd, ) =
_getPendingFreeMagnitude(operator, strategy, numToComplete, info.nextPendingFreeMagnitudeIndex);
return info.freeMagnitude + freeMagnitudeToAdd;
}
Expand Down
10 changes: 10 additions & 0 deletions src/contracts/interfaces/IAVSDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ interface IAVSDirectory is ISignatureUtils {
uint32 completableTimestamp;
}

/**
* @notice Struct containing info regarding free allocatable magnitude.
* @param nextPendingFreeMagnitudeIndex The next available update index.
* @param freeMagnitude The total amount of free allocatable magnitude.
*/
struct OperatorMagnitudeInfo {
uint192 nextPendingFreeMagnitudeIndex;
uint64 freeMagnitude;
}

/// @notice Emitted when an operator set is created by an AVS.
event OperatorSetCreated(OperatorSet operatorSet);

Expand Down

0 comments on commit e5b375b

Please sign in to comment.