Skip to content

Commit 7cfa2d2

Browse files
committed
refactor: renaming
1 parent f1049ca commit 7cfa2d2

File tree

4 files changed

+76
-76
lines changed

4 files changed

+76
-76
lines changed

src/contracts/core/RewardsCoordinator.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ contract RewardsCoordinator is
179179
}
180180

181181
/// @inheritdoc IRewardsCoordinator
182-
function createOperatorSetPerformanceRewardsSubmission(
182+
function createOperatorDirectedOperatorSetRewardsSubmission(
183183
OperatorSet calldata operatorSet,
184184
OperatorDirectedRewardsSubmission[] calldata rewardsSubmissions
185185
)
@@ -316,7 +316,7 @@ contract RewardsCoordinator is
316316
}
317317

318318
/// @inheritdoc IRewardsCoordinator
319-
function setOperatorSetPerformanceSplit(
319+
function setOperatorDirectedOperatorSetSplit(
320320
address operator,
321321
OperatorSet calldata operatorSet,
322322
uint16 split
@@ -658,7 +658,7 @@ contract RewardsCoordinator is
658658
}
659659

660660
/// @inheritdoc IRewardsCoordinator
661-
function getOperatorSetPerformanceSplit(
661+
function getOperatorDirectedOperatorSetSplit(
662662
address operator,
663663
OperatorSet calldata operatorSet
664664
) external view returns (uint16) {

src/contracts/core/RewardsCoordinatorStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract contract RewardsCoordinatorStorage is IRewardsCoordinator {
3333
uint8 internal constant PAUSED_OPERATOR_AVS_SPLIT = 7;
3434
/// @dev Index for flag that pauses calling setOperatorPISplit
3535
uint8 internal constant PAUSED_OPERATOR_PI_SPLIT = 8;
36-
/// @dev Index for flag that pauses calling setOperatorSetPerformanceSplit
36+
/// @dev Index for flag that pauses calling setOperatorDirectedOperatorSetSplit
3737
uint8 internal constant PAUSED_OPERATOR_SET_OPERATOR_SPLIT = 9;
3838

3939
/// @dev Salt for the earner leaf, meant to distinguish from tokenLeaf since they have the same sized data

src/contracts/interfaces/IRewardsCoordinator.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ interface IRewardsCoordinatorEvents is IRewardsCoordinatorTypes {
282282

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

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

460460
/// @notice operatorSet parallel of createAVSPerformanceRewardsSubmission
461461
/// @dev sender must be the avs of the given operatorSet
462-
function createOperatorSetPerformanceRewardsSubmission(
462+
function createOperatorDirectedOperatorSetRewardsSubmission(
463463
OperatorSet calldata operatorSet,
464464
OperatorDirectedRewardsSubmission[] calldata performanceRewardsSubmissions
465465
) external;
@@ -572,7 +572,7 @@ interface IRewardsCoordinator is IRewardsCoordinatorErrors, IRewardsCoordinatorE
572572
* @param operatorSet The operatorSet for which the split is being set by the operator.
573573
* @param split The split for the operator for the specific operatorSet in bips.
574574
*/
575-
function setOperatorSetPerformanceSplit(
575+
function setOperatorDirectedOperatorSetSplit(
576576
address operator,
577577
OperatorSet calldata operatorSet,
578578
uint16 split
@@ -627,7 +627,7 @@ interface IRewardsCoordinator is IRewardsCoordinatorErrors, IRewardsCoordinatorE
627627
) external view returns (uint16);
628628

629629
/// @notice Returns the split for a specific `operator` for a given `operatorSet`
630-
function getOperatorSetPerformanceSplit(
630+
function getOperatorDirectedOperatorSetSplit(
631631
address operator,
632632
OperatorSet calldata operatorSet
633633
) external view returns (uint16);

0 commit comments

Comments
 (0)