Skip to content

Conversation

@funkyenough
Copy link
Collaborator

@funkyenough funkyenough commented May 21, 2025

  • Add TransferFromRewardNotifierTestBase
  • Test TransferFromRewardNotifier with the same tests in StandardTestSuite

@funkyenough funkyenough marked this pull request as ready for review May 21, 2025 13:54
@funkyenough funkyenough requested a review from alexkeating May 21, 2025 13:55
/// @notice Base contract for testing TransferFromRewardNotifier functionality.
/// @dev Extends StakerTestBase and simulates calling notify function on TransferFromRewardNotifier.
/// This contract is designed to be used in conjunction with the deployment scripts in
/// `src/script/notifiers/DeployTransferFromRewardNotifier.sol`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in fdb686c

@github-actions
Copy link

Coverage after merging feature/modular-testing-transfer-from-reward-notifier into feature/modular-testing will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   DelegationSurrogate.sol100%100%100%100%
   DelegationSurrogateVotes.sol100%100%100%100%
   Staker.sol100%100%100%100%
src/calculators
   BinaryEligibilityOracleEarningPowerCalculator.sol100%100%100%100%
   IdentityEarningPowerCalculator.sol100%100%100%100%
src/extensions
   StakerCapDeposits.sol100%100%100%100%
   StakerDelegateSurrogateVotes.sol100%100%100%100%
   StakerOnBehalf.sol100%100%100%100%
   StakerPermitAndStake.sol100%100%100%100%
src/notifiers
   MintRewardNotifier.sol100%100%100%100%
   RewardTokenNotifierBase.sol100%100%100%100%
   TransferFromRewardNotifier.sol100%100%100%100%
   TransferRewardNotifier.sol100%100%100%100%

@alexkeating alexkeating merged commit 409c271 into feature/modular-testing May 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants