Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add L1 support to getCurrentValidators API #3564

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ceyonur
Copy link
Contributor

@ceyonur ceyonur commented Nov 21, 2024

Why this should be merged

It adds L1 support and shows L1 validators in platform.getCurrentValidators API.

How this works

  • Added validationID to the platform.getL1Validator API.
  • Added L1 support to the platform.getCurrentValidators API.
  • Removed the PermissionedValidator struct as it is no longer used.
  • Introduced getL1Validators and getPrimaryOrSubnetValidators methods to handle fetching validators based on subnet ID.
  • Added convertL1ValidatorToAPI method to convert L1 validator data to API format.
  • Added GetL1Validators method to the State interface to return both base stakers and L1 validators in a converted L1.

How this was tested

Locally

Need to be documented in RELEASES.md?

Yes, updated.

@ceyonur ceyonur self-assigned this Nov 21, 2024
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.

1 participant