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 extra support for more getters for the Validator class #46

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

marcin-cb
Copy link
Contributor

What changed? Why?

Adding support for more getters to expose the data behind the Validator object.

Example

validator.toJSON()

{"asset_id":"eth","details":{"activationEpoch":"epoch-1","balance":{"amount":"100","asset":{"asset_id":"eth","network_id":"ethereum-holesky"}},"effective_balance":{"amount":"200","asset":{"asset_id":"eth","network_id":"ethereum-holesky"}},"exitEpoch":"exit-epoch-2","index":"0","public_key":"public-key-1","slashed":false,"withdrawableEpoch":"withdrawable-epoch-3","withdrawal_address":"withdrawal-address-1"},"network_id":"ethereum-holesky","status":"active","validator_id":"validator-1"}

Qualified Impact

@marcin-cb marcin-cb requested a review from drohit-cb December 17, 2024 21:36
@marcin-cb marcin-cb merged commit 8aa6f48 into v0.0.16 Dec 17, 2024
3 checks passed
@marcin-cb marcin-cb deleted the marcin/validator-details branch December 17, 2024 21:49
drohit-cb pushed a commit that referenced this pull request Feb 5, 2025
* Add extra support for more getters for the Validator class

* Remove unneeded comment

* Update CHANGELOG with new release

* Update go.sum

* Update CHANGELOG
@drohit-cb drohit-cb mentioned this pull request Feb 5, 2025
drohit-cb added a commit that referenced this pull request Feb 5, 2025
* Add extra support for more getters for the Validator class (#46)

* Bump release version to v0.0.16 and update changelog

---------

Co-authored-by: marcin-cb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants