Skip to content

Commit

Permalink
refactor: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Jan 6, 2025
1 parent f1049ca commit 7cfa2d2
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 76 deletions.
6 changes: 3 additions & 3 deletions src/contracts/core/RewardsCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ contract RewardsCoordinator is
}

/// @inheritdoc IRewardsCoordinator
function createOperatorSetPerformanceRewardsSubmission(
function createOperatorDirectedOperatorSetRewardsSubmission(
OperatorSet calldata operatorSet,
OperatorDirectedRewardsSubmission[] calldata rewardsSubmissions
)
Expand Down Expand Up @@ -316,7 +316,7 @@ contract RewardsCoordinator is
}

/// @inheritdoc IRewardsCoordinator
function setOperatorSetPerformanceSplit(
function setOperatorDirectedOperatorSetSplit(
address operator,
OperatorSet calldata operatorSet,
uint16 split
Expand Down Expand Up @@ -658,7 +658,7 @@ contract RewardsCoordinator is
}

/// @inheritdoc IRewardsCoordinator
function getOperatorSetPerformanceSplit(
function getOperatorDirectedOperatorSetSplit(
address operator,
OperatorSet calldata operatorSet
) external view returns (uint16) {
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/core/RewardsCoordinatorStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract contract RewardsCoordinatorStorage is IRewardsCoordinator {
uint8 internal constant PAUSED_OPERATOR_AVS_SPLIT = 7;
/// @dev Index for flag that pauses calling setOperatorPISplit
uint8 internal constant PAUSED_OPERATOR_PI_SPLIT = 8;
/// @dev Index for flag that pauses calling setOperatorSetPerformanceSplit
/// @dev Index for flag that pauses calling setOperatorDirectedOperatorSetSplit
uint8 internal constant PAUSED_OPERATOR_SET_OPERATOR_SPLIT = 9;

/// @dev Salt for the earner leaf, meant to distinguish from tokenLeaf since they have the same sized data
Expand Down
10 changes: 5 additions & 5 deletions src/contracts/interfaces/IRewardsCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ interface IRewardsCoordinatorEvents is IRewardsCoordinatorTypes {

/**
* @notice Emitted when an AVS creates a valid performance based `OperatorDirectedRewardsSubmission`
* @param caller The address calling `createOperatorSetPerformanceRewardsSubmission`.
* @param caller The address calling `createOperatorDirectedOperatorSetRewardsSubmission`.
* @param operatorSet The operatorSet on behalf of which the performance rewards are being submitted.
* @param performanceRewardsSubmissionHash Keccak256 hash of (`avs`, `submissionNonce` and `performanceRewardsSubmission`).
* @param submissionNonce Current nonce of the operatorSet. Used to generate a unique submission hash.
Expand Down Expand Up @@ -342,7 +342,7 @@ interface IRewardsCoordinatorEvents is IRewardsCoordinatorTypes {

/**
* @notice Emitted when the operator split for a given operatorSet is set.
* @param caller The address calling `setOperatorSetPerformanceSplit`.
* @param caller The address calling `setOperatorDirectedOperatorSetSplit`.
* @param operator The operator on behalf of which the split is being set.
* @param operatorSet The operatorSet for which the split is being set.
* @param activatedAt The timestamp at which the split will be activated.
Expand Down Expand Up @@ -459,7 +459,7 @@ interface IRewardsCoordinator is IRewardsCoordinatorErrors, IRewardsCoordinatorE

/// @notice operatorSet parallel of createAVSPerformanceRewardsSubmission
/// @dev sender must be the avs of the given operatorSet
function createOperatorSetPerformanceRewardsSubmission(
function createOperatorDirectedOperatorSetRewardsSubmission(
OperatorSet calldata operatorSet,
OperatorDirectedRewardsSubmission[] calldata performanceRewardsSubmissions
) external;
Expand Down Expand Up @@ -572,7 +572,7 @@ interface IRewardsCoordinator is IRewardsCoordinatorErrors, IRewardsCoordinatorE
* @param operatorSet The operatorSet for which the split is being set by the operator.
* @param split The split for the operator for the specific operatorSet in bips.
*/
function setOperatorSetPerformanceSplit(
function setOperatorDirectedOperatorSetSplit(
address operator,
OperatorSet calldata operatorSet,
uint16 split
Expand Down Expand Up @@ -627,7 +627,7 @@ interface IRewardsCoordinator is IRewardsCoordinatorErrors, IRewardsCoordinatorE
) external view returns (uint16);

/// @notice Returns the split for a specific `operator` for a given `operatorSet`
function getOperatorSetPerformanceSplit(
function getOperatorDirectedOperatorSetSplit(
address operator,
OperatorSet calldata operatorSet
) external view returns (uint16);
Expand Down
Loading

0 comments on commit 7cfa2d2

Please sign in to comment.