Skip to content

Conversation

@vvalecha519
Copy link
Contributor

@vvalecha519 vvalecha519 commented Oct 22, 2025

Note

Split validator onboarding into register-then-create phases with new roles, status tracking, and invalidation support.

  • Staking Flow (two-phase):
    • Add pre-registration step stakingManager.registerBeaconValidators(...) and require status before creation.
    • New LiquidityPool.batchCreateBeaconValidators(...) sends 1 ETH per validator; gated by LIQUIDITY_POOL_VALIDATOR_CREATOR_ROLE.
  • Roles:
    • LiquidityPool: add LIQUIDITY_POOL_VALIDATOR_CREATOR_ROLE.
    • StakingManager: add STAKING_MANAGER_VALIDATOR_INVALIDATOR_ROLE.
  • StakingManager:
    • Track validatorCreationStatus with ValidatorCreationStatus enum and ValidatorCreationStatusUpdated event.
    • New registerBeaconValidators(...) (validates bids, roots, node) -> sets REGISTERED.
    • Update createBeaconValidators(...) to require REGISTERED, set CONFIRMED, and emit status updates.
    • New invalidateRegisteredBeaconValidator(...) to mark INVALIDATED.
  • Interfaces:
    • ILiquidityPool: add batchCreateBeaconValidators(...).
    • IStakingManager: add enum, registerBeaconValidators(...), invalidateRegisteredBeaconValidator(...), event, and InvalidValidatorCreationStatus error.

Written by Cursor Bugbot for commit a071001. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@pankajjagtapp pankajjagtapp self-assigned this Oct 30, 2025
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